[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add preliminary versions of the R7RS libraries along with do
From: |
Mark H Weaver |
Subject: |
Re: [PATCH] Add preliminary versions of the R7RS libraries along with documentation and tests |
Date: |
Mon, 19 Jun 2017 13:13:00 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Freja Nordsiek <address@hidden> writes:
> Hmm, just realized, to add on top of what you said, method has a major
> thread-safety problem if the bytevector output port is accessed from
> more than one thread. Definitely need to fix this.
In Guile, port operations are not specified to include built-in thread
synchronization. Thread synchronization is quite expensive on most
platforms, and only needed in a small minority of cases, so it should be
added by the application where needed. Bytevector port operations could
be made quite cheap in a future implementation of Guile with native code
generation, and we should avoid making promises that would add
significant work to inherently inexpensive operations.
Thanks,
Mark