r/howdidtheycodeit • u/AgentCooderX • Sep 12 '22
Online compilers/interpretters for (python, go, etc)
i see things like this one https://www.w3schools.com/python/trypython.asp?filename=demo_compiler
where a website can embed a compiler/interpretter inside an application, how did they do it? is there a backend compiler that do all the compilation and just echo it out to the website or was the interpretter of such language (ex python got litely ported to javascript or something)?
I can also see these stuff in online hiring examinations and i can even see C++ compilers in there for things like leetcode exams, etc.
Find these really cool.
View all comments
Show parent comment
2
u/bballinYo Sep 12 '22
This is likely the easiest way, but also have to be very careful about what you expose of your own system.