HN user

rugina

23 karma
Posts0
Comments18
View on HN
No posts found.

We, humankind managed to get a good optimisation for this problem by using spaces between words. When trying these algorithms for searching a word in a string of text, I was surprised how little they could improve vs just skipping to the next word.

Tried it and it feels slow. I opened a Rust project and after a long wait to index crates, I opened a file and deleted a commented line. It took a few seconds to display the annotations again.

While waiting, I did some work in neovim.

That explanation irks me a lot because it implies Eratosthenes knew the Sun was so far away, the rays reaching the earth are practically parallel. And while it might sound a like a detail, the whole calculation depends on it.

If you presume the Earth is flat and the Sun not that far away, Eratosthenes was calculating the distance to the Sun.