hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Running Pugs Across Your Browser #

by why in cult

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.

said on 16 Oct 2006 at 13:34

I guess this means Pugs has a sandboxing implementation in place? Any ideas we can steal?

said on 16 Oct 2006 at 14:31

Awww, is down.

said on 16 Oct 2006 at 14:42

Oh blam.

said on 16 Oct 2006 at 14:54

back up, at least for the moment…

said on 16 Oct 2006 at 17:58

MenTaL: Pugs is written in Haskell, which is trivial to sandbox—just kill the IO type.

said on 16 Oct 2006 at 18:21

I think I took it down way too easily. Needs work.

said on 16 Oct 2006 at 18:39

Spaceship-Man: that would be very well sandboxed indeed. Make writing an interactive REPL (CGI or otherwise) a bit difficult, though…

said on 16 Oct 2006 at 19:09

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… :-)

11 Jul 2010 at 21:03

* do fancy stuff in your comment.

PREVIEW PANE