540 karma · joined May 6, 2013
So, that's likely why.
Also, beep-boop, how do you know we're not all bots? ;)
I'm sure the author here has good intentions but, this is aimed at beginners (I'll assume, doubt anyone reasonably experienced would humor this) and teaching them a terrible idea.
Anyway, it's currently docker based, basically the only interesting thing is the run endpoint which is a POST request that copies the payload files to a tmpdir on disk (cached files are just represented as a path).
With the files available I spin up the language appropriate container with the tmpdir mounted as the working directory and the default run command (which can be overriden to specify other build options etc but there's a reasonable default built into every docker image).
The output is streamed as plain-text so it works reasonably well even with no JavaScript but SSE is used when JavaScript is enabled, look a bit prettier. WebSockets are just not implemented yet.
Finally, I found it annoying not being able to preview servers etc on other playgrounds so TCP connections are proxied, each time a subdomain is accessed it looks up the port and maps it accordingly to the container.
There's a bit of overhead to all this tho, from hitting the run button until seeing output can take anywhere from 10 to 60 seconds.
As for safe execution, people have broken out of docker containers before and no doubt people will do it in the future. Best you can do is minimize the damage breaking out of the container would be able to do by isolating the machines that run the containers from the rest of the stack.
Kiwi is literally everywhere, in Oslo it's not going to be more than like two blocks to go grocery shopping.
> Most people who say raising kids in Norway without a car if fine usually haven't had any kids yet
Neither me or any of my school mates had access to cars growing up in the 90s, pretty sure kids these days can walk also. In the country-side I'd kinda agree with your points but in the city, especially Oslo everything is super accessible.
Also a better C would have to be as simple as C, C++ is the definition of complexity. Might look simple on the surface but heck even Meyers can't make heads or tails of the spec ;)
As for the need, there are plenty of contenders like Zig, Odin, Jai, etc. For the most part tho they seem to be about fixing the tooling pipeline, module system and standard library. Syntax might differ ever so slightly but feature set is more or less the same.
Mine is about, uhm, me being a disillusioned 30 year old developer hating how things are done now? Rants like this https://medium.com/commitlog/how-to-design-for-the-modern-we... tend to alright.
Throwing in an amazon link when its appropriate, or funny in the above case doesn't hurt either. Kinda got an on-going thing with always pushing K&R books.