HNHacker News
TopNewBestAskShowJobs

kevinnk

799 karma · joined March 25, 2012

[ my public key: https://keybase.io/kkiningh; my proof: https://keybase.io/kkiningh/sigs/i245-gK_dv4Qc5VWTlErrKFhl9_TEsxfD3WbLDeD4As ]
submissionscomments
kevinnk··on Programmable blockchains in context: Ethereum’s Future
If by Bitcoin you mean a block chain based cryptocurrency, then yes, since Ethereum is already a blockchain based cryptocurrency. If you mean the exact protocol of bitcoin, the answer is also yes (Ethereum is turning complete, so it should be able to do anything minus networking) although in practice it would be inefficient.
kevinnk··on OpenStreetMap is the Most Important thing in Geo
I was skeptical so I just attempted this on my Galaxy S5 and it turns out you're right! Very interesting.
kevinnk··on A Guide to Fast Page Loads
Chrome has several different caches (HTTP, DNS, SSL session data, etc.) but looking at just the on disk HTTP cache my laptop is currently using 201MB with the default settings. For anyone else who is interested, you can see the cache stats at chrome://net-internals/#httpCache
kevinnk··on Why are little kids in Japan so independent?
I left my wallet and phone on a subway in Manhattan. Both got returned to me (including about $50 cash I had in the wallet). My girlfriend's iPhone 6 fell out of her purse in a nightclub in San Francisco. It got returned to her the next day. In college, my bike got taken during the night and returned a few days later with a sickynote saying the person who took it was drunk and didn't want to drive home. While in Japan, my friends got scammed by thugs who demanded $1000 to leave the "club" they were tricked into entering.
kevinnk··on Gigabytes of user data from hack of Patreon donations site dumped online
Looks like they use AWS, MySQL, and Python. They also use Stripe for payments (all their secret keys and source are in the dump).
kevinnk··on Writing Good C++14 by Default [pdf]
Rust has pointers all over the place - one of the core features is memory safety with pointers.
kevinnk··on Assembler Relaxation
The ld program distributed with binutils refers to this process as relaxation pretty extensively - you can see it in the ".map" file output or by greping the source for ld.

EDIT: The term is even in the wikipedia article for linker [1], although with a broader definition.

[1] https://en.wikipedia.org/wiki/Linker_(computing)#Relaxation

kevinnk··on Google Says It’s Not the Driverless Car’s Fault. It’s Other Drivers’
Actually, it can already understand some hand gestures [1]. Compared to all the other things an autonomous car has to deal with, gesture recognition doesn't seem like such a stretch.

[1] http://road.cc/content/news/150448-google-patent-reveals-how...

kevinnk··on Literary Magazines for Socialists Funded by the CIA, Ranked
GNU software? It's hard to imagine big coroporations pushed that.
kevinnk··on Why Does Tap Water Go Stale Overnight?
My family has a reverse osmosis filter and it tastes identical to bottled water despite the tap being extremely hard well water. Depending on how much water you drink, it should pay for itself in a couple months. I think ours was $250.
kevinnk··on Should I Use Signed or Unsigned Ints?
For gcc see https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins...
kevinnk··on The Ketamine Connection
> All reported cases where the user consumed greater than 5 g/day reported symptoms of the lower urinary tract.

That only implies that if you do 5g/day, you will with near certainty get urinary tract problems. You can definitely get get urinary tract problems with much lower dosages.

kevinnk··on Show HN: Calc, a simple command-line calulator in C
Try http://www.tutorialspoint.com/cprogramming/c_header_files.ht...
kevinnk··on Intel Buys Altera for $16.7B
It turns out that while Java byte code is very nice as a compiler target, it's horrible as an instruction set. Theres been quite a few experiments with hardware accelerated java byte code, and all of them turn out to be slower then just targeting a simpler instruction set. (Something that's been played out before in CISC vs RISC)
kevinnk··on Intel Buys Altera for $16.7B
The real problem with FPGAs is that for 99% of use cases, CPU/GPGPU is good enough. And in the cases you really do need the extra speed, its rare you also need the flexibility, in which case you'd make an ASIC. There is a niche for FPGAs (especially in prototyping), but it's not as big of a market as you would imagine.
kevinnk··on In Norway, a Prison Built on Second Chances
Ironically, painting broad swaths of people with labels like "non-virtuous" is how we got extreme sentences In the first place.
kevinnk··on Go in Go
Nope. Many languages are written in themselves. C, C++, and many Lisp implementations come to mind :)

