3 ms·
Embedded languages are not for replacing the outer language with better syntax or whatever. They are for embedding; which in this context means allowing for ext
by Manishearth 10y ago
Embedded languages are not for replacing the outer language with better syntax or whatever. They are for embedding; which in this context means allowing for extensibility using an often-dynamic language which can still talk to the main one. It's a common technique used for creating game modding APIs and such. Lua is historically the language of choice here, and sometimes python. I believe rust has an embedding api for lua somewhere, but having new Rust-specific projects like gluon and rhai is always nice.
The existance of gluon tells you that people like Rust enough that they want to use it for something requiring embedding (these are generally large applications). Or they just want to have fun inventing a language and chose rust as the implementation lang. Neither reflect poorly on rust.