frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

I used Fable to rewrite 65kLoC of Go in Rust. It cost $400

https://iurii.net/en/blog/posts/software-engineering/i-used-fable-to-rewrite-65kloc-to-rust/
25•aka-rider•3h ago

Comments

aka-rider•3h ago
Following the recent "Rewriting bun in Rust" I thought to run an experiment which turned out to be success.
coder-pm•2h ago
How much did the verification cost on top? how did you gate it? was it a Go test suite you ran against the Rust or what? I always wonder how ppl are testing these rewrites, rewriting the tests can also lead to bug. I really wonder how reliable are rewrites like that, a 65k lines you didn't actually read. How did you confirm the semantic equivalence, same behaviour?
aka-rider•1h ago
All very good questions.

Agents are actively destroy QA gates in many ways, usually by cheating ("the test is buggy, not my changes" — changes the test), or just rot QA slowly by writing buggy overcomplicated tests

What works for me 10/10 is fuzzing and my own constant usage. For this project specifically (text editor), I asked LLM to create human-like fuzzing session, it sends keystrokes like: "the user is searching for a file, editing, <ordering a lizard>, saves changes".

On top of it, I run https://mutants.rs/ which is kind of tests fuzzing. It flips random switches in the app itself, and if tests are silent - they missed a bug.

The downside of this, is I usually find bugs after 1-2 hours of running. I use local Qwen to babysit these sessions, to make initial investigation, a repro case, and file a ticket.

metaltyphoon•18m ago
Why are you just pasting LLM answers :(? I see this constantly in Slack DMs to every day from work. It hurts
doc_ick•1h ago
Well the author “cannot simply dye my hair blue” so maybe they can’t confirm semantic equivalence or behavior? Poke aside (and unserious intro?) seems like a general and loose question of if the conversion can happen.

*be me over eager

aka-rider•1h ago
I consider a wig. I'm still on a fence with Rust at this point. see comments above
aka-rider•1h ago
I realized that I haven't answered the question. These $400 also include the tests. Fable ported "human fuzzing session" (the best bug hunter) from Go to Rust and used it to validate everything else. I used hierarchical state machines, so a lot of my QA gates were encoded into the implementation — impossible states are, well, impossible.

(I ported first 80% practically in one shot, planning and then leaving Fable overnight to orchestrate). Then I added a bunch of features, so at the end I ported more like 150% of the original code, I added tree-sitter, and a bunch of syntaxes highlighters. At the end with all that, price went up to ~$650

onion2k•42m ago
Porting something to a language you don't know doesn't seem very helpful to me. You've locked yourself out of doing useful work except with continued application of more AI. Without the ability to verify it, except with even more AI maybe, you're starting on a slippy slope to slop.

If the experiment was "spend 400 bucks to see if it'll work" then that's awesome, and fun, and a cool use of AI. It's impressive that AI can do that.

If it was to make something useful ... has it?

aka-rider•21m ago
You are correct, that this is not the best Rust learning material.

$400 are subsidized into the subscription, and this was mainly an experiment to prove the theory about data conversion step. I call it a success and I use rune editor daily.

To me, running multiple agents is not very different from managing multiple teams — I won't be able to keep up with the changes by reading the code.

I may make certain architectural decision, and I need to act based on some signals.

The simplest example is clusters of bugs are signaling that certain modules are dirty. Sometimes I read a plan and understand that the agent is trying to workaround some auwful engineering.

ramon156•58m ago
what did i read? genuinely? its only a few words, and even that had to be AI written. The topic in the title barely was mentioned.
aka-rider•46m ago
Human-written. I was trying to be short and straight to the point.

LLM-powered rewrites and huge refactors are better done using 1 additional step "convert the code to <something> that represents it best".

The simplest example is, for a CRUD app it can be swagger description. The more complex behaviour exhibit the app, the more raw information should be provided.

Like ontologies, "A is a child of B" model can derive and enforce that "B is a parent of A", and so on.

On top of that, I write that Fable is reasonably cheap if one uses it solely for agent orchestration.

UltraSane•29m ago
I found this part to be interesting/clever:

1. Extract the data representation

Ask the LLM to represent your code as any combination of:

    graphs
    ontologies
    hierarchical state machines
    UML process charts
    constraints
    math formulae
2 Operate on the representations

3 Convert representations back to code

aka-rider•11m ago
this is the meat, yes.
richstokes•2m ago
Do we think that was necessary? What would have happened if OP had just asked it to rewrite and test/validate each piece as it went and automatically iterating as needed until everything is verified and complete?

My gut feeling is this is doing way too much, and it would've figured it out.

vessenes•22m ago
The title is the worst part of the essay. Which is super interesting, to wit: fable's a very capable model when it comes to transforming concepts in and out of structural descriptions, and you can use it (along with a test suite I presume) to transpile a codebase. I wouldn't have thought to do this, but I think it makes sense, and I like it - it's using model intelligence at a few different steps for sensible things. Thanks for the writeup. De clickbait your title though or you'll keep getting clickbait rage responses :)
aka-rider•18m ago
I'm glad you liked it. I was trying to keep both, the title and the content as straightforward as possible.

Another point is, Fable is reasonably cheap if you don't allow it to read or write.

