« first day (898 days earlier)      last day (1596 days later) » 

12:59 AM
@Deadcode @Pavel it just uses the babel transpiler on your code before executing it
 
@ASCII-only Huh. It seems plain JS has caught up, though, with at least some of it. For example Babel apparently transpiles [1,2,3].map(n=>n+1) to [1,2,3].map(function(n){return n+1;}), but Node.js already supports the former.
 
@Deadcode well it does transpile to like... ES5 JS
i guess default settings are newest ES to ES supported in almost all browsers
 
1:39 AM
@Deadcode Not directly; it is deliberately hidden because the wrapper doesn't do anything with it. You can always open the Bash interpreter and run the command from there, but it's not very practical to create additional files.
@Deadcode The languages are not separated. Everything is installed on the same Fedora install. Try it online!
The wrappers of all languages are here: github.com/TryItOnline/tryitonline/tree/master/wrappers
(As part of the planned rewrite, I'll move the wrappers to the frontend, so you can just edit them.)
 
@Dennis Thanks! Is there a file somewhere with a list of the mappings from those filenames to the name strings seen in the main TIO page? For most of them it's probably obvious, but for some it might be a little hard to find.
 
I'm afraid there's no compact way.
@Deadcode Fedora has an 8 MiB stack size limit by default.
 
@Dennis In the C++ port I had to set the stack size to 205 MB to get that recursive function to work with the input of n=262145. I would imagine JS would need even more, since it works on doubles, and in my port it was using ints.
 
Yeah, high-level languages aren't very memory-friendly.
Changed the Node.js wrapper as well.
 
2:00 AM
@Dennis Thank you!
 
Compiler flags and command-line options didn't always exist. Many of the older languages are probably still missing them.
 
2:30 AM
Holy crap, the unsafe version really is much faster. Much more than I expected.
 
@Dennis Thanks!
 
 
1 hour later…
3:55 AM
@Dennis Yep, Node requires 2.17× as much stack memory as the C++ port.
Oops, its 2.22×. Forgot to convert kB to KiB.
 

« first day (898 days earlier)      last day (1596 days later) »