[racket-users] Re: Racket application quits after hiding gui window

2018-04-27 Thread Tony Fischetti
Matthew's solution work perfectly. Thank you so much! On Friday, April 27, 2018 at 1:21:34 PM UTC-4, Tony Fischetti wrote: > > > Hi all, > > I've been stuck on this for a while. > Short version: When I hide a GUI window with `(send frame show #f)` the > application (on a mac, at least) *exits*

Re: [racket-users] Re: Blockly-Like Interface in DrRacket

2018-04-27 Thread Leif Andersen
Stephen, Do you have a link to your current source code? If so I'd be happy to take a look at it and give you general feedback. Also yes, your solution is (very sadly) the current state of the art I have in #lang editor. (https://github.com/videolang/idmt). In the future I hope to improve

[racket-users] Re: Blockly-Like Interface in DrRacket

2018-04-27 Thread Greg Trzeciak
Cool! At first I wondered on the purpose of the racket-bricks (since there is scratch already) but when you mentioned the transition from block based coding it made a perfect sense! BTW - have you considered using https://pkgs.racket-lang.org/package/scratchy with your B-expressions? G. On

Re: [racket-users] Regexp question matching a whole string

2018-04-27 Thread Zelphir Kaltstahl
Yep, that works, thank you. I did not know that EOF alone could be there. On Monday, April 23, 2018 at 2:16:52 AM UTC+2, Sam Tobin-Hochstadt wrote: > > Typed Racket is reminding you that `read-line` can produce EOF. If you > handle that (for example, with `(assert something string?)`) then it >

Re: [racket-users] Regexp question matching a whole string

2018-04-27 Thread Zelphir Kaltstahl
That is an interesting and probably much better way to do it. Of course I did remember -0/42 … *clears throat* (not) :D Thank you! On Monday, April 23, 2018 at 12:03:38 AM UTC+2, Matthew Butterick wrote: > > On Apr 22, 2018, at 1:40 PM, Zelphir Kaltstahl > wrote: > > Ah

[racket-users] Re: Blockly-Like Interface in DrRacket

2018-04-27 Thread Stephen Foster
Actually, I figured it out myself. For the curious: What I ended up doing was implementing a custom language "#lang racket-bricks". I used syntax/module-reader's #:wrapper1 to intercept the code prior to execution. It scrapes out all of the brick-snip%s and replaces them with their

Re: [racket-users] Racket application quits after hiding gui window

2018-04-27 Thread Matthew Flatt
The main way to avoid a default exit on Mac OS is to create a `menu-bar%` with the parent 'root. That menu bar becomes active when no windows (i.e., frames) are open. Another way is to not rely on the implicit `(yield (current-eventspace))` of a GUI executable, and instead use something like

Re: [racket-users] Racket application quits after hiding gui window

2018-04-27 Thread Philip McGrath
I know that, on Mac at least, it's expected behavior for the application to exit when all windows are hidden with `(send frame show #f)`. I personally think this is a great default, because it prevents the annoying behavior of other applications that hang around open even when you mean to have

[racket-users] Racket application quits after hiding gui window

2018-04-27 Thread Tony Fischetti
Hi all, I've been stuck on this for a while. Short version: When I hide a GUI window with `(send frame show #f)` the application (on a mac, at least) *exits* when I'd like it to just hide the application and leave it still running. More information: I'm developing a small (personal)

[racket-users] Re: [racket] Socket error with distributed places example

2018-04-27 Thread Wayne Iba
As a first step, I would suggest checking your authorized_keys setup and make sure that you can login to the remote machine without password. A hypothesis is that you don't have an offending key for localhost, thus allowing the example to work on one machine, but you don't have the appropriate

[racket-users] Racket-[con|summer school] and podcasts

2018-04-27 Thread Stephen De Gabrielle
Hi There are a number of podcasts that do conference announcements - is it worth sending details of the racket-con/summer-school to ‘cognicast’, ‘functional geekery’ and any others? https://con.racket-lang.org https://summer-school.racket-lang.org/2018/ cont...@functionalgeekery.com As I can’t