News for hackers. Stuff that matters.
Re:Skulpt: client side Python without preprocessing by closed on Tuesday October 31, 2017 @08:30AM (#15592701)
I work as an engineer at https://datacamp.com, and we run the code directly on a server, but I've always thought it would be interesting to try building interactive programming exercises with Skulpt.
Re:Skulpt: client side Python without preprocessing by eah13 on Tuesday October 31, 2017 @08:52AM (#15592809)
I'm a big fan of datacamp. You should definitely give this a try. It would be great to expand the reach of your lessons without the infrastructure overhead of every user hitting your server with their code. Hit up the skulpt dev listserve if you want some help. Or I'm at [email protected].

Plug: you could easily prototype this with Trinket embeds. Add #!/bin/python3 to the top of our Python (Skulpt) trinkets to get strict Py3 mode. Add data files via the + button (no directory support, so treat them as all in the local directory). Use the Share menu to get embed code. Paste. You've got your first interactive lesson. If your users like it, you can then decide whether and how to build skulpt in to the site.

Re:Skulpt: client side Python without preprocessing by closed on Tuesday October 31, 2017 @12:41PM (#15594565)
Thanks for the pointers, I'll definitely have to take another look at trinket.io! It would be cool to try some exercise submission + feedback with code highlighting all on the client side.
Re:Skulpt: client side Python without preprocessing by peller on Tuesday October 31, 2017 @08:48AM (#15592786)
I've always wondered, how do you isolate/protect against people doing nefarious things in a setup like that?
Re:Skulpt: client side Python without preprocessing by mikkom on Tuesday October 31, 2017 @08:50AM (#15592799)
Virtual machine is probably the most common solution.