Code playground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Code playground

if feel like code play ground is good for demonstrating web applications but it doesn't work well with other applications such console based applications especial if they require multiple user input. Solo Learn should work on improving this...

15th Jan 2017, 12:56 PM
coder
coder - avatar
2 Answers
+ 9
Exactly. :>
15th Jan 2017, 3:19 PM
Hatsy Rei
Hatsy Rei - avatar
0
You know it is not easy, because the code runs on a computer and allocates memory. The Run sends the code, it is being compiled and runned with a timout to prevent too many codes/programs running in the same time. Waiting for the inputs runtime will cause the program to stop, stay in memory until next input does not arrive via internet connection, and continue then. This also means, that the timeout should be removed for waiting, risking the mass increase of running codes on the executor computer. Sounds good and better for console based demonstration, but for much memory price on the side of SoloLearn hardware. Sending the input with the code is by far the simplest way to solve this and avoid waiting.
7th Apr 2017, 1:43 PM
Magyar Dávid
Magyar Dávid - avatar