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
10•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_•32m 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•1h 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.

NPM Package with 56K Downloads Caught Stealing WhatsApp Messages

https://www.koi.ai/blog/npm-package-with-56k-downloads-malware-stealing-whatsapp-messages
181•sohkamyung•1h ago•101 comments

The Illustrated Transformer

https://jalammar.github.io/illustrated-transformer/
216•auraham•5h ago•47 comments

Ultrasound Cancer Treatment: Sound Waves Fight Tumors

https://spectrum.ieee.org/ultrasound-cancer-treatment
144•rbanffy•4h ago•40 comments

It's Always TCP_NODELAY

https://brooker.co.za/blog/2024/05/09/nagle.html
89•eieio•3h ago•22 comments

GLM-4.7: Advancing the Coding Capability

https://z.ai/blog/glm-4.7
210•pretext•5h ago•80 comments

The Garbage Collection Handbook

https://gchandbook.org/index.html
123•andsoitis•4h ago•7 comments

Flock Exposed Its AI-Powered Cameras to the Internet. We Tracked Ourselves

https://www.404media.co/flock-exposed-its-ai-powered-cameras-to-the-internet-we-tracked-ourselves/
294•chaps•7h ago•300 comments

NIST was 5 μs off UTC after last week's power cut

https://www.jeffgeerling.com/blog/2025/nist-was-5-μs-utc-after-last-weeks-power-cut
162•jtokoph•7h ago•85 comments

Claude Code gets native LSP support

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
275•JamesSwift•8h ago•149 comments

FPGAs Need a New Future

https://www.allaboutcircuits.com/industry-articles/fpgas-need-a-new-future/
42•thawawaycold•3d ago•5 comments

Scaling LLMs to Larger Codebases

https://blog.kierangill.xyz/oversight-and-guidance
196•kierangill•8h ago•82 comments

Things I learnt about passkeys when building passkeybot

https://enzom.dev/b/passkeys/
78•emadda•5h ago•36 comments

Universal Reasoning Model (53.8% pass 1 ARC1 and 16.0% ARC 2)

https://arxiv.org/abs/2512.14693
50•marojejian•5h ago•5 comments

How the RESISTORS put computing into 1960s counter-culture

https://spectrum.ieee.org/teenage-hackers
22•rbanffy•5d ago•3 comments

Ask HN: Why isn't there competition to LinkedIn yet?

40•antfie•1h ago•38 comments

Show HN: C-compiler to compile TCC for live-bootstrap

https://github.com/FransFaase/MES-replacement
7•fjfaase•5d ago•0 comments

US blocks all offshore wind construction, says reason is classified

https://arstechnica.com/science/2025/12/us-government-finds-new-excuse-to-stop-construction-of-of...
393•rbanffy•4h ago•320 comments

Tc – Theodore Calvin's language-agnostic testing framework

https://github.com/ahoward/tc
10•mooreds•2h ago•4 comments

Uplane (YC F25) Is Hiring Founding Engineers (Full-Stack and AI)

https://www.useparallel.com/uplane1/careers
1•MarvinStarter•7h ago

The Rise of SQL:the second programming language everyone needs to know

https://spectrum.ieee.org/the-rise-of-sql
92•b-man•4d ago•83 comments

The biggest CRT ever made: Sony's PVM-4300

https://dfarq.homeip.net/the-biggest-crt-ever-made-sonys-pvm-4300/
211•giuliomagnifico•11h ago•139 comments

There Is No Future for Online Safety Without Privacy and Security

https://itsfoss.com/news/alexander-linton-interview/
26•abdelhousni•1h ago•11 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...
14•troglo-byte•1h ago•5 comments

Hybrid Aerial Underwater Drone – Bachelor Project [video]

https://www.youtube.com/watch?v=g7vmPFZrYAk
32•nhma•15h ago•18 comments

Henge Finder

https://hengefinder.rcdis.co/#learn
45•recursecenter•6h ago•8 comments

Debian's Git Transition

https://diziet.dreamwidth.org/20436.html
187•all-along•16h ago•66 comments

Jimmy Lai Is a Martyr for Freedom

https://reason.com/2025/12/19/jimmy-lai-is-a-martyr-for-freedom/
285•mooreds•7h ago•135 comments

Programming languages used for music

https://timthompson.com/plum/cgi/showlist.cgi?sort=name&concise=yes
232•ofalkaed•2d ago•85 comments

In Pursuit of Clancy Sigal (2021)

https://yalereview.org/article/in-pursuit-of-clancy-sigal
9•dang•4h ago•4 comments

The ancient monuments saluting the winter solstice

https://www.bbc.com/culture/article/20251219-the-ancient-monuments-saluting-the-winter-solstice
169•1659447091•14h ago•86 comments