14

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.

2
  • belongs on StackOveflow, doesn't it? edit: ah, ok, it's about online interpreters... Jul 8, 2010 at 0:14
  • I've made this a community wiki because multiple answers are applicable.
    – DonnyD
    Jul 8, 2010 at 2:46

12 Answers 12

7

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
2
  • 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.
    – DonnyD
    Jul 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.
    – DonnyD
    Jul 8, 2010 at 1:51
6

For html / css / javascript, try http://jsfiddle.net/ . It also acts as a pastebin allowing url sharing and editing.

1
  • Nice! A web-app for web-apps.
    – DonnyD
    Jul 8, 2010 at 0:38
4

tryhaskell.org if you are interested in functional programming

1
  • I can't believe I missed this. I loo..oove Haskell. Thanks.
    – DonnyD
    Jul 8, 2010 at 1:36
3

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
1
  • I love the minimalist command line interface. Would be my fave if it had ghci.
    – DonnyD
    Jul 8, 2010 at 18:25
2

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

1
  • This has a nice, simple interface. Very usable. Thanks.
    – DonnyD
    Jul 8, 2010 at 0:28
2

codepad is an online interpreter that supports several different languages. It also generates a URL for your snippets, so you can share them and collaborate.

2
  • Good, tried it, very nice!
    – DonnyD
    Jul 8, 2010 at 0:30
  • Slightly superior to ideone in its simplicity of interface and similar in its language diversity.
    – DonnyD
    Jul 8, 2010 at 1:45
2

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.

1
  • Thanks. This isn't in my repertoire, but I'll take a look.
    – DonnyD
    Jul 8, 2010 at 2:25
2

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
  • 1
    This is a great reference resource!
    – DonnyD
    Jul 8, 2010 at 18:26
2

There's http://kodingen.com . It may be too complicated to use on a small iPhone screen though.

1
  • Interesting. This will take some exploring.
    – DonnyD
    Jul 8, 2010 at 18:22
1

Skulpt is an entirely in-browser implementation of Python. Not complete, but handy.

2
  • Again, the simplicity of the interface is a plus. Thank you.
    – DonnyD
    Jul 8, 2010 at 0:29
  • That it's all implemented in javascript in the browser is a big plus.
    – DonnyD
    Jul 8, 2010 at 1:27
0

Simply Scala for Scala programming language.

0
0

Forth here is.

1
  • (-; (-: (-; OK.
    – DonnyD
    Jul 8, 2010 at 18:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.