Comment by srean
5 years ago
An aspect of Modula-2 that I find so interesting is its support for coroutines. Is there any modern and permissibly licensed (GPL, BSD, MIT, Mozilla ...) implementation that has an efficient implementation (low context switch time). I am not looking for anything that rides on pthreads api or library, or anything that maps to OS threads.
If you mean bare metal Modula-2, I am afraid it is all gone by now, given its surviving compilers.
However what about Ada tasks?
That's rather sad to hear. I presume some of it lives in Go and Nim.
Don't know Ada, its tasks, even less.
You can do a round over here,
https://freepages.modula2.org/compi.html
As for Ada tasks, https://learn.adacore.com/courses/intro-to-ada/chapters/task...
2 replies →
FWIW, Mozilla Public License is a weak copy left license that has many benefits of permissive licenses. But it is copyleft.