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

Gluon or WASI as scripting language #1189

Open
ShalokShalom opened this issue May 7, 2019 · 9 comments
Open

Gluon or WASI as scripting language #1189

ShalokShalom opened this issue May 7, 2019 · 9 comments

Comments

@ShalokShalom
Copy link

Gluon is a statically type inferred scripting language which is embeddable in Rust:

https://github.com/gluon-lang/gluon

This is potential a superb language to write some expansions, imho

@cmyr
Copy link
Member

cmyr commented May 7, 2019

This could definitely be something to explore, I really haven't looked into this much.

My current hunch is that the future of plugins is going to be WASM/WASI, and we've been sort of resistant to bring in a scripting language, but if someone wants to explore that they're very welcome. :)

@ShalokShalom
Copy link
Author

Yeah, I think its awesome that you can call Rust functions directly. :D

@erlend-sh
Copy link

My current hunch is that the future of plugins is going to be WASM/WASI

Amethyst and other Rust gamedev projects are also looking into this:

amethyst/amethyst#1729
feather-rs/feather#106 (comment)

@MarkMcCaskey
Copy link

@cmyr I'd be happy to help out someone interested in doing this! At Wasmer we're currently actively working on improving our support for the embedded use case. As part of that we're working with projects to see where the pain points are so that we can fix them.

Things are moving fast in this area, especially if you want to use WASI, but we do have an in-development API for the embedded WASI use case with features like creating virtual files that implement arbitrary logic via some traits and swapping out files. In this example we create a logging wrapper and redirect writes to stdout through it.

@ShalokShalom ShalokShalom changed the title Gluon as scripting language Gluon or WASI as scripting language Sep 9, 2019
@cmyr
Copy link
Member

cmyr commented Nov 3, 2019

@MarkMcCaskey sorry, missed this comment!

xi is on the back burner right now, but I am potentially interested in a plugin mechanism for runebender; I'll definitely keep this in mind, I'm very curious.

@Cogitri
Copy link
Member

Cogitri commented Nov 5, 2019

I explored this for Tau too since I wanted to add hooks to it (e.g. run save.sh script during save, e.g. to run cargo fmt when saving a rust file). It'd be nice that Gluon is platform agnostic, but I'd personally prefer just using SH due to it using a simpler syntax and more people knowing it.

@ShalokShalom
Copy link
Author

SH has a simpler syntax as Gluon?

@Cogitri
Copy link
Member

Cogitri commented Nov 6, 2019 via email

@ShalokShalom
Copy link
Author

emacs is more well known as Xi

So by that standard..

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

5 participants