brazukadev•6m ago
honestly it is hard to believe that seeing your replies and this heading: "The secret sauce".

Giving the benefit of doubt, we all might be writing a bit like claude nowadays.

If that is the case, I'd recommend reviewing the content before publishing to see if it sounds like a LLM.

Or if you are trying to create "better" AI slop and think that is enough to say the text is human-written, don't do that, just say it was AI-generated or assisted.

Claude Fable 5.1 and Claude Mythos 5.1

https://www.anthropic.com/claude-fable-and-mythos-5-1
725•denysvitali•4h ago•686 comments

How accurate have Ed Zitron's AI skeptic predictions been?

https://danluu.com/zitron/
188•jatins•3h ago•216 comments

The ChatGPT/Codex app bundles a full copy of LibreOffice

https://simonwillison.net/2026/Sep/1/codex-libreoffice/
133•timpera•1h ago•73 comments

Refurbishing a Tektronix TDS7104 Oscilloscope

https://tomverbeure.github.io/2026/08/23/Tektronix-TDS7104-Refurbishing.html
48•jwise0•2h ago•17 comments

The creator of Jujutsu has joined ERSC

https://ersc.io/blog/martin-joins-ersc
140•steveklabnik•4h ago•110 comments

AnkiDroid: Google Play no longer allowing Open Collective donation link

https://github.com/ankidroid/Anki-Android/issues/21656
785•hexa555•11h ago•227 comments

Launch HN: Nori Robotics (YC S26) – A low-cost humanoid robot for development

https://www.norirobotics.com/
94•AntonioLi•4h ago•34 comments

Introducing Ad Blocker for Firefox on iOS

https://blog.mozilla.org/en/firefox/ad-blocker-on-ios/
230•HieronymusBosch•8h ago•86 comments

Show HN: Running 104GB Qwen3.8-Flash-Next on 48GB Mac with at ~12 tok/s

https://github.com/carloslfu/slotstream
113•carloslfu•5h ago•75 comments

Path to Astra: critical capabilities and frontier safeguards

https://openai.com/index/path-to-astra/
33•jithinraj•1h ago•5 comments

Ambient CSS v3 – Blender meets CSS

https://ambientcss.vercel.app/
163•kikkupico•6h ago•62 comments

Movie Scene Map – 13,312 films, series, games, anime and manga

https://moviescenemap.com/
114•Flightmussy•5h ago•27 comments

I trained a small transformer in 1.5hrs and it beats many LLMs

https://mvakde.github.io/blog/44-on-arc-1/
509•porridgeraisin•12h ago•142 comments

Play Store blocks AuroraStore, hurting GrapheneOS users

https://gitlab.com/AuroraOSS/AuroraStore/-/work_items/1566
432•erikvanoosten•6h ago•173 comments

Ask HN: Who is hiring? (September 2026)

163•whoishiring•6h ago•180 comments

Quill (YC W20) Is Hiring a Fullstack SWE

1•R_R•4h ago

Apple reveals 'shocking evidence' from ex-employee's MacBook in OpenAI suit

https://9to5mac.com/2026/08/31/apple-openai-forensic-macbook-evidence/
85•colinprince•1h ago•40 comments

Show HN: Newton's Orchard – Browser-based space/gravity playground

https://newtonsorchard.app
9•andrewchilds•5h ago•1 comments

Magic eye tube

https://en.wikipedia.org/wiki/Magic_eye_tube
54•peter_d_sherman•3d ago•16 comments

Dyson CameraJet electric toothbrush

https://www.dyson.com/oral-care/electric-toothbrush/camerajet/ceramic-ultra-blue
70•noja•1h ago•78 comments

How bicycle coaster brakes work (2018)

https://www.dougbarnesauthor.com/2018/06/how-bicycle-coaster-brakes-work.html
29•Vedor•3d ago•27 comments

Show HN: HN Match Maker – Matching "Who Wants to Be Hired?" With "Who's Hiring?"

https://hnmatchmaker.com/
8•all2•1h ago•2 comments

Atlas: A World Model for Spatial Intelligence

https://www.worldlabs.ai/blog/atlas
101•johnsutor•4h ago•21 comments

Specifications Don't Exist (2025)

https://www.galois.com/articles/specifications-dont-exist
30•surprisetalk•6d ago•2 comments

American Airlines mechanic Azriel “Al” Blackman has died

https://simpleflying.com/american-airlines-mechanic-passes-away-100-record-80-years/
359•NaOH•3d ago•147 comments

Ask HN: Who wants to be hired? (September 2026)

51•whoishiring•6h ago•198 comments

Java is memory efficient [audio]

https://inside.java/2026/05/28/podcast-059/
8•he0001•2d ago•4 comments

Fluorescent lamps (don't) have ears

https://blog.coredump.cx/p/fluorescent-lamps-dont-have-ears
4•zdw•38m ago•0 comments

I used Fable to rewrite 65kLoC of Go in Rust. It cost $400

https://iurii.net/en/blog/posts/software-engineering/i-used-fable-to-rewrite-65kloc-to-rust/
25•aka-rider•3h ago•17 comments

Io_uring Without Readahead

https://frn.sh/io-uring/
100•porridgeraisin•8h ago•32 comments