Blogs / Personal blogs

Carl Mastrangelo

carlmastrangelo.com

While working on my Wordle solver, I found a trick for treating integers as little lists. To keep memory usage down, I decided to pack the 5 letter words into a 32 bit integer. I use 6 bits per letter, leaving the top bit as a zero. This allows doing some SIMD tricks without having to expand the nibbles later.

Popular posts
2
Total points
449
HN comments
160
Rank
#5,843 personal

Visit carlmastrangelo.com → RSS feedOn Hacker News May 2018 – Aug 2022

Software Engineering 2Systems & Performance 1Networking & Internet 1

1

Why does gRPC insist on trailers?

gRPC comes up occasionally on the Orange Site , often with a redress of grievences in the comment section. One of the major complaints people have with gRPC is that it requires HTTP trailers. This one misstep has caused so much heartache and trouble, I think it probably is the reason gRPC failed to achieve its goal…

2

Java’s Mysterious Interrupt

One of the lesser known parts of Java is InterruptedException. With its vague-sounding name and non-committal Javadoc, few people are able to figure out what they need to do with it. Since I myself didn’t really grok it, I decided to put together a post explaining how interruption works. If you are looking for a more…