frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

crustc: entirety of `rustc`, translated to C

https://github.com/FractalFir/crustc
96•Philpax•1h ago

Comments

Tiberium•1h ago
I wonder how the performance looks like, because this can be interesting even for non-porting reasons ;)
adastra22•48m ago
It is very unlikely that it would be faster.
gerdesj•45m ago
Faster than what? Please finish your sentence.
lpribis•29m ago
Faster than rustc (the main rust compiler written in rust). Obvious from the context.
keepupnow•10m ago
Sonic
ronsor•54m ago
> I put my left hand in a blender. The blender won. (Still have all my fingers, just some stitches). I will not elaborate further.

What a shame. I would've read an article about this.

Cadwhisker•54m ago
> The primary goal of this is support for old/obscure hardware with no LLVM/GCC support. There are still some systems out there that don't support Rust but support C.

The landing page mentions Plan 9 as one of the systems.

lioeters•44m ago
> For the past 3 years, I have been working on compiling Rust to C. .. This is, by my count, the 14th attempt: cilly

Gotta respect the dedication to a niche interest.

> The primary goal of this is support for old/obscure hardware with no LLVM/GCC support.

I remember reading about the bootstrapping question, how it typically requires a Rust compiler to build the Rust compiler from source. https://bootstrapping.miraheze.org/wiki/Bootstrapping_Specif...

Oh, but I see there's a C++ implementation of the Rust compiler. https://github.com/thepowersgang/mrustc

Anyway, this part sounds useful too, that crustc can compile across network and devices.

> You build a small C server on your Blorbo OS, run rustc on some normal platform like Linux, and let cilly talk over the wire.

zadikian•21m ago
So the author made a Rust to C transpiler and immediately used it to transpile... the Rust compiler. I love it.
taris2•44m ago
Have you tried Diverse Double-Compiling (DDC) to test if the official rust compiler has a backdoor?

Use crustc to compile the rust source code, producing a new compiler. Then use this new compiler and the official rustc binary, both with deterministic flags, to compile the rust source code again. The two outputs should match bit for bit.

Imustaskforhelp•44m ago
This could be used within https://bootstrappable.org/projects.html to make bootstrappability of rust incredibly much easier other than the previous route of OCaml and other things.

I know some folks within the bootstrappable OS projects community are on Hackernews and I hope that they could take a look at this. I feel as if this project could drastically shrink down the efforts needed to get a working rust compiler in a bootstrappable manner.

hkalbasi•6m ago
Not really. This C code is more like a binary and compiler artifact than a source code. So it won't match the standards of bootstrap.
levkk•44m ago
Very cool. At first, I thought it was yet another LLM-generated demo, but no: original work of art. Super cool. Transpiling into C does seem easier than LLVM IR, and letting GCC optimize seems like this might actually work.

Excited to see the compiler implementation when it's out -- a lot to learn from.

ahartmetz•36m ago
Wait, I thought LLVM had a C backend which could be used for the purpose of transpiling Rust to C? Turns out not for a long time, but now maybe again: https://discourse.llvm.org/t/re-ann-llvm-c-backend-still-abl...
SpecialistK•18m ago
I wonder if this could be used in PPC Mac OS X, where LLVM isn't supported and most graphical applications need to use GCC 4 with Apple's SDK.
layer8•17m ago
Finally we can rewrite all the Rust in C. ;)
dangoodmanUT•7m ago
i believe the author is confused

this is the wrong direction

(jk i read the readme)

groos•3m ago
As an ex C++ compiler developer, I heartily approve of this project. Kudos.

Virginia bans sale of geolocation data

https://www.hunton.com/privacy-and-cybersecurity-law-blog/virginia-bans-sale-of-geolocation-data
382•toomuchtodo•3h ago•71 comments

An American Privacy Emergency

https://scottaaronson.blog/?p=9902
34•flowercalled•31m ago•0 comments

crustc: entirety of `rustc`, translated to C

https://github.com/FractalFir/crustc
96•Philpax•1h ago•18 comments

Exapunks (2018)

https://www.zachtronics.com/exapunks/
210•yu3zhou4•5h ago•74 comments

Reality has a surprising amount of detail (2017)

