5 ms·
Codepad.org | a pastebin that executes code for you
- Shamiq 17y agoThis sounds interesting. Someone willing to give it a shot and tell us how it went?
- alnayyir 17y agoCreator 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.
- tsetse-fly 17y agoNo need to sensationalize, he's still around: http://news.ycombinator.com/threads?id=sah 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.
- TimothyFitz 17y agoFrom talking to him recently in person, he's just super busy with his startup, which is taking off: http://saucelabs.com/ http://saucelabs.com/
- alnayyir 17y agoSee? This is the response I wanted. :) Not downvotes. :(
- sah 17y agoThat'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!
- rwmj 17y agoNice, 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?
- alnayyir 17y agoThat might depend on whether or not he's been caching previous submissions. That and it sounds like a lot of hassle.
- tectonic 17y agoSaucelabs actually looks like just what I've been needing.
- 10ren 17y agoThe "Hello World Examples" for C was only 17 seconds old when I looked, so it seems there's some activity...
- harpastum 17y agoWorked well for a simple ruby sample [1]. I haven't tried anything complicated though. [1]http://codepad.org/HMPcd6Hk http://codepad.org/HMPcd6Hk
- xel02 17y agoI'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.
- TimothyFitz 17y agoSee also http://www.scriptlets.org/ 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.
- rayvega 17y agoReminds me of Google's "Lord of the REPLs": http://lotrepls.appspot.com/ http://lotrepls.appspot.com/ and their original interactive shell just for Python: http://shell.appspot.com/ http://shell.appspot.com/ (at least for the dynamic languages)
- kiba 17y agoCool! I stress test the server with an infinte loop: http://codepad.org/LZNJjLnM http://codepad.org/LZNJjLnM Seem like the obvious stuff was taken care as he said it will.
- MindTwister 17y agoSo yeah, loops kill the server, I want none of that...
- sah 17y agoLoops don't kill the server -- it runs them until they reach a timeout, and then aborts them.
- seventoes 17y agoSite isn't loading for me anymore. Either it got overloaded or someone figured out how to tie it up.. That was quick. Haha.
- sili 17y agoI wonder what is the reason that Java is not supported.
- scotth 17y agoJava 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.
- sah 17y agoThe 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.
- brown9-2 17y agoPerhaps supporting something like Groovy would make for an easier-to-implement compromise?
- maxwin 17y agoGreat job! just one small thing. For Python, the code editor doesn't allow you to type in the "tab" key.
- selven 17y agoI think that is <a href="http://wiki.python.org/moin/HowToEditPythonCode>intentional.</a> http://wiki.python.org/moin/HowToEditPythonCode>intentio...;
- selven 17y agoSorry, formatting screwed up. The link is http://wiki.python.org/moin/HowToEditPythonCode http://wiki.python.org/moin/HowToEditPythonCode, it says that using tabs is a bad idea in Python.
- nirmal 17y agohttp://codepad.org/MzI2fqg7 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.
- notaddicted 17y agoyou only need to check for divisors up to sqrt(i) http://codepad.org/VMSqtLbS http://codepad.org/VMSqtLbS
- nirmal 17y agoArghh, you are right. I wonder if this will make any difference in my Project Euler problem solutions.
- pudo 17y agoI want a little flag next to the output that tells me whether the program terminates. Can't be that hard. SCNR.
- baddox 17y agoThey could display a flag if the program HAS terminated, but there's no way to determine is a program will terminate.
- xsmasher 17y agoNonsense; the W005H compiler flag will handle this in gcc.
- sdp 17y agoGNU solved the halting problem[1]? [1]: http://en.wikipedia.org/wiki/Halting_problem http://en.wikipedia.org/wiki/Halting_problem
- xsmasher 17y agoYes. If you have about two grand, you can get someone to give you the codes too: http://www.markwick.eu/getacoder_alant.htm http://www.markwick.eu/getacoder_alant.htm Use discount code W005HC0M80x2 to get half off your project.
- z8000 17y agoWow this wouldb be very useful for many projects. Any chance of distributing the sources?
- clemesha 17y agoHere is a related project: http://codenode.org http://codenode.org