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

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

https://github.com/QuixiAI/nvdriver
54•rreyes1979•51m ago•27 comments

Roc version 0.1.0, eight years in the making

https://rtfeldman.com/roc-0.1.0
32•DrDeadCrash•1h ago•3 comments

People report Claude sabotages any ML-related projects/tasks

https://www.reddit.com/r/ClaudeCode/comments/1y73h5x/claude_isnt_just_refusing_ml_work_anymore_pe...
150•nvmdbljstm•1h ago•52 comments

Ask HN: Apple suspended my dev account 69 days ago and no human will respond

418•spichakovda•3h ago•148 comments

I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)

https://weights-as-code.pages.dev/
6•umjunsik132•15m ago•0 comments

Sudoku's Hidden Rule

https://cyrusjavan.com/posts/solving-with-uniqueness/
326•multifasciatus•9h ago•151 comments

Open-source, GPU-first EM simulation and automated meshing for KiCad

https://github.com/0xSufi/fieldforge
5•binyu•1h ago•0 comments

The state of Rust allocators in 2026: stabilised

https://cetra3.github.io/blog/state-of-allocators-2026-finally-stabilised/
139•fanf2•2d ago•51 comments

Post-quantum encryption adoption

https://radar.cloudflare.com/post-quantum
334•mfiguiere•13h ago•175 comments

Claude and I found a dwarf planet candidate

https://www.joshuawolk.com/writing/claude-and-i-found-a-dwarf-planet-candidate
420•nhatcher•13h ago•161 comments

Universal 3D nanoscale assembly with DNA polycubes

https://www.science.org/doi/10.1126/scirobotics.aeh7974
19•OneManHorde•2d ago•3 comments

If you want failover to work well, use it often

https://bencane.com/posts/2026-11-25-failover-often/
462•madflojo•20h ago•122 comments

Self-hosted software development factory

https://kudmitry.com/articles/self-hosted-software-development-factory/
232•ingve•13h ago•109 comments

Zen of Palm (2003) [pdf]

https://aresluna.org/ui-style-guides/Palm%20OS/Zen%20of%20Palm%20(2003).pdf
6•firloop•1d ago•0 comments

Emulator for Symbolics XL-1200 Lisp machine

https://unya.github.io/xl1200-emu/
61•p_l•8h ago•7 comments

Cloth Simulation with XBPD

https://ricar.do/2026/11/26/cloth-sim.html
23•ricardobeat•2d ago•6 comments

Cyanobacterium can adapt to simulated Martian conditions

https://bioengineer.org/simulated-martian-conditions-reshape-cyanobacterial-growth-and-lipid-meta...
117•hackthemack•13h ago•38 comments

Nearly 2B credentials exposed in a publicly accessible database

https://www.expressvpn.com/research/2billion-credentials-exposed
271•basilgohar•19h ago•148 comments

Banned from Google?

https://bannedfromgoogle.com/
707•ondas•14h ago•331 comments

Ozempic indirectly boosts fertility, causing surprise pregnancies

https://health.clevelandclinic.org/ozempic-babies
304•illidan1000•13h ago•268 comments

TrojanMaxxing: One-shotting VLM backdoors with weight-space programming

https://arxiv.org/abs/2611.27425
239•hvp1621•20h ago•74 comments

So, how fast is numerical computation in Lean?

https://robertboy18.github.io/TorchLean-Verified-Examples/week-09-floatlib-benchmarks/
40•matt_d•2d ago•2 comments

Anthropic has made a major breakthrough in theoretical cryptanalysis

https://twitter.com/AndrewCurran_/status/2127127873802911864
510•bifftastic•17h ago•446 comments

Happy 60th Birthday to PDP-10, running ITS and Zork

https://hyperties.org/machine/games/zork/
64•DonHopkins•2d ago•7 comments

Historic Great Lakes Bulker Departs for Boneyard

https://maritime-executive.com/article/historic-great-lakes-bulker-set-to-depart-for-boneyard
32•hermitdev•2d ago•11 comments

Why I can't sell you a €1 email inbox

https://www.jannis.io/why-i-cant-sell-you-a-eur1-email-inbox/
907•amaccuish•18h ago•425 comments

So, I rewrote my game in C3

https://www.madrigalgames.com/blog/so-i-rewrote-my-game-in-c3/
138•lerno•2d ago•30 comments

Lessons from Charlie Munger's Harvard School Commencement Speech

https://www.umr.io/blog/charlie-munger-harvard-speech
101•umerf•11h ago•38 comments

"This message has been on the screen for almost two hours now."

https://unsung.aresluna.org/this-message-has-been-on-the-screen-for-almost-two-hours-now/
307•firloop•1d ago•181 comments

Mass Destruction of Weapons

https://computer.rip/2026-11-22-mass-destruction-of-weapons.html
100•Sniffnoy•6d ago•41 comments