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

Joint statement from Anthropic and OpenAI on recent advances in cryptography

https://www.anthropic.com/news/joint-statement-cryptography
392•aghuang•2h ago•348 comments

DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166

https://dreamstation.systems/personal/dkimdebian.html
27•robinpie•31m ago•0 comments

OpenSSH: "switch default key type generated to ECDSA NISTP384"

https://github.com/openssh/openssh-portable/commit/5b63da24d393ec5f08ec4371e09b692fc86587a8
421•throw0101d•6h ago•209 comments

Mistral Vibe: The coding agent for chonky codebases

https://mistral.ai/products/vibe/
168•doener•4h ago•60 comments

Google Play Integrity locks out alternative operating systems

https://consumerrights.wiki/w/Google_Play_Integrity_locks_out_alternative_operating_systems
671•DeepLogin•13h ago•305 comments

Why not rewrite ESLint in Rust?

https://github.com/eslint/eslint/discussions/21626
165•ksec•6h ago•161 comments

AI-Driven Scam Economy: Persuasion Knowledge, Consumer Vulnerability Empowerment

https://journals.sagepub.com/doi/10.1177/10949968261487442
66•rbanffy•5h ago•19 comments

OpenEMR Electronic Health Record Platform Under Siege

https://www.vulncheck.com/blog/openemr-under-siege
98•ersinesen•7h ago•31 comments

Reinforcement Learning from Verifiable Rewards (eBook)

https://rlvrbook.com/
67•jonbaer•5h ago•3 comments

Yes, P-256 is probably cooked

https://www.int08h.com/post/how-cooked-are-your-keys/
10•int08h•2h ago•1 comments

For random numbers on the GPU, encrypt a counter

https://klauria.tech/for-random-numbers-on-the-gpu-encrypt-a-counter/
20•evakhoury•3d ago•1 comments

Just know stuff, or how to achieve success in a machine learning Ph.D (2023)

https://kidger.site/thoughts/just-know-stuff/
47•learner_yearner•6h ago•15 comments

OpenAI mcpfs: MCP Filesystem Tools

https://github.com/openai/mcpfs
85•tosh•6h ago•46 comments

Congress Could Put Encrypted Messaging at Risk in Next Week's Defense Vote

https://www.eff.org/deeplinks/2026/12/congress-could-put-encrypted-messaging-risk-next-weeks-defe...
89•nickslaughter02•2h ago•14 comments

Show HN: Post-quantum secure boot for the ESP32 and Pico 2

https://github.com/microtun/microtun-boot
66•dpeckett•6h ago•21 comments

Show HN: Scene.p10node – A handbook of camera angles, shots and film technique

https://scene.p10node.org/en
107•pierreneter•3d ago•10 comments

Forced Colour Testing

https://www.24a11y.com/2026/forced-colour-testing/
18•robin_reala•2d ago•0 comments

FreeHand

https://microsoft.github.io/FreeHand/
293•jhack•14h ago•134 comments

Your Attention Costs $100k

https://tornikeo.com/your-attention-costs-100k/
891•tornikeo•9h ago•405 comments

BetterSPICE is a free SPICE circuit simulator

https://bspicesim.com/
227•zdw•14h ago•84 comments

Are Your Hardware Keys Still Safe? Steelmanning the NSA Panic

https://vpetersson.com/2026/12/05/are-your-hardware-keys-still-safe/
52•mvip•5h ago•27 comments

Show HN: Ibex a C++ engine for Polars and standalone DSL

https://ibexlang.org/polars.html
5•Bootvis•1h ago•2 comments

Exercise may increase muscle size primarily by reducing protein breakdown

https://www.cell.com/iscience/fulltext/S2589-0042(26)03807-1
122•gavinray•5h ago•32 comments

A growing number of heists target cargoes of kit for data centres

https://www.economist.com/united-states/2026/12/03/the-other-tech-smuggling-scheme
31•edward•5h ago•3 comments

13 Years' Data Fuels NASA's Prithvi AI Model

https://quantumzeitgeist.com/nasa-prithvi-ai-years-data/
4•rmason•2d ago•0 comments

California to require businesses to provide customers with human support

https://calmatters.digitaldemocracy.org/bills/b-29278
546•DeepLogin•11h ago•329 comments

Website where an animated cat generates your password

https://www.catpassword.com
169•thunderbong•5h ago•61 comments

What broke when I enabled PQC for Git and SSH

https://nordlenord.github.io/my-shared-notes/?id=f86ed9e6f4ac17225617717a5a14255f
192•tukHelix•15h ago•74 comments

Drop the FFN – A Column Attention Transformer for TinyStories

https://github.com/jiaminres/drop-the-ffn
29•gaojiamin•7h ago•2 comments

Making cement in seconds just needs a big microwave

https://arstechnica.com/science/2026/12/making-cement-in-seconds-just-needs-a-really-big-microwave/
101•amooe•3d ago•46 comments