Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing

Jeff Kao

๐Ÿ‘ค Speaker
514 total appearances

Appearances Over Time

Podcast Appearances

Rust in Production
Radar with Jeff Kao

So given this lat long, I want to be able to fetch all the relevant geo entities.

Rust in Production
Radar with Jeff Kao

So am I inside the city?

Rust in Production
Radar with Jeff Kao

Am I inside this country?

Rust in Production
Radar with Jeff Kao

Yeah, there are a lot of nice aspects about a log structure merge tree.

Rust in Production
Radar with Jeff Kao

And I think most modern database implementations use that in some shape or another.

Rust in Production
Radar with Jeff Kao

You know, it's largely, you know, this concept of obviously there's so much engineering around it, but like everything is sorted.

Rust in Production
Radar with Jeff Kao

So that gives you a huge advantage.

Rust in Production
Radar with Jeff Kao

And like that is something that many people take advantage of.

Rust in Production
Radar with Jeff Kao

So in our blog post, we talk about, you know, very fast geo lookups using this library called S2, which is essentially a geo hashing library.

Rust in Production
Radar with Jeff Kao

And so what that means is you have a latitude and you have a longitude.

Rust in Production
Radar with Jeff Kao

That's two dimensions, right?

Rust in Production
Radar with Jeff Kao

And so it's not clear at first how you can use sorting to help you make lookups faster.

Rust in Production
Radar with Jeff Kao

And so, I mean, there is literally a thing called geohashing.

Rust in Production
Radar with Jeff Kao

And there are other like implementations such as from Uber, there's this thing called H3.

Rust in Production
Radar with Jeff Kao

From Google, there's this thing called S2.

Rust in Production
Radar with Jeff Kao

And essentially, it collapses the latitude and longitude into a single 64-bit, or I use 64, I guess, in Rust terms.

Rust in Production
Radar with Jeff Kao

And it has many nice properties because it tends to be the case, obviously, there's boundary conditions because latitude and longitude, and they go from negative 180 to 180 and negative 90 to 90.