Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
j-pb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
j-pb
2y ago
But on the right track. We're building the solar equivalent of the total cumulative nuclear capacity germany has ever build every 3 years. If we manage to hold off regressive forces that are trying to derail the current trajectory with
212.
▲
by
j-pb
2y ago
It gave me pleasure.
213.
▲
by
j-pb
2y ago
These reminders that AI will not only be wielded by democracies with (at least partial attempts at) ethical oversight, but also by the worst of the worst autocrats, are truly chilling.
214.
▲
by
j-pb
2y ago
UUID is 124 bits. The collision probability (via the birthday paradox) is 50% after roughly enumerating sqrt(2*2^124) elements. [1] Since sqrt(x) = x^1/2 you can say that a n bit hash/id has a collision probability of 50% after en
215.
▲
by
j-pb
2y ago
Not if you want "Globally Unique Identifier"s. These have to work even when every person on earth generates a couple billion of them.
216.
▲
by
j-pb
2y ago
Imho the UUID format is a hopeless cause anyways. You don't want to waste any bits in a 128bit identifier on version metadata, UUID uses 4. With the birthday paradox that effectively decreases the collision resistance by a factor of 4.
217.
▲
by
j-pb
2y ago
Alright boys we got 'em up, let's play a song, pray, and then throw 'em back in.
218.
▲
by
j-pb
2y ago
A small additional improvement might be to also create a random 16bit salt at startup and then xor the timestamp with that, to leak even less information. That way entries will still have locality without leaking ms timestamp info.
219.
▲
by
j-pb
2y ago
Great point, using a u16 is probably the best choice then. As it give locality within 65.53600 seconds (roughly a minute) without exposing sensitive timing information, and should cover most real world write scenarios.
220.
▲
by
j-pb
2y ago
You don't need a total order for the locality properties. E.g. a 32bit ms timestamp that overflows every ~50 days + 96bit of entropy will give you the same locality with a much lower collision probability. That being said, a lot of ind
221.
▲
by
j-pb
2y ago
You realize that I was mocking op, by replacing their use of "developer" with "designer"?
222.
▲
by
j-pb
2y ago
Designer often prioritize design over user experience. Custom mouse cursors, unaccessible images, non-obvious buttons, non-standard interactions, strobing lights, a million parallaxes. A lot of designers think that "pretty" is the
223.
▲
by
j-pb
2y ago
The fact that you think that the innefficiencies of meat production make any kind of sense in this scenario, make it clear that you haven't thought this through at all. Any post-apocalyptic bunker dwellers would be 100% vegan.
224.
▲
by
j-pb
2y ago
Could've been any posix-like tbh. Yeah the code def needs some love, but itʼs pretty decent given that it'a academic.
225.
▲
by
j-pb
2y ago
What system are you running on? Currently only Linux is supported. I've been running it on Ubuntu LTS.
226.
▲
by
j-pb
2y ago
You are ignoring that even single threaded code has a lot of sources of concurrency and side-effects; memory/caches, branch prediction, prefetching... Watch the talk and look at the examples. Most of them are single-threaded; a bad has
227.
▲
by
j-pb
2y ago
> How would this make any difference for a single threaded program? Coz can slow down individual sections, not only threads. This will show you how your program behaves with specific lines sped up regardless of threads. A modern compute
228.
▲
by
j-pb
2y ago
Complex? You include the library, put some "progress" markers into your benchmarks, and run them. It took me minutes in both Rust and Zig to set up. I've seen huge improvements with it for a single threaded embedded database
229.
▲
by
j-pb
3y ago
Still orders of magnitude slower than a B-Tree Map.
230.
▲
by
j-pb
3y ago
But is still orders of magnitude slower than a hash-map.
231.
▲
by
j-pb
3y ago
Unix in general is a very cozy tent with a lifetime supply of canned beans, set up in bear territory. Ok for a while but I wish we had build a house by now.
232.
▲
by
j-pb
3y ago
Have you tried annotating the lyrics with stuff like (hook), (chorus), e.t.c. I've used chatgpt to generate the lyrics for a random word, while giving it some artist names to draw inspiration from and suno manages to put in most of the
233.
▲
by
j-pb
3y ago
This is why I said, "while I'm typing this". Today we produce 106% of our electricity demand renewably. Sure, it's a windy sunday. But that doesn't change the fact that we're on the right track and just need to
234.
▲
by
j-pb
3y ago
__modern__ reactors are build to be rarely opened and burn off as much plutonium as possible. But that's obviously not how the french nuclear program started. Only doing nuclear research for military purposes is frowned upon by your ne
235.
▲
by
j-pb
3y ago
I always find that argument flawed, because we could also have started investing much earlier into renewables too. Carter installed solar panels at the white house, Reagan tore them down. Wind turbines today don't have that much magic
236.
▲
by
j-pb
3y ago
If you look at the price of nuclear vs. solar it just doesn't make economic sense to build nuclear anymore. So why should banks fund a dozen high financial risk projects with huge initial investment and lower projected roi, when they c
237.
▲
by
j-pb
3y ago
3.5% of the initial 17% no?
238.
▲
by
j-pb
3y ago
The bigger issue is that 1/3 of crops are used as animal feed. No matter how water efficient they are, you still need 10x as much of them for the same amount of calories. It'd be much easier and have a bigger impact to just go pla
239.
▲
by
j-pb
3y ago
Exactly! The xor combiner is somewhat special in that it is self inverse, so a xor b xor a = b. This property doesn't hold for the other combiners, so for any other combiner ⊙ you would need to compute the inverse `old_child_hash^-1` f
240.
▲
by
j-pb
3y ago
Disclaimer up front: I somewhat agree with the performance sentiment towards databases, however I feel that index performance is a different thing, because it gives you a larger budget for features further up the chain that make a meaningfu
More ›