frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Tc – Theodore Calvin's language-agnostic testing framework

https://github.com/ahoward/tc
9•mooreds•2h ago

Comments

roxolotl•1h ago
While I can’t really comment on how good this specific implementation is simple diff based testing frameworks like this dont get enough press. My first job involved working on an internal programming language. The test suite was just a ton of statements that were executed top down and their output was compared against a single file. Yes that’s a bit absurd but it worked remarkably well. If they’d bothered to add a bit more structure around it I think it would have been perfect.
sestep•1h ago
Agreed, this is the default testing methodology I reach for. Other methodologies are useful in some situations, but those are the minority.
tom_•16m ago
It's not absurd at all (in my view). A test checks that some obtained result matches the expected result - and if that obtained result is something that got printed out and redirected to a file, and that expected result is something that was produced the same way from a known good run (that was determined to be good by somebody looking at it with their eyes), and the match is performed by comparing the two output files... then there you go.

This is how basically all of the useful tests I've written have ended up working. (Including, yes, tests for an internal programming language.) The language is irrelevant, and the target system is irrelevant. All you need to be able to do is run something and capture its output somehow.

(You're not wrong to note that the first draft basic approach can still be improved. I've had a lot of mileage from adding stuff: producing additional useful output files (image diffs in particular are very helpful), copying input and output files around so they're conveniently accessible when sizing up failures, poking at test runner setup so it scales will with core count, more of the same so that it's easy to re-run a specific problem test in the debugger - and so on. But the basic principle is always the same: does actual output match expected output, yes (success)/no (fail).)

mmastrac•52m ago
I wrote https://github.com/mmastrac/clitest because I needed a more complex testing harness for CLI tests that does something similar. It's not exactly the same, but it's definitely in the same universe.

One-file-per testcase like `tc` does works, but it tends to fall apart a bit at large scale in my experience.

Formally Verifying Peephole Optimisations in Lean

https://l-m.dev/cs/formally-verifying-peephole-optimisations-in-lean/
1•l-mdev•1m ago•0 comments

Show HN: Pac-Man with Portals

https://pac-man-with-guns.netlify.app/?type=portal
1•admtal•2m ago•0 comments

JustRL: Scaling a 1.5B LLM with a Simple RL Recipe

https://arxiv.org/abs/2512.16649
1•simonpure•5m ago•0 comments

Nvidia Bought the Bouncer

https://www.distributedthoughts.org/nvidia-bought-the-bouncer/
1•azhenley•20m ago•0 comments

FDA approves first GLP-1 pill for obesity

https://www.cnbc.com/2025/12/22/fda-approves-first-glp-1-pill-for-obesity-from-novo-nordisk.html
4•rexbee•21m ago•0 comments

Trump has always hated offshore wind. Now he's moving to kill it

https://grist.org/energy/trump-has-always-hated-offshore-wind-now-hes-moving-to-kill-it/
5•devonnull•22m ago•2 comments

Hideo Kojima Answers Hideo Kojima Questions [video]

https://www.youtube.com/watch?v=02Ah5VQrzvA
1•jumpocelot•24m ago•0 comments

Early proofs of Hilbert's Nullstellensatz (2023)

https://arxiv.org/abs/2309.14024
2•measurablefunc•25m ago•0 comments

Old Joystick Resto Job

https://retrohax.net/elite-multifunction-2002-joystick-restoration/
2•retrohax•26m ago•0 comments

We Are Still the Web

https://thehistoryoftheweb.com/we-are-still-the-web/
2•cdrnsf•26m ago•0 comments

Design system ambassadors–the goldilocks of collaboration

https://pjonori.blog/posts/design-system-ambassadors/
1•cdrnsf•26m ago•0 comments

New species are now being discovered faster than ever before

https://news.arizona.edu/news/new-species-are-now-being-discovered-faster-ever-study-suggests
2•geox•32m ago•0 comments

Ask HN: Migrating old Substack posts to my own blog, have a question

1•Praddy•32m ago•0 comments

Signs AI Is Making You a Worse Engineer

https://timyc.substack.com/p/signs-ai-is-making-you-a-worse-engineer
1•TimDotC•33m ago•0 comments

Who was the best CEO of 2025?

https://www.economist.com/business/2025/12/22/who-was-the-best-ceo-of-2025
1•andsoitis•33m ago•0 comments

AI Detectors and Humanizers: Two Sides of the Same Coin?

https://latentscholar.org/ai-detectors-and-humanizers-two-sides-of-the-same-coin/
1•Aminmlm•35m ago•0 comments

With FDA approval of Wegovy pill, new era of oral GLP-1 weight loss drugs begins

https://www.cnn.com/2025/12/22/health/wegovy-pill-glp1-weight-loss-drugs
4•andsoitis•35m ago•0 comments

Who's Afraid of the Null Hypothesis?

https://seantrott.substack.com/p/whos-afraid-of-the-null-hypothesis
2•ArmageddonIt•40m ago•0 comments

FDA approves Novo Nordisk's Wegovy pill, the first and only oral GLP-1

https://www.prnewswire.com/news-releases/fda-approves-novo-nordisks-wegovy-pill-the-first-and-onl...
2•andsoitis•41m ago•2 comments

GlassWorm Goes Native: Same Infrastructure, Hardened Delivery

https://www.koi.ai/blog/glassworm-goes-native-same-infrastructure-hardened-delivery
1•mooreds•41m ago•0 comments

Eliezer's Unteachable Methods of Sanity

https://www.lesswrong.com/posts/isSBwfgRY6zD6mycc/eliezer-s-unteachable-methods-of-sanity
1•paulpauper•42m ago•0 comments

Fast project navigation with fuzzy matching

https://github.com/sderosiaux/goto
1•chtefi•42m ago•0 comments

Safety panel says NASA should have taken Starliner incident more seriously

https://arstechnica.com/space/2025/12/safety-panel-says-nasa-should-have-taken-starliner-incident...
2•dangle1•42m ago•0 comments

VIMKillerRecharged

https://github.com/caseykneale/VIMKillerRecharged
2•shakna•43m ago•0 comments

Authorization: Build vs. Buy (2024)

https://permify.co/post/authorization-buid-vs-buy/
1•mooreds•45m ago•0 comments

Pill Version of Wegovy Is Approved for Use in the U.S.

https://www.wsj.com/health/pharma/pill-version-of-wegovy-is-approved-for-use-in-the-u-s-6d6a6f2d
1•bookofjoe•45m ago•2 comments

Understanding the ForgeRock Password Storage Scheme (2024)

https://fusionauth.io/blog/forgerock-password-storage
1•mooreds•45m ago•0 comments

What's New in Miri

https://www.ralfj.de/blog/2025/12/22/miri.html
1•edmccard•47m ago•0 comments

Satellites reveal heat leaking from largest US cryptocurrency mining center

https://www.space.com/space-exploration/satellites/satellites-reveal-heat-leaking-from-largest-us...
8•troglo-byte•49m ago•2 comments

Amazing Sandbox (asb) – a Docker-based sandbox for running third-party code

https://github.com/ashishb/amazing-sandbox
1•ashishb•49m ago•0 comments