News for hackers. Stuff that matters.
Re:Codepad.org | a pastebin that executes code for you by TimothyFitz on Saturday October 10, 2009 @10:57PM (#874247)
See also http://www.scriptlets.org/.

Similar idea, but implemented on top of AppEngine and opensource. Designed to give you persistent URLs to run your code so you can use them as webhooks, etc.

Re:Codepad.org | a pastebin that executes code for you by rayvega on Sunday October 11, 2009 @12:43AM (#874311)
Reminds me of Google's "Lord of the REPLs": http://lotrepls.appspot.com/

and their original interactive shell just for Python: http://shell.appspot.com/

(at least for the dynamic languages)

Re:Codepad.org | a pastebin that executes code for you by pudo on Sunday October 11, 2009 @12:12PM (#874829)
I want a little flag next to the output that tells me whether the program terminates. Can't be that hard.

SCNR.

Re:Codepad.org | a pastebin that executes code for you by baddox on Sunday October 11, 2009 @12:21PM (#874840)
They could display a flag if the program HAS terminated, but there's no way to determine is a program will terminate.
Re:Codepad.org | a pastebin that executes code for you by xsmasher on Sunday October 11, 2009 @03:32PM (#875133)
Nonsense; the W005H compiler flag will handle this in gcc.
Re:Codepad.org | a pastebin that executes code for you by sdp on Sunday October 11, 2009 @11:31PM (#875904)
GNU solved the halting problem[1]?

[1]: http://en.wikipedia.org/wiki/Halting_problem

Re:Codepad.org | a pastebin that executes code for you by xsmasher on Monday October 12, 2009 @02:18AM (#876166)
Yes. If you have about two grand, you can get someone to give you the codes too: http://www.markwick.eu/getacoder_alant.htm

Use discount code W005HC0M80x2 to get half off your project.

Re:Codepad.org | a pastebin that executes code for you by Shamiq on Saturday October 10, 2009 @10:04PM (#874194)
This sounds interesting. Someone willing to give it a shot and tell us how it went?
Re:Codepad.org | a pastebin that executes code for you by xel02 on Sunday October 11, 2009 @12:15AM (#874293)
I've used it quite a bit to test out both C and PHP. For basic snippets its great.

I think it could be improved by tying in reference code. Perhaps mine the PHP manuals for sample code and put it in to allow editing.

Re:Codepad.org | a pastebin that executes code for you by harpastum on Saturday October 10, 2009 @11:11PM (#874262)
Worked well for a simple ruby sample [1]. I haven't tried anything complicated though.

[1]http://codepad.org/HMPcd6Hk

Re:Codepad.org | a pastebin that executes code for you by alnayyir on Saturday October 10, 2009 @10:09PM (#874199)
Creator of the site is AWOL, for the record. Compiler/interpreter versions aren't being updated and his blog has been left for dead for over a year.
Re:Codepad.org | a pastebin that executes code for you by TimothyFitz on Saturday October 10, 2009 @11:02PM (#874253)
From talking to him recently in person, he's just super busy with his startup, which is taking off: http://saucelabs.com/
Re:Codepad.org | a pastebin that executes code for you by sah on Sunday October 11, 2009 @01:17AM (#874350)
That's me. Sauce Labs has indeed been keeping me ridiculously busy. But codepad is my favorite side-project, and I don't mean to neglect it. I'll find a free weekend and update interpreter versions once things are less crazy here!
Re:Codepad.org | a pastebin that executes code for you by rwmj on Sunday October 11, 2009 @05:23AM (#874564)
Nice, thanks for supporting OCaml.

Could it autodetect the language using a few heuristics (or Bayesian analysis of existing submissions) instead of having the selection down the left hand side?

Re:Codepad.org | a pastebin that executes code for you by alnayyir on Sunday October 11, 2009 @02:29PM (#875025)
That might depend on whether or not he's been caching previous submissions. That and it sounds like a lot of hassle.
Re:Codepad.org | a pastebin that executes code for you by tectonic on Sunday October 11, 2009 @03:48AM (#874478)
Saucelabs actually looks like just what I've been needing.
Re:Codepad.org | a pastebin that executes code for you by alnayyir on Sunday October 11, 2009 @01:07AM (#874341)
See? This is the response I wanted. :)

Not downvotes. :(

Re:Codepad.org | a pastebin that executes code for you by tsetse-fly on Saturday October 10, 2009 @10:50PM (#874239)
No need to sensationalize, he's still around: http://news.ycombinator.com/threads?id=sah

Codepad is meant for simple snippets. I don't see anything wrong with the versions that he's currently providing.

Re:Codepad.org | a pastebin that executes code for you by 10ren on Sunday October 11, 2009 @12:45AM (#874315)
The "Hello World Examples" for C was only 17 seconds old when I looked, so it seems there's some activity...
Re:Codepad.org | a pastebin that executes code for you by nirmal on Sunday October 11, 2009 @11:31AM (#874787)
http://codepad.org/MzI2fqg7

  from itertools import *

  primes = (i for i in count(2) if all(imap(lambda x:i%x,xrange(2,i/2))))
My Python code for a generator expression to loop on prime numbers.
Re:Codepad.org | a pastebin that executes code for you by notaddicted on Sunday October 11, 2009 @02:40PM (#875039)
you only need to check for divisors up to sqrt(i)

http://codepad.org/VMSqtLbS

Re:Codepad.org | a pastebin that executes code for you by nirmal on Sunday October 11, 2009 @06:49PM (#875455)
Arghh, you are right. I wonder if this will make any difference in my Project Euler problem solutions.
Re:Codepad.org | a pastebin that executes code for you by kiba on Sunday October 11, 2009 @12:48AM (#874323)
Cool!

I stress test the server with an infinte loop: http://codepad.org/LZNJjLnM

Seem like the obvious stuff was taken care as he said it will.

Re:Codepad.org | a pastebin that executes code for you by MindTwister on Sunday October 11, 2009 @10:44AM (#874753)
So yeah, loops kill the server, I want none of that...
Re:Codepad.org | a pastebin that executes code for you by sah on Sunday October 11, 2009 @11:30AM (#874784)
Loops don't kill the server -- it runs them until they reach a timeout, and then aborts them.
Re:Codepad.org | a pastebin that executes code for you by sili on Sunday October 11, 2009 @09:14AM (#874703)
I wonder what is the reason that Java is not supported.
Re:Codepad.org | a pastebin that executes code for you by sah on Sunday October 11, 2009 @11:28AM (#874783)
The JVM is threaded, and threads will require a little bit of (careful!) work for the codepad security sandbox to support. I haven't had time for that project yet.
Re:Codepad.org | a pastebin that executes code for you by brown9-2 on Sunday October 11, 2009 @11:44AM (#874797)
Perhaps supporting something like Groovy would make for an easier-to-implement compromise?
Re:Codepad.org | a pastebin that executes code for you by scotth on Sunday October 11, 2009 @11:03AM (#874762)
Java isn't really appropriate for something like this. You could, I suppose, paste the entire main class into the text box and run it that way.

If Java-like syntax is desired (although I can't imagine why it would be), BeanShell would be the way to go.

Re:Codepad.org | a pastebin that executes code for you by maxwin on Sunday October 11, 2009 @11:00AM (#874759)
Great job! just one small thing. For Python, the code editor doesn't allow you to type in the "tab" key.
Re:Codepad.org | a pastebin that executes code for you by selven on Sunday October 11, 2009 @01:18PM (#874922)
Re:Codepad.org | a pastebin that executes code for you by selven on Sunday October 11, 2009 @01:19PM (#874928)
Sorry, formatting screwed up. The link is http://wiki.python.org/moin/HowToEditPythonCode, it says that using tabs is a bad idea in Python.
Re:Codepad.org | a pastebin that executes code for you by clemesha on Sunday October 11, 2009 @03:11PM (#875100)
Here is a related project: http://codenode.org
Re:Codepad.org | a pastebin that executes code for you by z8000 on Sunday October 11, 2009 @01:24PM (#874936)
Wow this wouldb be very useful for many projects. Any chance of distributing the sources?
Re:Codepad.org | a pastebin that executes code for you by seventoes on Sunday October 11, 2009 @04:08AM (#874501)
Site isn't loading for me anymore. Either it got overloaded or someone figured out how to tie it up.. That was quick. Haha.