Thu Sep 20, 2018 11:17 am
Yes it's perfectly feasible.
I once made a terminal emulator in the browser. Text typed into the emulator window was sent to the server over web sockets. The server was written in node.js and sent the typed text to a Bash shell it had started. Output from the Bash shell session was then returned to the browser via the web socket connection, for display in the terminal emulation.
This kind of technique could be used to talk to your Python program directly instead of a Bash shell.
Don't forget to secure it all with HTTPS, passwords etc.
Memory in C++ is a leaky abstraction .