frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Writing a C Compiler, in Zig

https://ar-ms.me/thoughts/c-compiler-1-zig/
33•tosh•3h ago

Comments

scatbot•1h ago
Cool project. Feels like writing a C compiler in Zig aligns nicely with the old "maintain it in Zig" idea that was part of Zig's early value proposition. Is that still considered a relevant goal today?

Longer term it also makes me wonder whether something like this could eventually reduce reliance on Clang/LLVM for the C frontend in zig's toolchain.

spiffyk•44m ago
There is actually another C compiler written in Zig, Aro[1], which Zig started using since 0.16 for its TranslateC module.

[1]: https://github.com/Vexu/arocc

fuhsnn•1h ago
Looking at the repo, the author seemed a little fed up [1] with the nature of lower level language and quitted.

[1] https://github.com/asibahi/paella/blob/main/writeup/c19.md#u...

dwroberts•59m ago
Feels like maybe something lost in translation with their explanation - they say they were fed up of data structures etc. but they returned to Rust? I’m assuming there’s something a bit more nuanced about what they got tired of with Zig
flossly•1h ago
I thought Zig has a C compiler built in? Or is it just the Zig build system that's able to compile C, but uses an external compiler for that?

Still a proper programmer-flex to build another one.

spiffyk•46m ago
Zig actually bundles LLVM's Clang, which it uses to compile C with the `zig cc` command. But the long term goal seems to not be so tightly coupled to LLVM, so I'm expecting that to move elsewhere. They still do some clever stuff around compiler-rt, allowing it to be better at cross-compilation than raw Clang, but the bulk of it is mostly just Clang.

There is also another C compiler written in Zig, Aro[1], which seems to be much more complete than TFA. Zig started using that as a library for its TranslateC functionality (for translating C headers into Zig, not whole programs) in 0.16.

[1]: https://github.com/Vexu/arocc

Surveillance vendors caught abusing access to telcos to track people's locations

https://techcrunch.com/2026/04/23/surveillance-vendors-caught-abusing-access-to-telcos-to-track-p...
34•mentalgear•36m ago•4 comments

I am building a cloud

https://crawshaw.io/blog/building-a-cloud
528•bumbledraven•8h ago•269 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
25•russellthehippo•55m ago•3 comments

Alberta startup sells no-tech tractors for half price

https://wheelfront.com/this-alberta-startup-sells-no-tech-tractors-for-half-price/
1867•Kaibeezy•20h ago•614 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
187•tobr•2d ago•49 comments

Sneaky spam in conversational replies to blog posts

https://shkspr.mobi/blog/2026/04/sneaky-spam-in-conversational-replies-to-blog-posts/
21•ColinWright•57m ago•1 comments

Apple fixes bug that cops used to extract deleted chat messages from iPhones

https://techcrunch.com/2026/04/22/apple-fixes-bug-that-cops-used-to-extract-deleted-chat-messages...
652•cdrnsf•16h ago•164 comments

Jiga (YC W21) Is Hiring

https://jiga.io/about-us/
1•grmmph•45m ago

Writing a C Compiler, in Zig

https://ar-ms.me/thoughts/c-compiler-1-zig/
35•tosh•3h ago•6 comments

We found a stable Firefox identifier linking all your private Tor identities

https://fingerprint.com/blog/firefox-tor-indexeddb-privacy-vulnerability/
766•danpinto•19h ago•225 comments

5x5 Pixel font for tiny screens

https://maurycyz.com/projects/mcufont/
684•zdw•3d ago•139 comments

Our newsroom AI policy

https://arstechnica.com/staff/2026/04/our-newsroom-ai-policy/
92•zdw•7h ago•61 comments

A True Life Hack: What Physical 'Life Force' Turns Biology's Wheels?

https://www.quantamagazine.org/what-physical-life-force-turns-biologys-wheels-20260420/
115•Prof_Sigmund•2d ago•22 comments

Isopods of the world

https://isopod.site/
35•debesyla•2d ago•11 comments

Arch Linux Now Has a Bit-for-Bit Reproducible Docker Image

https://antiz.fr/blog/archlinux-now-has-a-reproducible-docker-image/
117•maxloh•10h ago•39 comments

The Onion to Take over InfoWars

https://www.nytimes.com/2026/04/20/business/infowars-alex-jones-the-onion.html
234•lxm•2d ago•70 comments

Highlights from Git 2.54

https://github.blog/open-source/git/highlights-from-git-2-54/
42•ingve•2d ago•13 comments

Email could have been X.400 times better

https://buttondown.com/blog/x400-vs-smtp-email
22•maguay•4h ago•18 comments

Over-editing refers to a model modifying code beyond what is necessary

https://nrehiew.github.io/blog/minimal_editing/
381•pella•18h ago•219 comments

Website streamed live directly from a model

https://flipbook.page/
318•sethbannon•18h ago•85 comments

An amateur historian's favorite books about the Silk Road

https://bookdna.com/best-books/silk-road
35•bwb•2d ago•14 comments

Show HN: Built a daily game where you sort historical events chronologically

https://hisorty.app/
11•damiannn•2h ago•9 comments

Technical, cognitive, and intent debt

https://martinfowler.com/fragments/2026-04-02.html
277•theorchid•20h ago•73 comments

Tempest vs. Tempest: The Making and Remaking of Atari's Iconic Video Game

https://tempest.homemade.systems
88•mwenge•11h ago•27 comments

Work with the Garage Door Up

https://notes.andymatuschak.org/Work_with_the_garage_door_up
4•jxmorris12•1d ago•3 comments

Ping-pong robot beats top-level human players

https://www.reuters.com/sports/ping-pong-robot-ace-makes-history-by-beating-top-level-human-playe...
134•wslh•21h ago•175 comments

Parallel agents in Zed

https://zed.dev/blog/parallel-agents
243•ajeetdsouza•19h ago•131 comments

Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model

https://qwen.ai/blog?id=qwen3.6-27b
882•mfiguiere•23h ago•407 comments

Books are not too expensive

https://www.millersbookreview.com/p/no-books-are-not-remotely-too-expensive
72•herbertl•2d ago•81 comments

Ultraviolet corona discharges on treetops during storms

https://www.psu.edu/news/earth-and-mineral-sciences/story/treetops-glowing-during-storms-captured...
243•t-3•23h ago•65 comments