-----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----- _______________________________________________ MIT-Scheme-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/mit-scheme-devel
