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

Implement 'Platform' library #78

Open
stevehalliwell opened this issue Oct 11, 2021 · 3 comments
Open

Implement 'Platform' library #78

stevehalliwell opened this issue Oct 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@stevehalliwell
Copy link
Owner

Single library that provides all access to things that might actually be dangerous for the language to do.

For our starting purposes this is just file read and write.

Insprired by Roc platforms, which are inspired by Deno.

@stevehalliwell stevehalliwell added the enhancement New feature or request label Oct 11, 2021
@stevehalliwell
Copy link
Owner Author

this would subsume the print func.

Could implement as readonly table that is hardwired fallback in get global. That way child vms can easily not have the same platform access.

@stevehalliwell
Copy link
Owner Author

stevehalliwell commented Jun 6, 2022

initial Platform interface

  • string readfile(string)
  • writefile(string, string)
  • print(string)
  • cout, cerr, clog (don't actually want to need these)

@stevehalliwell
Copy link
Owner Author

Should scriptlocator and platform share the same access and restrictions. Would mean if not given read access cannot build queue files

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

1 participant