4 ms·
> At the time Tcl was the only multi-threaded GIL free scripting language for database access and this still holds true today. Raku (nee Perl 6) is GIL-free II
by yellowapple 4y ago
> At the time Tcl was the only multi-threaded GIL free scripting language for database access and this still holds true today.
Raku (nee Perl 6) is GIL-free IIRC. So are Julia and Erlang/Elixir, for sufficiently-loose definitions of "scripting language". The list probably goes on.
- tored 4y agoPHP is GIL-free too.
- cutler 4y agoRaku is also, unfortunately, the slowest language I've ever used especially, paradoxically, for regex and string handling given its Perl lineage.
- deleted 4y ago[deleted]
- spacechild1 4y agoLua doesn't have a GIL, either.
- tyingq 4y agoThe tcl threads are shared nothing with message passing...each thread is a separate interpreter. So it's not obviously better or different than any other language running multiple processes with message passing via mmap or similar.
- BiteCode_dev 4y agonmap has a serialization cost, and sharing complex data structures is hard with it. It's also different than multiprocesses as it will likely take less RAM. Python is explorer multiple interpreters for these reasons. Python 3.8 SharedMemory works well, it's far from transparent.
- tyingq 4y ago>mmap has a serialization cost It does, though there should be optimized ways to do that if it's message passing and not object passing.
- lizmat 4y agoIndeed, Raku does not have a GIL
- leont 4y agoPerl is GIL-free too, actually.