Show HN: Micro-RLE ≤264-byte compression for UART/MCU logs, zero RAM growth

Show HN (score: 5)
Found: November 01, 2025
ID: 2221

Description

Other
Show HN: Micro-RLE ≤264-byte compression for UART/MCU logs, zero RAM growth I needed to stuff twice the telemetry through the same 115 kbaud line on a Cortex-M0+ that only had 8 kB flash left.

Micro-RLE is the smallest drop-in I could come up with: 264 B of Thumb code, 36 B of state, no malloc, worst-case 14 cycles/byte and still lossless for every 8-bit pattern.

On the usual sensor streams (ADC, IMU, GPS) it’s 33-70 % smaller than raw output and boots in < 600 µs, so you can fire-and-forget from main() before the PLL even locks.

Repo is a single .c file and a 3-function API—replace the weak emit() hook with your UART / DMA / ring-buffer and you’re done.

Size proof: arm-none-eabi-size micro_rle.o text data bss 264 0 36

MIT licensed, link in the repo. Happy to hear where else this fits!

More from Show

Show HN: Parse a PDF from your terminal with PaddleOCR-VL-1.6

Show HN: Parse a PDF from your terminal with PaddleOCR-VL-1.6 I built OpenParser because I wanted PaddleOCR-VL-1.6 behind an endpoint I could actually use. Now there are open-sourced CLI and TypeScript&#x2F;Python SDKs:<p>``` npm install -g @openparser&#x2F;cli openparser auth login openparser parse sync document.pdf ```<p>That is basically it. It doesnt get easier and cheaper that this. Give it a PDF and get back the text and document structure.<p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;eigenpal&#x2F;openparser" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eigenpal&#x2F;openparser</a><p>I would love feedback from anyone willing to try the CLI and tell me what is still annoying.

Show HN: A free curl API for IP data (we scan the IPv4 space in <24h)

Show HN: A free curl API for IP data (we scan the IPv4 space in <24h) The curl API for WorldIP is now live and completely free to use. You can hit it right from your terminal:<p>curl worldip.io — returns information about your requesting IP. curl worldip.io&#x2F;8.8.8.8 — returns details on any specific IP.<p>The main differentiator here is that we aren&#x27;t just wrapping another provider&#x27;s API and reselling their data. We built and run our own global infrastructure capable of scanning the entire IPv4 space in about a day.<p>Happy to answer any questions about the scanning infrastructure or the stack!

No other tools from this source yet.