4 ms·
> I have done this with Lua Do you by chance work at Cloudflare, who has migrated away from Lua to Rust? Curious to hear observations on productivity hit goin
by alberth 1y ago
> I have done this with Lua
Do you by chance work at Cloudflare, who has migrated away from Lua to Rust?
Curious to hear observations on productivity hit going from Lua to Rust.
- pornel 1y agoIn Cloudflare's case, Rust is much more productive. Rust modules can handle any traffic themselves, instead of a split between native code and Lua that is too slow to do more than config (Lua is relatively fast for a scripting language, but on the critical path it was a "peanut butter" slowdown adding latency). At the size and complexity of a server serving 20% of the Web, Lua's dynamic typing was scary. Modules in Rust can enforce many more requirements. Rust's solid dependency management also helps share implementations and config logic across modules and even different products, instead of everything having to go literally through the same server. https://blog.cloudflare.com/20-percent-internet-upgrade/ https://blog.cloudflare.com/20-percent-internet-upgrade/
- alberth 1y ago> instead of a split between native code and Lua that is too slow to do more than config In case you’re not aware, Cloudflare ran on LuaJIT (not just for config) until not that long ago. https://news.ycombinator.com/item?id=23856875 https://news.ycombinator.com/item?id=23856875
- steveklabnik 1y agoFive years ago is a pretty long time, and kornel does (or did) work at Cloudflare.