3 ms·
Tcl has also fully supported this use case since about 1998.
by cmacleod4 9y ago
Tcl has also fully supported this use case since about 1998.
- Johnny_Brahms 9y agoNot really. TCL didn't allow you to use one interpreter over several threads four years ago, and iirc TCL still isn't thread safe in that regard. Guile does this with bravura.
- cmacleod4 9y agoWell Tcl expects you to use an interpreter for each thread and pass messages between them, which is fairly easy. In Tcl 8.6 you also have the option to use multiple coroutines within one interpreter. This avoids the Global Interpreter Lock problem that plagues Python. How does Guile handle that?
- Johnny_Brahms 9y agoGuile doesn't. You'd use one interpreter and isolate whatever you need to isolate in it's own module and if you need things in parallel, you can just use pthreads (guile has proper threading support and no GIL). If you don't cross the C barrier again from your scheme code you can even use something like guile-fibers for Concurrent ML-like parallelism.
- deleted 9y ago[deleted]