Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Jason Stewart
I tried queue-callback this evening. Just what I needed! Thank you. -- 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.

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Jason Stewart
I tried queue-callback this evening. Just what I needed! Thank you. On Monday, November 19, 2018 at 6:31:04 PM UTC-6, Alex Harsanyi wrote: > > The `send-message-to-window` has a corresponding `on-message` method which > needs to be implemented in the target control for it to do something

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Alex Harsanyi
The `send-message-to-window` has a corresponding `on-message` method which needs to be implemented in the target control for it to do something useful so it is not a general replacement for `PostMessage`, but it can be used for cases where PostMessage is called with WM_USER, messages. The

Re: [racket-users] Racket-on-Chez snapshot builds

2018-11-19 Thread Matthew Butterick
> On Nov 19, 2018, at 2:06 PM, Matthew Flatt wrote: > > Although Racket-on-Chez is not yet ready to replace the existing > implementation of Racket for most purposes, it should generally work > now --- and it might even be useful for some purposes. Many, many > details have to be right for

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Philip McGrath
There is a send-message-to-window function ( http://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._send-message-to-window%29%29), though I've never used it, and it sounds like it is different from what you describe. -Philip On Mon, Nov 19, 2018 at 5:22

[racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Alex Harsanyi
I think `queue-callback` is the closest "general" equivalent: it allows invoking methods on GUI objects from outside the event handler thread. It can also be used to schedule some work to be done outside a GUI widget's callback invocation. If you actually want to post specific messages to a

Re: [racket-users] Racket-on-Chez snapshot builds

2018-11-19 Thread Philip McGrath
If you use Travis CI with Greg's wonderful https://github.com/greghendershott/travis-racket script, as of this morning you can build against the Racket-on-Chez snapshots by adding a "RACKET_VERSION" of "HEADCS" to your build matrix. -Philip On Mon, Nov 19, 2018 at 5:06 PM Matthew Flatt wrote:

[racket-users] Racket-on-Chez snapshot builds

2018-11-19 Thread Matthew Flatt
The Utah snapshot site now includes Racket-on-Chez builds for x86_64 Windows, Mac OS, and Linux: http://pre.racket-lang.org/ -> follow the "University of Utah" link -> scroll down to "Racket CS" Although Racket-on-Chez is not yet ready to replace the existing implementation of Racket for

Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?

2018-11-19 Thread Philip McGrath
The package build server runs overnight, so the documentation should show up some time tomorrow morning. Maybe, though, it would be better if the catalog recognized that there is documentation in the "info.rkt" file and gave a more specific message when the only problem is that it just hasn't

Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?

2018-11-19 Thread Ryan Kramer
Thanks Jay, it looks like it worked. Or at least, "raco pkg install plisqin" works. But I'm not sure why "This package needs documentation" still shows up. Is something wrong with my info.rkt, or should I give PLT some more time? David, thanks for your interest. Did you install using "raco pkg

Re: [racket-users] Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread David Storrs
I haven't done a lot of work with the GUI so there might be a more appropriate mechanism that I'm not aware of, but I suspect that async channels would fit your needs: https://docs.racket-lang.org/reference/async-channel.html Define a channel, have one GUI element read from it and other GUI

Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?

2018-11-19 Thread David Storrs
On Mon, Nov 19, 2018 at 11:50 AM Jay McCarthy wrote: > That error means, "The package server knows about this package but > never got a checksum, so I'm giving up." It would be fixed once the > server updates (which I just noticed it do after I kicked it for > Kramer) > Cool, thanks for letting

Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?

2018-11-19 Thread Jay McCarthy
That error means, "The package server knows about this package but never got a checksum, so I'm giving up." It would be fixed once the server updates (which I just noticed it do after I kicked it for Kramer) Jay On Mon, Nov 19, 2018 at 11:47 AM David Storrs wrote: > > I tried to install it and

Re: [racket-users] What is the expected PLT package catalog refresh rate? Is it not refreshing now?

2018-11-19 Thread David Storrs
I tried to install it and got this: $ raco pkg install plisqin Resolving "plisqin" via https://download.racket-lang.org/releases/6.11/catalog/ Resolving "plisqin" via https://pkgs.racket-lang.org raco pkg install: cannot use empty checksum for Git repostory package source source:

[racket-users] Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Jason Stewart
In Windows, we have a SendMessage() function for dispatching a window event synchronously, and PostMessage() for asynchronously queuing an event to a specified window from any thread. Is there a way to do PostMessage() from Racket's GUI library? Eventspaces feels warm, but couldn't find what I