April 26, 2008
4:42 am

Steven Hazel has created a pastebin called “codepad”, that runs your code, and works like a compiler or interpreter, not like the read-eval-print loop of an interactive interpreter prompt. If you want to print the value of an expression, you need to use your language's print command. If your language requires a "main" function, your program won't work in codepad without one.

How it works? Code execution is handled by a supervisor based on geordi. The strategy is to run everything under ptrace, with many system calls disallowed or ignored. Compilers and final executables are both executed in a chroot jail, with strict resource limits. The supervisor is written in Haskell.

Codepad

Source:→ TechSnack

Programming, Source Code, Web Service, Pastebin, Compiler, Interpreter

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« Google AdWords testing “URL display above Ad description”Daphne: Drag and drop process explorer & killer »
Feed Icon

Subscribe via RSS or email: