frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

crustc: entirety of `rustc`, translated to C

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

Comments

Tiberium•55m ago
I wonder how the performance looks like, because this can be interesting even for non-porting reasons ;)
adastra22•34m ago
It is very unlikely that it would be faster.
gerdesj•31m ago
Faster than what? Please finish your sentence.
lpribis•14m ago
Faster than rustc (the main rust compiler written in rust). Obvious from the context.
ronsor•40m 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•39m 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•30m 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•7m ago
So the author made a Rust to C transpiler and immediately used it to transpile... the Rust compiler. I love it.
taris2•29m 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•29m 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.

levkk•29m 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•22m 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•4m 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•3m ago
Finally we can rewrite all the Rust in C. ;)

"An AI Job Apocalypse?" – Goldman Sachs Report [pdf]

https://www.goldmansachs.com/static-libs/pdf-redirect/prod/index.html?path=/pdfs/insights/goldman...
1•aanet•29s ago•1 comments

Safety and efficacy of mRNA vaccines: mechanistic and public health perspective

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00512-X/abstract
1•paulpauper•52s ago•0 comments

A Silent Auction

https://mirrlees-auction.nuff.ox.ac.uk/
1•paulpauper•1m ago•0 comments

Rent Control: The Ceiling Trap

https://mason.gmu.edu/~atabarro/RentControl/
1•paulpauper•1m ago•0 comments

Lean4Physics: Reasoning Framework for College Physics in Lean4

https://arxiv.org/abs/2510.26094
1•soupspaces•2m ago•0 comments

Artificial Adventures

https://www.scattered-thoughts.net/writing/artificial-adventures/
1•jeffreyrogers•3m ago•0 comments

Show HN: I made a tool that prevents websites from tracking you

https://github.com/alex-w-developer/GetBlocked
2•sudo_cowsay•6m ago•0 comments

Show HN: Document to Excel Converter

https://www.docupipe.ai/tools/pdf-to-excel
1•uri_merhav•7m ago•0 comments

An Ordinary Mind on an Ordinary Day

https://www.laphamsquarterly.org/roundtable/ordinary-mind-ordinary-day
1•tintinnabula•8m ago•0 comments

America Is Having MacBook Sticker Shock

https://www.theatlantic.com/technology/2026/07/apple-prices-macbook-memory-shortage/687781/
1•voxadam•14m ago•0 comments

Show HN: Autonomous Home Services Businesses

https://rainslice.ai
2•edgware674•15m ago•0 comments

Deep Agent Code Capabilities

https://docs.langchain.com/oss/python/deepagents/code/overview
1•kristianpaul•15m ago•0 comments

Startup sues Palo Alto Networks' Koi Security due to AI-hallucinated report

https://www.theregister.com/legal/2026/07/02/startup-sues-palo-alto-networks-koi-security-saying-...
2•dijksterhuis•15m ago•1 comments

GitHub is proud to announce that you can now obtain your public repo on CD-ROM

https://forms.cloud.microsoft/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR6G-c11n8yFDlQmk4B-Q...
2•throwaway2027•17m ago•0 comments

An American Privacy Emergency

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

Fable 5's cyber safeguards and jailbreak framework

https://www.anthropic.com/news/fable-safeguards-jailbreak-framework
2•logickkk1•18m ago•0 comments

GLM-5.2: The Open-Source Chinese Model Challenging Claude at One-Fifth the Cost

https://mrkt30.com/glm-5-2-open-source-ai/
1•bmcdresson•22m ago•0 comments

Australians have more negative view of Israel than of China – Essential poll

https://www.theguardian.com/australia-news/2026/jul/03/australians-more-negative-view-of-israel-t...
2•aussieguy1234•22m ago•0 comments

Right to Local Intelligence

https://righttointelligence.org/
4•thoughtpeddler•24m ago•0 comments

Google must pay €4.1B fine for using Android to 'block' rivals

https://www.bbc.co.uk/news/articles/cvgj0pp5p62o
3•logickkk1•26m ago•0 comments

Hobbes – A Language and Embedded JIT Compiler

https://github.com/morganstanley/hobbes
1•ryan-ca•26m ago•0 comments

Using AI Agents with Databases

https://github.com/vaishcodescape/data-spear
1•vaishcodescape•27m ago•0 comments

Stealing 50 Years of Database Ideas for AI Agents

https://onewill.ai/blog/2026/stealing-50-years-of-database-ideas-for-ai-agents/
1•matt_d•29m ago•0 comments

Domino's Pizza parodies Sony's discontinuation of physical games

https://twitter.com/Dominos_UK/status/2072602429959340517
2•josephcsible•31m ago•0 comments

Building the T.LY iOS App

https://timleland.com/building-the-tly-ios-app/
1•TimLeland•33m ago•0 comments

Leverage Research 1.0

https://lydialaurenson.substack.com/p/the-inside-story-of-leverage-research
2•jxmorris12•34m ago•0 comments

Data Science Weekly – Issue 658

https://datascienceweekly.substack.com/p/data-science-weekly-issue-658
1•sebg•34m ago•0 comments

Amazon launches new $1B FDE org, following OpenAI and Anthropic

https://techcrunch.com/2026/06/30/amazon-launches-new-1-billion-fde-org-following-openai-and-anth...
2•mgh2•35m ago•0 comments

Microsoft’s answer to the end of PlayStation discs: a bizarre GitHub stunt

https://www.theverge.com/tech/961177/microsofts-answer-to-the-end-of-playstation-discs-a-bizarre-...
1•modinfo•36m ago•0 comments

Ukraine has struck a key semiconductor facility in Voronezh [video][7 mins]

https://www.youtube.com/watch?v=jL0ei7E44Ls
1•Bender•36m ago•0 comments