logoalt Hacker News

staticassertionyesterday at 1:16 PM3 repliesview on HN

I had a script in another language. It was node, took up >200MB of RAM that I wanted back. "claude, rewrite this in rust". 192MB of memory returned to me.


Replies

zozbot234yesterday at 3:03 PM

Solving the big RAM shortage one prompt at a time.

ricardobeatyesterday at 4:26 PM

This is sad to see. Node was originally one of the memory efficient options – it’s roots are solving the c10k problem. Mind sharing what libraries/frameworks you were using?

show 1 reply
vunderbayesterday at 8:35 PM

I used to have a bunch of bespoke node express server utilities that I liked to keep running in the background to have access to throughout the day but 40-50mb per process adds up quickly.

I’ve been throwing codex at them and now they’ve all been rewritten in Go - cut down to about 10mb per process.