# Raph Levien's JIT trick renders bitmap text on microcontrollers in 3 cycles per glyph

Original title: JIT bitmap text rendering for microcontrollers

> Hacker News story 50408729 · language: en · submitted 2026-11-07
> Web version: https://zeli.app/story/50408729
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 5 · by [raphlinus](<https://news.ycombinator.com/user?id=raphlinus>) · 💬 1
[original](<https://linebender.org/blog/jit-bitmap-text/>) · [HN discussion](<https://news.ycombinator.com/item?id=50408729>)

## Summary

Raph Levien needed fast text rendering for vic-2350, his RP2350-based reimagining of an 80s home computer. Racing the beam leaves only ~6 cycles per pixel, and Rust couldn't meet that, so he wrote the renderer in ARM assembly via his symbolasm language. The key trick: a JIT compiles each string into optimized code that packs glyphs from a tightly packed font bitmap into a 1-bit buffer, then expands it to RGB565 at 1.75 cycles per pixel. Clever packing even overlaps glyphs—l is the left side of U—shrinking the font from 1140 to 960 bytes.

## Key quote

> Any glyph contained within another glyph doesn't need to be packed separately. There are a few examples, some surprising. For example, l is the left side of U, and 0 is identical to () with the space between them removed.

---

## Cite

- Page: https://zeli.app/story/50408729
- Date: 2026-11-07
- Source: linebender.org (https://linebender.org/blog/jit-bitmap-text/)
- Hacker News: https://news.ycombinator.com/item?id=50408729

## Other languages

- zh: https://zeli.app/zh/story/50408729 · markdown: https://zeli.app/zh/story/50408729.md
- ja: https://zeli.app/ja/story/50408729 · markdown: https://zeli.app/ja/story/50408729.md
- ko: https://zeli.app/ko/story/50408729 · markdown: https://zeli.app/ko/story/50408729.md
- de: https://zeli.app/de/story/50408729 · markdown: https://zeli.app/de/story/50408729.md
- es: https://zeli.app/es/story/50408729 · markdown: https://zeli.app/es/story/50408729.md
- ru: https://zeli.app/ru/story/50408729 · markdown: https://zeli.app/ru/story/50408729.md
