Client-side Web REPL For 15+ Languages
In his first accepted submission, MaxShaw writes "repl.it is an online REPL that supports running code in 15+ languages, from Ruby to Scheme to QBasic, in the browser. It is intended as a tool for learning new languages and experimenting with code on the go. All the code is open sourced under the MIT license and available from GitHub."
A few of the languages are supported by reusing existing "Foolang in Javascript" interpreters, but a number of them are built using Emscripten (previously used to build Doom for the browser). All evaluation occurs client side, but saved sessions are stored on their server.
They could emulate C, then run pretty much every language, considering most are written in (or have an implementation in) C.
Now we just need someone to code a browser in that thing, and we're ready for web 3.0
for those who don't remember their lisp class : (define REPL 'Read-Eval-Print Loop')
Jehovah be praised, Oracle was not selected
A few of the languages are supported by reusing existing "Foolang in Javascript" interpreters...
I've never heard of "foolang". Is it any good?
Total fail.
Balks on something as simple as:
DIM Foo AS INTEGER
Further, requires all commands to be in all caps, while real qbasic doesn't give a squat.
Attempted a builtin graphics function, but the interpreter has no idea about how to do the LINE operation.
Kids would be MUCH better off with real qbasic in dosbox.
Seems like REPLs have gotten more popular recently. I guess I don't really get it, I found a good interactive debugger more useful as a learning tool. Particularly with rich abilities to inspect variables and variable hierarchies. A REPL-like tool as one feature of such an environment is nice to have, sure. But just the REPL on its own seems really limiting.
Switch back to Slashdot's D1 system.
... it seems that installing stuff on one's pc is taboo, and that happens now, when A. storage is not a problem B. installation can be done by easy to use app/package repositories C. money is not a problem because tons of free software are around.
Of course the idea makes sense because most people go with the instant gratification of a prompt in a web page and don't really care if their mostly idle cpu has to work more for their hello world.
---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
Is everyone here is using it now?
...try IdeOne. Code doesn't run in the browser -- it's compiled and runs server-side -- but it supports dozens of languages, including esoteric ones like intercal and whitespace, and allows you to optionally publish your code snippets, a la pastebin.
-a.d.-
I'm Erwin Schrodinger and I approve of this message, and I do not approve of this message!
I'll lay out my specific use case, but basically the question is this: who's going to come up with a decent browser-based environment for people to use in order to learn how to program?
My use case: I teach physics for a living, and I teach my students to do simple numerical simulations as an alternative to limiting them to the kinds of problems that can be solved in closed form using paper and pencil. These folks are not sophisticated about computer programming, and my goal is not to teach them to program; basically I only expect them to get to the level where they can make modifications to a program in the book so that it can be applied to a different problem.
I use python for this, and currently the best option I've found is to have them use ideone.com, which is a free-as-in-beer service that runs their code server-side, through a web interface. What sucks about it is that ideone is totally closed source, and if they stop providing their service tomorrow, I'm out of luck.
Up until now, the best alternative I'd found was a REPL for a language called coffeescript: http://jashkenas.github.com/coffee-script/ . (Click on TRY COFFEESCRIPT.) The language is close enough to python in syntax that it wouldn't be a big deal to me to switch. Performance is very good. The main disadvantage is poor error handling, which is a big deal to beginners.
The repl.it system looks nice. (a) It's open-source, so if I hitch my wagon to it, I won't have to switch to something else five years from now. (b) The performance is decent, although not as good as the other two systems I've described above. (c) Error handling seems good (apparently the same error handling as in the standard python implementation, because apparently that's what you're using, through an emulation layer).
Find free books.
This is one of the coolest things I have seen for a long time! I'm really impressed. Congratulations, guys!
Please correct me if I got my facts wrong.
The scheme implementation does not implement bignums but rather is using floats. So not a R5RS compliant. I imagine a few other things are like this in other languages, however looks like a great project.
So we have gone from compiling code to machine language to compiling code to a scripting language so it can be compiled to machine language? That is a neat project; but, I'd be much more impressed if someone came out with a browser vm that actually understood and converted 15+ languages to machine code instead of just javascript. Anyone know of a multi-language vm? Maybe I can write a browser based on it.
Having to work for a living is the root of all evil.