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

Suggestion: Implement Expression2-like language via Wren #3

Open
BlindfoldedHuman opened this issue Jun 11, 2021 · 4 comments
Open

Comments

@BlindfoldedHuman
Copy link

Wren is a very minimalistic and performant scripting language, which uses classes instead of all that abstract table mud. It would be a perfect fit for creating more advanced code for contraptions in S&box.
You could maybe even branch off your own language, which improves upon Wren's functionality, making it more specific to your needs. And then have it be transpiled to Wren, and understood by parser written in C#, so that it can set the chip up.

Or, well, do whatever you want to. I'm just suggesting.

@Divran
Copy link

Divran commented Jun 11, 2021

Personally I'd prefer to use sandboxed C# (so it'd be like the rest of the game), or Lua (because Lua is great). But that's just personal preference.

In any case, which is used would depend on how well it can be sandboxed. Gmod has the problem where you can't really sandbox anything properly. If an ingame scripting language is added, we would want to be able to limit the amount of ram and cpu time each script is allowed to use, no matter what they do.

@thegrb93
Copy link
Contributor

Wren looks nice. Similar to lua in a lot of ways.

The Lua version is being developed here https://github.com/thegrb93/StarfallSBox . Sandboxed C# won't be possible.

@Divran
Copy link

Divran commented Jun 11, 2021

wait why won't sandboxing be possible

@thegrb93
Copy link
Contributor

There's no way to compile the C# right? You can only use the .NET functions allowed in the access-list.

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

3 participants