Who can explain how code input and processing is implemented for training services like Codecademy.com and others like it?

With FreeCodeCamp it is more or less clear - only html + css + js code is processed there. But Codecademy handles both Java and Ruby ... I doubt they allow you to process someone else's code on their servers ...

Are there any ready-made solutions for this purpose, who knows?

  • Well, if not on their servers, then on others. Surely there everything is turned off, which can lead to incorrect server operation - ArchDemon
  • In the virtual machine, you can run any code, the virtual machine is not saved, and each time it loads again. Naturally, all parameters are limited to its internals. - NewView
  • It turns out, they use some "server" versions of the virtual machine, each sharpened strictly under their own language? Otherwise, why requests are processed so quickly - in a matter of seconds. - Vitaliy Tretyakov

0