Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
OskarS
5mo ago
That is how I (a non-lawyer) understand it as well, but I wonder if it's so simple when you combine it with the GPLness of it all. Like, releasing something under the (A)GPL is a license to use and modify the code how you see fit, and
32.
▲
by
OskarS
7mo ago
Certainly that’s part of it, but also just NIMBYism. Los Angeles were able to defeat the Owen’s Valley farmers back then, I don’t think they would be now.
33.
▲
by
OskarS
7mo ago
Yeah, the "two-bit saturating counter" thing is pretty much exactly how I thought it worked (which would be terrible for the example in the article), but I had no idea about the fact that it also kept track of the branch history t
34.
▲
by
OskarS
7mo ago
Hmm, that's interesting. The code as written only has one branch, the if statement (well, two, the while loop exit clause as well). My mental model of the branch predictor was that for each branch, the CPU maintained some internal stat
35.
▲
by
OskarS
7mo ago
> Two boxes is the only choice that makes sense. It is always better than one box. Congratulations on your $1,000. I'll use some of my $1,000,000 I got by nonsensically picking one box to toast in your honor and dedication to logic.
36.
▲
by
OskarS
7mo ago
Conceptually it's quite similar to how C++ templates work (not including C++20 concepts, which is the kind of constraining you're talking about). I quite like it when writing C++ code. Makes it dead easy to write code like `min` t
37.
▲
by
OskarS
7mo ago
It was an essentially pointless platitude about the GIL from a very new account not really related to the article, and all comments from this account are the same: top level comments with lots of em-dashes that are just a vague piece of pab
38.
▲
by
OskarS
7mo ago
Yep. Real "dead internet theory" vibes, really sad to see.
39.
▲
by
OskarS
7mo ago
Thanks ChatGPT, good of you to let us know.
40.
▲
by
OskarS
7mo ago
Great interview, really fun to read. I love that they were both so technically involved, the section of the great interview where they just start discussing how a range literal would work and why it's a good/bad idea is just great
41.
▲
by
OskarS
8mo ago
For 6 months? So it's just a fancy, "first one is free" trial?
42.
▲
by
OskarS
8mo ago
It's interesting to see how LLMs make mistakes sometimes: replacing `->` with `-λ` because arrow sort-of has the same meaning as lambdas in lambda calculus. It's like an LLM brain fart replacing something semantically similar b
43.
▲
by
OskarS
8mo ago
> Setting aside the LLM topic for a second, I think the most impactful way to preserve these 2 goals is to create torrent magnets/hashes for each individual book/file in their collection. Not sure that's the case. I fear i
44.
▲
by
OskarS
8mo ago
My favorite example of this is Audacity, which stores their entire project file, including all the audio data, as a SQLite database. It's really amazing, you can stream audio data from many input sources into a SQLite database at once,
45.
▲
by
OskarS
8mo ago
> Basically thought crime I 100% agree with your central point, and I do think this is a very disturbing ruling. But it's not "thought crime", it's speech regulation. There's a very big difference between thought
46.
▲
by
OskarS
9mo ago
qsort is obviously just an example, this situation applies to anything that takes a callback: in C++/Rust, that's almost always generic and the compiler will monomorphize the function and optimize around it, and in C it's alm
47.
▲
by
OskarS
9mo ago
It's interesting, because it's a "cultural" thing like the author discusses, it's a very good point. Sure, you can do unsafe integer arithmetic in Rust. And you can do safe integer arithmetic with overflow in C&
48.
▲
by
OskarS
9mo ago
I think personally the answer is "basically no", Rust, C and C++ are all the same kind of low-level languages with the same kind of compiler backends and optimizations, any performance thing you could do in one you can basically d
49.
▲
by
OskarS
9mo ago
> HashMap implements Extend, so just h0.extend(h1) and you're done, the people who made your HashMap type are much better equipped to optimize this common operation. Are you sure? I'm not very used to reading Rust stdlib, but t
50.
▲
by
OskarS
1y ago
The tricky part is really point 2 there, that can be harder than it looks (e.g. even simple file I/O can be network drives). Async IO can really shine here, though it’s not exactly trivial designing async cancelletion either.
51.
▲
by
OskarS
1y ago
Feel free to read the article before commenting.
52.
▲
by
OskarS
1y ago
Never heard of this, I’m really interested in digging into this paper. Thank you both for the tip!
53.
▲
by
OskarS
1y ago
No, but if you phrase it like "there are multiple correct answers to the question 'I have a list of integers, write me a computer program that sorts it'", that is obviously true. There's an enormous variety of diffe
54.
▲
by
OskarS
1y ago
Is the protocol inherently inferior in situations like that, or is this because we've spent decades optimizing for TCP and building into kernels and hardware? If we imagine a future where QUIC gets that kind of support, will it still b
55.
▲
by
OskarS
1y ago
No, this is very much not the same. The Raku version is like writing this in Python: def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a+b And taking the 40th element. It's not
56.
▲
by
OskarS
1y ago
That is true, cap’n proto and flatbuffers are excellent realizations of this basic concept. But that’s very different thing from what the commenter is talking about Word doing in the 90s, of just memory-mapping the internal data structures
57.
▲
by
OskarS
1y ago
Your argument is that it’s not ok to think of all Jewish people as a monolithic group, and therefore his statement where he considered all arabs as a monolithic group is ”legitimate”? Seriously? Just like it’s not ok to see all jews as part
58.
▲
by
OskarS
1y ago
You can absolutely save data like that, it's just that it's a terrible idea. There are obvious portability concerns issues: little-endian vs. big endian, 32-bit vs. 64-bit, struct padding, etc. Essentially, this system works great
59.
▲
by
OskarS
1y ago
Yeah, I do this on occassion as well, but I aleays try the Swedish retailers first, and only go to Amazon when I can’t find whatever I’m looking for. It’s pretty rare I have to go to Amazon. It’s rough, because you know that it will probabl
60.
▲
by
OskarS
1y ago
And because they’re new, we have plenty of homegrown internet retailers for competition. Personally, I avoid Amazon in favor of the others if at all possible, seems like there’s a really significant risk Amazon is going to wipe them out.
More ›