frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Len – types, relations, and generation contracts for LLM codegen

https://github.com/ewiger/len
2•divingstar•1h ago

Comments

divingstar•1h ago
I accidentally ended up designing something that can probably be called a meta-programming language.

Repo: https://github.com/ewiger/len

`len` is an experiment in making specifications more central than code itself. The rough model is:

* write intent and examples in natural language * capture the core structure with types, relations, and contracts * describe how that model should map to concrete generated code

In the repo I currently call those layers L0, L1, and L2.

This is very much an early project. The current tooling is a small Go CLI that validates the structure of `.l1` files, and the language design is still evolving. So this is not a polished “look what I built” launch.

I’m sharing it because I’d like honest feedback on whether the core idea is interesting, confused, redundant with existing tools, or maybe useful in some narrower niche.

Comments, criticism, and pointers to similar work would be very welcome.

derrak•1h ago
This looks very interesting.

I think the translation from L0 to L1 is going to become more and more important. There have been a lot of discussions here on HN about how natural language specs “aren’t code” and how LLMs provide no formal relationship between their inputs and outputs.

One way to side step this is to have the LLM translate the NL into a formal language and persuade the human that the formal language captures their intent. This reduces the burden because the user only has to look at and understand the formal language spec, rather than all the code produced by the LLM.

Also once a formal spec is obtained, you can do lots of interesting computation on it. Property based testing comes to mind. Or even full-blown verification of the formal spec. Or, LLMs might be good at recognizing ambiguity. An LLM could generate two formal specs, use an SMT solver to find an input where the specs differ, and help the user use this diff to ask clarifying questions and resolve the ambiguity.

One comment I have is that layers L1 and L2 _might_ be reinventing the wheel slightly. Your ensure statements remind me of Dafny or Verus, for instance, which have a lot of tooling behind them.

TikTok Star Khaby Lame Sells His Core Company in Deal Worth $975M

https://www.forbes.com/sites/martinadilicosa/2026/01/27/tiktok-star-khaby-lame-sells-his-core-com...
1•consumer451•1m ago•0 comments

Transference in the Afternoon

https://granta.com/transference-in-the-afternoon/
1•jbegley•2m ago•0 comments

William Burrough's Doing Easy

https://www.tumblr.com/mogadonia/44274156/doing-easy-an-essay-by-william-s-burroughs
1•OhMeadhbh•3m ago•0 comments

Chat Archiver save to PC AI chats – with ChatGPT/others (PyQt5, open source)

https://gitlab.com/LucLab1/chat-archiver
1•Techcen•3m ago•0 comments

Show HN: Urlx – an agent-made Rust replacement for curl/libcurl

https://github.com/jonwiggins/urlx
1•jawiggins•3m ago•0 comments

What is the best agentic AI today?

https://blog.alcazarsec.com/tech/posts/openclaw-vs-nemoclaw
1•alcazar•4m ago•0 comments

Could our universe exist because black holes ate up all the antimatter?

https://www.space.com/astronomy/black-holes/could-our-universe-exist-because-black-holes-ate-up-a...
2•Brajeshwar•4m ago•0 comments

Why your next mobile app is probably headless

https://tuananh.net/2026/03/18/why-your-next-mobile-app-is-probably-headless/
1•vinhnx•6m ago•0 comments

Doom entirely from DNS records

https://github.com/resumex/doom-over-dns
1•Venn1•6m ago•0 comments

I put the MacBook Neo through the same tests as I did the MacBook Air M1

https://www.techradar.com/computing/macbooks/i-put-the-macbook-neo-through-the-same-tests-as-i-di...
1•tosh•6m ago•0 comments

Help me improving this benchmark for vector engines

https://github.com/M4iKZ/Vector-Arena
1•M4iKZ•7m ago•0 comments

AI Chief of Staff

https://github.com/mimurchison/claude-chief-of-staff
1•Rafsark•7m ago•0 comments

An Incoherent Rust

https://www.boxyuwu.blog/posts/an-incoherent-rust/
2•emschwartz•10m ago•0 comments

Pocket agents – dev agents that can be operated through phone

2•HarshGupta07•11m ago•0 comments

Spin Up Postgres in a Second: How We Built Serverless PG

https://deeplake.ai/blog/serverless-pg
1•davidbuniat•12m ago•0 comments

This picture broke my brain [3B1B video]

https://www.youtube.com/watch?v=ldxFjLJ3rVY
2•jgwil2•13m ago•0 comments

Artificial intelligence, cognitive offloading and implications for education [pdf]

https://www.uts.edu.au/news/2026/03/experts-warn-unstructured-ai-use-in-schools-risks-cognitive-a...
1•obscurette•13m ago•0 comments

Temposhare: Share your ETA not your location

https://play.google.com/store/apps/details?id=com.temposhare.app&hl=en_US
1•vinnysud•13m ago•0 comments

AI is beginning to change the business of law

https://arstechnica.com/ai/2026/03/ai-is-beginning-to-change-the-business-of-law/
1•tartoran•13m ago•0 comments

TeamPCP deploys CanisterWorm on NPM following Trivy compromise

https://www.aikido.dev/blog/teampcp-deploys-worm-npm-trivy-compromise
1•Shank•14m ago•0 comments

Reddit CEO considering FaceID to combat bots

https://twitter.com/tbpn/status/2035137556774625610
4•oidar•15m ago•1 comments

Understanding the Go Runtime: The Garbage Collector

https://internals-for-interns.com/posts/go-garbage-collector/
1•melodyogonna•16m ago•0 comments

Show HN: Agen: spin up unlimited parallel AI coding agents in the cloud

https://agenhq.com
4•dan_lupashku•16m ago•0 comments

A macOS menu bar app to hot-swap Claude Code accounts

https://github.com/Symbioose/claude-account-switcher
1•symbioose•16m ago•0 comments

Hong Kong: New rule forces people to surrender passwords

https://www.dw.com/en/hong-kong-new-rule-forces-people-to-surrender-passwords/a-76482612
1•herodoturtle•17m ago•0 comments

Veo 3.1

https://aistudio.google.com/models/veo-3
1•linenmerchant•18m ago•0 comments

Bartone and Canu v. Meta Platforms and Luxottica of America [pdf]

https://techcrunch.com/wp-content/uploads/2026/03/Clarkson_Meta_Class_Action_Complaint-1.pdf
1•1vuio0pswjnm7•19m ago•0 comments

Nietzsche vs. the Wellness Industry

https://iai.tv/articles/nietzsche-vs-the-wellness-industry-auid-3527
1•robtherobber•19m ago•0 comments

Viruses in the gut may help prevent blood sugar spikes, mouse study hints

https://www.livescience.com/health/immune-system/viruses-in-the-gut-may-help-prevent-blood-sugar-...
1•Brajeshwar•21m ago•0 comments

Little Piggy Went to Trial (and Got Just $200 and No Fees)

https://copyrightlately.com/prepared-food-photos-jaber/
1•speckx•22m ago•0 comments