Hacker News new | ask | show | jobs
by vunderba 8 days ago
I have an example I share a lot.

I have about a dozen programs that are now close to ten years old, all running quietly in the background on my computer doing various tasks. I originally wrote all of them as JavaScript/Node programs. That was fine at the time, but the memory usage really adds up, since each one needs its own V8 runtime (anywhere from 50 to 100 MB per process).

I have basically zero familiarity with Golang, but I was able to use an agentic harness to run in the background and convert every single one of those scripts into Go equivalents. Because I've accumulated lots of before-and-after data, it was easy to confirm that the new versions matched the behavior and accuracy of the originals.

End Result: memory usage dropped from tens of megabytes per program to just a couple of megabytes each.