codepad, an online compiler/interpreter and a simple collaboration tool

What it is

codepad.org is an online compiler/interpreter, and a simple collaboration tool. It's a pastebin that executes code for you. You paste your code, and codepad runs it and gives you a short URL you can use to share it. Paste the URL into chat or email to get help or to show someone how to do something. Or just try things out when you don't have an interpreter handy. It works well on many phones.

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.

The web site is written in Python, using Pylons and SQLAlchemy.

Compiler and interpreter versions

Here are the compilers and interpreters codepad uses to execute code:

  • C: gcc 4.1.2
  • flags: -O -fmessage-length=0 -fno-merge-constants -fstrict-aliasing -fstack-protector-all

  • C++: g++ 4.1.2
  • flags: -O -std=c++98 -pedantic-errors -Wfatal-errors -Werror -Wall -Wextra -Wno-missing-field-initializers -Wwrite-strings -Wno-deprecated -Wno-unused -Wno-non-virtual-dtor -Wno-variadic-macros -fmessage-length=0 -ftemplate-depth-128 -fno-merge-constants -fno-nonansi-builtins -fno-gnu-keywords -fno-elide-constructors -fstrict-aliasing -fstack-protector-all -Winvalid-pch

  • D: Digital Mars D Compiler v1.026
  • Haskell: Hugs, September 2006
  • flags: -98

  • Lua: Lua 5.1.3
  • OCaml: Objective Caml version 3.10.1
  • PHP: PHP 5.2.5
  • Perl: Perl v5.8.0
  • Python: Python 2.5.1
  • Ruby: Ruby 1.8.6
  • Scheme: MzScheme v372 [cgc]
  • Tcl: tclsh 8.4.16

My Opinion

I think this is great! :P I created my account and I'm testing it. This tool is very useful to check some code quickly and create small projects. I think I'm going to allocate my new small project there (simpleGallery).

Link

This is the link: codepad, Try it!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]