Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
veltas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
601.
▲
by
veltas
5y ago
The short lifetime of most objects should be implicit from scope and obvious to the programmer. It's usually easier that way, and certain GC-based languages ended up adding special syntax to add that level of control for objects when t
602.
▲
by
veltas
5y ago
It seemed to me like the business is having financial trouble and cannot pay a fine like last time, so has to be penalized in another fashion, maybe I'm misreading it. > The order would also impose a $100,000 civil money penalty bas
603.
▲
by
veltas
5y ago
> The Messengers also announced they wanted it to be an open religious space where Muslims, Jews, Protestants, Orthodox, and Catholics could congregate and discuss religion. I knew Justo. I knew how antiquated and conservative he could b
604.
▲
by
veltas
5y ago
Lots of ISAs consider 32-bit to be a 'word'. And now they have the same problem that Intel already encountered that it's easier to start referring to a new larger native word size as a 'double-word' and the cycle co
605.
▲
by
veltas
5y ago
Reminder that git is distributed(TM)
606.
▲
by
veltas
5y ago
People and software, when Facebook was done my mobile thought the internet was unavailable.
607.
▲
by
veltas
5y ago
Never explained how diagrams e.g. top of this page[1] can be done mid-lecture. [1] https://castel.dev/static/cb323a2ec665d98f93f78e13d3972e0e/4...
608.
▲
by
veltas
5y ago
Sorry that should say "companies and organisations should expect to simultaneously annoy and encourage different groups whenever they support movements, even ones that seem in their name or basic statement to be fair or innocuous like
609.
▲
by
veltas
5y ago
I didn't say anything about what Wikipedia should and shouldn't say. I was just responding to what you said because I think it's an interesting question whether something as broad as "murdering people" could be poli
610.
▲
by
veltas
5y ago
Yes, I have found that being "against murder" is political and a matter of political alignment. Especially since the definition of what is murder, or who is protected by murder laws, and the punishments for murder are all controve
611.
▲
by
veltas
5y ago
Not just Stallman, it's incompatible with the OSI definition of open source.
612.
▲
by
veltas
5y ago
Recently I was driving behind a Tesla and it suddenly started braking for no reason at all, I almost rear-ended it. I think it had something to do with the sun reflecting on the road surface brightly because I noticed this reflection just a
613.
▲
by
veltas
5y ago
Not really on topic but I found myself looking around this website and this is easily the most interesting personal site I've seen on HN, and then from reading all the angry posts by the right people Justine also seems like the most in
614.
▲
by
veltas
5y ago
I keep seeing the word 'democratizing' used online applied to stuff where I don't understand its relevance. Surely Internet Archive is not 'democratic', but also why would that matter? Do we all need a vote on what
615.
▲
by
veltas
5y ago
And because they can do it discretely, i.e. in class or bed.
616.
▲
by
veltas
5y ago
"where they suffice" i.e. not always.
617.
▲
by
veltas
5y ago
> Meaningless names, like `x` or `fn`, require the programmer to understand and remember extra layers of context while reading code that uses them. Reading code always requires context, which humans are actually very good at handling. An
618.
▲
by
veltas
5y ago
When it's a commonly committed crime but only certain people get prosecuted, it reaks of high-level corruption. Sounds like this exec stepped on the wrong toes.
619.
▲
by
veltas
5y ago
What you're saying is not backed up by the numbers. One of the reasons the army stepped in is because our demand exceeded what we could supply with our number of tankers. So we had enough tanker drivers, but not enough tankers. The tan
620.
▲
by
veltas
5y ago
Maybe Brexit caused the shortage of truck drivers in the US too!
621.
▲
by
veltas
5y ago
You get better algorithmic performance, but whether a tree or a linked list you get bad locality versus open bucket.
622.
▲
by
veltas
5y ago
I said 'sorted' but I meant balanced as well. And even if you can 'attack' still, there is a limit to how slow it can get. Worst case O(log n) is not bad. As for security, I can't speak to its efficacy, but I know i
623.
▲
by
veltas
5y ago
It makes a significant difference in profiling, versus i.e. a bitwise mask to find a modulus for a power-of-two size.
624.
▲
by
veltas
5y ago
The O(n) behavior is not even really that 'pathological', lots of normal cases get that behavior. If SwissTable operates as you say, then it sounds like it is prone to bad performance for lots of normal data with a dumb hash, i.e.
625.
▲
by
veltas
5y ago
The clustering can still happen with any walk. The dumb walk is the best, but it is the most prone to clustering if the hash is simplistic. But if the hash is pseudo-random, it's as likely to get clusters as any other walk, and has bet
626.
▲
by
veltas
5y ago
Another alternative is not using a hash table, and instead using a sorted binary tree or similar, which tends to be slower on average but has worst case O(log n) lookup, O(log n) insertion. Depends on your criteria.
627.
▲
by
veltas
5y ago
Open addressing or 'open bucket' hash tables always seem to be a second consideration in textbooks or blogs. I find them generally faster, and more memory efficient, and easier to implement. Instead we're always taught the cl
628.
▲
by
veltas
5y ago
Without being too reductionist, I don't think 'pattern' means that to people using the word 'pattern'. Architects didn't invent 'patterns' and the word's regular English meaning is going to be ho
629.
▲
by
veltas
5y ago
The building analogy doesn't work, software is not a building. There are essentially templates for buildings, there is no template for software. Maybe software is more like a city. Maybe buildings are more like patterns, data structure
630.
▲
by
veltas
5y ago
I think this was only considered acceptable because in early C you couldn't initialise automatic variables. So you would never be confused by an association like `char *p = q; *p = q;`, because you couldn't write that first part.
More ›