Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thomasmg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
thomasmg
2y ago
> EB trees heavily rely on bit-addressable data (typically integers) That seems like a disavantage, but actually most data is bit-addressable in one way or the other; even strings, if you look at the UTF-8 representation. What I'm a
152.
▲
by
thomasmg
2y ago
Improving BWT is great! In my view, improving "long range" compression has the biggest potential. There are many, many algorithms and implementations for very short range (huffman, arithmetic, ANS) and short range (LZ, BWT), but n
153.
▲
by
thomasmg
2y ago
The probability that any person would give Brad Pitt money is nearly zero. But obviously it is not zero! We already know that some people believe weird things. The problem (for the scammer) is to find out, efficiently, _who_ would give (a l
154.
▲
by
thomasmg
2y ago
There are alternatives. I usually use a mix of: (a) what might be the motivation of the person / group to say something. (b) what are the risks of lying, and the consequences. (c) are there other voices and the possible motivation of
155.
▲
by
thomasmg
2y ago
Unless if the spent battery calls are released during the flight, via parachute, to be recharched later. We currently call spent batteries "empty" but in this case spent = "full" (of oxygen).
156.
▲
by
thomasmg
2y ago
I think people want is Rust, but simpler. At least by default. I could imagine people want a programming language that is: memory safe, without GC pauses. A bit slower by default than C / Rust, but with the _option_ to make it as fast.
157.
▲
by
thomasmg
2y ago
It could be this, or it could be: He experimenting hours and was proud of what he did. He wanted to show it to as many as possible, so he ignored what the teacher said. He was interrogated. Why more than one hour? It could have taken less t
158.
▲
by
thomasmg
2y ago
OK, interesting! If I understand correctly, that means even within the arena, lifetime is tracked. That makes sense - it is Rust after all. If each arena maintains a counter of live objects, then the arena can be dropped if it reaches zero.
159.
▲
by
thomasmg
2y ago
I wonder how to mix multiple allocators in a safe way. Say an arena allocator and the default one. How to prevent the non-arena object points to the arena one? (The problem is: the arena could get wiped, so this pointer would be invalid.) T
160.
▲
by
thomasmg
2y ago
No, it's not the L1. It's the L2/L3/LLC. With a regular Bloom filter (not blocked one), each of the k memory accesses results in a L2/L3/LLC cache miss, if the Bloom filter doesn't fit in the cache. And he
161.
▲
by
thomasmg
2y ago
The Bloom filter he uses has k=8, that is 8 cache line misses per entry. (k=8 is in the command line output). A "blocked Bloom fiter" requires only one cache line miss per entry, with a slightly worse false positive rate. With a g
162.
▲
by
thomasmg
2y ago
In Switzerland, we have yogurt with and without sugar, with and without sweeteners, with and without lactose, etc. You can buy 319 different yogurts in the supermarket: https://www.coop.ch/de/search/?text=yogurt I
163.
▲
by
thomasmg
2y ago
> Hand-rolling has a bunch of pitfalls I'm arguing that this is not the case in reality, and asked for concrete examples... So again I ask for a concrete example... For memory corruption, there are plenty of examples. For parsing, I
164.
▲
by
thomasmg
2y ago
> Hand-rolled recursive descent parsers as well as parser combinators can easily obscure implicit resolution of grammar ambiguities. Could you give a concrete, real-life example of this? I have written many recursive-descent parsers and
165.
▲
by
thomasmg
2y ago
I wonder if using the same constant for both multiplications would reduce code size and so could (slightly) speed up computation? I have updated my StackOverflow answer at https://stackoverflow.com/questions/664014/
166.
▲
by
thomasmg
3y ago
My guess is: the problem is not the price of the land or the price of the structure, but the permits. In Switzerland, you can put solar panels on existing buildings without requiring a permit. As the article says, there are many "large
167.
▲
by
thomasmg
3y ago
The paper is available, so feel free to check yourself. BMI was taken into account. Fast food I do not see, but where did you read about this association?
168.
▲
by
thomasmg
3y ago
The index itself is also a b-tree (unless if it is fully in memory). You also have to consider writes and reads in this index. There, locality also matters. Sure, not as much as with the data itself. But I have seen cases where the index lo
169.
▲
by
thomasmg
3y ago
UUIDs are globally unique (unique with such a high probability that in practise there are no collisions, if you follow the spec). But they are not cryptographically safe. So the time part is not a "leak" in this sense. If you need
170.
▲
by
thomasmg
3y ago
I was skiing last week, where ski goggles are the norm... So yes, currently it might be weird, but things change. Did you watch or read "Ready Player One"? There it is the norm.
171.
▲
by
thomasmg
3y ago
The problem is not "UUID" but "random UUID". The randomness makes it hard to index and query, due to missing locality. UUIDv7 is time-sortable, and so has locality. For details, see for example https://uuid7.c
172.
▲
by
thomasmg
3y ago
A garage is not needed, and you don't need to plug it in overnight. (My electric car is in a carport, and I only plug it in charge is below 50%.) Yes, it is inconvenient (and likely more expensive) if you can't charge the car at h
173.
▲
by
thomasmg
3y ago
Better managed is not necessarily more expensive in the long run, specially when tanking into account secondary benefits such as improved economy because companies that care about stable grids build factories there. But yes, short term it i
174.
▲
by
thomasmg
3y ago
From what I know, EVs have lower cost of maintenance and car insurance, and same cost for repairs.
175.
▲
by
thomasmg
3y ago
Yes, I also prefer the beautiful oil rigs, and the nice smell of coal in the air. Anyway, all the buildings made by humans are so nice to look at, except for the really really ugly solar and wind installations!
176.
▲
by
thomasmg
3y ago
Why "without replacement"? The question doesn't seem to refer to multiple events. For just one event, it doesn't matter if you do with or without replacement, because there is nothing that can be replaced.
177.
▲
by
thomasmg
3y ago
The RR diagrams are images, while the SQLite diagrams are SVG. In my view, SVG is better: it allows copy & paste. SVG would also allow adding links directly in the diagrams, but SQLite doesn't have that (so far). The diagrams for t
178.
▲
by
thomasmg
3y ago
Elon Musk used an image of a farting unicorn to promote Tesla.
179.
▲
by
thomasmg
3y ago
Me too. Reading the article, there seems to be no attempt to replace the two remaining "if" statements, and so, avoid branches. It doesn't even need to be CMOV: possibly introducing tmppar1 and tmppar2 = tmppar & (an oper
180.
▲
by
thomasmg
3y ago
There is a Lego Mindstorms Rubik's Cube solver robot as well: https://mindcuber.com/ It is a bit slow, but it seems to work. Here are some videos: https://www.youtube.com/user/IAssemble/videos
More ›