duckscript
gluon
duckscript | gluon | |
---|---|---|
3 | 14 | |
489 | 3,117 | |
- | 0.8% | |
8.2 | 7.6 | |
4 days ago | 2 months ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
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.
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.
gluon
- Gluon is a static, type inferred and embeddabble language written in Rust
-
Embeddable Scripting Language for Embedded Rust
A colleague of mine used https://github.com/gluon-lang/gluon with great success in our rust projects. Although it probably can't run in a no_std environment.
-
loxcraft: a compiler, language server, and online playground for the Lox programming language
Aside from these, if you want some inspiration for a production-grade language built in Rust, you might want to go through the source code of Starlark and Gluon.
-
Modules and Imports
Some languages, like Zig and Gluon have an import expression, where the imported symbols are under a local constant's name. Gluon then also supports destructuring, and Zig has had multiple proposals for years about it, none of which are canon. That is, code like this:
- Gluon: A New Node.js Framework to Create Desktop Apps
- Rock v0.2.1, a little native toy language I've made with Rust and LLVM.
- Gluon: A static, type inferred and embeddable language written in Rust
-
Fornjot – The world needs another CAD program
This should be a good use-case for rust-based scripting languages, I think.
I loosely followed a project of that kind a while ago, I don't quite remember if it was Gluon [0] or Dyon [1]. Not sure if these are still active, or if another competitor showed up in meantime.
___
[0] https://github.com/gluon-lang/gluon
[1] https://github.com/PistonDevelopers/dyon
-
Dynamic language extensions for Rust?
Or if you wanted something more Rust-native, you could try Gluon.
-
Which scripting languages work well embedded with Rust?
Gluon
What are some alternatives?
wasmi - WebAssembly (Wasm) interpreter.
toolkit-rust
BulbScript-for-Wiz-Lights - BulbScript is a simple scripting language for controlling Philips Wiz Lightbulbs using the pywizlight library.
Rhai - Rhai - An embedded scripting language for Rust.
rune - Rune is a programming language developed to test ideas for improving security and efficiency.
protect-endpoints - Authorization extension for popular web-frameworks to protect your endpoints
mun - Source code for the Mun language and runtime.
run_script - Run shell scripts in rust.
rune - An embeddable dynamic programming language for Rust.
pen - The parallel, concurrent, and functional programming language for scalable software development