Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
o11c
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
130 ms
·
2011.
▲
by
o11c
3y ago
AVL vs RB (and a few others) remains an implementation choice, but B-trees (and a few others, e.g. splay trees) are forbidden unless you add gratuitous overhead.
2012.
▲
by
o11c
3y ago
Better hope the compiler generated contiguous PIC.
2013.
▲
by
o11c
3y ago
C++ (mentioned elsewhere in the thread). It's the main language that people bother to implement the full gamut of containers and their optimizations in; Rust is only barely starting to intrude. Most other languages don't support t
2014.
▲
by
o11c
3y ago
Electronic keyboards are advertised as if they have tactile feedback. In reality, it's a very hard problem and we shouldn't be surprised that consumer-grade ones don't even get close. (of course, this advertisement isn'
2015.
▲
by
o11c
3y ago
The extra invalidations are nasty, though. There's a reason the standard chose what it did.
2016.
▲
by
o11c
3y ago
The $numbers are specified separately for "taken" and "damaged".
2017.
▲
by
o11c
3y ago
"Do not take photos of secret military installations (especially using drones)" seems a relevant takeaway. It's disingenuous that he says "I didn't do anything illegal" when the search warrants lists the laws t
2018.
▲
by
o11c
3y ago
I use that, but unfortunately it's not that easy (also I'm pretty sure it's not KDE-specific - most keyboard stuff even works in the console!). Let's use `xev`'s `state` field for reference: First, `state & 0x10
2019.
▲
by
o11c
3y ago
The `quiz` program in `bsdgames` is basically this.
2020.
▲
by
o11c
3y ago
Some random adjacent thoughts: * both arithmetic bounds and bitwise bounds are useful for things the other can't do * you have to trade off "how much useful information am I keeping for optimizations" with "how much memo
2021.
▲
by
o11c
3y ago
As a rule, `printf %q` or `${var@Q}` are very useful when building up quoted command strings. But your main problem is that `REMOTE_SHELL` is a string, when you need an array. Though I suppose you could make it a string if you used `eval`
2022.
▲
by
o11c
3y ago
Just use an array. POSIX sh is a useless target, all serious shells support arbitrary arrays.
2023.
▲
by
o11c
3y ago
No, the ` least ` typedefs are irrelevant aliases for the exact type these days (except supposedly some 32-bit-only DSPs exist though. But 9-bit computing has been obsolete for longer than most of us have been alive, despite talking about i
2024.
▲
by
o11c
3y ago
To be fair, they're padded in a lot of machine code contexts as well, even if you don't explicitly write `int_fast16_t`. And since Java doesn't expose pointer guts, struct padding is purely a runtime optimization concern, not
2025.
▲
by
o11c
3y ago
> The second Salsa property is laziness. When changing the input, one can go and eagerly mark reverse-dependencies as “this might have changed”. This could create redundant work — if two modifications arrive one-after-another in a row, i
2026.
▲
by
o11c
3y ago
And of course the unfixable side-effect of the fact that we're ultimately sending electricity over wires: 6. Any additional party with sufficient ability to modify hardware can still attack the attacker and their accomplices. So such p
2027.
▲
by
o11c
3y ago
A more significant issue, in my experience, is that a lot of useful nonstandard APIs simply do not exist on the BSDs, under any name - or worse, exist with unstable names, so you have to #ifdef your source code to make it work with more t
2028.
▲
by
o11c
3y ago
From my experience (with homegrown berries) I would disagree; it's probably just that farmers have to optimize for "will not go bad on the way to the store". Maximum size and number of berries are determined by variety, and l
2029.
▲
by
o11c
3y ago
You might want to look into "repunits" (though we really do want the 9s, actually) and the Cunningham Project. Mersenne primes, the largest known, are the base-2 case of these (in which case there is no "9"s distinction)