Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
82 ms
·
451.
▲
by
OskarS
5y ago
Seems to me like maybe a more worthy recipient of this prize might be the vaccines that are currently saving hundreds of million of people from dying in the worst pandemic in a century? You know, the miracle vaccines that were developed man
452.
▲
by
OskarS
5y ago
For number crunching it doesn’t matter, but I imagine it’s a much bigger issue if you want to run some kind of application server/webapp on a big beefy machine with lots of cores. That’s a thing you would want to run in something like
453.
▲
by
OskarS
5y ago
The existence of many high quality open access journals would seem to contradict your theory.
454.
▲
by
OskarS
5y ago
What are you talking about? For lots of functions, it is perfectly possible to statically determine a maximum stack size (not all functions obviously, that would be the halting problem). An trivial example would be a function that calls no
455.
▲
by
OskarS
5y ago
No, but that's a pretty weak argument not to have them: they're better than nothing. Not all code uses libraries. And if it was part of the C standard, libraries could use them as well: libraries could fail gracefully instead of b
456.
▲
by
OskarS
5y ago
I mean, they do: [1]. It's an extension, true, probably because they don't want to force zlib as a dependency. Still, very straightforward to build with and use, and as you can see from the code, not hard to implement either. [1]:
457.
▲
by
OskarS
5y ago
To add to that list: when you do a .tar.gz, the compression algorithm works across file boundaries (very useful when you have a lot of small files), but neither sqlar nor .zip does this. I think the idea of using SQLite as an application fi
458.
▲
by
OskarS
5y ago
The arc-length of a sin curve is an elliptic integral, and project time estimation is hard enough without throwing elliptic integrals into the mix!
459.
▲
by
OskarS
5y ago
From the article: > While rot13 is the self-inverse for a 26-character system, and rot47 for ANSI, the Basic Multilingual Plane of Unicode requires rot32768 (or 8000 in hex) for a reciprical cypher Not all emoji is in the BMP, at least s
460.
▲
by
OskarS
5y ago
Also: gasoline taxes has fuck-all to do with labor unions.
461.
▲
by
OskarS
5y ago
I've also only used it lightly, but like you I don't remember having much trouble with the API, seemed like a pretty regular C library to me. I wanted some example programs to see how the API looked in use, and the manual said the
462.
▲
by
OskarS
5y ago
This is one of those times my instinct is to just say ”get a build of numpy with debug symbols, attach a debugger and just see what it’s doing, it’s not hard!”, though I suppose that’s a little trickier when run from Python (though I’ve nev
463.
▲
by
OskarS
5y ago
As a rapid prototyping tool, it doesn’t sound terrible, honestly. Many people are comfortable with Excel, so let them use it! You’re gonna use some calculation engine on the backend, might as well be the tool that contains the ”reference” c
464.
▲
by
OskarS
5y ago
I’m FJ’s side in this whole saga, but you’re minimizing Jonathan Hoefler’s contributions a bit: it’s true that Frere-Jones made Gotham, but Hoefler has made many iconic typefaces as well. Hoefler Text, obviously, but my favorite is probably
465.
▲
by
OskarS
5y ago
> But if you need to choose a Founding Father of Computing Science for the general public, I'd say Alan Turing is the best candidate. Scholars will give due credit to Church, Zuse, von Neumann and all the others. I agree with this.
466.
▲
by
OskarS
5y ago
I don't want to be too harsh on the programmer, everyone makes mistakes. It's easy to see how a person focused on a security issue with user names makes a quick fix without thinking through how this will affect account creation. A
467.
▲
by
OskarS
5y ago
This is the kind of thing that really annoy programmers (because in programming languages, you can never omit things like this), but everyone else is perfectly fine with. As a programmer though, it certainly annoys me!
468.
▲
by
OskarS
5y ago
> Staff member made a change to disallow usernames ending with `Mime::EXTENSION_LOOKUP.keys` This is a hell of a thing to commit and pass code review in 2021 on a project like GitLab. I understand that the staff member was fixing a secur
469.
▲
by
OskarS
5y ago
Yeah, it's a true point that "lock-free" != "fast". If contention is very low, the simple version using mutexes often perform better.
470.
▲
by
OskarS
5y ago
”Lock free” has a very precise meaning in computer science, and it’s this: ”given some number of threads of execution, an algorithm is lock free if in some finite number of steps, at least one thread is guaranteed to make forward progress”.
471.
▲
by
OskarS
5y ago
Yeah, that makes a ton of sense. Cache misses would be less of a factor in the highly optimized assembly case.
472.
▲
by
OskarS
5y ago
It's generally true. Both Rust and C++ (and Swift to a smaller extent) are both all about the "zero cost abstractions", but they usually aren't. It's hard to beat the C-style for-loop: they map really closely to the
473.
▲
by
OskarS
5y ago
> Highly efficient assembly showed the least performance drop whereas complex "idiomatic" Swift code showed the greatest performance drop. I wonder what this means. The efficient assembly probably has fewer instructions that us
474.
▲
by
OskarS
5y ago
> I think an even more interesting perspective is that they aren't the same thing, but they can be implemented in terms of each other. I don’t know, I think that it’s perfectly reasonable even from an engineering/computer scien
475.
▲
by
OskarS
5y ago
> I don't recall them before Unicode. I do recall "dry clean only" on the tags, etc. These icons are far older than unicode, and in fact is not in unicode at the moment. There's a proposal to add them, but I don'
476.
▲
by
OskarS
5y ago
Yeah, in my opinion this is by far the biggest one. The rest of list are either non-issues, or they're annoying but you can deal with them (and there's often arguments on both sides). Han unification, on the other hand, is a disas
477.
▲
by
OskarS
5y ago
The fact that C strings are presented in this format is totally irrelevant for the discussion of string search algorithms. They all have to know the length. Strings in most languages are not in that format, and it is an entirely reasonable
478.
▲
by
OskarS
5y ago
Fair enough, but the strlen is not part of the search algorithm, it’s just figuring out the input. It could easily be an argument, but that would complicate the test code below.
479.
▲
by
OskarS
5y ago
As other users mentioned, the most relevant part is when you divide by 0, you get different infinities depending on if you're dividing by +0.0 or -0.0. But even beyond that: the binary representation of floating point numbers [1] neces
480.
▲
by
OskarS
5y ago
If you used SQLite like the grandparent described (adding check constraints to the CREATE TABLE statement), it would error out when running the statement with the incorrectly bound types. The proposal here is basically to (if you opt in to
More ›