|
|
|
|
|
by strenholme
42 days ago
|
|
Agreed, it made a lot more sense to write MaraDNS in C in 2001 though. The main advantage of writing in C over Rust here in 2026 is that C has two different Lua interpreters, and there isn’t a port of Lua to Rust yet; [1] yes, there are ways to use the C version of Lua in Rust, but that’s different. If I were to write a new server today, I could very well write it in Go, then use GopherLua for the Lua engine: https://github.com/yuin/gopher-lua Although, even here, the advantage of C is that I could increase performance by using LuaJIT: https://luajit.org/luajit.html [1] If I were to use Rust, I would consider using Rune as an embedded language as per https://rune-rs.github.io/ |
|