Open-source learnc auto-tunes C constants: 9.1% smaller JPEGs, +4.9 F1 on WebRTC VAD

keep_up_sharma · reddit · 2026-10-13

A developer released learnc (MIT), a tool that tunes named constants in unmodified C code against a score function you write in C, then writes the same file back with new values.

Results, both on held-out data:

Known limits: no JPEG gains below 1 bpp, and it's best for tens to hundreds of constants, not large weight sets. A drop-in way to squeeze performance out of legacy magic numbers in any C project.

Original post →

More from Research

Research channel →