frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Making code last a long time

https://twitter.com/jonathan_blow/status/1923414922484232404
28•robinhouston•1y ago

Comments

turtleyacht•1y ago
Make and maintain the virtual machine that runs your program, which executes custom instructions.

See uxn and justification: https://wiki.xxiivv.com/site/now_lie_in_it.html

And https://100r.co/site/story.html

kevmo314•1y ago
> The way you make code last a long time is you minimize dependencies that are likely to change and, to the extent you must take such dependencies, you minimize the contact surface between your program and those dependencies.

A lot of value is driven from those dependencies though. Zapier as a pointed example: Zapier sans dependencies is ... well I don't even know. So sure, you could avoid dependencies at all cost, but at some point you might end up deleting the reason someone else wants to use your code in the first place.

Of course, if you're writing code only for yourself that will totally work, but most professional software engineers are not -- it's a balance and it's not fair to say all they have to do is stop writing glue code.

j45•1y ago
Your example of Zapier dependence resonates - being sure to put a simple layer between your code and Zapier is the critical component.

The code makes the same call to a Zapier type command but it could be routed to Zapier today, and somewhere else in the future.

This can take a nominal amount of time longer than integrating Zapier directly.

It could be a couple more tables to setup and manage, or it can be done in the code somewhere.

caseyohara•1y ago
I've been working on the same product for ~13 years and I can confidently say the most important thing to ensure the longevity and long-term maintainability of a codebase is aggressive minimization of dependencies.

Engineering is all about compromises. If near-term velocity is more important to you than long-term evolution and maintainability, then go ahead and use all of the dependencies if it allows you to ship faster. But that is a form of technical debt that you will have to pay down eventually.

QuadrupleA•1y ago
What are you doing with Zapier that you couldn't do with your own code, or carefully curated small set of libraries? For networked services, the REST APIs of popular providers (Stripe, AWS, etc.) are usually kept backwards compatible for a long time.
henning•1y ago
I was about to comment how easy Zig makes it to make platform layers where the right code for an OS is compiled at compile-time and AFAIK there is no runtime cost, it's basically conditional compilation. But the Zig language itself is incredibly unstable and code you write now probably won't compile a year from now.
taylorallred•1y ago
This seems like another case where jblow's opinions are guided by his experience as a game dev. Games can be "finished" and never touched again. I think I mostly agree with him that software could be made to be timeless to some degree. But, in the world of web apps and saas, the culture is to offload much of the work to third party libraries/APIs which locks you into a never-ending cycle of dependency management. I don't know if this culture is totally necessary (maybe to ship fast and keep up with security updates?), but in a world where users expect software to be constantly improving you can't expect anything to be "done". Maybe you could get close if you built everything in-house, but even still you have to keep up with security flaws.
QuadrupleA•1y ago
From experience - if you look at the "security flaws" in detail that updates and patches address, an app with good dependency hygiene is rarely vulnerable to them, and doesn't need the purported fixes. So in those cases it's mostly a comforting mirage that your software is improving as you do "security updates" on your libraries and dependencies, except in rare cases.

And, security updates should not break your app! What breaks your app are feature changes, API changes, and the like, which is a breach of backwards compatibility and IMHO kind of lazy and hostile on the part of the library developers. It creates massive unnecessary work for developers, and unnecessary bugs and problems for millions of end users.

boznz•1y ago
Software in a closed ecosystem should run for the life of that ecosystem, an example would be Firmware on a non-connected device. eg the ECU in my car from 1991.
juancn•1y ago
I kind of agree. There's another world, where software lasts a really long time, it's a much better world, but just a few of us get to live in it.

Building tools for other engineers is where it's at, the library maintainers for long lived libraries, like libc or any collections library.

If you get a sorting algorithm in a mainstream language library, it will likely live forever (or forever-ish in software terms).

The harder the problem you solve (in the math sense) the more likely that if you craft that code properly and carefully, it will outlive you.

burnt-resistor•1y ago
Well, when I was in school, the goals were wide compatibility and portability. I was writing network C code in the 00's that could run without any changes on Windows, Linux, FreeBSD, HP-UX, AIX, SGI, SCO, and Solaris.

Code only "rots" when its dependencies rot from assholes who churn the language or break API promises. These low expectations lead to normalization of deviancy that churn without clear and present value is "okay", when it's merely job security or coding theater to appease others that everything must be touched and changed constantly or otherwise it's "broken".

Genie 4

https://deepmind.google/blog/genie-4-a-new-generation-of-world-simulation/
488•acossta•4h ago•286 comments

Ghostty 1.4.0

https://ghostty.org/docs/install/release-notes/1-4-0
406•deaux•3h ago•130 comments

Tailscale SSH: Investigation and remediation update

https://tailscale.com/ssh-investigation-update
27•figmert•27m ago•5 comments

