News for hackers. Stuff that matters.
Re:TIO: Try it online by sbierwagen on Saturday July 15, 2017 @01:12PM (#14777698)
Looks like http://repl.it/ but with more languages.
Re:TIO: Try it online by amasad on Saturday July 15, 2017 @02:19PM (#14778096)
TIO 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

- 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.

Re:TIO: Try it online by lucb1e on Saturday July 15, 2017 @03:38PM (#14778503)
Repl.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).

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.)

Re:TIO: Try it online by amasad on Saturday July 15, 2017 @04:47PM (#14778842)
For 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

Re:TIO: Try it online by TeMPOraL on Sunday July 16, 2017 @04:41AM (#14781157)
No 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 :).

Re:TIO: Try it online by sbierwagen on Saturday July 15, 2017 @03:54PM (#14778578)
Usually 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
Re:TIO: Try it online by pavelbr on Saturday July 15, 2017 @05:30PM (#14779072)
It'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.
Re:TIO: Try it online by lucb1e on Saturday July 15, 2017 @09:44PM (#14780068)
Oh command line options. Then what are 'arguments', a little further below?
Re:TIO: Try it online by potato44 on Sunday July 16, 2017 @12:34AM (#14780493)
Options 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.
Re:TIO: Try it online by styfle on Saturday July 15, 2017 @08:27PM (#14779849)
Another alternative is https://glot.io

They spin up a docker container with a language of your choice, all from the web.

Re:TIO: Try it online by agumonkey on Saturday July 15, 2017 @01:26PM (#14777790)
and less "repl"