Process isolation

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
jockm
Posts: 13
Joined: Tue Aug 21, 2018 9:46 pm

Re: Process isolation

Post by jockm » Mon Aug 27, 2018 8:09 pm

jickster wrote:
Mon Aug 27, 2018 7:59 pm
@jockm I know you care about this but this does fit under the "Process Isolation" theme if you want to launch a .py within a .py and have them be isolated.

https://github.com/micropython/micropython/issues/4081

Scoped allocation
No, but it is very interesting and very cool. Thanks for pointing that out!

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: Process isolation

Post by stijn » Tue Aug 28, 2018 8:02 am

jickster wrote:
Mon Aug 27, 2018 7:59 pm
@jockm I know you care about this but this does fit under the "Process Isolation" theme if you want to launch a .py within a .py and have them be isolated.

Scoped allocation
Just wondering but isn't this too far away from 'process isolation' to be practically useful here? If I understand it correctly the only thing this does is allocate from another heap; scope is still shared though so calling it 'isolation' seems far fetched?

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: Process isolation

Post by jickster » Tue Aug 28, 2018 12:31 pm

stijn wrote:
jickster wrote:
Mon Aug 27, 2018 7:59 pm
@jockm I know you care about this but this does fit under the "Process Isolation" theme if you want to launch a .py within a .py and have them be isolated.

Scoped allocation
Just wondering but isn't this too far away from 'process isolation' to be practically useful here? If I understand it correctly the only thing this does is allocate from another heap; scope is still shared though so calling it 'isolation' seems far fetched?
For the case of process isolation, you would set the globals to “NULL” ie it has no access to the enclosing scope.




Sent from my iPhone using Tapatalk Pro

Post Reply