Well you may not want them executing simultaneously. You may simply want them idle until an event occurs and then they are called to respond to them. This is my use case for example. I think you are perceiving a requirement where one doesn't exist.jickster wrote: ↑Mon Aug 27, 2018 5:26 am
If you have multiple VMs, you want them to execute simultaneously from the perspective of each .py.
If you don’t have an OS to do that, it must be done in the uPy code somehow: vm.c must switch between applets otherwise one would hog 100% CPU until (or if) it ever finishes.
Sent from my iPhone using Tapatalk Pro
If I spawn more than one DukTape (mJS, eLua, etc) interpreter there is no expectation that they run independently. There if you want parallel execution then you spin them up in seperate threads — if we go back to the beginning of this thread I didn't have a problem with different threads, just not different heavyweight processes.
If uPy is to have multiple instances I suggest the most basic implementation until you can actually prove the need. I mean that is why uPy doesn't have multiple instances now, right?