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

Feature Request: Scripting #709

Open
rowanfr opened this issue Dec 30, 2024 · 0 comments
Open

Feature Request: Scripting #709

rowanfr opened this issue Dec 30, 2024 · 0 comments

Comments

@rowanfr
Copy link

rowanfr commented Dec 30, 2024

We should have the file browser be able to run either some kind of integrated scripting language that's sandboxed (Lua, Rhai, WASM, etc...) or be able to execute arbitrary script. The main goal of this is to enable further functionality such as previewing arbitrary files (STL, OpenSCAD, etc...) with the possibility of enabling further functionality.

The easiest solution would be to allow for the execution of arbitrary scripts but that's also likely to cause the most errors and be the most vulnerable to malicious actors, so my 2 cents is that a sandboxed scripting language is likely for the best. Among other top contenders for scripting languages Lua is the most mature but has the worst syntax and language design decisions, Rhai is slower and less supported but has better syntax and language design decisions. A WASM runtime is the most complex to initially set up but could allow any language to compile arbitrary runtime scripts. All of the sandboxed languages as I understand have feature sets that can be arbitrarily enabled or disabled which could enable different permission levels for any given script. Further another language can be used for scripting, this is just what I understand to be the most popular at this point.

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

1 participant