Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
481.
▲
by
trealira
3y ago
Isn't that overly restrictive? Some programs are guaranteed to terminate even with mutual recursion. For example, these (obviously inefficient) functions always terminate for all values of x, since both terminate given an input of 0, a
482.
▲
by
trealira
3y ago
I don't think they were saying that SQLite's optimizations were premature (since clearly they benefited the program as a whole), but that people conflate micro-optimization with premature optimization.
483.
▲
by
trealira
3y ago
If someone is desperate, but there's no group or organization that's trying to make a change somehow, I think they're more likely to turn on those with less power or wealth and scam or steal from others, while looking out for
484.
▲
by
trealira
3y ago
There's a short paper that shows how they're similar (PDF warning): https://www.cs.princeton.edu/~appel/papers/ssafun.pdf
485.
▲
by
trealira
3y ago
In general, rebellion isn't inevitable. It only happens if people get together and organize it, which isn't guaranteed to happen. Individual people will just grit their teeth and put up with anything if they don't think they
486.
▲
by
trealira
3y ago
Yeah, you're definitely right that a lot of C and C++ code is written assuming signed overflow won't be optimized away. I think it was a mistake of GCC to do this optimization without some explicit flag like "-fremove-signed-
487.
▲
by
trealira
3y ago
I tried thinking of a programming language syntax that sounded like Elizabethan English, but I think I only succeeded in making a weirder version of COBOL or ALGOL. Edit: moved to pastebin here: https://pastebin.com/41irVBJs
488.
▲
by
trealira
3y ago
> Besides, -fwrapv was basically the default in most C compilers (and probably C++ as well) before the last 10 years or so. It seems like people were complaining as early as 2007. Richard Biener (who's linked in the thread link belo
489.
▲
by
trealira
3y ago
Lisp has converted fixnums (hardware integers) to bignums on overflow since the 1970s, too, so it's not just the "Java generation." Their words: > Computers are implemented in hardware, not maths proofs. The _ generation i
490.
▲
by
trealira
3y ago
There have been former workers who claimed that there were unsafe working conditions there, and that they were called lazy by higher-ups: https://www.theguardian.com/business/2023/aug/28/phoenix-mic...
491.
▲
by
trealira
3y ago
> "You need to enter a number in this field, not text." Error messages this general become slightly annoying when the app doesn't respond intelligently to all possible scenarios that its wording might imply. For example, i
492.
▲
by
trealira
3y ago
The assembly generated by cproc is more efficient than that generated by TCC, which is not great.
493.
▲
by
trealira
3y ago
Interesting, I hadn't heard of WUFFS before now. Thanks for telling me about it.
494.
▲
by
trealira
3y ago
> For example, the chain of exploits that have been used to gain complete remote control of any iPhone without detection during many years has included some that were based on integer overflows in the Apple system software. For those int
495.
▲
by
trealira
3y ago
Graydon Hoare originally wanted integers to be promoted to bignums on overflow, but that didn't happen. https://graydon2.dreamwidth.org/307291.html
496.
▲
by
trealira
3y ago
For visualizing data structures, although most data structures aren't designed to be visualized, there are tools to do this already. https://github.com/hediet/vscode-debug-visualizer/blob/maste... https
497.
▲
by
trealira
3y ago
How could they commercialize it in ways they already haven't? There already exist good, free torrenting clients, and piracy is illegal. The most they could do is set up a subscription service for exclusive torrents which always have se
498.
▲
by
trealira
3y ago
You probably know this, but in C, if you wrote the comparison like this if (password[0] == 'Q' && password[1] == 'w' /* the rest of the letters... */ && password[8] == '3'
499.
▲
by
trealira
3y ago
FYI, I removed the post because of your sudden hostility and because I didn't want to get into an argument. I still don't know why you took so much offense to my post, but I'm not sorry.
500.
▲
by
trealira
3y ago
Brainfuck interpreters just ignore the characters in the file that aren't those particular Brainfuck operators, treating them as comments. So, you could just write a Brainfuck interpreter in JavaScript that interprets a string literal,
501.
▲
by
trealira
3y ago
I don't think that applies to cash. Cash is artificially scarce. It's only kept scarce by the fact that it's illegal for anyone but the government to print it, and because printers refuse to print something if they detect a c
502.
▲
by
trealira
3y ago
That's a good point. By the same logic, actually, counterfeiting currency wouldn't be a crime either, as the scarcity is artificially sustained by the government, but the consequence of everyone being able to print their own curre
503.
▲
by
trealira
3y ago
> There's some evidence out there that he did get back into piracy. What evidence is out there?
504.
▲
by
trealira
3y ago
The book Moonwalking with Einstein: The Art and Science of Remembering Everything [0] explores this. It has been a while since I read it, but from what I remember, the author explores the techniques used by the champion of some internatio
505.
▲
by
trealira
3y ago
Sorry for assuming wrong. I see this passive aggressive disagreement over definiitions not uncommonly online, and thought you were doing this. Here's an example between two people talking about US politics (but it doesn't just hap
506.
▲
by
trealira
3y ago
Maybe you're just burnt out from too much writing software. It might feel refreshing to get other hobbies that don't strain the thinking part of your brain so much, like jogging, baking, or gardening. Or if intellectual activities
507.
▲
by
trealira
3y ago
You probably knew they were referring to Visual Studio Code, even though you disagree that it's an IDE. Next time, please just say that instead of pretending you don't know what they're talking about or referring to.
508.
▲
by
trealira
3y ago
There's Visual Studio Code, which is based on Electron.
509.
▲
by
trealira
3y ago
It's not just pedophiles. It seems like boys are targeting girls of the same age and producing child pornography using AI generated video. From the article: > Last year, a New Jersey high school student launched a campaign for fede
510.
▲
by
trealira
3y ago
Adult men and male teenagers?
More ›