From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
On Sun, Oct 9, 2016 at 2:03 PM, Toon Claes &= lt;= toon@iotcl.com> wrote:
As you can see, introducing concurrency has wide implications for Ema= cs.
Finding a way to go about it that will still= allow old "naive" code to
function co= rrectly is what makes it so tough.
Hopefully we = will someday have that, but it requires a lot of hard work.
Maybe we could start out with something like javascripts webwor= kers. A
function running in its own world withou= t access to buffers or other
shared state, and t= hen we could communicate by message passing.Yes, this is the right approach. I= t is clear that new threads couldn't be allowed to access existing glob= al state (dynamic variables, buffers, obarray, ...); instead they would nee= d to start with an empty global state.=C2=A0
But as the keen eye would observe that is very similar= to simply
spawning an external process.
And it wouldn't benefit much for problems that rely= on buffers or global state.