Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
marvy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
57 ms
·
541.
▲
by
marvy
12y ago
"Hacks flying in close formation" made my day :) Thank you for that lovely phrase.
542.
▲
by
marvy
12y ago
As long as most of the features are default "off", I think it's fine. I bet most people would just use the scheduled warming, and maybe the smart wake based on sleep tracking.
543.
▲
by
marvy
12y ago
You are special! Also, if you poke around their website, they sell an SDK. An expensive, limited edition SDK, but still.
544.
▲
by
marvy
12y ago
Tail calls are pretty easy to implement in a language that compiles to C, even if the C compiler doesn't cooperate. This can be done without bothering the foreign code. For instance: int f(int a, int b){return f(b,a);} compiles into
545.
▲
by
marvy
12y ago
I did not do my homework. I know neither Rust nor Nim. So I'm inclined to take your word for it :)
546.
▲
by
marvy
12y ago
Well, it will be hard to find a proof for it being the "only" language to do so, since as one of the commenters mentioned there is indeed at least one other. But http://nim-lang.org/manual.html#parallel-spawn see
547.
▲
by
marvy
12y ago
The containers for the standard library are indeed at the link you provided. Those are traditionally referred to as STL containers. No?
548.
▲
by
marvy
12y ago
There is such a point. If you have a widescreen monitor, you can verify this by maximizing your browser window and trying to read that article. I tried this. I couldn't take it. I then resized my browser to half the screen width (w
549.
▲
by
marvy
12y ago
What's TFA?
550.
▲
by
marvy
12y ago
Really? Why would they be coupled? I mean, maybe a little bit. For instance, maybe the parser could tell the lexer what kind of token it expects to see next, so that the lexer doesn't parse an int as a float by mistake, but that doe
551.
▲
by
marvy
12y ago
Ok, that is the best Monty Hall explanation I've ever heard.
552.
▲
by
marvy
12y ago
Switching to a single page app seems invasive. Why not just have an iframe for the username and stuff?
553.
▲
by
marvy
12y ago
You may not have solved it perfectly, but better than a version of Excel I once used. Every time you save, it drops the undo stack. No matter what. I think the latest versions have fixed this by now.
554.
▲
by
marvy
12y ago
That's because they typically don't check mail, at least not in the background. That's fine. Turn off the mail check feature of the smart phone. Now will it last as long as the dumb one? Not quite. I would know, since I
555.
▲
by
marvy
12y ago
Airplane mode is not fair. After all, "dumb" phones last for many days even without airplane mode, as long as you don't over use them. The fair test is this: how long will it last when used as if it were a dumb phone. Answ
556.
▲
by
marvy
12y ago
Um, how on earth do you deal with the 10GB delete? You can't store it in RAM, since there may not be enough, especially if you want 32 bit support. Store it on disk? You can't store it in the original file, since you have no fl
557.
▲
by
marvy
12y ago
Good idea. All power to you.
558.
▲
by
marvy
12y ago
On the contrary, I consider these good answers.
559.
▲
by
marvy
12y ago
On a (slightly) more practical level: there exists some largest integer type. You may someday need to sort it. If you want your sort to always work, you can't afford to overflow.
560.
▲
by
marvy
12y ago
I don't know who has time for that, but it's far more reliable than auditing source code. Two people using two different languages are not likely to code up the same bug, but overlooking a bug in code someone else wrote is easy.
561.
▲
by
marvy
12y ago
If it's in a function called "cmp", I think they will guess.
562.
▲
by
marvy
12y ago
But the only way to account for overflow is to avoid comparison by subtraction.
563.
▲
by
marvy
12y ago
True, but the fact remains that this does not sound dangerous.
564.
▲
by
marvy
12y ago
He said what the bar is in one of the footnotes: something with a title. I guess for him at least, the blog posts count.
565.
▲
by
marvy
12y ago
Cool. Which language?
566.
▲
by
marvy
12y ago
Summoning intruders? That sounds like the last thing you'd want to summon!
567.
▲
by
marvy
12y ago
Yes, but in practice, that's what people do: write in a language more powerful than the standard gives them. You kind of have to if you want to get anything done without driving yourself crazy. For example: long mega_byte = 1024 * 10
568.
▲
by
marvy
12y ago
Thank you for reminding me. It's actually even better than that. Let's say your taskbar looks like this: (1) Browser: pinned and now open (1 tab only). (2) Windows Explorer: pinned, open, several windows. (3) Windows media playe
569.
▲
by
marvy
12y ago
Yes, they are one of the polite ones. Honestly very few are as obnoxious as Chrome.
570.
▲
by
marvy
12y ago
Yes, but this relies on the program being friendly enough to give you a choice. The OS is not blocking it, it voluntarily refrains. Some are not so polite. For instance, Google Chrome auto-updates without asking permission, and the only
More ›