Comment by IshKebab
17 hours ago
I wish there was something better than Lua and just as "obvious" a choice. Static types, real arrays, zero-based indexing, etc.
Closest thing I've seen so far is Roto: https://roto.docs.nlnetlabs.nl/en/stable/index.html
Basically everything about this looks great - Rust-style syntax, static type checking, sane type system, easily embedded. The only slightly odd things are that it has built in types for IP addresses, AS numbers, and `filtermap`. But I guess you can just ignore those if you don't need them.
The language is primarily used by Rotonda, the composable, programmable BGP routing engine.
Not odd to have those data types at all…
Yeah it makes sense for their use case. I meant it was an odd thing to have if you were using it as a general purpose language like Lua.
Better to let specific domains define their own data types than favor one in the language.