Survival LLM: AI assistant and emergency library that runs on your own computer

https://www.brangus.io/survival-llm
21•Luc•27m ago•7 comments

New 14‑inch MacBook Pro with M6

https://www.apple.com/in/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/
157•beex•4h ago•173 comments

Three TLS Bugs in GoAhead

https://foxio.io/blog/choose-your-backend-three-tls-bugs-in-goahead
29•owenshen24•1h ago•2 comments

Classification of Finite Simple Groups Formalized in Lean

https://cfsg.axiommath.ai/
104•pfdietz•3h ago•25 comments

Python's experimental JIT to be removed

https://lwn.net/SubscriberLink/1102102/0c00e4d550f25f8c/
375•f311a•9h ago•198 comments

New iMac with M6

https://www.apple.com/imac/
235•notfried•7h ago•296 comments

Wikipedia's Cleanup of AI-Generated Content

https://spectrum.ieee.org/wikipedia-wikiproject-ai-writing-cleanup
380•rbanffy•9h ago•172 comments

Microsoft and others tell crypto platform not to tokenize their stocks

https://gizmodo.com/microsoft-mcdonalds-verizon-and-others-tell-crypto-platform-not-to-tokenize-t...
75•gumby•2d ago•55 comments

Introducing LFM3: Every Modality for Specialized Intelligence

https://www.liquid.ai/blog/lfm3
64•Philpax•3h ago•24 comments

US Government is hiding a secret court ruling about how it spies on Americans

https://www.wired.com/story/the-us-government-is-hiding-a-secret-court-ruling-about-how-it-spies-...
582•helterskelter2•6h ago•197 comments

Why Micron Is Suddenly Ditching 4F² DRAM as Rivals Double Down

https://hothardware.com/news/why-micron-is-suddenly-ditching-4f-dram
102•rbanffy•1d ago•15 comments

An examination of lost firefly species of the US and Canada

https://journaloflostspecies.org/index.php/jls/article/view/37/33
9•bryanrasmussen•3d ago•0 comments

Anthropic trained Claude on illegally obtained Stanford professors' books

https://stanforddaily.com/2026/10/27/professors-books-pirated-to-train-claude/
286•car•4h ago•154 comments

Here be monsters: What do you still need to know when agents do the work?

https://blog.adrq.dev/here-be-monsters-what-do-you-still-need-to-know-when-agents-do-the-work
119•adrq•6h ago•49 comments

PHP2Shell, LiteLLM, GitLab: Find What You Need to Patch

https://cloudsleuth.io/blog/php2shell-litellm-gitlab-find-what-you-run/
35•bigfish2026•3h ago•1 comments

Police are using AI to pull over drivers for 'suspicious' behavior

https://gizmodo.com/police-are-using-ai-to-pull-over-drivers-for-suspicious-behavior-2000831220
263•gumby•3h ago•194 comments

OpenLDK: Bringing the Java World into Common Lisp

https://atgreen.github.io/repl-yell/posts/openldk-java-in-common-lisp/
56•atgreen•2d ago•5 comments

Amazon Is Gutting Its AI Division After Sustained Failure

https://futurism.com/artificial-intelligence/amazon-ai-division-failure-nova
100•dpflan•3h ago•40 comments

Rosettes and Other Hidden Traces of Hamburg's Tram

https://alsterrunde.com/rosettes-and-other-hidden-traces-of-hamburgs-tram/
12•mertbio•1d ago•0 comments

Discord will soon let anyone find public server messages through Google

https://discord.com/blog/making-content-from-discoverable-servers-easier-to-discover
77•DeepLogin•1h ago•48 comments

PHP2Shell: Exploitation attempts and remediation trends

https://www.wiz.io/blog/php2shell-exploitation-so-far
168•acossta•6h ago•54 comments

Show HN: Specification First Agentic Development Plugin and Prove

https://spec-first.dev/
21•hleichsenring•5h ago•7 comments

The Mythical Man-Month in the Age of AI

https://j11g.com/the-mythical-man-month-in-the-age-of-ai
392•ilreb•13h ago•279 comments

Vicious Cycles: Theses on a philosophy of news

https://harpers.org/archive/2020/01/vicious-cycles-theses-on-a-philosophy-of-news/
18•eustoria•3h ago•3 comments

A Stackless Floodfill Automaton

https://t3x.org/files/floodfill.pdf
38•andsoitis•2d ago•14 comments

A $300B 'Debt Wall' Is Looming over Private-Equity Backed Companies

https://www.wsj.com/finance/investing/a-300-billion-debt-wall-is-looming-over-private-equity-back...
126•JumpCrisscross•5h ago•41 comments

Software may be getting worse, but it used to be horrible

https://www.bitlog.com/2026/10/27/software-may-be-getting-worse-but-it-used-to-be-horrible/
281•jakevoytko•8h ago•263 comments