Micron: a high performance C++23 (re)implementation of Libc and the STL
Details
- External ID
- 48415481
- Source
- HN
- Company
- —
- Product
- Micron: a high performance C++23 (re)implementation of Libc and the STL
- Website domain
- github.com
- Launched
- June 5, 2026
- Cohort
- —
- Upvotes
- 6
- Upvotes percentile
- 0.31420765027322406
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Howdy HN,I've been working on micron for quite some time now, and I've finally gotten it to a state where I'm ready to share it with other people. I've really been pruning and testing it quite heavily for the past few weeks looking to flush out any bugs/inconsistencies. micron is a header-only C++23 core systems library that runs on Linux without libc, without libm, without the STL, and without any external dependencies at all. Fully freestanding. To my knowledge this is probably the only project of this kind, and the only libc implementation not in C. There _might_ be some Rust libc variant out there but I couldn't find any.Why does this exist? The STL makes a lot of decisions I disagree with; favoring generality over performance, safety theater that doesn't actually help anyone, ABI stability over bringing novel features to the language (regex, filesystem && company), and generally either being outdated compared to standard libraries of other languages or shipping solutions that are low performance (usually both). I wanted a library that treats the developer as the expert and makes development genuinely _simple and fun_. Every container in micron was written with that in mind. Most algorithms have hand-rolled SIMD loops wherever the math allows it, across amd64 (up to avx512), AArch64, and ARMv7 NEON. The other reason is hard determinism and portability sanity. glibc is _obscenely_ bloated, making it painful to compile quickly, painful to port, and painful to reason about. Half of Linux distros don't properly ship cross-arch libc; the ones that do are often missing static versions; and just getting a truly static binary out of glibc is a battle all its own (Fedora doesn't even _ship_ static libc properly in their official repos because security). Cross-compiling for ARM32 on an amd64 host is a special kind of misery if you're depending on the system libc. micron eliminates that entire class of problem. There's a single flat source, header only, and you're done; same code, same behavior, whether you're targeting a server or a microcontroller-class Linux board.Performance wise _most_ implementations in this library are either on par with the Standard Library (for things that can't be meaningfully sped up like container accesses) or greatly faster, near bleeding edge of what is out there. (one little side note is that right now most math kernel implementation code is more or less hardcoded for avx2 chips, there's no avx512/avx10 layer, so if you have a super modern cpu you won't get maximal performance over there).As of right now, the library is _almost_ feature complete (at least to the point where I'd like to have it). There's a full linux sys layer (maps more or less all syscalls, the ones that aren't you have a full syscall table so you can call them whenever ie. syscall(SYS_*, ...)), full math implementation, containers (contiguous, maps, trees, sets, heaps, queues), strings, a full simd layer port (for amd64 + arm neon), concurrency (mutexes, atomics, threading), io, functional programming primitives, a semi complete gfx layer (OpenGL/Vulkan)... micron also ships with a full memory allocator inlined, so you don't need to depend on anything externally.micron currently supports amd64/i386/aarch64/arm32 ONLY and is Linux ONLY. It might run on macOS, but no guarantees on that since too many things right now are effectively Linux hardcoded. Oh and you probably want at least kernel 5.0+ (5.11+ for certain fns) just to be safe. Didn't test it on anything older.A true final note is that this isn't really as polished or professional as glibc _yet_. I'm still working on ironing out any defects, the library is generally stable but you _might_ run into edge case issues especially around cross-arch code or the less tested paths.source: https://github.com/rfgplk/micron.cpp Happy to answer questions about any of the internals. Thanks!
Enrichment
- Theme
- lightweight and on-device AI runtimes
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- c++ standard library implementation
- Manually corrected
- False
Could you build this?
No Reimplementing the C standard library and C++ standard template library in modern C++23 requires encyclopedic systems programming knowledge, compiler internals, and architecture-specific optimization.
What it would actually take: Building a custom Libc and STL requires implementing intricate allocators, atomic primitives, data structures, and POSIX/OS system call wrappers in raw C++23. It demands rigorous conformance to ISO C++ specifications, handling compiler intrinsics, UB edge cases, platform-specific ABIs, and lock-free concurrency. This requires veteran systems software engineers who specialize in compiler toolchains and standard library design.
Discussion
3 comments analyzed.
Competitors mentioned: C++ standard library (STL), Micron programming language
Concerns raised: Name confusion with existing Micron programming language
Feature requests: Publish benchmarks comparing to STL
Competitors
Other products that read as similar to this one — 156 launches clear the similarity bar, closest 8 shown.
Attention rank: #114 of 157 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 219 days after the earliest competitor.
- CJIT, a single-binary C compiler that can self host · hn · 2026-04-13 · 7 upvotes · similarity 0.49
- Linear RNN/Reservoir hybrid generative model, one C file (no deps.) · hn · 2026-04-09 · 7 upvotes · similarity 0.47
- Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines · hn · 2025-12-26 · 154 upvotes · similarity 0.45
- Python running on the Super Nintendo (in-browser demo) · hn · 2026-07-06 · 7 upvotes · similarity 0.43
- btrc · hn · 2026-03-02 · 5 upvotes · similarity 0.43
- Valk · hn · 2026-02-10 · 5 upvotes · similarity 0.42
- Anos · hn · 2026-04-04 · 115 upvotes · similarity 0.42
- Clx · hn · 2026-07-11 · 143 upvotes · similarity 0.42
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.