Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codeflo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
781.
▲
by
codeflo
4y ago
I don’t think we disagree, if I understand you correctly, that’s more or less what I wanted to express.
782.
▲
by
codeflo
4y ago
> In contrast, evolutionary theory puts humans (or hominins) last, just as does the biblical story of Genesis. Yet in all instances, the position confers on Homo sapiens a unique status, thereby separating us from the rest of the animal
783.
▲
by
codeflo
4y ago
The author even implies in a footnote that switch statements are unusable. I mean, we probably all had painful experience with the “gotcha”, and I appreciate efforts towards safer designs. But I mean, let’s not be ridiculous. It works fine.
784.
▲
by
codeflo
4y ago
Some language features aren’t aimed at toy examples, and if that’s the scope of your thinking, you won’t see the point. For example, I like how the catch block is just a single function call to handleErrorSomehow — which would be totally fi
785.
▲
by
codeflo
4y ago
It's unfortunately a very human tendency to shift baselines, to judge each individual step only relative to the last one, without considering the situation in the absolute. This applies in much lower stakes environments as well: the wo
786.
▲
by
codeflo
4y ago
Also, users are sometimes simply ordered, by their bosses or IT, not to press buttons in ways that are known to break the software. This is sometimes considered cheaper than fixing bugs, or at the very least, mitigates the problem until the
787.
▲
by
codeflo
4y ago
Yeah, I hadn't thought this fully through when posting, and was almost right more by accident than anything. To further show your point, if you actually take the (real) limit, you get lim t->0 (x^t-1)/t = ln(x) using L'Hop
788.
▲
by
codeflo
4y ago
I think this article does a good job of highlighting the difference between simulations and ML-based approaches. The latter are faster, but have limitations outside of their training parameters. As with everything in ML, broader training da
789.
▲
by
codeflo
4y ago
If you want to make a statement like that, then logarithms might not be the zeroth power, but the epsilonth power, where ε is an “infinitesimal”. Bear with me here, I know infinitesimal math isn’t a fully coherent thing. But there’s a reaso
790.
▲
by
codeflo
4y ago
You do realize that most charities sell some things, right?
791.
▲
by
codeflo
4y ago
That’s right, the keyword enables additional operations, namely those that can’t be checked — which one might even call “unchecked operations” to justify the keyword. My problem with the word “unsafe” is that many people seem to think unsaf
792.
▲
by
codeflo
4y ago
If it weren't for the source, the cringy Matrix references and sensationalist writing would have made me dismiss this without much thought. The Wikipedia article on Eurodollars and some others make all of this sound a lot more mundane.
793.
▲
by
codeflo
4y ago
I don't think comparing a service like S4 to a non-existing disk is fair. Especially in enterprise software, I often get the requirement that the data is reliably written. I can easily point an auditor to the S4 service contract and SL
794.
▲
by
codeflo
4y ago
“List of things named after members of the Bernoulli family”: https://en.m.wikipedia.org/wiki/List_of_things_named_after_m...
795.
▲
by
codeflo
4y ago
I guess the name stuck because naming even more things after the Bernoullis would just be too confusing.
796.
▲
by
codeflo
5y ago
Oh for the love of God, don’t introduce confusingly named variants of widely known licenses. If a new license is really needed — fine, if lawyers think that’s necessary, it probably is — but don’t name it that . No one will bother to check
797.
▲
by
codeflo
5y ago
It’s funny that no amount of (Rust-like) compile time or (Java-like) runtime checks would have prevented this — every line of code is working as intended. The parallels to the recent Log4J vulnerability are evident. If you happen to think,
798.
▲
by
codeflo
5y ago
The article, and the comments praising this approach, don’t do a great job of explaining how any of this is substantively different from running the likes of yarn install --frozen-lockfile, or cargo build --frozen. Here’s the thing: You can
799.
▲
by
codeflo
5y ago
These random/urandom blocking/nonblocking discussions have been going on for at least a decade at this point, maybe even longer. I get that RNG algorithms are hard. What’s surprising to me is that it seems so hard to even figure o
800.
▲
by
codeflo
5y ago
Let’s say I give you a box with two lights to show its state, one green and one red. Currently, the red light is on. The red light will also be on tomorrow. In fact, people who have observed this box for years have only ever seen it show re
801.
▲
by
codeflo
5y ago
As you hint at in your last paragraph, it’s probably hard to come up with a blog-sized example for any programming technique. If 10-15 lines were really the extent our scope, we probably wouldn’t need anything more advanced than assembler.
802.
▲
by
codeflo
5y ago
It’s not that simple. Also, the article isn’t about binaries at all, but about code generation at build time.
803.
▲
by
codeflo
5y ago
Thanks for the link, that seems very useful. I recently had to work around this by transforming a list (a, b, c, d) into something like 1+1+1+1+0 to get a count. What this RFC proposes looks so much less painful.
804.
▲
by
codeflo
5y ago
Generating code is a powerful tool that I think everyone should have in their toolbox — use it wisely of course, but don’t avoid it on principle. This describes an interesting approach that I hadn’t seen. I personally wouldn’t have consider
805.
▲
by
codeflo
5y ago
What’s the main use case? I guess build scripts?
806.
▲
by
codeflo
5y ago
My story is less interesting, but I also remember quitting Facebook when it started to taunt me with photos of a past relationship that I wasn’t completely over yet at the time. Stuff like that has to be common. Did the “growth hacking” cyn
807.
▲
by
codeflo
5y ago
I can totally believe that. What you’re describing has an uncanny resemblance to academic software engineering research: many of the published insights scale up all the way to one semester student projects — in other words, are completely u
808.
▲
by
codeflo
5y ago
Such a one-off Haskell interpreter might even get away without or with less rigorous type checking.
809.
▲
by
codeflo
5y ago
Oh, that’s a good example. I’ll argue that you should try to use primitives (strings/numbers) as keys in those cases. But if you can’t, then you’re right that identity is critically important.
810.
▲
by
codeflo
5y ago
Two thoughts. One, you don’t rely on a semantic guarantee if you use useMemo for derived state. Avoiding rerendering counts as an optimization as far as the React docs are concerned (your program works if there’s an extra render), and this
More ›