frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: ModernBERT in Pure C

https://github.com/hardik-vala/modernbert.c
3•HardikVala•8h ago
A minimal implementation of ModernBERT in pure C, inspired by karpathy's llama2.c. The core (tokenizer + inference code) is around 1000 lines of code with no dependencies (except OpenBLAS for fast matrix multiplication, and PCRE for regex).

If you don't know, ModernBERT is a new encoder-only model from answer.ai. Unlike decoder-only models like Llama, encoder models process all input tokens in a single pass (no autoregression), which makes them great for tasks like token classification.

The implementation supports loading any ModernBERT checkpoint from Hugging Face. I've tested it with the base model and a token classification model for anonymizing PII. You can get >1200 tokens/s throughput on a single thread (slightly better than pytorch implementation), though that's not directly comparable to decoder models since there's no token-by-token generation.

I hard-coded the architecture to keep things simple and readable. The tokenizer is a from-scratch BPE implementation that handles most cases (though it's missing some edge cases). The main goal was to support a lightweight deployment of this model, without the heavy baggage of the pytorch ecosystem.

Enjoy.

The Once and Future Perceptron

https://www.robinsloan.com/lab/once-and-future-perceptron/
1•FromTheArchives•3m ago•0 comments

Rocks, minds, and Turing machines – what does it mean to compute?

https://thefriendlyghost.nl/computation/
1•cvanelteren•8m ago•1 comments

Text inputs are weird [video]

https://www.youtube.com/watch?v=c2i2DIkxd8o
1•micvbang•13m ago•0 comments

Ask HN: What background color among white or black preferrable for websites?

1•avivallssa•15m ago•0 comments

What to do after detecting a signal from extraterrestrial intelligence

https://arxiv.org/abs/2510.14506
1•SweetSoftPillow•18m ago•0 comments

Kerr cell shutter to measure the speed of light

https://en.wikipedia.org/wiki/Kerr_cell_shutter
1•smig0•21m ago•0 comments

Testing tricky network services with Linux Namespaces

https://angelofailla.com/posts/2025/10/16/testing-with-linux-namespaces/
1•fratellobigio•23m ago•0 comments

Meta's AI Lab Is Bleeding Talent Faster Than Mark Can Write Checks

https://lighthousenewsletter.com/blog/meta-ai-lab-bleeding-talent-faster-than-mark-can-write-checks
1•CaptainSensible•29m ago•0 comments

Building better data platforms: Our open source approach to data infrastructure

https://digitaltrade.blog.gov.uk/2025/10/15/building-better-data-platforms-our-open-source-approa...
1•michalc•30m ago•0 comments

Alpha Arena by Nof1 – AIs trading live with real money

https://nof1.ai/
1•danboarder•33m ago•0 comments

The Tonnetz

https://thetonnetz.com/
1•mci•36m ago•1 comments

Figma's dynamic stroke feature produced 2MB SVG files [video]

https://www.youtube.com/watch?v=Dzpmx4yBFyo
1•AndreasMoeller•46m ago•1 comments

Ryhtr

https://pastebin.com/uDHYCXu2
1•Bunny121212111•56m ago•0 comments

What Research Says About "AI Sycophancy"

https://www.techpolicy.press/what-research-says-about-ai-sycophancy/
1•jruohonen•56m ago•0 comments

Rapid Energy Transition by Paying Renewable Energy Up Front

https://zenodo.org/records/17288906
2•NiceWayToDoIT•58m ago•0 comments

Found an interest YC partner simulation game

https://www.ycarena.com/games/partnersim
1•liurenju•1h ago•1 comments

AI Defend Chapter 10 – Eclipse and External Anchors

https://zenodo.org/records/17383818
1•thevieart•1h ago•1 comments

Why formalize mathematics – more than catching errors

https://rkirov.github.io/posts/why_lean/
2•Bogdanp•1h ago•1 comments

How to NPM and avoid getting rekt

https://blog.theredguild.org/how-to-npm-and-avoid-getting-rekt/
1•kwar13•1h ago•0 comments

Chosing Friction

https://phirephoenix.com/blog/2025-10-11/friction
1•iSpiderman•1h ago•0 comments

Apple Accuses Epic Games of Wanting a 'Free Ride'

https://www.macrumors.com/2025/10/17/apple-epic-games-free-ride-australia/
2•olyellybelly•1h ago•1 comments

Amazon's Ring now works with video surveillance company Flock

https://www.theverge.com/news/801856/amazon-ring-partners-flock-video
2•olyellybelly•1h ago•0 comments

Show HN: Cmtly – turns staged Git diff into a polished commit message

https://github.com/tofa84/cmtly
1•tomfal•1h ago•0 comments

Benioff Apologizes for Saying Trump Should Send Troops to San Francisco

https://www.nytimes.com/2025/10/17/us/benioff-apologizes-san-francisco.html
2•pretext•1h ago•0 comments

Megaprojects figure into Chinese culture unlike in any other culture

https://twitter.com/yishan/status/1977273380374986952
3•Michelangelo11•1h ago•1 comments

My Most Popular Application

https://blog.6nok.org/my-most-popular-application/
2•frontsideair•1h ago•1 comments

Yang Chen-ning, Nobel Prize-winning physicist, passes away at 103

https://en.wikipedia.org/wiki/Yang_Chen-Ning
3•xnhbx•1h ago•0 comments

TXR Bytecode Optimization Case Study

https://www.nongnu.org/txr/txr-opt.html
2•Bogdanp•1h ago•0 comments

Real FinTech Example from My Consulting Career

https://lukasniessen.medium.com/this-is-a-detailed-breakdown-of-a-fintech-project-from-my-consult...
4•thunderbong•1h ago•0 comments

Watching 25,000 Dice Neatly Arrange Themselves [2017]

https://www.sciencealert.com/packing-density-shear-force-dice-inside-cylinder-physics
1•latchkey•2h ago•1 comments