Ask HN: 提问 HN:Rust 的“开发时间税”比“内存税”更划算吗?

2作者: m00dy7 个月前
最近一直在关注内存和云实例的现货价格。感觉“硬件便宜,随便用 Electron/JVM”的时代正在触及天花板。 我最近为一个副业项目将一个 Rust 二进制文件推送到生产环境,仅仅是因为我再也负担不起最便宜的 VPS 方案上 Node 应用所需的 RAM 了。与我通常编写的解释型/垃圾回收型代码相比,内存占用简直可以忽略不计。 现在还有其他人仅仅出于经济原因而优先考虑 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.