ulox icon indicating copy to clipboard operation
ulox copied to clipboard

Implement 'Platform' library

Open stevehalliwell opened this issue 3 years ago • 3 comments

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 avatar Oct 11 '21 07:10 stevehalliwell

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 avatar Jan 26 '22 21:01 stevehalliwell

initial Platform interface

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

stevehalliwell avatar Jun 06 '22 21:06 stevehalliwell

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

stevehalliwell avatar Aug 07 '22 21:08 stevehalliwell