frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I Built a Scheme Compiler with AI in 4 Days

https://matthewphillips.info/programming/posts/i-built-a-scheme-compiler-with-ai/
22•MatthewPhillips•2h ago

Comments

eatonphil•2h ago
What does "Write Yourself a Scheme in 48 Hours" produce? From OP I'm guessing it's something less than (73% of) R7RS.

https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_...

MatthewPhillips•1h ago
The reason it's only 73% is because I prioritized fun stuff like self hosting and platform binaries. I think finishing off the standards would only take a few more hours (except eval which I don't plan to do).
eatonphil•1h ago
That wasn't a dig at you, I was just genuinely wondering what Write Yourself produces.
MatthewPhillips•1h ago
Yeah, I didn't take it that way, just thought it was worth clarifying that this isn't a case of AI hitting a wall or anything like that, I just went down other rabbit holes.
threethirtytwo•1h ago
detractors of AI claim this stuff is in its training data so it could be a copy which is valid. The crazy thing is the fact that it can definitely build something that does not exist.
convolvatron•1h ago
how many scheme compilers do you think have been written?
foolserrandboy•10m ago
Probably many SICP or "Write Yourself A Scheme" readers have pushed basic scheme compilers to GH.
igornotarobot•1h ago
> I run into bugs all the time so it’s probably not ready for anyone other than me to use, but I’ve managed to go pretty deep (if not wide) in just a few days of work.

Having similar experience with my experimental code generator to Rust. Every time a yet another example does not work, Claude fixes it. However, I am curious whether it would converge to a bullet-proof solution, or I have to carefully read the code and come up with proper abstractions.

convolvatron•1h ago
if you're trying to write rust without thinking about the abstractions then yeah, its probably non-terminal. I would strongly suggest making the broad strokes yourself and letting it fill the details.
igornotarobot•25m ago
I have fixed the target data structures and also make Claude compare the generated code against a python reference via PBT. However, the vibe-coded code generator stumbles upon a missed clone/copy case every now and then. This is where I am less certain that it converges.
rla1192•1h ago
Quickly building "near production level"? Are we talking about this Matthew Phillips?

https://docs.astro.build/en/guides/build-with-ai/

What a happy coincidence!

sicher•1h ago
Cool. I'm also working on a Scheme compiler for embedding. Bytecode VM as well as AOT compilation to Zig. 100% written by Claude Opus under my supervision and guidance. I've given it an extensive set of tests and benchmarks (r5rs and r7rs) which helps A LOT. I currently use it embedded in a modal prose editor, mostly running integration tests for now.

https://codeberg.org/sicher/zscheme

tombert•1h ago
This is cool, I got Codex to vibe code a Forth compiler for the NES and it worked fine, but I have to say that it is decidedly not fun.

Instead of figuring out how to solve every bug and becoming intimately familiar with with the code, I just delegate all the work to virtual interns and I sit and wait.

I decided to write my own Forth compiler without AI assistance as a result. Side projects should be fun and for learning.

Not judging people who use these tools, I use them too, but i just have been using them less for anything I am doing for fun.

xandrius•1h ago
There is fun in what you use something for and doing the something.

I think there is a big divide between people who just love making different tools from scratch by hand and the rest who love being able to instantly whip up a new tool in minutes AND THEN use it to create something fun.

I literally would never ever in my existence be interested in making a compiler if I had nothing to use it for. If I ever wanted to make a cool program which uses that compiler then whether the compiler came into being thanks to a wizard, my enjoyment wouldn't change a single bit.

tombert•53m ago
Yeah no argument here.

In typical tombert fashion, when making an NES game I ended up getting much more obsessed with the tooling around the project than the core project, so when I got it to generate a Forth compiler, I fell down a rabbit hole of learning how compilers work and then feeling cheated out of the actual work.

That said, I'm not a complete luddite here; I wanted a proper comment system on my blog recently, and I don't care enough about web stuff to actually build it myself. I could have used an off the shelf thing but those usually come with a bunch of bullshit involving accounts and the like, so instead I got Codex to build one for me and deploy it and it works fine.

lolsowrong•48m ago
I agree there’s a big divide. I think I’m also team “let people do things they enjoy.”

I like using computers to solve problems. I’m more interested in the problem being solved than the journey most of the time, though I’ve also been on some lovely journeys. Sometimes that means I write a tool all by myself. Sometimes it means I download an existing open source tool. And sometimes it means I delegate the creation to an AI model.

jnpnj•55m ago
We need a new pair of words to distinguish these two mindsets. Digging deep, finding abstractions, solutions that would say more with less .. is one kind of fun. Other people want to see the magic happen by doing few keystrokes it seems, they call it fun, i call it death.
tombert•48m ago
I mean I guess it really depends on what you're interested in.

There are plenty of projects I have wanted to do that I don't because the "activation energy" is too high, and if I can get a machine to basically get past the boring crap then I can focus on the parts of the project that I think are fun.

apgwoz•25m ago
> There’s probably more I built that I have already forgotten about.

