+ 6

Why the sololearn app wants to accept all inputs of program whe we run it initially at one go?

Sometimes it becomes difficult to execute programs with multiple input but it runs effectively on simple program. listen I am taking out fault of this app. this app is very helpful. love you sololearn and happy programmer's day

13th Sep 2017, 11:21 AM
HASHIR IMAM
HASHIR IMAM - avatar
3 Réponses
+ 7
● Short answer: Because SoloLearn's CodePlayground is an Online IDE powered by compilers/interpreters that run on the backend servers. ● Long answer: Online (aka Cloud) compilers/interpreters are fired as soon as you click "Run" asking to compile the code. Your source-code and programming language details are passed to the server. In its turn, the server fires the desired compiler/interpreter and passes your source-code and ALL inputs to it. Only then the output is displayed. Unfortunately, this is one of the greatest limitations when your program needs runtime inputs. But it makes sense as the whole architecture of online compilers depends on a limited amount of servers that all sololearners are trying to access simultanously. Though it's conceivable that a compiler could actually run in the browser☺ but for now, it runs on the server side.
15th Sep 2017, 11:21 AM
Pao
Pao - avatar
+ 6
Also, this is a common issue and question being asked around here, so if you'd like to learn more about it, you might want to check these older threads: https://www.sololearn.com/Discuss/168888/?ref=app https://www.sololearn.com/Discuss/223806/?ref=app https://www.sololearn.com/Discuss/532452/?ref=app https://www.sololearn.com/Discuss/203633/loops-inputs-and-sololearn
15th Sep 2017, 11:26 AM
Pao
Pao - avatar
+ 2
Maybe is for a security reason but if you want, you can share your improvements here https://www.sololearn.com/Discuss/674097/changing-sololearn
15th Sep 2017, 7:14 AM
Daniel
Daniel - avatar