See http://en.wikipedia.org/wiki/Self-hosting

kevinnk··on Announcing Rust 1.0
As I've pointed out in a previous thread, virtually all of it is from a) iostreams and b) glibc. If you don't statically link glibc (as is the case the vast majority of the time) it's much smaller.

Edit: You made my point for me in your edit :) Leaving my original comment for posterity.

kevinnk··on Shotspotter CEO Answers Questions on Gunshot Detectors in Cities
The US military kills people with high powered machine guns, uses tactics like suppressive fire, trains constantly with live ammunition, etc. I'm not the comparison is very relevant.
kevinnk··on Police Start to Reconsider Longstanding Rules on Using Force
The question here is what did the police aim for not what did they hit.
kevinnk··on Nim Programming Language 0.11.0 released
For C++ most of that is iostream.

   $ cat hello.cpp

   #include <cstdio>
   int main(void) { puts("Hello, World!"); }

   $ g++ -static hello.cpp
   $ du -h a.out
   857K	a.out
Compiling for size (-Os -fdata-sections -ffunction-sections hello.c -Wl,--gc-sections) gives 816K

With iostream I get 1.6M

kevinnk··on Nim Programming Language 0.11.0 released
"I was not able to figure out how to pass a static option to rustc"
kevinnk··on The Engineer’s Lament
A few of my relatives do this and it's always immediately obvious when you drive with them. The ride is substantially more jerky (although they claim there isn't a difference) and the break light is on half the time we're on the road.
kevinnk··on Declassified Report Shows Doubts About Value of NSA’s Warrantless Spying
> In a real democracy what you should have is oversight by the people, in an open and transparent system.

In this context what exactly would that entail?

kevinnk··on How does D improve on C++17?
Maybe someone with more D experience can chime in, but D has conditional compilation (ie "static if")

http://dlang.org/version.html

kevinnk··on Branchless code sequences
If you have a banking system that runs all day every day, why are you not compiling ahead of time and running super optimization then? JIT is most useful where the application or the target is highly dynamic and you aren't able to compile ahead of time.
kevinnk··on Branchless code sequences
JIT compilers are time constrained so super optimization isn't a very good match.
kevinnk··on The Steady Rise of Bike Ridership in New York
There isn't much question that helmets reduce injury. The larger question of "should they be mandatory" is still open (with a strong lean towards "no.")

From the first article.

"Even most opponents of mandatory helmet laws advocate helmet use, but they say that the negative consequences of helmet laws outweigh the benefits."

From the third.

"If you consider the entire body of research rather than just one study, and look at both head and neck injuries, helmets only reduce the risk of injury by about 15% to 45% ."

kevinnk··on Towards improved C++ support for games, graphics, real-time, embedded systems [pdf]
There's actually an official "study group" looking at compile time refection proposals, so this is definitely something in the works. However, the proposals have ranged from mediocre to downright horrible so it's probably not going to be in the standard any time soon.

Some light reading

  [1] (static if) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3613.pdf
  [2] (call for compile-time reflection) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3814.html
  [3] (enum properties queries) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3815.html
  [4] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3996.pdf
kevinnk··on Lucid, a New Hardware Description Language
The link doesn't really give very much information, but from the tutorial (https://embeddedmicro.com/tutorials/lucid) it looks like a skin of Verilog. What's the advantage of using this over a more modern HDL like Chisel?
← PreviousPage 5 of 8Next →