Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xamuel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
94 ms
·
871.
▲
by
xamuel
9y ago
Consider this ES6 program: (function(){let x=0; let f=()=>{x=1}; f(); console.log(x);})() Is x a "global mutable state" variable? If the above is the entirety of the program, then essentially yes. If you say "no, x is n
872.
▲
by
xamuel
9y ago
It's funny how closures are in-fashion and global mutable state is out-of-fashion, when the latter is really a special case of the former.
873.
▲
by
xamuel
9y ago
1btc is actually equal to 100,000,000 satoshi, and if it ever gets to a point where that's not enough supply, people can just split satoshis further.
874.
▲
by
xamuel
9y ago
Who says cancer cells are bad? Look how efficiently they proliferate!
875.
▲
by
xamuel
9y ago
It's like if someone proved P=NP and the magazine title was: "Mathematicians Measure Difficulty Levels, Find They're Equal."
876.
▲
by
xamuel
9y ago
Actual article: https://arxiv.org/pdf/1208.5424.pdf Great results within a very narrow field, which quantamagazine leverages into a clickbaity title.
877.
▲
by
xamuel
9y ago
I used large cardinal axioms as [the canonical] example of any axiom stronger than standard mathematical foundations. A contrived example: there are certain large cardinal axioms that imply the consistency of ZFC. Thus ZFC cannot prove tho
878.
▲
by
xamuel
9y ago
Detecting 100% of buffer overflows with 0% false alarms, would require solving the Halting Problem. For applications that demand both maximum speed as well as maximum security, the best solution is probably something like a C compiler that
879.
▲
by
xamuel
9y ago
Also everyone forgets evolution is about adaptation. It's not about "levelling up" across-the-board like in a video game. If a species is already optimized for the environment, and the environment remains stable, of course
880.
▲
by
xamuel
9y ago
For the first one, would engines like v8 be smart enough to optimize it so it isn't wasting time on a pointless if-branch? (I'd imagine not, as it would be pretty hard for the engine to know that all the record.bool's are bo
881.
▲
by
xamuel
9y ago
Another flavor of this surprise: JSON.stringify doesn't "see" undefined. JSON.stringify({foo:undefined}) returns "{}" :)
882.
▲
by
xamuel
9y ago
C example from the Linux kernel: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history...
883.
▲
by
xamuel
9y ago
"Fuck tha police" is from an album which was recently selected for preservation by the Library of Congress for being "culturally, historically, or artistically significant". The album was also rated the 144th best album
884.
▲
by
xamuel
9y ago
>vastly favour the top billion humans right now I see it more as favouring the most intelligent. The real $$$ isn't in day-trading, it's in figuring out which cryptos have future merit. That means reading white-papers and dis
885.
▲
by
xamuel
9y ago
This would fail to account for things like leap seconds
886.
▲
by
xamuel
9y ago
A genuine breakthrough in the narrow realm of reverse mathematics. (The article exagerates that into a breakthrough in general , par for the course for science journalism.) Here's the actual paper: https://arxiv.org/p
887.
▲
by
xamuel
9y ago
>not totally sure how to achieve it [replaceability] One of the most crucial keys is: make your code greppable . For example, don't treat OOP classes as a license to use generic method names ("add", "set", &quo
888.
▲
by
xamuel
9y ago
Forfeiture is disgusting, but what Congress really should be ashamed of is their own inaction in addressing forfeiture through legislation. It's not like Sessions is some dark age monarch answerable to no-one. Forfeiture continues
889.
▲
by
xamuel
9y ago
Or maybe increasing NN size/complexity is the 21st century version of adding epicycles to make geocentrism work. http://wiki.c2.com/?AddingEpicycles
890.
▲
by
xamuel
9y ago
Kafka only wrote 3 novels, all unfinished, all excellent. "The Trial" is the conventional starter Kafka novel. It's the only one with an ending. "The Castle" is my favorite. A good entry if you think you already u
891.
▲
by
xamuel
9y ago
Real science should even welcome biased, hostile scrutiny. Actually, that's the best kind of scrutiny. Read Blaise Pascal's work where he demonstrated how to create a vacuum experimentally. At the time, everyone thought that was
892.
▲
by
xamuel
9y ago
One of the most annoying JS FP antipatterns is when people use fancy 3rd-party currying when a simple ES6 fat-arrow would suffice. "_.curry(f,0)" instead of "x => f(0,x)"
893.
▲
by
xamuel
9y ago
In most fields, referees are volunteers, and the editors who coordinate them are volunteers or get some trivially tiny recompensation. Distribution costs of a paper should be about as high as those of a blog post.
894.
▲
by
xamuel
9y ago
Authors who claim to understand music scientifically should be judged by the music they produce. If an author really does have some deep understanding of what makes music work, it should be fairly easy for the author to get a record deal,
895.
▲
by
xamuel
9y ago
Don't think of it as "a mind", but as "the knowledge held by a mind": one of the defining properties of knowledge is truth. (That's not intended as an endorsement of Lucas-Penrose. There are deeper flaws in t
896.
▲
by
xamuel
9y ago
>An algorithm that explains ... isn't any more moral Not sure what "moral" means, but two things: 1. If black boxes make unexplainable decisions, that gives too much power to the person who reads the box's answer, 2.
897.
▲
by
xamuel
10y ago
In high school I coded for some MUD games for fun. I wasn't thinking anything like "This will look great on my resume" or "Wow, C, so elite". More like, "How can I add this new fireball spell? Which similar c
898.
▲
by
xamuel
10y ago
There's a whole subreddit for things like this. https://www.reddit.com/r/glitch_art/
899.
▲
by
xamuel
10y ago
>compensated on their ... contributions Kiss goodbye to any kind of code hygiene. >abolish a top down chain of command You now have a squeaky wheel company. The squeaky wheel gets the grease.
900.
▲
by
xamuel
10y ago
>better ... language ... Python ES5 was a dumpster-fire. But ES2015+ is an amazing language. You just have to take the time to systematically study it. If you're choosing a language you'll spend thousands of hours with, you s
More ›