28

Does anyone know of a good online compiler/runtime (for C++, Java, Python, ObjC etc.) that I can access on the web?

What I'm looking for is something that would allow me to type in a program in a web form and to run the program and see the results online.

(Let's not get into the why for now. Suffice it to say for the moment that I don't always have access to a compiler/runtime, and firing up an IDE is just overkill for testing out some code snippets)

I know of codepad.org -- but I'm looking for something better.

Debajit
  • 46,327
  • 33
  • 91
  • 100
  • 1
    Related thread: http://stackoverflow.com/questions/523568/any-online-compiler-you-know-for-c-or-other-languages – CTT Feb 19 '09 at 23:20
  • 16
    How is "how do I do coding on someone else's computer?" NOT programming related? – Zack The Human Feb 20 '09 at 00:27
  • It's random theft of services. If they want help with algorithm, data structure, language or library, that's fine. But "how do I code on the web?" is akin to "help me buy the 'best' programming laptop." – S.Lott Feb 20 '09 at 01:30
  • 8
    Why is it "random theft of services" to use a web service someone has set up for that purpose? – Snake Plissken Jun 12 '10 at 00:39
  • 1
    I don't know if it's better, but [rextester](http://rextester.com/runcode) – ren Mar 07 '12 at 22:08

9 Answers9

40

ideone is something better but what particular advence do you need?

lumen
  • 421
  • 1
  • 4
  • 2
21

http://codepad.org/

codepad.org is an online compiler/interpreter, and a simple collaboration tool. Paste your code below, and codepad will run it and give you a short URL you can use to share it in chat or email.

Languages:

C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl

hasen
  • 161,647
  • 65
  • 194
  • 231
  • 9
    How on earth can this be marked as answer?? The question explicitly mentions Java, which is NOT included in the languages supported by codepad.org, and the OP expliciely says he already knows codepad.org and needs something better... – matteo Jul 22 '12 at 11:46
  • I didn't notice the OP already knows about codepad until after I wrote the answer - so my bad on that one – hasen Jul 23 '12 at 00:21
  • codepad.org seems to be dead for some days, do you have any news about it? – nicolallias Apr 09 '19 at 13:43
3

Right now, you can use http://sagenb.org. This is a free open source online Google Docs-like programming notebook environment, which I provide (thanks to a generous grant from the National Science Foundation). Once you create an account and create a new worksheet, click on the box (fourth from left) labeled "Sage" and change it to Python. Now all the code you type in is evaluated using Python. The main drawback is that there are well over 30,000 users of this resource, so sometimes it is slow.

William Stein
  • 2,465
  • 1
  • 18
  • 12
3

I found this online java compiler and runner. It works in realtime and also with threads. Amazing ! http://www.browxy.com

pablo
  • 51
  • 1
2

Here is an open source one: http://codenode.org, which supports Python and Sage well, but also aims to support other languages like Ruby, R, etc. Probably the best description of Codenode is "Google docs combined with Mathematica Notebooks".

clemesha
  • 1,908
  • 2
  • 12
  • 12
2

For C++, you could try CodeControl, Comeau or the one from code.vcer.net.

ISW
  • 11,110
  • 3
  • 25
  • 27
2

This one is good for ruby.

regan
  • 741
  • 5
  • 4
1

CodeIDE is an ok one: http://www.codeide.com/

Gavin Bunney
  • 1,240
  • 1
  • 12
  • 12
1

You can practice your SQL here.

rbrayb
  • 46,440
  • 34
  • 114
  • 174