Running Pugs Across Your Browser #
The Pugs team (more specifically: Wim Vanderbauwhede) has an online REPL up for trying out Perl 6! Run Perl 6 Now gives you a Pugs shell over CGI. Hopefully this means some of the tools I’ve worked on (ruby.js, ruby.sh) can be redone for learning Pugs sans installation. From the looks of it, the code uses a very similar query string, so I’ll bet the colory prompt could be overlaid pretty easily as well.
MenTaLguY
I guess this means Pugs has a sandboxing implementation in place? Any ideas we can steal?
Danno
Awww, is down.
why
Oh blam.
lukfugl
back up, at least for the moment…
<=>
MenTaL: Pugs is written in Haskell, which is trivial to sandbox—just kill the IO type.
Daniel Berger
I think I took it down way too easily. Needs work.
MenTaLguY
Spaceship-Man: that would be very well sandboxed indeed. Make writing an interactive REPL (CGI or otherwise) a bit difficult, though…
AudreyT
The sandboxing is based on the really simple mechanism of marking primitive function/methods as either “is safe” or “is unsafe”.
Earlier on I did consider a full sandboxing by running things under the STM monad (you can still do that yourself via “atomically {...}”, but some limited IO (with the standard input/output) here is actually safe… :-)