Hacker News new | ask | show | jobs
by strenholme 29 days ago
This looks interesting, and it’s good to have alternatives to Lua in the embedded space, although MiniScript is an awful lot like Lua on first glance (e.g. using keywords instead of brackets to end loops and conditionals).

The things which slightly rub me the wrong way:

• C++ instead of C. There’s still places where one has a pure C language project.

• cmake instead of Posix-compatible make. This makes the project depend on a non-standardized tool with only one implementation.

I’m curious what advantages MiniScript has over Lua, though—when I had the problem of “let’s use a tiny embedded language” [1], Lua5.1 made the most sense to me:

• No need to worry about a Javascript, Moonscript, Kotlin, or Go language port—people have already made all of those. [2]

• People already made libraries I needed (e.g. a “spawner” library so I could run Stockfish from my Lua script)

• It’s a standard embedded scripting language which people are more likely to already know (e.g. people making Roblox games already know Lua)

• It compiles in a pure C environment.

[1] https://samboy.github.io/MaraDNS/coLunacyDNS/

[2] It would be nice to have a Rust port of Lua