<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David Tavarez's Home at davidtavarez.com &#187; codepad</title>
	<atom:link href="http://www.davidtavarez.com/archives/tag/codepad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidtavarez.com</link>
	<description>Just another weblog...</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>codepad, an online compiler/interpreter and a simple collaboration tool</title>
		<link>http://www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/</link>
		<comments>http://www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 03:30:10 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[codepad]]></category>

		<guid isPermaLink="false">http://www.davidtavarez.com/?p=299</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What it is</strong></p>
<p>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.</p>
<p><strong>How it works</strong></p>
<p>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.</p>
<p>The web site is written in Python, using Pylons and SQLAlchemy.</p>
<p><strong>Compiler and interpreter versions</strong></p>
<p>Here are the compilers and interpreters codepad uses to execute code:</p>
<ul>
<li><strong>C</strong>: gcc 4.1.2</li>
<p>	flags: -O -fmessage-length=0 -fno-merge-constants -fstrict-aliasing -fstack-protector-all</li>
<li><strong>C++</strong>: g++ 4.1.2</li>
<p>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</p>
<li><strong>D</strong>: Digital Mars D Compiler v1.026</li>
<li><strong>Haskell</strong>: Hugs, September 2006</li>
<p>flags: -98</p>
<li><strong>Lua</strong>: Lua 5.1.3</li>
<li><strong>OCaml</strong>: Objective Caml version 3.10.1</li>
<li><strong>PHP</strong>: PHP 5.2.5</li>
<li><strong>Perl</strong>: Perl v5.8.0</li>
<li><strong>Python</strong>: Python 2.5.1</li>
<li><strong>Ruby</strong>: Ruby 1.8.6</li>
<li><strong>Scheme</strong>: MzScheme v372 [cgc]</li>
<li><strong>Tcl</strong>: tclsh 8.4.16</li>
</ul>
<p><strong>My Opinion</strong></p>
<p>I think this is great! <img src='http://www.davidtavarez.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  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 (<strong>simpleGallery</strong>).</p>
<p>Link</p>
<p>This is the link: <a title="codepad.org" href="http://codepad.org/" onclick="urchinTracker('/outgoing/codepad.org/?referer=');">codepad</a>, Try it!</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/" target="_blank" onclick="urchinTracker('/outgoing/www.facebook.com/share.php?u=http_//www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/&amp;referer=');"><img src="http://www.davidtavarez.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/" target="_blank" title="Share on Facebook" onclick="urchinTracker('/outgoing/www.facebook.com/share.php?u=http_//www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/&amp;referer=');">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.davidtavarez.com/archives/codepad-an-online-compilerinterpreter-and-a-simple-collaboration-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
