frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Micron: a high performance C++23 (re)implementation of Libc and the STL

https://github.com/rfgplk/micron.cpp
2•rfgplk•57m ago
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!

Azure Functions Core Tools repository taken down

https://github.com/Azure/azure-functions-core-tools
1•hectorm•2m ago•0 comments

The Reflection on My First Year at Meta (Facebook)

https://johnjr.dev/posts/the-reflection-on-my-first-year-at-meta/
2•johnjr•3m ago•0 comments

Show HN: Interact with your .eml files using MCP tools

https://github.com/MiguelRipoll23/eml-mcp
1•PhilDunphy23•4m ago•0 comments

Show HN: Audit any AI/data pairing with Veritrooper

https://veritrooper.com/
1•brian8620•4m ago•0 comments

Show HN: Fooglemap – a map for local restaurant discovery

https://fooglemap.com/
1•rankiwiki•6m ago•0 comments

Meta putting up tents across the US to house AI servers

https://www.tomshardware.com/tech-industry/artificial-intelligence/meta-putting-up-tents-across-t...
2•jeffufl•6m ago•1 comments

Bend under pressure not under nonsense

https://julienreszka.com/blog/bend-under-pressure-not-under-nonsense/
1•julienreszka•8m ago•0 comments

Chrome Breaks Records Again on Speedometer 3.1 and Jetstream 3

https://blog.google/chromium/a-double-victory-for-web-speed-chrome-breaks-records-again-on-speedo...
1•ksec•9m ago•0 comments

The web. Without permission. Grub is back, with a vengeance

https://deepbluedynamics.com/grub
1•kordlessagain•10m ago•0 comments

TanStack AI

https://tanstack.com/blog/your-mcp-your-way
1•berlianta•11m ago•0 comments

The environmental impacts of deep-sea mining

https://www.sciencedirect.com/science/article/pii/S0960982226003039?via%3Dihub
1•PaulHoule•11m ago•0 comments

Scientists revive activity in frozen mouse brains for the first time

https://www.nature.com/articles/d41586-026-00756-w
1•gscott•12m ago•0 comments

I was laid off by Atlassian

https://www.youtube.com/watch?v=55pTFVoclvE
1•maxloh•14m ago•0 comments

Mac's missing Google Calendar and Calculator in one click

https://chromewebstore.google.com/detail/calendarkit/nhcbepdcigkmidijjchdfnngloaemfcn
1•pSarveshKr•14m ago•0 comments

Cloudflare CEO Is Lying to You About the Bot Traffic Jump

https://www.flyingpenguin.com/cloudflare-ceo-is-lying-to-you-about-the-bot-traffic-jump/
4•speckx•16m ago•3 comments

Ask HN: How can we make an Open Source version of SpaceX?

1•colesantiago•16m ago•1 comments

Republicans Claim Anti-Data Center Movement Is a Chinese Psy-Op

https://gizmodo.com/republicans-claim-anti-data-center-movement-is-a-chinese-psy-op-2000767611
4•thisislife2•17m ago•1 comments

I built an open-source alternative to dynamic workflows: OpenFlow CLI

https://github.com/travisliu/openflow
1•travisliu•20m ago•1 comments

It's a Kind of Magic: Magic Numbers and the Arithmetic of Quantum Computation

https://www.blogosvet.cz/clanek/its-a-kind-of-magic-magic-numbers-and-the-arithmetic-of-quantum-c...
1•amthorn•21m ago•0 comments

Buffy the Vampire Slayer, Ted Lasso, and Little Britain Actor Anthony Head Dies

https://news.sky.com/story/buffy-the-vampire-slayer-and-ted-lasso-actor-dies-13545934
5•austinallegro•21m ago•1 comments

A PlayStation One (PS1) Emulator Written in Jam

https://github.com/raphamorim/jamstation
2•bobburniquist•25m ago•0 comments

Energy Markets Limit the Hormuz Shock

https://www.wsj.com/opinion/energy-markets-limit-the-hormuz-shock-fb793c18
2•paulpauper•26m ago•0 comments

Which AI agents send Accept: text/Markdown?

https://acceptmarkdown.com/status
2•rickette•27m ago•0 comments

The Social Science Research Network Has Jumped the Shark

https://www.stephenbainbridge.com/p/the-social-science-research-network
1•paulpauper•27m ago•0 comments

The British Used to Sound Like We Did

https://www.nytimes.com/2026/06/04/opinion/british-american-english-language.html
1•marojejian•28m ago•1 comments

How much value is AI creating?

https://www.ft.com/content/8e9ae7a4-7209-4e2c-aa36-f3af77d6ce1f
2•paulpauper•28m ago•0 comments

Advanced micro reactor achieves criticality in only two years

https://www.powermag.com/antares-mark-0-becomes-first-advanced-nuclear-reactor-to-achieve-critica...
5•enricotal•29m ago•0 comments

Migrating from Firestore to PostgreSQL

https://medium.com/@ValentinMouret/functionally-migrating-from-firestore-to-postgresql-64947b5dff0d
2•tosh•30m ago•0 comments

Tiny hackable CUDA language model implementation

https://github.com/markusheimerl/gpt
1•markusheimerl•30m ago•0 comments

Musician BERNTH's 1.5M-sub YouTube channel demonetized over missed physical mail [video]

https://www.youtube.com/watch?v=uXwGHSPfBp4
1•TrackerFF•31m ago•1 comments