Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pdw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
361.
▲
Subtraction is not comparison
(tedunangst.com)
90 points
by
pdw
12y ago
|
64 comments
362.
▲
by
pdw
12y ago
Especially if your clock is synced with every other clock in the world.
363.
▲
by
pdw
12y ago
That's Dijkstra's later terminology. In EWD35 he introduced the operations as "passering" and "vrijgave". Then in EWD51 he uses "verhogen" and the neologism "prolagen" ("probeer te verl
364.
▲
Violating randomization standards
(article.gmane.org)
57 points
by
pdw
12y ago
|
41 comments
365.
▲
by
pdw
12y ago
Can somebody explain how Belgium achieved 28%? It's the only country that's colored bright green.
366.
▲
by
pdw
12y ago
I guess it grows naturally: the first players build a huge building near spawn, some griefer destroys it all, the next builders build a bit further from spawn, etc.
367.
▲
by
pdw
12y ago
In K&R C, the function braces serve to separate parameter declarations and local variables: int main(argc, argv) int argc; char **argv; { int local; }
368.
▲
by
pdw
12y ago
Not specified in any standard, not much of an improvement according to the glibc maintainers, and already provided in libbsd.
369.
▲
by
pdw
12y ago
I'm one of the folks who transcribed it from the scans and added the compatibility glue. One bug remains: The original doctor answered as soon as you ended a sentence with a period ("PLEASE TERMINATE INPUT WITH A PERIOD OR A QUEST
370.
▲
by
pdw
12y ago
I don't think the standard Linux kernel supports user-space OOM handling. That's a patch set that Google has been pushing for a few years, but that hasn't been accepted yet (as far as I know). So I'm guessing she's
371.
▲
by
pdw
12y ago
Not only can you omit the commas, you can even omit the braces. JSON: { 'one': 1, 'two': 2 } YAML: one: 1 two: 2
372.
▲
by
pdw
12y ago
Well, that completely misses the point of JSON: simple and unambiguous syntax. If you want something that's easier to edit for config files, you can use YAML.
373.
▲
by
pdw
12y ago
SpaceChem is included in the current Humble Bundle, with still 10 hours remaining, FWIW.
374.
▲
by
pdw
12y ago
Not everything is as easy to port as strlcpy... Implementing a correct arc4random on Linux is quite non-trivial
375.
▲
by
pdw
12y ago
Because it's undefined, the compiler is allowed to do anything: including giving the expected result.
376.
▲
by
pdw
12y ago
Huge switches are common in the inner loop of emulators and interpreters. They tend to end up with a 256-case switch to handle the next byte in the instruction stream.
377.
▲
by
pdw
12y ago
That struck me as very weird as well. I never heard of this CPU, so I looked it up. Turns out it's not supposed to go fast: the designers boast of a tiny implementation and dense code, and it only intended for "light administrativ
378.
▲
by
pdw
12y ago
The compiler used is DJGPP, a port of GCC that comes with a DOS extender, a POSIX-compatible C library and pretty much everything else needed to pretend that you're using a Unix system. Basically Cygwin for DOS.
379.
▲
by
pdw
12y ago
There are no standard CSV files. There's even no "Excel standard": Excel uses different delimiters in different locales. It's a huge pain.
380.
▲
by
pdw
12y ago
So I guess the next step is to buy the remaining African address space?
381.
▲
by
pdw
12y ago
The file system and security model differences are much more important than any terminal differences. Looking through the programs included in coreutils, I can see only two or three that care about the terminal at all (`stty`, `nohup`, ls o
382.
▲
by
pdw
12y ago
Well, as long as you don't want to revoke your certificate...
383.
▲
by
pdw
12y ago
I like that he explains it using car analogies. > Instructions that have completed execution and have not yet been committed are analogous to cars that have gone through our hypothetical repair shop and are waiting for their owners to pi
384.
▲
by
pdw
12y ago
There was an interesting talk on this at Linux.conf.au a couple of years ago, trying to figure out why modern binaries are so large. http://www.youtube.com/watch?v=Nbv9L-WIu0s > Bloat: How and Why UNIX Grew Up (and Out)
385.
▲
by
pdw
12y ago
Wow, it looks like half a dozen people have been working on this for two years...
386.
▲
by
pdw
12y ago
Nice timing, Cisco just sent Obama a letter complaining about NSA tampering... http://www.bbc.com/news/technology-27468794
387.
▲
by
pdw
12y ago
In Linux you can find those functions in libbsd.
388.
▲
by
pdw
12y ago
According to his autobiography, he moved as a teenager from Taiwan to Paraguay, then to Bolivia and finally to Canada. That's a very different story than simply "high school dropout". http://xahlee.org/PageTwo
389.
▲
by
pdw
12y ago
GCC can do it as well, compile your code with --coverage and `gcov -c` will tell you how often each branch was taken.
390.
▲
by
pdw
12y ago
It looks like they took the ITA2 telegraphy code, which has the numbers in normal order but the letters in typewriter order, and re-sorted it so that the letters are alphabetical. That would explain the scrambled numbers, but not the punctu
More ›