TIO: Try it online
tio.run
tio.run
This site is not a competitor to codepen, jsfiddle, etc. It's main purpose is to allow play with programming languages you'd otherwise have to install locally -- specifically, it's extremely helpful when browsing https://codegolf.stackexchange.com/ -- the author is a prolific and impressive contributor to that site.
It's sad to see a simple, well-designed, free, open-source project embracing the values of the HN crowd ("The TIO web app is free of charge, ad-free, and doesn't use tracking cookies or third-party analytic scripts.") -- and the top comment, as well as many others, are essentially a nitpick about a bug that can be trivially fixed.
No it's not. The top comment is a bug report because people are using the app. It also got fixed, which, for a comment chain, is about as much value as possible.
I'll work on the issues that were brought up here asap. TIO only has two developers at this point (and only one of us works on the web app), so "asap" might take a little while.
#lang racket
line, and in some variants for students the equivalent line is hidden. So I had to try a few times until I realized I forgot to add this line. https://tio.run/##K0pMzk4t@a@ck5iXrlAE4Sh5pObk5CuE5xelKP3/Dw...Another improvement could be to show the debug output automatically. I didn't understand the problem until I read the error message.
BTW Do we really need ~540 bits (~90 chars of base62) to identify permanent link?
For Haskell: https://tio.run/#%23y0gszk7Nyfn/PzcxM0/BVqGgtCS4pMgnT0HJAyic...
cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-timesync:x:999:998:systemd Time Synchronization:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:998:997:User for polkitd:/:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
cockpit-ws:x:997:995:User for cockpit-ws:/:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
chrony:x:996:994::/var/lib/chrony:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
systemd-coredump:x:993:993:systemd Core Dumper:/:/sbin/nologin
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
epmd:x:992:991:Erlang Port Mapper Daemon:/dev/null:/sbin/nologin
runner:x:1000:1000::/home/runner:/bin/bash
tio:x:1001:1001::/home/tio:/bin/bashTry running `ps aux` for instance and notice that you can only notice runner's processes. Try writing a file in your home, and notice that it doesn't persist between runs. Run a process in background, it doesn't stay running. Essentially every change to the runner (account on which scripts are running) is undone after provided script is done running.
Since /etc/passwd, despite what the name suggests, doesn't actually contain sensitive information, I don't consider this an issue.
Is it a good idea to present a site that compiles and runs code on a remote server to a site dedicated to hackers? :)
What a shitty situation.
What can we do to make it better? Provide a default csproj file on load? Any better ideas?
Microsoft (R) Build Engine version 15.3.117.23532 Copyright (C) Microsoft Corporation. All rights reserved.
code.cs(1,22): error CS1022: Type or namespace definition, or end-of-file expected [/home/runner/project/project.csproj] code.cs(1,22): error CS1026: ) expected [/home/runner/project/project.csproj]
Build FAILED.
code.cs(1,22): error CS1022: Type or namespace definition, or end-of-file expected [/home/runner/project/project.csproj] code.cs(1,22): error CS1026: ) expected [/home/runner/project/project.csproj] 0 Warning(s) 2 Error(s)
Time Elapsed 00:00:04.92 No executable found matching command "dotnet-project/bin/Debug/netcoreapp*/project.dll"
Real time: 6.033 s User time: 2.973 s Sys. time: 0.442 s CPU share: 56.61 % Exit code: 1
Not sure why you'd think it's impossible [1]. I even ran it in the TIO C# console and it works.
using System;
using System.IO;
and pre-filling Code with namespace example
{
public class Example
{
static void Main(){
}
}
}
(But better names, my naming sucks!)That would go a long way, then you could just add "Console.WriteLine("Hello World"); for hello world.
class HelloWorld
{
static void Main()
{
System.Console.Write("Hello world!");
}
}
Try it online:
https://tio.run/##Sy7WTc4vSv3/PzknsbhYwSM1Jyc/PL8oJ4WrmktBob...public class App { public static void Main(string[] args) { System.Console.WriteLine("Hello World"); } }
- 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.
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.)
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:
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 :).
interpreter options input.tio arguments
Where input.tio is the file containing the code.They spin up a docker container with a language of your choice, all from the web.
https://github.com/Keith-S-Thompson/99
I would have been even more pleasantly surprised if it worked.
https://codegolf.stackexchange.com/questions/47588/write-an-...
Hide all those compiler flags etc in the first page. The idea is if any one needs such advanced settings surely the source code will be multi page source code, even for the special use case it would be in the 1 % users.
Include some template code which is readily compilable. THis is will be useful
The sharable link should be integrated with reddit, google +, etc to be more resistance free sharing.
I think the default execution time should probably be less than 60 seconds. Most simple programs that people run on this kind of site should have an execution time of less than a second, so ~10 seconds should certainly be enough by default. This would free up some resources on your end and would inform people more quickly that they may have an infinite loop in their code.
it just repeated back what i typed instead of processing the code hmm
<?php echo "hello"; ?>For the record, hello world in elixir is
IO.puts "Hello World"
There's also https://gitter.im/tryitonline/Requests (requires a Gitter account), https://github.com/TryItOnline/tryitonline/issues (requires a GitHUb account), and email (feedback@tryitonline.net).
It would be nice to add swift and elixir on the list.
cool site, tho
In both cases, both services were built for different purposes, and neither one can or intends to replace the other.