问HN: “Rust税”(开发时间)是否比“RAM税”更便宜?
最近我一直在关注内存和云实例的现货价格。感觉“硬件便宜,可以随便用Electron/JVM”这个时代正面临瓶颈。我最近将一个Rust二进制文件推向生产环境,完全是因为我再也负担不起最低配置VPS上Node应用所需的内存了。与我通常编写的解释型/垃圾回收的代码相比,Rust的内存占用几乎可以忽略不计。
现在还有其他人出于经济原因优先选择Rust(或Zig/C++)吗?感觉缺乏垃圾回收器的问题越来越少与性能有关,而更多的是与纯粹的单位经济学相关。
查看原文
I've been watching the spot prices for memory and cloud instances lately. It feels like the era of "hardware is cheap, throw Electron/JVM at it" is hitting a wall.
I recently pushed a Rust binary to production for a side project simply because I couldn't afford the RAM for a Node app on the cheapest VPS tier anymore. The memory footprint is practically a rounding error compared to the interpreted/GC'd stuff I usually write.
Is anyone else prioritizing Rust (or Zig/C++) purely for economic reasons now? It feels like the lack of a Garbage Collector is becoming less about performance and more about pure unit economics.