frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

This is the future: A Software Library with No Code

https://www.dbreunig.com/2026/01/08/a-software-library-with-no-code.html
27•ulrischa•11h ago

Comments

simonw•11h ago
I've been exploring this pattern recently too. Giving current coding agents an existing conformance or test suite and telling them to keep writing code unto the tests pass is astonishingly effective.

I've now got a JavaScript interpreter and a WebAssembly runtime written in Python, built by Claude Code for web run from my phone.

NitpickLawyer•10h ago
Ok, I really liked this! A cool concept that would've been sci-fi ~5 years ago (not this specific library, but the idea of spec->code in any language, 0 human intervention). I can see a collection of utilities "specced out" and then shared as specs + tests. Perhaps for harder stuff even some spec formal verification + tests? (no idea how feasible this is, but it's something to look into)

I had no doubts claude/codex/gemini could handle this, but I was surprised that even an open-source model (glm4.7) did it 1 shot (just c/p the prompt from Install.md and came back 10 min later):

============================= 123 passed in 0.18s ==============================

Test Results:

  All 123 tests from tests.yaml pass successfully:
  - 35 timeago tests
  - 26 duration tests
  - 28 parse_duration tests
  - 19 human_date tests
  - 9 date_range tests

  Files Created:

  1. /workspaces/glmcode/whenwords/src/__init__.py - Library implementation
  2. /workspaces/glmcode/whenwords/test_whenwords.py - Test file generated from tests.yaml
  3. /workspaces/glmcode/whenwords/usage.md - Usage documentation

 Crunched for 11m 38s
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Showing detailed transcript · ctrl+o to toggle

I mean, it's a "toy" library, but the concept is so cool! And the fact that an open, locally hostable model can do it 1shot is insane.

roxolotl•10h ago
Why wouldn't we just specify these things with programming languages though? The purpose of a programming language is to enable precise specification of computation. SPEC.md is 497 lines, the tests another 500. I don't understand what we'd gain from taking a spec which is imprecise and tests, which seemingly are arbitrary and cover the same cases multiple times, putting them into an LLM and recreating a version of the computation you desire.

If an LLM can do this with English and arbitrary test cases why wouldn't you pick a programming language and specific test cases? This would give you significantly more repeatability and consistency all while probably having less overall lines of code.

simonw•9h ago
You can define them in a structured way that's not tied to a specific programming language. Imagine a test suite that's entirely YAML inputs and outputs, or JSON, or even CSV.

The key idea is to have one test suite/specification that multiple implantations in different languages can share.

roxolotl•9h ago
What is the advantage of that over programming languages though? At some point you’re just creating a new specification language which needs to be learned. If an LLM can go from English spec to Python unit tests why not just start with, or at least distribute, Python unit tests. A programming language will allow you to be significantly more correct and consistent than English.
simonw•7h ago
Because if the tests are in Python the LLM still has to convert them from Python to Ruby or whatever, which leaves room for mistakes to creep in.

If the tests are in YAML it doesn't need to convert them at all. It can write a new test harness in the new language and run against those existing, deterministic tests.

roxolotl•7h ago
My point is that to create a specification you need to use a formal language of some kind. In this example they created a new yaml based specification language. Why do that vs use a well documented existing formal language the LLM knows well like Python. The translation is either yaml -> new language or Python -> new language. The translation is happening in both cases.

The advantage I can think of is it would might be more human readable but Python is damn close to pseudocode. It’ll likely always be a bit annoying to write because it has to be a formal language.

simonw•5h ago
There's no translation from YAML to a different language.

The YAML describes the tests - like this file here: https://github.com/dbreunig/whenwords/blob/main/tests.yaml

Snippet:

  - name: "5 hours ago"
    input: { timestamp: 1704049200, reference: 1704067200 }
    output: "5 hours ago"

  - name: "21 hours ago"
    input: { timestamp: 1703991600, reference: 1704067200 }
    output: "21 hours ago"
When told "use red/green TDD to write code for this in Ruby", a coding agent like Claude Code will write a test harness in Ruby that loops through all of those YAML tests, run it and watch it fail, then write just enough Ruby that the tests pass.
roxolotl•3h ago
Yea I guess we're having a definitional disagreement here. To be clear I think this is a good idea and the work you've done using tests from projects to have agents translate libraries is awesome.

But to me clearly that YAML snippet you provided is a specification which needs to be translated to Ruby as much as Python would. If the equivalent Python is:

def test_timeago_5_hours_ago(self):

  self.assertEqual(timeago(1704049200, 1704067200)), "5 hours ago")
def test_timeago_21_hours_ago(self):

  self.assertEqual(timeago(1703991600, 1704067200)), "21 hours ago")
The YAML is no more clear than the Python, nor closer to Ruby. Honestly I think it's less clear as a human reading it because it's hard to tell which function is being tested in context of a specific test case. I guess it's possible Claude is better at working with the YAML than the Python but that would be a coincidence I think.

