HNHacker News
TopNewBestAskShowJobs

kevinchen

1,972 karma · joined November 28, 2010

https://kevinchen.co

The opinions expressed here are my own. They do not represent those of my employer.

submissionscomments
kevinchen··on Gas Theft Gangs Fuel Pump Skimming Scams
For Amex, adding the card to Apple Pay will notify you of all transactions.
kevinchen··on Android NDK: GCC is now deprecated, everyone should be switching to Clang
Ran the program with some slight modifications and couldn't reproduce it

   #include <iostream>
   #include <sstream>
   int main(int c, char **v) {
       std::stringstream s("1.5");
       double x; s >> x;
       return x == 1.5 ? 0 : 1;
   }

Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.2.0 Thread model: posix
kevinchen··on Android NDK: GCC is now deprecated, everyone should be switching to Clang
You listed a bunch of things without substantiating. For example, how would free software prevent the NSA from spying? Internet backbone taps don't care if your HTTP implementation is running under Windows or Linux...
kevinchen··on Android NDK: GCC is now deprecated, everyone should be switching to Clang
I don't know much about Android NDK, but in general, people use clang because:

- Clear and readable diagnostics -- especially useful when debugging nasty C++ template stuff where the type signature is a page long. (GCC is catching up in this area)

- Modular design -- if an IDE wants to have syntax highlighting or an Xcode/Eclipse/IntelliJ like "fix it" feature, they can use the clang frontend to parse the code. Also, GCC's "big ball of mud" design (iirc they do some optimizations like constant folding in the parser) makes it harder to hack on unless you're already pretty familiar with the codebase.

- Less hostile community -- people have tried to clean up GCC but their patches were rejected (see the RMS email link below)

- Helps you with standards compliance -- clang will still compile code with compiler-specific extensions but it has an option to output a warning. There are some codebases that have come to rely on these behaviors so clang's warnings can help make sure you don't end up tied to one specific compiler.

- Personally, I like AddressSanitizer (ASan). It does similar checks as Valgrind, but using compile-time instrumentation -- just pass in an additional flag. Gets rid of a dependency.

kevinchen··on What You Believe Affects What You Achieve
Nice catch - fixed. Too early for arithmetic.
kevinchen··on What You Believe Affects What You Achieve
The interview you quote is from 1986, nearly 30 years ago. People change their viewpoints over 3 decades - it would be stupid if Gates always thought the same things even after learning from others or having new experiences.

So he's not being a "hypocrite," he's just learning. Just because he is famous and has a lot of interviews doesn't mean he isn't allowed to change his mind.

