« first day (146 days earlier)      last day (2348 days later) » 

Anonymous
I like autogolfers. A clever person will always do at least as well as an autogolfer (and often better), but it will take them a lot longer. Autogolfers take the tedium out of using the same idioms and techniques over and over - they should be used as a tool to help golfing, not as a replacement for golfing.
 
Anonymous
3:20 AM
Most of the logic is written in Python (with only slight use of brython for web compat), but it won't be too hard to translate them into JS for the frontend
 
Anonymous
I'll start working on that in a little bit
 
4:15 AM
@Mego exactly
 
 
2 hours later…
5:56 AM
@Mego Autogolfer?
 
Anonymous
@TrojanByAccident A program that generates golfed code for something (like pushing a given integer on top of the stack, for example)
 
oh
Question - Is TIO hosted on GitHub?
 
Anonymous
Dennis has most (all?) of the TIO Nexus code on GitHub
 
6:46 AM
@Dennis in this line what is sandbox?
 
Anonymous
@Dennis A thought I had for the future: you might consider setting up a non-profit for maintaining and running TIO, to avoid any tax complications with donations. If you geared TIO towards programming language research in general (rather than just code golfing), you could potentially get grants that would help fund the site and allow you to make it more powerful.
 
Anonymous
I'd imagine that, if you made some modifications so that TIO was essentially a turnkey system, universities might be interested in hosting servers (both for their own use and for public benefit)
 
How expensive is TIO, anyway?
 
Anonymous
I don't know if Dennis has ever mentioned the exact cost, but I'd imagine it's a few dollars a month
 
Anonymous
Once income tax refunds come in, I'll probably toss him a donation that will cover a few months of server costs
 
7:11 AM
it's at least two server which is 10$ minimum, you can have backup for additional cost and you can have a storage node where you can buy storage blocks, again for additional money
 
7:23 AM
@Mego That's actually an interesting idea
 
 
3 hours later…
10:08 AM
@Dennis, never mind the sandbox question, figured it out. So arena I think will only run on Fedora, different implementations of selinux seem to be quite incompatible. I managed to run the web on Ubuntu, with no problem at all, but the arena only ran on Fedora.
@Dennis, now I would naturally like to know how do you pull all these languages. Is there a list of git repos to pull that you have? If yes, is it something that you could publish as well?
@Dennis, finally, I put together some instruction to help people like me setting this whole thing up. Just in case you get hit by the bus or something. In future. I'm sure it's not very secure, and if you are interested in reviewing it so I could improve and publish it please let me know.
Obviously with the breadth of different linux setup it's not possible to provide precise instructions, but I wanted to put together something practical, that could speed up the process if setting it up in future, if needed
 
 
7 hours later…
4:44 PM
@Pavel I believe it's 10 or 20 USD per month
 
5:43 PM
@Mego I'd have to look into how I could do that in my country.
@AndrewSavinykh Other Linux distros might require different tweaking, but it should run on all that have a decent SELinux implementation. Note that this excludes Ubuntu.
@AndrewSavinykh github.com/TryItOnline/tio.run/blob/master/languages.js contains the links to the interpreters I'm using.
@AndrewSavinykh I'm thinking about a contingency plan. With server-side permalinks, someone would need access to the actual server in case something ever happens to me.
That should extend to the domain names as well.
 
6:25 PM
@Pavel Right now, I'm paying 12 USD per month for droplets with weekly backups and 46.32 USD per year for two domain names with privacy guard, so roughly 16 USD per month. I'll be adding a second arena soon though; one isn't enough anymore.
 
6:55 PM
@Dennis but that list is not enough for pulling a language, is it?
re selinux: you need to have the sandbox policy package for this to work, ubuntu and debian do not have them. that would probably exclude mint too... so it might also work on CentOs I dont know. anyway, that's not that important
 
@AndrewSavinykh It should be. For example, the link for 05AB1E is github.com/Adriandmen/05AB1E, so you just do git clone https://github.com/Adriandmen/05AB1E.
@AndrewSavinykh Anything SELinux-related is horribly outdated on Ubuntu. Not sure about Debian.
 
@Dennis it was dropped in jessie
@Dennis yeah, but what about most of the links like gnu.org/software/bc/manual/html_mono/bc.html
you cannot clone that ;)
am I being stupid?
 
Those were just installed from the repos.
In fact, most practical languages were.
 
7:10 PM
@Dennis do many languages require custom set up to allow the wrappers to work?
 
7:35 PM
@AndrewSavinykh No, the wrappers do all the heavy lifting. I've only modified a handful of languages that wouldn't compile otherwise.
 
8:30 PM
@Dennis when you say compile, you mean compiling the language itself?
or what ever tio input is
 
9:15 PM
@AndrewSavinykh The languages themselves. Some interpreters were written for Mac or some ancient version of gcc, so I had to make a few tweaks. Nothing fancy though, just add an include or replace arc4random with rand.
 
9:40 PM
@Dennis so every time you pull them you also recompile them manually?
or do you have any kind of automation for that?
 
9:50 PM
Manually. But poorly written interpreters tend to not get updated.
 
So, I'm writing an interpreter right now, and I want it to work with TIO. Is there a way I can allow users to pass it flags like java sushi.jar -p [code]?
 
Command Line Arguments are passed to Java via the main function. Just manually parse it for -p.
 
Yeah, but the TIO arguments field puts flags after the filename.
 
@Dennis okay then. I got your code up in running on vultr with a single language 05AB1E so far. I'll see if it's possible for me to get most of the rest of them running as well.
as far as domians go
I had to do
sed -i 's/tryitonline.net/tryitonline.your.domain/g'
type of stuff on your sources
which is not very sustainable but good enough for now
 
@Pavel You can just get those flags from after the filename. main is passed a String[]
 
10:01 PM
I wonder if these names can be pulled into a configuration somewhere or something
 
Have problem with incredibly obvious solution->can't find solution->go to chat for help->obvious solution is obvious
 
I can't explain it any better than that, personally.
I need more information as to what issue you're having.
 
 
2 hours later…
Anonymous
11:55 PM
@AndrewSavinykh Alternatively you could modify /etc/hosts to redirect tryitonline.net to your local IP
 

« first day (146 days earlier)      last day (2348 days later) »