Netlify Is Down

https://www.netlifystatus.com
1•forgingahead•1m ago•0 comments

Linus is vibe coding

https://github.com/torvalds/AudioNoise
2•dhruv3006•4m ago•1 comments

80% of Rye in 20% of the Time [1/3]

https://ryelang.org/blog/posts/learn_80_rye_in_20_time_code/
1•todsacerdoti•7m ago•0 comments

Notes on Enterprise Architecture from Doing the Job

https://github.com/justinamiller/EnterpriseArchitecture
1•maverickeye•9m ago•1 comments

Instagram breach exposes data of 17.5M accounts

https://twitter.com/H4ckmanac/status/2009870969998049400
2•thunderbong•10m ago•0 comments

Côme, une ville italienne dénaturée

https://www.lemonde.fr/m-le-mag/article/2026/01/02/en-italie-la-ville-de-come-denaturee-pour-deve...
1•altro•11m ago•0 comments

A new type of microscope lets scientists observe life unfolding inside cells

https://www.thebrighterside.news/post/a-new-type-of-microscope-lets-scientists-observe-life-unfol...
1•01-_-•11m ago•0 comments

Practical .NET Coding Guidelines We Use Internally

https://github.com/justinamiller/DotNet-Coding-Guidelines
1•maverickeye•12m ago•1 comments

Steam Machine price leak shakes the console market

https://comuniq.xyz/post?t=696
1•01-_-•12m ago•0 comments

Iranian regime tries to shut down Starlink

https://www.timesofisrael.com/iran-appears-to-jam-starlink-after-shutting-down-comms-networks/
11•ukblewis•20m ago•1 comments

Backing the Backslash

https://shadycharacters.co.uk/2025/03/backing-the-backslash/
1•everybodyknows•26m ago•0 comments

Elon Musk on Tesla's summon – LA to NY in 2 years (2016 – 10 years anniversary)

https://twitter.com/elonmusk/status/686279251293777920
2•TheAlchemist•34m ago•0 comments

Show HN: Keyboard-first diagram editor in Rust with fzf-style command palette

https://github.com/joonho3020/sansuyu
1•archipelago123•34m ago•0 comments

Biological and artificial consciousness: A case for biological computationalism

https://www.sciencedirect.com/science/article/pii/S0149763425005251
3•galaxyLogic•36m ago•0 comments

We Put Claude Code in Rollercoaster Tycoon

https://ramplabs.substack.com/p/ai-plays-rollercoaster-tycoon
2•gwintrob•38m ago•0 comments

Words

https://justinjackson.ca/words.html
1•Tomte•39m ago•0 comments

Torvalds: Another silly guitar-pedal-related repo

https://github.com/torvalds/AudioNoise/blob/71b256a7fcb0aa1250625f79838ab71b2b77b9ff/README.md
2•m-hodges•39m ago•1 comments

If I search for "opencode GitHub" in Bing, a random fork is returned

https://www.bing.com/search?q=opencode+github&PC=U316
1•theanonymousone•40m ago•0 comments

Yeast Programmed for Opioid Total Synthesis

https://cen.acs.org/articles/93/i49/Yeast-Programmed-Opioid-Total-Synthesis.html
1•slow_typist•45m ago•0 comments

Google employee made redundant after reporting sexual harassment, court hears

https://www.bbc.co.uk/news/articles/c62v51d1ry2o
3•latein•45m ago•0 comments

HeyToken – Access all LLMs for 30% less via a unified API

https://heytoken.ai
1•alhazar•49m ago•1 comments

Create Google API credentials in 50 easy steps

https://github.com/glotlabs/gdrive/blob/main/docs/create_google_api_credentials.md
2•ukuina•51m ago•0 comments

Setting Up OpenCode with Local Models

https://theaiops.substack.com/p/setting-up-opencode-with-local-models
1•ramikrispin•53m ago•0 comments

Amazon Redshift AutoWLM and SQA internals plus commentary (and a bit on CSC)

1•Max-Ganz-II•55m ago•0 comments

LitePoint clears testing milestone with Qualcomm's upcoming Wi-Fi 8 platform

https://www.rcrwireless.com/20260109/test-measurement/ces-2026-litepoint-clears-testing-milestone...
1•lordwiz•55m ago•0 comments

UI Skills

https://www.ui-skills.com/
2•handfuloflight•57m ago•0 comments

Eat More Deer

https://www.theatlantic.com/health/2026/01/deer-hunting-venison-sale/685537/
3•thunderbong•59m ago•0 comments

The Score

https://www.penguin.co.uk/books/457380/the-score-by-nguyen-c-thi/9780241653975
2•molteanu•1h ago•0 comments

Anthropic: Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
3•Bayram•1h ago•1 comments

New Game Launcher for PC Games

https://www.gamekolektor.com/
1•ravioldevuy•1h ago•1 comments