https://johnsalvatier.org/blog/2017/reality-has-a-surprising-amount-of-detail
107•vinhnx•5d ago•40 comments

Since Linux 6.9, LUKS suspend stopped wiping disk-encryption keys from memory

https://mathstodon.xyz/@iblech/116769502749142438
393•IngoBlechschmid•9h ago•187 comments

Mystery identity of 'Green Boots' climber is finally solved after DNA test

https://www.dailymail.com/news/article-15943905/Mystery-identity-Green-Boots-climber-macabre-land...
34•FireBeyond•1h ago•8 comments

Podman v6.0.0

https://blog.podman.io/2026/07/introducing-podman-v6-0-0/
379•soheilpro•10h ago•140 comments

PeerTube is a free, decentralized and federated video platform

https://github.com/Chocobozzz/PeerTube
499•doener•13h ago•219 comments

EFF letter to FTC on X consent order (2 July 2026) [pdf]

https://cdn.arstechnica.net/wp-content/uploads/2026/07/EFF-letter-to-FTC-on-X-consent-order-7-2-2...
98•Terretta•5h ago•23 comments

This is my attempt to get Vulkan going on NetBSD

https://github.com/segaboy/vulkan-netbsd
80•segaboy81•5h ago•14 comments

How to ask for help from people who don't know you

https://pradyuprasad.com/writings/how-to-ask-for-help/
375•FigurativeVoid•11h ago•60 comments

Lightning Memory-Mapped Database Manager (LMDB) 1.0

http://www.lmdb.tech/doc/
57•radiator•4h ago•33 comments

FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

https://apple.github.io/foundationdb/flow.html
23•sourdecor•9h ago•3 comments

Postgres transactions are a distributed systems superpower

https://www.dbos.dev/blog/co-locating-workflow-state-with-your-data
101•KraftyOne•5h ago•47 comments

Show HN: Inkwell – An RSS reader for e-ink devices

https://kendal.codeberg.page/inkwell/
18•imkendal•8h ago•0 comments

Show HN: Pieces – Social network for people

https://try.piecesof.me/
23•domo__knows•1d ago•16 comments

Superpowers 6

https://blog.fsck.com/2026/06/15/Superpowers-6/
63•seahorseemoji•2d ago•27 comments

Great Salt Lake Tracker – Grow the Flow

https://growtheflowutah.org/laketracker/
56•cfowles•4h ago•14 comments

A Special Wireless-Free Nikon Camera Is Publicly Available for the First Time

https://petapixel.com/2026/06/24/a-special-wireless-free-nikon-camera-is-publicly-available-for-t...
11•HardwareLust•1w ago•6 comments

Claude-real-video - any LLM can watch a video

https://github.com/HUANGCHIHHUNGLeo/claude-real-video
73•cortexosmain•5h ago•19 comments

Flexible metaprogramming with Rhombus

https://lwn.net/SubscriberLink/1079001/67840550991151ed/
16•spdegabrielle•8h ago•1 comments

The short leash AI coding method for beating Fable

https://blog.okturtles.org/2026/07/short-leash-ai-method/
56•Riseed•5h ago•55 comments

Immich 3.0

https://github.com/immich-app/immich/discussions/29439
169•hashier•10h ago•73 comments

JEP 539: Strict Field Initialization in the JVM moved to preview

https://openjdk.org/jeps/539
53•za3faran•5h ago•17 comments

Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity

https://www.microsoft.com/en-us/research/blog/memora-a-harmonic-memory-representation-balancing-a...
19•matt_d•3d ago•0 comments

Show HN: ctx – Search the coding agent history already on your machine

https://github.com/ctxrs/ctx
23•luca-ctx•8h ago•4 comments

Apricot Computers: An underrated British brand

https://dfarq.homeip.net/apricot-computers-an-underrated-british-brand/
14•giuliomagnifico•1d ago•5 comments

Hazel (YC W24) Is Hiring for Our Largest Government Contract

https://www.ycombinator.com/companies/hazel-2/jobs/3epPWgu-full-stack-engineer-ts-sci
1•augustschen•11h ago

Launch HN: Manufact (YC S25) – MCP Cloud

https://manufact.com
98•pzullo•9h ago•61 comments