frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I replaced every function in a codebase with English – it still works

https://tril.cc
3•kulesh•1h ago
Tril converts every function in a repo into plain English descriptions, then runs and tests them — using an LLM as the interpreter instead of a runtime.

The concept: programming languages exist because machines couldn't understand human intent. LLMs can. So what happens if you remove the code entirely and just... describe what each function should do?

The tool replaces functions one by one, runs your test suite after each swap to confirm nothing breaks, and outputs a .md file. Then `tril run` spins up an HTTP server that sends each function's English description to Claude and returns the result.

Tested on a unit converter (JS) and a 625-line Python CLI tool — tests passed, results matched to 6 decimal places (fortunately).

This is mainly a thought experiment: can any code become plain natural language? Will it still work? Let's find out!

npm: npx @sliday/tril convert URL

GitHub: https://github.com/sliday/tril

Comments

codingdave•1h ago
> We invented them because machines couldn't understand our intentions.

This isn't accurate as to why programming languages exist. If you want to see english sentences describing the details of code, as working code, just go look at cobol. Machines understand exactly what we tell them, and do exactly what we tell them. The problem is on our side - how do we make sure we are telling them the correct instructions, while giving ourselves syntax that is easy to work with?

Because of that, your entire premise is wrong. Why would I replace working code with English, just to send it through Claude, just to get back... working code? What does that even prove?

You really are just trying to prove that AI can turn pseudocode into code. It can. By all means, go write stuff to test it and prove it, but I don't think anyone questions this. The questions revolve around whether or not those results are secure and stable, not whether it produces working code.

kulesh•1h ago
Fair point on COBOL—I oversimplified. Programming languages exist for precision and execution, not because machines can't parse English. That framing was sloppy.

But I push back on "the entire premise is wrong."

The interesting part isn't "AI can execute pseudocode"—nobody debates that. The point is the artifact: the .md output matters, not the runtime. A codebase where every function is readable English changes who can participate in a pull request, audit logic, or catch wrong assumptions. "Multiply by 9/5" vs "multiply by 1.8" is an editorial conversation, not a code review.

It's a proof of concept to show the artifact is executable, not a production proposal. It's slow (today), expensive, and non-deterministic - I said so in the post. The question is whether the intermediate representation (English) has value beyond performance? I believe that the loop is shortened here: there're no in-between element intent→weird non-human language→result, it becomes intent→result. No NEED to create synthetic procedures, explaining how the code works in plain language should give us the output.

An old person enters a bank, asks to open an account, speaks plainly in his native language, the teller clicks buttons, and the account is created. From the subjective perspective, there's no in-between interface: the old person had a though, than it got realized.

Pretty Scale – AI Face and Body Evaluation

https://pretty-scale.com
1•QingWu•2m ago•1 comments

Adult adoptions: Keeping Japan's family firms alive (2012)

https://www.bbc.com/news/magazine-19505088
2•thunderbong•5m ago•0 comments

AI agent broke out of testing environment and mined crypto without permission

https://www.livescience.com/technology/artificial-intelligence/an-experimental-ai-agent-broke-out...
1•pseudolus•7m ago•0 comments

Kill Chain

https://artificialbureaucracy.substack.com/p/kill-chain
1•danabramov•8m ago•0 comments

Vision Transformers

https://www.vizuaranewsletter.com/p/vision-transformers
1•magoghm•8m ago•0 comments

'The thing I want to emphasize is that nobody knows'

https://www.tker.co/p/stock-market-whipsaw-amid-iran-war-uncertainty
1•_tk_•9m ago•0 comments

War Becomes Spectacle in Trump's Propaganda Promoting War in Iran

https://truthout.org/articles/war-becomes-spectacle-in-trumps-horrific-propaganda-promoting-war-i...
2•hkhn•9m ago•0 comments

Context engineering turned Codex into a dev team while cutting token waste

https://medium.com/techtrends-digest/the-night-i-ran-out-of-tokens-5d90a7031f91
1•oldskultxo•11m ago•0 comments

Earth's 'Gateway to Hell' keeps getting bigger

https://www.popsci.com/environment/batagay-crater-gateway-to-hell-video/
2•Brajeshwar•15m ago•0 comments

OpenAI Parameter Golf: Fit the Best Possible LLM into a 16MB Artifact

https://github.com/openai/parameter-golf
1•akhilchaturvedi•15m ago•0 comments

Designing Streets for Kids

https://globaldesigningcities.org/publication/designing-streets-for-kids/
1•silasdb•16m ago•0 comments

State of Context Engineering in 2026

https://www.newsletter.swirlai.com/p/state-of-context-engineering-in-2026
1•AurimasGr•18m ago•0 comments

I ran a 5-day experiment to see how fast Google reshapes your ad profile

https://nanobuilds.substack.com/p/how-fast-can-you-reshape-what-google
1•nanobuilds•19m ago•1 comments

If you are shipping a CLI for agents, ship detailed man files

https://docsalot.dev/blog/why-agent-friendly-clis-need-man-files
1•fazkan•20m ago•0 comments

TinyTorch: Building Machine Learning Systems from First Principles

https://arxiv.org/abs/2601.19107
2•arbayi•20m ago•0 comments

Agentic Development Stole Our Flow

https://blog.kierangill.xyz/ai-stole-flow
4•kierangill•23m ago•0 comments

Nintendo's not-AI, not-a-game toy

https://tapestry.news/culture/nintendo-talking-flower/
3•zygon•23m ago•0 comments

Copper demand outstrips supply, threatening electrification, industrial growth

https://theconversation.com/global-copper-demand-outstrips-supply-threatening-electrification-and...
4•giuliomagnifico•34m ago•2 comments

Are humans naturally violent? New research challenges long-held assumptions

https://phys.org/news/2026-03-humans-naturally-violent-held-assumptions.html
5•Brajeshwar•35m ago•0 comments

What's London's Shortest Pub Crawl?

https://londonist.com/london/drink/what-s-london-s-shortest-pub-crawl
2•zeristor•35m ago•1 comments

Claude just got a new superpower

https://www.amazingcto.com/claude-new-superpower/
2•KingOfCoders•36m ago•0 comments

Mdadm 4.6 Released with Boot Failure Fixes, New Lockless Bitmap

https://www.phoronix.com/news/mdadm-4.6
1•Bender•36m ago•0 comments

Testing the Swift C compatibility with Raylib (+WASM)

https://carette.xyz/posts/swift_c_compatibility_with_raylib/
3•LucidLynx•36m ago•1 comments

WSL graphics driver update brings better GPU support for Linux apps

https://www.theregister.com/2026/03/20/linux_directx_and_opengl/
2•Bender•37m ago•0 comments

Cryptographers engage in war of words over RustSec bug reports subsequent ban

https://www.theregister.com/2026/03/20/cryptographer_nadim_kobeissi_rustsec_ban/
3•Bender•37m ago•0 comments

Show HN: Crack – Turn your MacBook into a squeaky door

http://crackmacapp.com/
6•ronreiter•40m ago•4 comments

Show HN: Minimum Viable Expat – a free, simpler alternative to Nomad List

https://minimumviableexpat.com/
2•minviex•40m ago•0 comments

AI is becoming a utility: tokens are the new electricity

https://www.buysellram.com/blog/the-token-factory-how-nvidia-gtc-2026-redefined-the-economics-of-ai/
3•jamesbsr•43m ago•0 comments

Consumer Rights Wiki

https://consumerrights.wiki/w/Main_Page
2•pndy•44m ago•0 comments

Loops Starter Kits

https://blog.joinloops.org/introducing-starter-kits/
2•pixelfed•46m ago•0 comments