Re: [racket-users] Using Futures with FFI functions

2016-06-27 Thread Carlos Lopez
I tried it and it works; the c pointer is able to travel via the channel and it can then be used as usual. Thanks for the suggestion. carlos On Friday, June 24, 2016 at 12:10:18 PM UTC-4, Matthew Flatt wrote: > The runtime system currently cannot call a foreign function without > suspending a

Re: [racket-users] Using Futures with FFI functions

2016-06-24 Thread Matthew Flatt
The runtime system currently cannot call a foreign function without suspending a future. Supporting that operation is not out of the question, but I don't think it will be easy. Would using places work in this case --- creating one or more places on start-up to serve data from the C library? At F

[racket-users] Using Futures with FFI functions

2016-06-24 Thread Carlos Lopez
Hi Everyone, First of all, thank you for Racket; it is a great tool, specially the documentation. I'm trying to use racket's futures to evaluate a function from a c library that takes some time to evaluate but according to the future visualizer, there is a block and it never runs on its own t