Email list hosting service & mailing list manager

Parameters vs. threads John Cowan (23 Apr 2020 20:47 UTC)
Re: Parameters vs. threads Marc Nieper-Wißkirchen (23 Apr 2020 21:11 UTC)
Re: Parameters vs. threads Marc Nieper-Wißkirchen (23 Apr 2020 21:14 UTC)
Re: Parameters vs. threads John Cowan (24 Apr 2020 00:12 UTC)
Re: Parameters vs. threads Lassi Kortela (24 Apr 2020 08:58 UTC)
Re: Parameters vs. threads Shiro Kawai (23 Apr 2020 21:26 UTC)
Re: Parameters vs. threads Jim Rees (24 Apr 2020 01:15 UTC)

Re: Parameters vs. threads Marc Nieper-Wißkirchen 23 Apr 2020 21:11 UTC

> Chibi has shared parameter objects like Gambit.  Racket, Guile, and Gauche copy them, but I don't know how they do so.

Racket implements parameter objects in terms of thread cells ([1]).
The problem, therefore, reduces to how thread cells work and are
implemented. I haven't checked the Racket source code in this regard,
but they could be mapped to POSIX thread-local storage. When a thread
is created, they have to be initialized, which has the same
algorithmic complexity as, say, Chicken's copying of a vector.

[1] https://docs.racket-lang.org/reference/threadcells.html