Re: [racket-users] Cross-VM method for sending any input port to C runtime?

2021-05-23 Thread Philip McGrath
On Sun, May 23, 2021 at 7:57 PM Matthew Flatt wrote: > At Sun, 23 May 2021 14:57:42 +, Sage Gerard wrote: > > Is there a cross-VM way to pass an arbitrary input port to the C > > runtime (e.g. via open-input-bytes), such that the C runtime can read > > bytes on its own? > > No, not unless

Re: [racket-users] Cross-VM method for sending any input port to C runtime?

2021-05-23 Thread Matthew Flatt
At Sun, 23 May 2021 14:57:42 +, Sage Gerard wrote: > Is there a cross-VM way to pass an arbitrary input port to the C > runtime (e.g. via open-input-bytes), such that the C runtime can read > bytes on its own? No, not unless you know that the port's implementation is sufficiently constrained.

[racket-users] CFP: Scheme 2021 - 22nd Scheme and Functional Programming Workshop (Co-located with ICFP 2021)

2021-05-23 Thread web...@gmail.com
The 2021 Scheme and Functional Programming Workshop is calling for submissions. We invite high-quality papers about novel research results, lessons learned from practical experience in industrial or educational setting, and even new insights on old ideas. We welcome and encourage submissions

[racket-users] Cross-VM method for sending any input port to C runtime?

2021-05-23 Thread Sage Gerard
Hi all, I have a C shared library exposing a simplified interface for computing message digests. Here's a `while` that reads bytes using a callback. https://github.com/zyrolasting/xiden/blob/libcrypto/crypto/crypto.c#L46 A compatible callback provided by Racket might look like this. (λ (buf