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,845 personal

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

Software Engineering 2Systems & Performance 1Networking & Internet 1

1

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…