News for hackers. Stuff that matters.
Re:Tcl is faster than Python for database benchmarking by yellowapple on Wednesday November 02, 2022 @01:32AM (#33431738)
> 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.

Re:Tcl is faster than Python for database benchmarking by cutler on Wednesday November 02, 2022 @06:20AM (#33433595)
Raku is also, unfortunately, the slowest language I've ever used especially, paradoxically, for regex and string handling given its Perl lineage.
Re:Tcl is faster than Python for database benchmarking by spacechild1 on Wednesday November 02, 2022 @06:50AM (#33433788)
Lua doesn't have a GIL, either.
Re:Tcl is faster than Python for database benchmarking by tyingq on Wednesday November 02, 2022 @07:37AM (#33434139)
The 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.
Re:Tcl is faster than Python for database benchmarking by BiteCode_dev on Wednesday November 02, 2022 @08:35AM (#33434712)
nmap 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.

Re:Tcl is faster than Python for database benchmarking by tyingq on Wednesday November 02, 2022 @01:26PM (#33439611)
>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.

Re:Tcl is faster than Python for database benchmarking by lizmat on Wednesday November 02, 2022 @08:12AM (#33434452)
Indeed, Raku does not have a GIL
Re:Tcl is faster than Python for database benchmarking by tored on Thursday November 03, 2022 @07:02AM (#33449325)
PHP is GIL-free too.
Re:Tcl is faster than Python for database benchmarking by leont on Monday November 07, 2022 @09:32AM (#33506226)
Perl is GIL-free too, actually.