Re: [racket-users] async-apply in FFI not being called

2019-05-09 Thread Matthew Flatt
This code work for me on macOS from the command line. It does not work in DrRacket, and that's because an async callback is not allowed to do anything that has to synchronize with a Racket thread. DrRacket's output requires thread synchronization, while it happens that stdout in a terminal usually

[racket-users] async-apply in FFI not being called

2019-05-09 Thread Андрей Кравчук
Hello. I'm trying to fix SDL2 library bindings for Racket. The library includes the function SDL_AddTimer, which, according to documentation, takes callback and runs it in another thread. Without #:async-apply keyword on FFI callback definition the call to SDL_AddTimer segfaults, which is to be

Re: [racket-users] async-apply in FFI not being called

2019-05-09 Thread Andrew Kravchuk
That did the trick, thanks a lot, Matthew! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on

[racket-users] Idle UI thought: compiling/running indicator?

2019-05-09 Thread 'John Clements' via Racket Users
In dealing with students, it’s a constant frustration to me that students don’t realize that clicking the ‘run’ button triggers both compilation and running. Also, in my own work, I sometimes forget to compile things at the command line, and then wonder why my programs are taking forever to

[racket-users] What is the address of the venue for RacketCon ?

2019-05-09 Thread Brian Adkins
Since The City Library has multiple locations, it would be helpful to simply list on the website the address of the specific location at which we'll be meeting. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe