Hacker News new | ask | show | jobs
by benatkin 6149 days ago
Sorry. You assumed I was curious about PasteBins because I'm curious about sites that let you run code on them. Now, it turns out that I'm slightly curious about PasteBins. I think they're slightly more interesting than URL shorteners. They're not nearly as interesting to me as sites that let you run code on them, though.

FriendPaste is neat, but it's not as daring as letting people run a bunch of different languages on your server like CodePad does. I imagine one reason it's not open source is that they're relying partly on security through obscurity. I would be if I were running such a site.

BTW, I did check it out more in depth, and its python interpreter runs "import datetime" and "print datetime.datetime.now()" fine, but gives an error than an md5 library is missing when you try to run "import urllib2". So it supports some standard modules but not all.

1 comments

I will definitly have a look on this feature. dunno how it can be generalized to all languages though.
I'd like to see a JVM version that could run server-side JavaScript and Clojure. From what I hear, it might be easier to sandbox.

I'd also like to see one that runs client-side JavaScript, but displays a warning and requires you to click to run it until it has been marked as not malicious.