Remix.run Logo
▲ code_biologist a day ago

I agree, but Lua is the singular language that might just maaaybe be the exception to that sometimes.

If you need to access the data from a different language, you just load Lua in the other language.

▲aa-jv a day ago | parent | next [-]

Many non-Lua folks don't understand this point: once you've got it in Lua you can put it in anything, anywhere.

▲strenholme 19 hours ago | parent [-]

One nice thing about Lua is that there are Lua implementations in Rust, C, C#, Go, Javascript, Kotlin, and there’s even a compiler which converts Lua scripts in to native machine code.

▲tcfhgj a day ago | parent | prev [-]

While I am even doing that in a project if mine, I'd rather not load Lua and instead just run `serde_json::from_str()` or similar.

▲chii 21 hours ago | parent [-]

using json is an option (which is mentioned in the article). But lua gives you some features that json cannot match - it's powerful, may be too powerful tbh.