I want to play with interpreted code on my iPhone without jailbreaking. I'm familiar with tryruby for ruby. Are there any other online interpreters out there that I can use.
12 Answers
Taken from Is there a web application that can replace an IDE like Eclipse?
You will want to check out http://ideone.com/ It is a mini IDE and debugging tool mainly used as a clipboard.
Example The following counts from 1 to 10
class ForDemo {
public static void main(String[] args){
for(int i=1; i<11; i++){
System.out.println("Count is: " + i)
}
}
}
Selecting Java in the side bar of ideone will give us
Main.java:4: ';' expected
System.out.println("Count is: " + i)
^
1 error
Then fixing that gives us the following shortlink http://ideone.com/gGqZy which you can share
I posted the output below
# 1: hide edit 3 seconds ago
result: success time: 0.03s memory: 213312 kB returned value: 0
input: no
output:
Count is: 1
Count is: 2
Count is: 3
Count is: 4
Count is: 5
Count is: 6
Count is: 7
Count is: 8
Count is: 9
Count is: 10
-
Very useful answer indeed. I missed webapps.stackexchange.com/questions/532/… despite reviewing most of the questions. I think I would let this question stand though, because I want a sense of other interpreted options that might be out there and some perhaps even more adaptable to the small browser. Thank you very much.– DonnyDJul 8, 2010 at 1:23
-
I picked this answer, because although ideone's interface was a bit awkward on the iPhone, it was still workable (with a lot of pinch and spread) and nothing else comes close in language choice. I wish I could select all these answers. My iPhone will be a friendlier place.– DonnyDJul 8, 2010 at 1:51
For html / css / javascript, try http://jsfiddle.net/ . It also acts as a pastebin allowing url sharing and editing.
Why go to multiple sites? Just head on over to the Lord of the REPLs!
Currently it supports
- beanshell
- clojure
- groovy
- javascript
- python
- ruby
- scala
- scheme
-
I love the minimalist command line interface. Would be my fave if it had ghci.– DonnyDJul 8, 2010 at 18:25
If you want to try Javascript/HTML, w3schools.com has a "Tryit Editor". It's used for tutorial purpose, but you can code and test anything with it online.
Link : http://w3schools.com/js/tryit.asp?filename=tryjs_text
The Groovy Web Console is a great way to try out Groovy code. It uses the CodeMirror in-browser code editor and allows you to publish/share scripts if you wish.
Ideon is a great answer, but you can also find a large number of repls here http://joel.franusic.com/Online-REPs-and-REPLs
-
1