mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MIT-Scheme-devel] Linking with the new FFI on Mac OS


From: Matt Birkholz
Subject: Re: [MIT-Scheme-devel] Linking with the new FFI on Mac OS
Date: Mon, 08 Apr 2019 13:58:14 -0700
User-agent: Evolution 3.30.1-1build1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, 2019-02-28 at 04:01 +0000, Joel T Gustafson wrote:
> Hello all!
> 
> I'm trying to update some foreign Scheme libraries [1] I wrote a
> while ago

I took a peek at your PortAudio wrapper because... IO is hard.

You are perhaps aware of the limitations of our simple FFI.  The
cooperatively multi-scheme-threaded world is "blocked" while in a
callout and callbacks do not change this.  Our callbacks are more like
traps, running while the whole world waits, in the thread that called
out.

Thus you cannot do schemely IO in a callback -- the kind of IO that
suspends a scheme thread that would have blocked and runs another.  At
best you might do some IO with low-level primitives knowing that, if
it is blocking IO, the whole world will be waiting.

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEELKqfot8xyi0bi8Ssp/sTamsYs6IFAlyrteYACgkQp/sTamsY
s6JzyQv9F7Hi5Emqjj0+onFgSW0EVAycl2JShXP1pWc8JRIKDvzUZTChFBYEFa5U
o2YwdzIL1U/VgX9e4O0R6M1n08az4LTbqdkixLEkzXETHFOASC5/eoR4lz4HT0vI
fXSU5z7LCo26/OqjErCGDQmm7SyWi3dIgRtV0Ksm2z4ng93iyHjcKtbCNZ65V25v
6H1ctfNAwv6jM0va8SftoBNsVWZAy6IQBqL8NGliYozAHe0wwhzOZhDaryvf41bv
2AHOi0/UJKqEu1mIODo5p7fJn8HmmRBauOaTLxlWNSopfFIj9Wxq2fRyuZIJSgm1
RQUlD4EumeANa2EyvzZYoyx0MlUQnXMBFQEbp3f5RGzHVpzNmPNa65vAt13C3qha
k0QQ7XjTZVpLeSXDNrBQ+7/KgE3fEa3P9QR3SMrAq5+3aipDWHtqYyO/HqT2z4t+
N9kAhCQajwmp7zZWoKub/J/WsmXcmE2L1o18DWCcXRb98M+r0FerQUuL2bX1iKaY
4tEM6Qb2
=/oba
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]