hlua
duckscript
hlua | duckscript | |
---|---|---|
3 | 3 | |
496 | 489 | |
- | - | |
0.0 | 8.2 | |
over 4 years ago | 5 days ago | |
C | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hlua
-
Are there any embeddable languages in rust?
The C++ language doesn’t embed Lua, various game engines (and other applications) written in C++ do, using an API binding that provides a C++ wrapper around Lua’s underlying C API. Well there are Lua bindings for Rust as well (as a randomly selected example see hlua), and there are bindings for several other languages as well (like Python).
-
Rust's interface to the Lua programming language is called 'mlua'. not Lust. This should get fixed.
There's an older binding called hlua https://github.com/tomaka/hlua
-
Does rust have function works like eval?
hlua or rlua are what you want for Lua, rust-cpython or PyO3 for Python, rutie for Ruby, and possibly deno_core for JavaScript.
duckscript
- RustPython
-
New alternative for clap (declarative, basic and simple)
Currently i'm using it in cargo-make but will also use it later to parse args for duckscript commands.
-
Are there any embeddable languages in rust?
At it's most basic you could make a really simple interpreter by just doing such a thing, and there is essentially already such a simple language like that built for/in rust called Duckscript (rust has a surprisingly large number of little embedded languages), and that would be completely and entirely sufficient for many purposes, though if you want speed then you'll need to JIT or AOT the code, which is why wasm is so handy as you can interpret or JIT (or even AOT it with wasmer) without the much larger overhead of a, for example, javascript or java embedded runtime.
What are some alternatives?
Rhai - Rhai - An embedded scripting language for Rust.
gluon - A static, type inferred and embeddable language written in Rust.
rust-lua - Safe Rust bindings to Lua 5.1
wasmi - WebAssembly (Wasm) interpreter.
rlua - High level Lua bindings to Rust
BulbScript-for-Wiz-Lights - BulbScript is a simple scripting language for controlling Philips Wiz Lightbulbs using the pywizlight library.
td_rlua - Zero-cost high-level lua 5.3 wrapper for Rust
rune - Rune is a programming language developed to test ideas for improving security and efficiency.
rust-lua53 - Lua 5.3 bindings for Rust
mun - Source code for the Mun language and runtime.
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
run_script - Run shell scripts in rust.