News for hackers. Stuff that matters.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by benhoyt on Wednesday August 24, 2011 @09:31AM (#2920591)
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.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by Goronmon on Wednesday August 24, 2011 @10:52AM (#2920895)
Yeah, the ad-ridden part bothers me the most. I immediately closed the window once I saw the page plastered with ads without even trying it out to see if it was any good. That's just not something I'd ever want to use.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by reemrevnivek on Wednesday August 24, 2011 @11:53AM (#2921169)
Adblock does a good job of removing ads here:

http://i.imgur.com/YO7bt.png

A tool like this isn't the place for an ad-supported model. This is a place to work with text, and the colorful, animated, image-based ads are simply too distracting to do any real work for more than a minute or two.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by joeyespo on Wednesday August 24, 2011 @09:46AM (#2920638)
This also handles the tab key properly whereas codepad (currently) does not.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by windsurfer on Wednesday August 24, 2011 @10:08AM (#2920710)
Wow, I haven't tried either but not using the tab key in a code editer is kind of silly.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by kuszi on Wednesday August 24, 2011 @06:21PM (#2922706)
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+ compi... by warmfuzzykitten on Wednesday August 24, 2011 @11:17AM (#2921018)
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?

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by swGooF on Wednesday August 24, 2011 @12:12PM (#2921251)
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+ compi... by reverend_gonzo on Wednesday August 24, 2011 @11:55AM (#2921174)
If you name the class 'Main' it works fine.

They have an "insert template" button which kind of clarifies that.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by 5hoom on Wednesday August 24, 2011 @09:19AM (#2920556)
This is pretty cool.

It's always good to try out new languages but it can be time consuming getting things up & running before you can make your "hello world".

I wrote my first Go program just now, might try Prolog next :)

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by rasur on Wednesday August 24, 2011 @09:15AM (#2920546)
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).
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by ximeng on Wednesday August 24, 2011 @10:12AM (#2920721)
I assumed they'd handle this and tried it. From the FAQ: up to 16 processes can be created, maximum execution time is 5 seconds.

http://ideone.com/F3GBH shows the output from a fork bomb. Basically nothing goes wrong, as I'd expect.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by malux85 on Wednesday August 24, 2011 @10:40AM (#2920829)
Yes, that was the first thing I tried :) - and no, I just got "maximum execution time reached"

Edit: though, I attempted fork bomb in C ...

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by snarfy on Wednesday August 24, 2011 @12:50PM (#2921445)
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+ compi... by koopajah on Thursday August 25, 2011 @07:35AM (#2924521)
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+ compi... by arihant on Wednesday August 24, 2011 @11:12AM (#2920989)
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.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by kuszi on Thursday August 25, 2011 @08:57AM (#2924712)
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+ compi... by mtogo on Wednesday August 24, 2011 @12:09PM (#2921234)
How does this differ from Codepad, which has been around a while? http://codepad.org/

Edit: The ability to use the tab key is pretty awesome.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by checker on Wednesday August 24, 2011 @01:51PM (#2921762)
Codepad doesn't have Java.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by BlackJack on Wednesday August 24, 2011 @11:49AM (#2921152)
One advantage of this is that you can pipe in input. I don't think codepad allows that.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by nekitamo on Wednesday August 24, 2011 @11:23AM (#2921046)
Slow, doesn't compile, syntax highlighting doesn't work. Better luck next time!
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by jister on Wednesday August 24, 2011 @11:10AM (#2920980)
I chose C# and it doesn't compile this:

var s = "Hello World!";

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by captain-asshat on Wednesday August 24, 2011 @12:57PM (#2921481)
Perhaps because it compiles programs and not expressions? Try wrapping it in a Main method and see.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by kuszi on Thursday August 25, 2011 @08:59AM (#2924714)
Please use "insert template" and "insert sample" to start with working code.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by ilcavero on Wednesday August 24, 2011 @10:58AM (#2920920)
couldn't get a Scala hello world running, was exasperated by the slow response, ran away
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by lloeki on Wednesday August 24, 2011 @09:16AM (#2920550)
Sad to see the "recent code" mostly shows a bunch of "Hello, world!" and no one trying to push the limits.
Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by autotelicum on Wednesday August 24, 2011 @10:40AM (#2920831)
You can adapt some of the benchmark programs from http://shootout.alioth.debian.org/ I can not see it being used for much except trying a new language or a benchmark.

The compilation performance reminds me of the 'beloved' time sharing systems of the eighties and earlier. Had to go to work in the middle of the night, so compilations didn't take an unpredictably long time. With PC's (CP/M-80, XENIX) came more predictable performance. Feels like a history repeat - going back to the terminal age with HTML forms somewhat like 3270 submit and AJAX more like DEC VT-100. Not exactly of course, but like a pendulum swinging from server-side to client-side and now back to server-side.

Re:Online IDE - C/C++, Java, PHP, Python, Perl and 40+ compi... by bugsy on Wednesday August 24, 2011 @02:03PM (#2921826)
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.