frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Building an LLM runtime in 700 lines of C

https://github.com/ryanssenn/gemma4.c
4•ryansen•52m ago

Comments

ryansen•52m ago
I wanted to understand how modern AI models actually generate text, but most inference codebases are tens or hundreds of thousands of lines long. They’re incredibly impressive, but they’re optimized for flexibility and performance.

So I implemented a complete CPU runtime for Google’s latest open language model, Gemma 4 E2B, in about 700 lines of C.

The whole point is that you can open one file, start at main() , and follow a prompt all the way through the program. You can see every buffer that’s allocated, every mathematical operation that transforms the activations, every update to the KV cache, and every step that eventually produces the next token.

Along the way I kept optimizing the CPU implementation for this one model. Specializing the runtime let me push performance surprisingly far, and it now outperforms llama.cpp on my Ryzen 7 7700.

Debian votes to allow "responsible use of generative AI"

https://lwn.net/Articles/1091231/
1•pluc•47s ago•0 comments

A Disillusioned Software Engineer explains LLMs to a Babylonian Scribe

https://avocadoslaw.substack.com/p/babylon-3pm
1•m_aiswaryaa•2m ago•0 comments

SteamOS 3.9.0 Preview

https://store.steampowered.com/news/app/1675200/view/689767056035283412
1•EspadaV9•3m ago•0 comments

Show HN: A downloader for public social posts, no sign-up and no ads

https://www.socialdownloader.space
2•mgado•4m ago•0 comments

A Scale Invariance Property of PCA

https://jslandy.com/pca-invariant/
1•efavdb•4m ago•0 comments

Now Hiring: Senior Open Source Maintainer

https://nesbitt.io/2026/08/28/now-hiring-senior-open-source-maintainer.html
2•rapnie•7m ago•0 comments

Global Trade and the United States Navy

https://acoup.blog/2026/08/28/collections-global-trade-and-united-states-navy/
1•Pwntheon•7m ago•0 comments

A simple "copy this code" button in JavaScript

https://shkspr.mobi/blog/2026/08/a-simple-copy-this-code-button-in-javascript/
1•Brajeshwar•7m ago•0 comments

AULA Factory Tour: How Mechanical Keyboards Are Made [video]

https://www.youtube.com/watch?v=UTonUNfe0WY
1•skibz•7m ago•0 comments

Backlash Against AI Data Centers Is Real, Organic, Widespread

https://www.yahoo.com/news/politics/articles/backlash-against-ai-data-centers-115222320.html
3•newsomix9xl•10m ago•0 comments

Agentic SQL for Free: Qwen3.8 27B and DuckDB

https://motherduck.com/blog/Agentic-SQL-for-Free-with-Qwen3.8-27B-and-DuckDB/
1•1egg0myegg0•12m ago•0 comments

Musk says Grok's political lean is 'a function of SF Bay Area political views'

https://tokenstead.ai/guides/musk-grok-politics-bay-area-views
1•cdnsteve•14m ago•0 comments

I'm teaching an introductory 12 week course on Quantum Oracle Engineering

https://shukla.io/quantum-oracle-engineering/
2•BinRoo•20m ago•0 comments

Show HN: Visual workspace to design and operate daily multi-agent workflows

https://github.com/ringlochid/oh-my-subagents
1•ringlochid•21m ago•0 comments

Sabine Hossenfelder on "Extraordinary claims require extraordinary evidence"

https://twitter.com/skdh/status/2093615046244884953
1•mellosouls•21m ago•0 comments

Build your web-based game with AI

https://quetab.com/games
1•firasabb•25m ago•0 comments

How Boris Uses Claude Code

https://howborisusesclaudecode.com
2•Fake4d•26m ago•0 comments

Google Showing Fewer PDF Files in Search

https://www.seroundtable.com/google-search-fewer-pdf-files-41946.html
1•rdmuser•26m ago•0 comments

Positorium: Database with features from RDBMS, graph, columnar, name-value DBs

https://github.com/roenbaeck/positorium
2•thunderbong•26m ago•0 comments

30% on AR-AGI-1 at $0.0007 per task

https://arxiv.org/abs/2608.09888
2•randomizedalgs•27m ago•0 comments

Intoxication Culture

https://theanarchistlibrary.org/library/flower-bomb-intoxication-culture
2•choutos•28m ago•0 comments

Alt text passes automated checks. That doesn't mean it's any good

https://github.blog/engineering/user-experience/your-alt-text-passes-automated-checks-that-doesnt...
2•torutofu•29m ago•0 comments

Show HN: Turn mineral collections into 3D virtual museums

1•dinarino•29m ago•0 comments

I Let Google's Personal Intelligence Access My Life–and It's a Help

https://www.wsj.com/tech/ai/google-personal-intelligence-dreambeans-gemini-review-81f12a16
1•doener•33m ago•0 comments

Ask AI buttons like social media links for webpages

https://llmcheck.app/ai-ask-buttons/
1•loudsilence•33m ago•0 comments

Yap: A Particular Kind of Slop

https://mckayla.blog/posts/yap.html
1•eric_h•34m ago•0 comments

StateUI

https://github.com/idexus/StateUI
1•frizlab•35m ago•0 comments

FOSDEM 2026 – Mainline kernel for Fairphones – 2026 update [video]

https://www.youtube.com/watch?v=UnvKm3mzasI
1•pizzaiolo•35m ago•0 comments

Godot Sandbox: The Answer is 42

https://libriscv.no/blog/godot-sandbox-fortytwo/
1•fwsgonzo•38m ago•0 comments

Rig – Agentic Workflows in Rust

https://github.com/0xplaygrounds/rig
3•monneyboi•40m ago•0 comments