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

Embed RHAI as a scripting language for Opencascade-rs #187

Open
DanielJoyce opened this issue Nov 28, 2024 · 1 comment
Open

Embed RHAI as a scripting language for Opencascade-rs #187

DanielJoyce opened this issue Nov 28, 2024 · 1 comment

Comments

@DanielJoyce
Copy link

It's lightweight

It would allow for quick reloading

It's easy to integrate

It would skip the need for wasm for now

https://rhai.rs/book/

Other options would be Dyon and Gluon, but rhai is simpler, and easier to integrate. Would be possible to write some tests in rhai to script checking things.

@bschwind
Copy link
Owner

Thanks for the suggestion. I took a look at Rhai but I'm not sure I'm sold on it for this project.

I would like to keep the modeling code in Rust as much as possible, because of the excellent tooling and the ergonomics that are provided by things like iterators and enums.

I'm also not in a rush to get it implemented as quickly as possible. The WASM story is getting better so I'm still optimistic on that path. If you have a need for integrating the functionality of this crate with a scripting language, take a look at DSLCAD which is built on top of this crate. I think there's room for several different language options but for me personally I'm going to keep things in Rust/WASM for the foreseeable future.

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

No branches or pull requests

2 participants