Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cygx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
162 ms
·
1441.
▲
by
cygx
15y ago
It is the same for Javascript: even though you have an Array object that you can instantiate instead of the more generic Object, they are much the same thing under the hood with both arrays and objects being hash maps While this is true i
1442.
▲
by
cygx
15y ago
I just read the paper. The authors actually make no claim about the reality of the wave function, so disregard anything I said above (which is still true, but not relevant). However, they do claim to have disproven the statistical interpret
1443.
▲
by
cygx
15y ago
I didn't read the paper yet and it really might contain some valuable insights into the nature of quantum mechanics (I'll take a look at it later today), but I find this debate about whether the wave-function is a real object or not hilario
1444.
▲
by
cygx
15y ago
According to Herb Sutter's obit for Dennis Ritchie ( http://herbsutter.com/2011/10/12/dennis-ritchie/ ), C1x already passed its final ballot, so all that's missing is an official announcement. It would be nice to know if there are any cha
1445.
▲
by
cygx
15y ago
There is - and probably never will be - a scientific answer to this particular question, as establishing such an answer would involve taking a few thousand kids and raising them in isolation. The offending statement is thus nothing more tha
1446.
▲
by
cygx
15y ago
That's a little disingenuous. Not really. It just shows that feature-completeness may be a good metric when comparing implementations of the same language, but not so much when comparing them to implementations of a different language. t
1447.
▲
by
cygx
15y ago
Perl6 already is out - there's a Tetris-implementation using GTK for Niecza, a Perl6 implementation on Mono/.NET. The implementations are not feature-complete, but if that's your sole criterion, then neither C nor C++ are out yet. The most
1448.
▲
by
cygx
15y ago
The idiomatic way to get a pointer to one past the end of an array x with element-type foo is x + sizeof x / sizeof *x which is equivalent to (foo *)((char *)x + sizeof x) whereas x + sizeof x is equivalent to
1449.
▲
by
cygx
15y ago
Just to be an onerous bastard: As the code involves undefined behaviour, it's superfluous to reason about any output. Only values of type void* are valid arguments in case of the %p conversion specifier as there need not be a uniform pointe
1450.
▲
by
cygx
15y ago
> One of the things that hampers C is its string processing. That's not a language, but a library issue. String handling in C is only as sucky as the library you're using...
1451.
▲
by
cygx
15y ago
> Dynamic languages can be faster than C now, and are only improving. You're a bit too enthusiastic here, imo. JIT compiled code can in theory outperform AOT compiled code because of dynamic recompilation of hot code paths. However, you
1452.
▲
by
cygx
15y ago
> if there are pockets of antimatter in there, they'd [...] be separated from normal matter early on in the process (leading to huge gaps between the cells) Thanks to inflation, I suspect that something like this might indeed be possibl
1453.
▲
by
cygx
15y ago
Really? What about function Y(f) { var g = f(function(arg) { return g(arg); }); return g; } The inner() function from Mozilla's implementation is actually unnecessary in languages that suppor
1454.
▲
by
cygx
15y ago
I'm not talking about pseudoY(), but Y()
1455.
▲
by
cygx
15y ago
There's actually a simpler fixed-point combinator for JavaScript than the 'standard Y' - see http://rosettacode.org/wiki/Y_combinator#JavaScript
1456.
▲
by
cygx
16y ago
The factual errors concerning the C preprocessor aside, the author also ignores C++-style metaprogramming. Granted, C++ templates have their flaws, but they do provide a Turing-complete compile-time metaprogramming environment...