kevinchen··on Being homeless a struggle, even with a $100k job offer
Yes, that's entire point of the article.
kevinchen··on Postmortem: Server compromised due to publicly accessible Redis
Because out of the box, Redis binds to 0.0.0.0 (and many people don't bother changing the defaults)
kevinchen··on Office Papermaking System That Turns Waste Paper into New Paper
It's possible that the efficiency of having a plant specialize in recycling paper makes up for the energy used in transportation.
kevinchen··on Let’s Encrypt and DreamHost
This is my favorite quote from the post:

"You’ll still be able to purchase secure certificates through the DreamHost control panel... Functionally, they’re the same! Financially, they are fifteen dollars more expensive than free certificates. Up to you!"

kevinchen··on Node.js running in the new Airbus A350 inflight servers
ISS has laptops. I've heard that they do everything by using Remote Desktop to a NASA box on the ground, but presumably there's some part of the client that uses a web view with some JS e.g. to show formatted text.
kevinchen··on Naval Academy reinstates celestial navigation
Here's a paper that proposes GPS authentication based on signing and statistics about the signals (lots of math): http://radionavlab.ae.utexas.edu/images/stories/files/papers...

Paper from Los Alamos with a receiver-only implementation that would use:

- abnormally high signal strength

- abnormally regular transmissions

- a secondary time source to double-check time (e.g. NTP on a smartphone)

- dead-reckoning based on accelerometers/gyroscopes/compass to double-check position

http://lewisperdue.com/DieByWire/GPS-Vulnerability-LosAlamos...

kevinchen··on Ask HN: How do you fire a “B Player?”
This is an option for large firms with resources to throw around, but at a startup, everyone needs to pull their own weight. There are already enough things eating into your resources -- don't need to pay a second designer to train your first designer.
kevinchen··on China's Tsinghua Unigroup to invest $47B to build chip empire
Correct me if I'm wrong, but I don't think you can design silicon in kicad.
kevinchen··on China's Tsinghua Unigroup to invest $47B to build chip empire
I understand that making chips is hard, but this thinking reminds me of the Palm CEO's quote "PC guys are not going to just figure this out. They’re not going to just walk in."

Just look at how far Apple and TSMC have come since 2009. Sure, Apple "cheated" by acquiring PA Semi (the DEC Alpha people). But China has the rest of the ingredients: vertical integration of hardware/software (I assume these will be used for defense-related HPC), strong political incentives to be independent, and massive amounts of cash.

kevinchen··on NNSA, Nvidia to create an open-source Fortran compiler front-end for LLVM
GCC includes a Java frontend too, but do any serious Java shops use it? It's not just about having a feature, it's about implementing that feature well and making it easy for others to contribute their improvements.
kevinchen··on NNSA, Nvidia to create an open-source Fortran compiler front-end for LLVM
A choice quote from that thread:

> Between 2000 and 2004, [g95 fortran] front-end was coupled to the rest of the infrastructure of the GNU Compiler Collection. This was not trivial (just as it will not be trivial to couple the PGI front-end to the LLVM infrastructure).

They really don't get that LLVM's modularity is a strength...

kevinchen··on Banish the Kardashians from the web
Uh no, matching a few compiled regexes is very cheap compared to requesting additional images over a cellular connection and and then having the browser lay out the additional text/images.
kevinchen··on Did the FBI Pay a University to Attack Tor Users?
This misses the point entirely. Nobody is saying that security researchers shouldn't find vulnerabilities.

The problem is that rather than publishing or filing a bug, the researchers helped the government exploit it for $1M. Effectively the same as selling the exploit on the black market.

kevinchen··on Deepwater Horizon Dispersants Backfired
Not a biologist, but I would guess that adding oil-digesting bacteria beyond the carrying capacity is very inefficient. The bacteria would clean up oil for one generation and die.

However, increasing the carrying capacity (e.g. by adding nitrogen as suggested in the article) lets the microbes reproduce, possibly exponentially (2^t).

kevinchen··on Gmail, We Need to Talk
…except Gmail doesn't support plain-text email well either. They've been converting plaintext quotes to literal '>' characters for at least 3 years and counting:

https://groups.google.com/a/googleproductforums.com/d/msg/gm...

kevinchen··on Self-flying drone dips, darts and dives through trees at 30 mph
To do that reliably, I think both vehicles would need to know their absolute positions with high resolution (spatial and time). Could be a separate research project given how small their planes are.
kevinchen··on Swift Intermediate Language: LLVM conference slides [pdf]
I believe RemObjects[1] has already implemented a 3rd party Swift compiler. So technically, they have compiled Swift using a non-LLVM backend.

1: http://www.elementscompiler.com/elements/default.aspx

kevinchen··on Sustaining Digital Certificate Security
Scrolling through the two PDFs linked from the post, looks like we would have to stop trusting Symantec, Thawte, VeriSign, GeoTrust, and probably a few others. Is that right?
kevinchen··on How to Build a Low-Tech Internet
Perhaps "low-cost" is a better adjective. Wi-Fi hardware and knowledge are ubiquitous — the article says the buying Wi-Fi hardware is cheaper than rolling your own.

Also, I'd imagine if the people setting up the network leave, others will have an easier time maintaining if the network uses a very popular link layer.

kevinchen··on First New U.S. Nuclear Reactor in Two Decades to Begin Fueling in Tennessee
I think it's meant as a rate measurement, not volume. They want readers to visualize spraying the reactor with 10 garden hoses as the rate of cooling needed in an emergency.
kevinchen··on US film of parachuting beavers found after 65 years
> the excuse of scientific knowledge of the moon was used for recording Soviet Russia signals through moon reflection.

In case anyone else is curious about that bit: http://nsarchive.gwu.edu/NSAEBB/NSAEBB479/

kevinchen··on Mission Motors didn't close because of Apple
Now that the cost of publishing has gone to nothing, you trust that someone who knows what they're talking about (e.g. Asphalt & Rubber) will eventually see a popular but incorrect story and write a correction.

https://stratechery.com/2015/in-defense-of-the-new-york-time...

kevinchen··on Apple tells U.S. judge 'impossible' to unlock new iPhones
Since each HSM has a unique key, wouldn't you have to decap one chip for each phone to recover the keys? I think that is sufficient protection to make decrypting phones unfeasibly expensive for most cases.
kevinchen··on Apple tells U.S. judge 'impossible' to unlock new iPhones
From my understanding - important files are encrypted, and the ability to decrypt is lost when the user sleeps their phone. So iOS needs the user to enter a passcode before the data can be read again.
← PreviousPage 3 of 10Next →