TryItOnline / tryitonline

The Try It Online family of online interpreters.
https://tryitonline.net
MIT License
539 stars 58 forks source link

added Pyret, Nikud and Ursala #71

Closed stasoid closed 5 years ago

stasoid commented 5 years ago

I was advised to use pyret-npm package for Pyret on TIO.

-q hides compilation messages, I used this in the wrapper. Also, --checks none can be used to remove "The program didn't define any tests." message, but it is not recommended, so I don't use it. Hello world button is frequently used to start a new program, so I don't use --checks none for Hello world either.

Quoting the answer:

In the spirit of enabling easy testing, which is a key design point in Pyret, I would recommend leaving the checks on, since we encourage generally running in testing mode most of the time (essentially all of the time for students). My choice for something like TIO would probably be to use the -q option to hide compiling messages but keeping check and stdout, so that programs using "check: ... end" or "examples: ... end" work as shown in the documentation.

DennisMitchell commented 5 years ago

Pyret's client-server compiler has multiple issues with the current sandboxing rules. I'm not sure if there's a way around that.

stasoid commented 5 years ago

Can you give some details, so I can report them to language creators? They seem interested in adding Pyret to TIO too. At least I would be able to explain why it can't be added.

DennisMitchell commented 5 years ago

It's trying to read an SSL certificate and to connect to a Unix domain socket.

Both may be possible in the future—I'm working on a less restrictive sandbox, but I can't allow access to one cert and one socket without allowing access to all of them...

DennisMitchell commented 5 years ago

https://tio.run/#nikud and https://tio.run/#ursala are live. Thanks!

I've unlisted Pyret for now.

stasoid commented 5 years ago

Thank you.