Live data from Hacker News

Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

ideone.com

21–29 of 29 posts

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#21

I tried to run this: public class Foo { public static void main(String[] args) { System.out.println("foo"); } } And got an error "class Foo should be in a file named Foo.java". Sweet! Syntax highlighting doesn't seem to do anything. Isn't it a little grand to be calling this an IDE?

Don't specify the class as public. Then you can name it whatever you want.

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#22
post #2

It has a bash interpreter. My first thought was "I wonder if anyone's tried fork bombing it" (no, I have not and will not try, that would be rude).

I fork bombed it. This is the output:

    result: time limit exceeded	     time: ∞    memory: 2720 kB     signal: 9 (SIGKILL)

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#25
post #3

Sad to see the "recent code" mostly shows a bunch of "Hello, world!" and no one trying to push the limits.

It's not sad. As a new service, people are going to check to see if it works at all before spending time doing something more complex.

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#26
post #5

Competition is good and all that, but from my vantage point it seems like a slow-loading and ad-ridden version of codepad.org: http://codepad.org/ Edit: That said, ideone does have an API.

Beside API, after registration at Ideone you can tag your codes (quite flexible, I guess), switch off ads + some more features.

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#27
After reading about a bug where, in C, a comment line ended with a backslash leading next line to be commented to, I tried it in your ide and the syntax highlighting does not reflect this. (details of the bug here : http://news.ycombinator.com/item?id=2919511)

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#28
post #14

The output page does look pretty interesting, specially for debugging code collaboratively as one can share the output URL. The page contains execution time, errors and the code, very well arranged. That said, 'print 5' in python took 11 seconds.

Yes, collaborative debugging might be the case to use ideone. You might for example want to provide the input data to someones code to show up bugs in it.

Re: Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters

#29
post #13

I chose C# and it doesn't compile this: var s = "Hello World!";

Perhaps because it compiles programs and not expressions? Try wrapping it in a Main method and see.

Please use "insert template" and "insert sample" to start with working code.
Post reply on HN