4 ms·
Looks like http://repl.it/ http://repl.it/ but with more languages.
by sbierwagen 9y ago
Looks like http://repl.it/ http://repl.it/ but with more languages.
- agumonkey 9y agoand less "repl"
- amasad 9y agoTIO looks great. However, it's probably serving different purposes than Repl.it, here are some differences as I see them: - repl.it is interactive, which means that not only a process and a container is booted up that stays with you the whole session time but also means that the program state is saved when you're executing code from the repl console. This enabled interactive games like text games and cli programs. - support for multiple file with realtime file update. You can plot something for example: https://repl.it/site/blog/file-updates https://repl.it/site/blog/file-updates - support for third party modules starting with pipy and npm (you can import any module from those registries). There are many other small features that's worth checking out. But to sum up, Repl.it is not just trying to be a code execution service but an actual programming environment.
- lucb1e 9y agoRepl.it sounded really epic... except it's not REPL, at least not for the first language that I wanted to repl: C (https://repl.it/languages/c https://repl.it/languages/c). Still, I like the website better than TIO. At TIO I picked PHP to test and it gives me options like headers, options (without a list of options/settings to modify, just an "Add" button)... I just want to type code in an editor and run it. Repl.it also has syntax highlighting. (For those who don't know, REPL is read-evaluate-print-loop, so it takes an input (e.g. "int i = 0;"), evaluates it (runs it), prints any output, and loops back to the start.)
- sbierwagen 9y agoUsually when I go to repl.it it's to do something in a python console if I'm at a computer that doesn't have python installed: https://repl.it/languages/python https://repl.it/languages/python
- amasad 9y agoFor languages like C that don't ship with a repl we don't currently implement one -- although we probably should, since a lot of them have third-party repl libraries. Check our most of our other languages. They're proper repls I promise ;) I wrote about the distinction you're talking about when we released swift support: https://repl.it/site/blog/swift https://repl.it/site/blog/swift
- TeMPOraL 9y agoNo love for Common Lisp? Please add Common Lisp :). Anyway, pretty nice collection of languages you have there; a lot of which I want to play with but don't feel like installing a proper toolchain yet. So I'll definitely use the service :).
- pavelbr 9y agoIt's actually quite simple: 'options' are command line options that you can supply, I don't know PHP but for Ruby it might be `-p` for example. Header and Footer are just glued to the code by newlines.
- lucb1e 9y agoOh command line options. Then what are 'arguments', a little further below?
- potato44 9y agoOptions are what get passed to the interpreter. Arguments get passed to the program. How the interpreter gets called for most languages roughly goes like: interpreter options input.tio arguments Where input.tio is the file containing the code.
- styfle 9y agoAnother alternative is https://glot.io https://glot.io They spin up a docker container with a language of your choice, all from the web.