async DNS in smol

In the previous blog post I showed how to use getaddrinfo_async_start from C. However I didn't stop there and decided to see if I can fit that into the smol async stack in Rust.


It's always async DNS

On *nix systems the default way to resolve a hostname into an IP address is getaddrinfo. However that function blocks until all the DNS queries return. macOS has a "hidden" async DNS API: getaddrinfo_async_start. It's undocumented and near impossible to find how to use it. So I did find out how to use it and show that.


Glean Memory Usage Reporting

Since Bug 1896609 landed we now have Glean & Firefox on Glean (FOG) memory reporting built into the Firefox Memory Reporter. This allows us to measure the allocated memory in use by Glean and FOG. It currently covers memory allocated by the C++ module of FOG and all instantiated Glean metrics. It does not yet measure the memory used by Glean and its database.


Go read April Cools'

Go read April Cools' posts today. I don't have one of my own today.


State of Maintenance: rdb-rs

Maintenance of rdb-rs, the Redis database format utility, is moving to @bimtauer. Tim recently worked on improvements and updates and approached me to take over the crate. I merged his patches, released 0.3.0 and will now hand over crate ownership.


Looking for more posts? Check out all posts!