Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded dynamic language for scripts #347

Open
kazimir-malevich opened this issue Aug 13, 2021 · 8 comments
Open

Embedded dynamic language for scripts #347

kazimir-malevich opened this issue Aug 13, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@kazimir-malevich
Copy link
Contributor

What would be your opinions on using a Lua bridge to Rust in order to write the load test scripts in Lua This I feel may gain some traction to the tool, is this is instead possible?

@jeremyandrews
Copy link
Member

This is not on my personal roadmap, but I'd certainly accept PRs working toward this as an option.

@jeremyandrews jeremyandrews added the enhancement New feature or request label Sep 16, 2021
@kazimir-malevich
Copy link
Contributor Author

kazimir-malevich commented Apr 10, 2022

There is some options here, and we'd probably want a switch to code in Rust or another mainstream dynamic language.
https://arewegameyet.rs/ecosystem/scripting/
https://www.hobofan.com/rust-interop/
https://areweextendingyet.github.io/

However with the traction Rust is getting and type inference is it worth it? But you got to understand that some users will be testers and not coders in static languages.

@kazimir-malevich kazimir-malevich changed the title Lua bridge to Rust Embedded dynamic language for scripts Apr 10, 2022
@kazimir-malevich
Copy link
Contributor Author

rhai has a major version and is "similar to JavaScript+Rust"

@kazimir-malevich
Copy link
Contributor Author

kazimir-malevich commented May 4, 2022

I am having second thoughts about this and thinking of closing. The Rust compiler, rust-analyzer, formatter are extremely compelling. (and I am running in Vim). But the GH stars should not be in the hundreds, but thousands as in my opinion this is the best and most comprehensive load tool out there. WDYT @jeremyandrews? Maybe you are just too far in the future!!!

@jeremyandrews
Copy link
Member

I also agree that the Rust tools are compelling, but I think we should leave this issue open as it's a frequent comment/request that we should support a simpler language for writing tests. While it's still not on my personal roadmap, I'd not be opposed if someone contributed this as an optional Goose feature.

@kazimir-malevich
Copy link
Contributor Author

kazimir-malevich commented May 4, 2022

OK. I'll look into this which will be a spike in Rhai against httpbin.org.

@kazimir-malevich
Copy link
Contributor Author

kazimir-malevich commented May 4, 2022

Maybe AssemblyScript with wasm. This is not going to be trivial.

@jeremyandrews
Copy link
Member

That certainly sounds interesting. It would be ideal to explore adding this as a separate project with a Goose dependency -- as ultimately it could be nice to support more than one embedded dynamic language. (Similar to how the goal is to split out Reqwest and to support multiple rust HTTP clients, as well as other protocols.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants