frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Making code last a long time

https://twitter.com/jonathan_blow/status/1923414922484232404
28•robinhouston•4mo ago

Comments

turtleyacht•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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".

Waymo has received our pilot permit allowing for commercial operations at SFO

https://waymo.com/blog/#short-all-systems-go-at-sfo-waymo-has-received-our-pilot-permit
253•ChrisArchitect•1h ago•148 comments

Things you can do with a Software Defined Radio (2024)

https://blinry.org/50-things-with-sdr/
359•mihau•3h ago•71 comments

Plugin System

https://iina.io/plugins/
71•xnhbx•2h ago•17 comments

Launch HN: Rowboat (YC S24) – Open-source IDE for multi-agent systems

https://github.com/rowboatlabs/rowboat
26•segmenta•1h ago•11 comments

A new experimental Google app for Windows

https://blog.google/products/search/google-app-windows-labs/
54•meetpateltech•3h ago•85 comments

UTF-8 history (2003)

https://doc.cat-v.org/bell_labs/utf-8_history
56•mikecarlton•3d ago•9 comments

CIA Freedom of Information Act Electronic Reading Room

https://www.cia.gov/readingroom
116•bookofjoe•5h ago•22 comments

Bertrand Russell to Oswald Mosley (1962)

https://lettersofnote.com/2016/02/02/every-ounce-of-my-energy/
90•giraffe_lady•1h ago•33 comments

Self Propagating NPM Malware

https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised
475•jamesberthoty•6h ago•369 comments

Development of the MOS Technology 6502: A Historical Perspective (2022)

https://www.EmbeddedRelated.com/showarticle/1453.php
30•jason_s•3h ago•5 comments

Implicit ODE Solvers Are Not Universally More Robust Than Explicit ODE Solvers

https://www.stochasticlifestyle.com/implicit-ode-solvers-are-not-universally-more-robust-than-exp...
60•cbolton•4h ago•19 comments

Scammed out of $130K via fake Google call, spoofed Google email and auth sync

https://bewildered.substack.com/p/i-was-scammed-out-of-130000-and-google
45•davidscoville•1h ago•74 comments

Generative AI as Seniority-Biased Technological Change

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5425555
172•zeuch•4h ago•143 comments

Writing an operating system kernel from scratch – RISC-V/OpenSBI/Zig

https://popovicu.com/posts/writing-an-operating-system-kernel-from-scratch/
36•popovicu•2d ago•1 comments

Microsoft Favors Anthropic over OpenAI for Visual Studio Code

https://www.theverge.com/report/778641/microsoft-visual-studio-code-anthropic-claude-4
127•corvad•3h ago•56 comments

DOJ Deletes Study Showing Domestic Terrorists Are Most Often Right Wing

https://www.404media.co/doj-deletes-study-showing-domestic-terrorists-are-most-often-right-wing/
29•christhecaribou•30m ago•1 comments

60 years after Gemini, newly processed images reveal details

https://arstechnica.com/space/2025/09/60-years-after-gemini-newly-processed-images-reveal-incredi...
210•sohkamyung•3d ago•56 comments

Teen safety, freedom, and privacy

https://openai.com/index/teen-safety-freedom-and-privacy
57•meetpateltech•5h ago•60 comments

Robert Redford has died

https://www.nytimes.com/2025/09/16/movies/robert-redford-dead.html
386•uptown•6h ago•122 comments

Will I run Boston 2026?

https://getfast.ai/blogs/boston-2026
19•steadyelk•2h ago•20 comments

Java 25 officially released

https://mail.openjdk.org/pipermail/announce/2025-September/000360.html
169•mkurz•4h ago•67 comments

Migrating to React Native's new architecture

https://shopify.engineering/react-native-new-architecture
93•vidyesh•3d ago•57 comments

Scientists uncover extreme life inside the Arctic ice

https://news.stanford.edu/stories/2025/09/extreme-life-arctic-ice-diatoms-ecological-discovery
62•hhs•3d ago•23 comments

Europe is locking itself in to US LNG

https://davekeating.substack.com/p/after-escaping-russian-energy-dependence
104•hunglee2•4h ago•174 comments

"Your" vs. "My" in user interfaces

https://adamsilver.io/blog/your-vs-my-in-user-interfaces/
410•Twixes•15h ago•201 comments

Learn x86-64 assembly by writing a GUI from scratch (2023)

https://gaultier.github.io/blog/x11_x64.html
222•ibobev•4d ago•24 comments

AMD Begins Plumbing APCI C4 Support in the Linux Kernel for Power Savings

https://www.phoronix.com/news/AMD-ACPI-C4-Linux-Kernel-Code
6•doener•43m ago•0 comments

Hosting a website on a disposable vape

https://bogdanthegeek.github.io/blog/projects/vapeserver/
1323•BogdanTheGeek•1d ago•442 comments

Trucker built a scale model of NYC over 21 years

https://gothamist.com/arts-entertainment/this-trucker-built-a-scale-model-of-nyc-over-21-years-it...
94•speckx•5h ago•14 comments

Adding FRM parser utility to MariaDB

https://hp77-creator.github.io/blogs/gsoc25
8•hp77•3d ago•0 comments