by apatheticonion · 1mo ago · 0 comments
I love alternatives to the big players but why is everything written in TypeScript or Python and takes up a gigabyte of ram.
I don't want to `npm install -g` something, just give me a single statically compiled binary that does the thing.
AI lowers the barrier of entry to Rust to virtually 0. As a side experiment, I have been rewriting Codex Desktop in Rust using native desktop APIs (gpui) and have made a cross platform copy that works on Windows, Linux, and MacOS. It runs at 120+fps and uses 40mb of ram. It's not that hard.
In a previous life, before the layoff times, I was working on a FaaS platform. If you need plugins, embed v8, quickjs or wasmtime/wasmer/etc.
People are acting like AI didn't eat up all the RAM on Earth. I had to sell my left kidney for the 8gb ram upgrade in my MacBook
And when a Linux distro bumps a dependency that Node requires on without updating Node to use the updated dependency, then Pi doesn't start.
I find Typescript more approachable in many ways like compilation speed, extensibility, disk space used by cargo, LLM knowledge, and most devs I know already have node or bun installed anyway but not cargo, including me.
The speed in which pi can modify and extend itself is part of the appeal to me.
This is more about demanding more of the big software vendors than it is about making an argument for the general software developer to write programs in Rust or Go.
We are talking about trillion dollar companies with highly paid engineers and unlimited token budgets.
As someone who has been writing TypeScript since the beta and started writing Rust professionally only 5 years ago, I'm about as productive in Rust as I am in TypeScript - so if I were distributing software, I'd want to ensure the end user has the best possible experience and that's hard to achieve with the node/python ecosystem.
"Run this bash script to install my CLI tool" behind the scenes it downloads a full copy of Node.js, installs the npm dependencies, add executable scripts for the entry points, updates PATH. It takes almost a second to start up, has no threads and uses way more memory than is necessary. Extend that to Electron applications which not only bundle Chromium, but also bundle Node.js - that's two v8 engines running and a process that starts with a memory footprint of almost a gigabyte.
Compare that to just downloading a portable self-contained single executable and running it. No package manager, no install scripts - just double click.
The end user is not installing cargo, compiling, or anything - they just run the binary.
It's minimal and intended to be modified.
When was the last time you patched Pi / OpenCode / Claude dist or source code before running it?
Most people use plugins, and native apps have no issues with that.
I am really hoping a combination of the RAM-pocalypse and AI coding will result in less bloat. At some point ...
Same reason everything's an electron app now. First mover matters to the makers and to the consumers more than performance and attention to those details.
Written in Nim. Unixy scrollback but cross plaform. Tested for token efficiency.
Not really. It lowers it, sure. By a lot even. But you still have the system requirement for compilation and ecosystem to deal with.