Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pdw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
421.
▲
by
pdw
13y ago
No, the Game Boy CPU was a custom design. http://realboyemulator.wordpress.com/2013/01/02/the-nintendo...
422.
▲
by
pdw
13y ago
gcc supports '__int128' and 'unsigned __int128' on 64-bit systems. They're pretty limited as there's no libc support for them on any system I know of.
423.
▲
by
pdw
13y ago
That was only his second complaint. "First, compilers are fragile. While one would like to expect a minimum level of correctness and trustworthiness from a modern compiler, we can't, regardless of the compiler we use."
424.
▲
by
pdw
13y ago
It seems like they might like CompCert. An optimizing C compiler that comes with a formal proof of correctness. Downsides: GPL, doesn't quite implement the full C language (but it's getting closer), and no support for ancient crap
425.
▲
by
pdw
13y ago
I'm annoyed that Title 38 - Veteran's Benefits is out of alphabetical order. Was it originally called Pensions or something?
426.
▲
by
pdw
13y ago
In Linux, "dc" will be GNU dc, which would have been written late 80s or early 90s, like most other GNU utilities. And it would have been maintained/modified over the years. (A better example would be the bsdgames collection.
427.
▲
by
pdw
13y ago
x86/DOS actually was much nicer than most consoles, as it had a 20 bit address space. All memory in the machine could be addressed, even if you had to juggle NEAR and FAR pointers. The 8/16-bit consoles could only address 64k, whi
428.
▲
by
pdw
13y ago
And cartridges could have additional RAM for games that needed it.
429.
▲
by
pdw
13y ago
Meh, seems like it can be revived with another tweet.
430.
▲
by
pdw
13y ago
Why did you use gprof instead of perf? In my experience gprof gives very distorted information because of the instrumenting code it adds to your program. Perf is much more accurate.
431.
▲
by
pdw
13y ago
In 2007, there were 43 people named "Sans". http://www.meertens.knaw.nl/nfb/detail_naam.php?gba_lcnaam=s...
432.
▲
by
pdw
13y ago
I believe Dalvik's interpreter is very fast compared to Java interpreters. But its JIT is optimized for low startup cost and low memory usage, and as a result it's relatively slow. Though it might have improved in recent releases.
433.
▲
by
pdw
13y ago
The last one is just as likely an infinite loop as a crash. Even C compilers occasionally manage to do tail-call optimization these days.
434.
▲
by
pdw
13y ago
It's heavily used in the Linux kernel and in the Linux world in general. But Visual Studio doesn't support it, so projects that target Windows pretty much have to avoid it.
435.
▲
by
pdw
13y ago
A variation of this syntax was standardized in C99: int needfid[] = { [Tversion] = 0, [Tflush] = 0, It works for structs too: struct blah needfid = { .version = 0, .flush = 0,
436.
▲
by
pdw
13y ago
HarfBuzz and ICU are very different things. HarfBuzz is a small library for text shaping (basically, putting font glyphs together to form words, which can be quite complex for some scripts). ICU on the other hand can do pretty much everythi
437.
▲
by
pdw
14y ago
There are several alternatives to the Model M's "buckling spring" switches. They all have a different feel and in the end it comes down to personal taste. * Cherry switches. These come in several varieties. Many manufacturers use these, Fil
438.
▲
by
pdw
14y ago
This is really not a corner case. Think about it. Every place with daylight saving time will experience a duplicate hour when switching from summer time to winter time. A timestamp given in local time can map to multiple UTC times.
439.
▲
by
pdw
14y ago
http://www.win.tue.nl/~aeb/linux/lk/lk-2.html#ss2.13
440.
▲
by
pdw
14y ago
Ok, this does pretty backtraces. I was hoping for an actual 'reverse cpp': a tool that took preprocessed C source code and undoes macro expansions. I mean, it should read some C source and some header files, and use the macro definitions fo
441.
▲
by
pdw
14y ago
You don't need pointer-to-pointers to replace the entire struct, you can just do this: http://play.golang.org/p/2ZUvuyCtwr func main() { u := &User{Name: "Leto"} println(u.Name) Modify(u) println(u.Name) } f
442.
▲
by
pdw
14y ago
Even in C it's not a literal. The consequence is that in a 32-bit implementation, you can't write INT_MIN as -2147483648 (-2^31), because 2147483648 would overflow a signed int. Instead a workaround such as -2147483647-1 must be used.
443.
▲
by
pdw
14y ago
The C11 standard added concurrency primitives to the language.
444.
▲
by
pdw
14y ago
Or even pow = iterate (* 2) 1
445.
▲
by
pdw
14y ago
Also hard to imagine paying $400 (source: http://www.jwz.org/doc/emacs-timeline.html ) for a text editor. Even if it's Emacs.
446.
▲
by
pdw
14y ago
It's pretty hidden http://www.arpanetdialogues.net/disclaimer/
447.
▲
by
pdw
14y ago
That's what Ingo is referring to. "Unfortunately there's a nostalgic cost: your [i.e. Linus'] old original 386 DX33 system from early 1991 won't be able to boot modern Linux kernels anymore. Sniff." Turns out Linus is not the nostalgic typ
448.
▲
by
pdw
14y ago
Support is a bit exaggerated, the 386 option hasn't compiled since the 3.2 release due to unconditional use of 486-only instructions ( https://bugzilla.kernel.org/show_bug.cgi?id=44931 ). Who knows if it actually worked before that.
449.
▲
by
pdw
14y ago
It's a quirk of British English. Collective nouns are often treated as if they were plural. http://en.wikipedia.org/wiki/Comparison_of_American_and_Brit...
450.
▲
by
pdw
14y ago
It really doesn't seem that complicated. When reading an include file the first time, check if everything is enclosed in a preprocessor conditional, one without else-branch. If so, remember the condition and re-evaluate it before opening th
More ›