Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codeflo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
571.
▲
by
codeflo
4y ago
Having been bitten by that exact problem in C++, I think the original sin is to treat stuff like copy elision as a mere optimization, instead of a semantic guarantee.
572.
▲
by
codeflo
4y ago
How is evaluation order even relevant for RVO?
573.
▲
by
codeflo
4y ago
> No real guarantees around RVO / NRVO Shouldn’t Rust in theory have a lot more freedom in defining its calling conventions than C++ has? I wonder if there’s anything that prevents doing RVO by default, or if just hadn’t been a prio
574.
▲
by
codeflo
4y ago
Figuring out that a number is composite is sometimes a lot easier than actually factoring it (see RSA encryption).
575.
▲
by
codeflo
4y ago
I hate playing these kinds of games, at least with most people, because they simply can’t answer the questions correctly. It’s frustrating beyond belief. Just one example, I once narrowed it down to a fictional character, so I asked “Was it
576.
▲
by
codeflo
4y ago
I’m not sure I get what you mean. You wouldn’t have that many String copies in Java by passing an unchanged String down the call stack. My point is that it’s too easy to make this mistake in C++.
577.
▲
by
codeflo
4y ago
> perhaps the problem is implicit allocations rather than value semantics? I think that’s true. Expensive copies should never have been implicit. There was a story some time ago about a single keypress in the address bar of Chrome causin
578.
▲
by
codeflo
4y ago
I'd say this is misleading, or only technically correct (the best kind of correct). Calling conventions are only the first step. For interop to be useful in practice -- to be able pass more interesting C++ types than integers -- you al
579.
▲
by
codeflo
4y ago
What the paper you linked to is doing is an interesting statistical analysis of the behavior of random Turing machines for a given time limit. I just don’t agree that this can be fairly summarized as “estimating Kolmogorov complexity”. Kolm
580.
▲
by
codeflo
4y ago
Waste of time. 4 minutes of useless filler, followed by 2 minutes of bad voice synthesis. Not convincing at all, and all the padded content just serves to get your hopes up.
581.
▲
by
codeflo
4y ago
I’m not sure that’s worth remembering specifically. You should really already roughly know the Earth’s circumference, 40k km, and the speed of light, 300k km/s. 40/300 = 4/30 = (4/3)/10 = (1.33)/10 = 0.133.
582.
▲
by
codeflo
4y ago
Nice. A couple of quick thoughts: - It might be educational to show the sum of sine waves in addition to the components. - 55 Hz is really low as the base frequency. I think going up a tiny bit would make it easier to hear the base frequenc
583.
▲
by
codeflo
4y ago
GoogleTest was the one we used. I forgot, but now that you mention it, I remember the expect variations. We had decided against them. It’s a confusing feature in my opinion. If that’s what people mean by “multiple assertions”, then I at lea
584.
▲
by
codeflo
4y ago
Which ones? I’ve used at least a dozen at this point, across C++, C#, JavaScript, Rust — and all of them throw (the equivalent of) exceptions on assertion failures.
585.
▲
by
codeflo
4y ago
I hope you realized the irony.
586.
▲
by
codeflo
4y ago
Continuations I can live without, but is Scheme at all usable without tail calls?
587.
▲
by
codeflo
4y ago
I think Pico-8 tries to capture the spirit of 8-bit computing more than the reality. The most popular 8-bit computers came with a BASIC, and many home users (me at the time included) programmed that to move some sprites around, and never re
588.
▲
by
codeflo
4y ago
> you get a set number of cycles regardless of the speed of the host computer If you look at all the PICO-8 clones/inspired platforms without such a restriction, it's hard to overestimate how prescient this was. Basically all o
589.
▲
by
codeflo
4y ago
Scott's concern with encouraging young programmers is, I think, completely genuine, and a huge part of his writing. But the line between being genuinely humble and humble bragging is sometimes thin, and people have a different toleranc
590.
▲
by
codeflo
4y ago
First, I agree that using Perl today feels like using something from a different era. Having sigils at all feels so antiquated to me now. But the mechanics of the sigil thing never confused me. Either because it was explained to me very
591.
▲
by
codeflo
4y ago
You're right, Rust is an interesting counterexample to this trend I'm ranting against in years. I'm a fan of it. Whether it ever reaches adoption beyond the tiny fragment of people who dive deeply into technologies anyway r
592.
▲
by
codeflo
4y ago
I'm finding that increasingly, whenever I read "X is a myth", it turns out to be mostly a myth. I guess it's a popular article form, it gets clicks, it doesn't have to be completely true, right? In this case, Wikipe
593.
▲
by
codeflo
4y ago
There’s one common criticism that I don’t get: That Perl 5 is hard to learn. I have a theory about this, but warning, rant incoming. People used to read programming books. I learned both Perl and C from books; for me Perl wasn’t any harder.
594.
▲
by
codeflo
4y ago
Exactly. The way biology solved something may not always be the best way to do it with technology, because the constraints or so different. And to be more blunt, I think none of the problems where technology surpassed human performance we
595.
▲
by
codeflo
4y ago
> In theory, a sufficiently capable AI should be able to drive a car at least as well as a human can using the same input: vision. In theory, cars should be use mechanical legs instead of wheels for transportation, that's how animal
596.
▲
by
codeflo
4y ago
I don’t think that matters much for the distances we talk about. Any such disruption — even if it’s a new philosophy or religion that makes the colonies stop spreading — would only travel at the speed of light, which means that it would tak
597.
▲
by
codeflo
4y ago
I think that’s attacking the conclusion, not the assumptions. Have you put numbers on what you consider “mind-bogglingly unlikely” and done the math on that, given the distances involved? The authors supposedly have, and I’m no expert, but
598.
▲
by
codeflo
4y ago
ORMs have the problem that the shape of the interface they provide mostly depends on configuration or data (the SQL schema). In static languages at least, this means that code has to be generated at some point. Tooling and convenience wise,
599.
▲
by
codeflo
4y ago
That comment took a turn.
600.
▲
by
codeflo
4y ago
I think at these sizes and weights, the GPU needs to become a board that you screw onto the case, like a second motherboard. Sagging solved. Now the noisy fan, replace it with a preinstalled water cooling block to be integrated with your ov
More ›