This is a big gripe of mine at the moment. I rarely have any confidence that I know how the thing works, or what additional things it does / does not do but which I expect.

Recent example: all API endpoints should require a bearer token. Imagine my surprise when half of them didn’t enforce this effectively, 3 days later. A bearer token would work, but also providing no bearer token would also work. Over the course of time, tests were removed / things were modified to get to the goal and say “done, boss!”

I’ll note that for this project, “don’t look at the source code” was a requirement. Things have been corrected before release, but the amount of potential foot guns is so damn high.

Ghostty – Terminal Emulator

https://ghostty.org/docs
395•oli5679•7h ago•183 comments

Microgpt

http://karpathy.github.io/2026/02/12/microgpt/
1474•tambourine_man•18h ago•256 comments

Why XML Tags Are So Fundamental to Claude

https://glthr.com/XML-fundamental-to-Claude
85•glth•4h ago•38 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
309•mschnell•10h ago•56 comments

How Dada Enables Internal References

https://smallcultfollowing.com/babysteps/blog/2026/02/27/dada-internal-references/
13•vrnvu•2d ago•5 comments

We do not think Anthropic should be designated as a supply chain risk

https://twitter.com/OpenAI/status/2027846016423321831
732•golfer•22h ago•398 comments

A new account made over $515,000 betting on the U.S. strike against Iran

https://xcancel.com/cabsav456/status/2027937130995921119
16•doener•20m ago•7 comments

Flightradar24 for Ships

https://atlas.flexport.com/
116•chromy•8h ago•28 comments

Interview with Øyvind Kolås, GIMP developer (2017)

https://www.gimp.org/news/2026/02/22/%C3%B8yvind-kol%C3%A5s-interview-ww2017/
81•ibobev•3d ago•33 comments

Python Type Checker Comparison: Empty Container Inference

https://pyrefly.org/blog/container-inference-comparison/
16•ocamoss•4d ago•11 comments

Show HN: Audio Toolkit for Agents

https://github.com/shiehn/sas-audio-processor
19•stevehiehn•3h ago•1 comments

Lil' Fun Langs' Guts

https://taylor.town/scrapscript-001
22•surprisetalk•4h ago•2 comments

I built a demo of what AI chat will look like when it's "free" and ad-supported

https://99helpers.com/tools/ad-supported-chat
348•nickk81•7h ago•217 comments

10-202: Introduction to Modern AI (CMU)

https://modernaicourse.org
177•vismit2000•12h ago•42 comments

New iron nanomaterial wipes out cancer cells without harming healthy tissue

https://www.sciencedaily.com/releases/2026/02/260228093456.htm
127•gradus_ad•4h ago•38 comments

Aromatic 5-silicon rings synthesized at last

https://cen.acs.org/materials/inorganic-chemistry/Aromatic-5-silicon-rings-synthesized/104/web/20...
58•keepamovin•2d ago•26 comments

When does MCP make sense vs CLI?

https://ejholmes.github.io/2026/02/28/mcp-is-dead-long-live-the-cli.html
92•ejholmes•2h ago•68 comments

The real cost of random I/O

https://vondra.me/posts/the-real-cost-of-random-io/
71•jpineman•3d ago•11 comments

Switch to Claude without starting over

https://claude.com/import-memory
475•doener•12h ago•222 comments

Why is the first C++ (m)allocation always 72 KB?

https://joelsiks.com/posts/cpp-emergency-pool-72kb-allocation/
101•joelsiks•10h ago•19 comments

January in Servo: preloads, better forms, details styling, and more

https://servo.org/blog/2026/02/28/january-in-servo/
22•birdculture•2h ago•2 comments

An ode to houseplant programming (2025)

https://hannahilea.com/blog/houseplant-programming/
113•evakhoury•2d ago•21 comments

Obsidian Sync now has a headless client

https://help.obsidian.md/sync/headless
549•adilmoujahid•1d ago•182 comments

Robust and efficient quantum-safe HTTPS

https://security.googleblog.com/2026/02/cultivating-robust-and-efficient.html
79•tptacek•2d ago•16 comments

Rydberg atoms detect clear signals from a handheld radio

https://phys.org/news/2026-02-rydberg-atoms-handheld-radio.html
63•Brajeshwar•2d ago•22 comments

The happiest I've ever been

https://ben-mini.com/2026/the-happiest-ive-ever-been
606•bewal416•3d ago•335 comments

Pigeons and Planes Has a Website Again

https://www.pigeonsandplanes.com/read/pigeons-and-planes-has-a-website-again
42•herbertl•3d ago•6 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
22•LukeB42•8h ago•15 comments

AWS Middle East Central Down, apparently struck in war

https://health.aws.amazon.com/health/status
6•earthboundkid•18m ago•0 comments

I Built a Scheme Compiler with AI in 4 Days

https://matthewphillips.info/programming/posts/i-built-a-scheme-compiler-with-ai/
23•MatthewPhillips•2h ago•19 comments