Re: [Chicken-users] Threads, and async

2016-07-22 Thread Vasilij Schneidermann
Hello, > About libuv, Chicken not very well suited for callback-based ffi, so there > is no official available extensions, but integration is possible and working > reasonable. Do you have any material on doing FFI with callbacks? I've had to solve this problem before for GUI toolkits and

Re: [Chicken-users] Threads, and async

2016-07-21 Thread rivo
Hi, Chicken have special option like 'disable-interrupts' this one allow precise control over scheduler using thread-yield! function. As far i remember in order to get fully cooperative scheduling user should ensure that all code compiled with this option. About libuv, Chicken not very well

Re: [Chicken-users] Threads, and async

2016-07-21 Thread Christian Kellermann
* Josh Barrett [160721 02:57]: > Firstly, are chicken's SRFI-18 "green threads" pre-emptive, or do you have > to explicitly yield in order for the next scheduled thread to run? Yes they are preemptive. > Secondly, does Chicken have any libraries for libev/uv event-based >

[Chicken-users] Threads, and async

2016-07-20 Thread Josh Barrett
Firstly, are chicken's SRFI-18 "green threads" pre-emptive, or do you have to explicitly yield in order for the next scheduled thread to run? Secondly, does Chicken have any libraries for libev/uv event-based programming? Thirdly, are there chicken bindings for select/poll? No, I don't intend