Re: [racket-users] Re: Retina display for OpenGL

2019-08-06 Thread Kshitij Sachan
It looks like `get-gl-client-size` is meant for canvas objects. Is there a parallel function or any other way to get high resolution snips? On Saturday, August 3, 2019 at 1:44:10 PM UTC-4, Jay McCarthy wrote: > > There's two steps to using the hires mode on OS X. > > First, you need the OpenGL

Re: [racket-users] [racket users] module question

2019-08-06 Thread Sorawee Porncharoenwase
You need: (module B racket (require (submod ".." A)) (printf "X=~a~%" X)) On Tue, Aug 6, 2019 at 3:58 PM Kevin Forchione wrote: > Is there a way to define 2 modules within a file and reference them or is > a file limited to 1 module only (but may have multiple submodules)? > > Here’s a

[racket-users] [racket users] module question

2019-08-06 Thread Kevin Forchione
Is there a way to define 2 modules within a file and reference them or is a file limited to 1 module only (but may have multiple submodules)? Here’s a small sample: #lang racket (module A racket ˘ (provide X) (define X 'foo)) (module B racket (require 'A) (printf "X=~a~%" X))

Re: [racket-users] Re: gui widgets over canvas

2019-08-06 Thread Neil Van Dyke
Hendrik Boom wrote on 8/6/19 4:03 PM: Be careful. You might hit such limits, and your interfaces might behave in dangerous ways. Thanks for the warning.  I've seen a lot of such limits in various GUI toolkits, and, when you have a cross-platform layer over it, you have to do a combination

Re: [racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread George Neuner
On 8/6/2019 1:54 PM, Tony Garnock-Jones wrote: On Tuesday, August 6, 2019 at 6:27:51 PM UTC+1, David Storrs wrote: I should mention that the reason I'm looking into this is because I have UDP sockets that are not getting closed.  They are managed by custodians, but the custodians

Re: [racket-users] Re: gui widgets over canvas

2019-08-06 Thread Hendrik Boom
On Tue, Aug 06, 2019 at 02:03:14AM -0400, Neil Van Dyke wrote: > Thank you, Alex.  I'll take another look at using `panel%` that way.  (I > wasn't sure that would work well on all platforms, because its own > implementation has special-cases for its stock subclasses, which conceivably > might be

Re: [racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread James Platt
On Aug 6, 2019, at 1:54 PM, Tony Garnock-Jones wrote: > How can a UDP socket survive process exit? > I don't knot but this appears to happen. On macOS, the open port shows in netstat but not lsof. You can find the process ID with netstat but then, when you go to kill it, kill says there

[racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread Tony Garnock-Jones
On Tuesday, August 6, 2019 at 6:27:51 PM UTC+1, David Storrs wrote: > > I should mention that the reason I'm looking into this is because I have > UDP sockets that are not getting closed. They are managed by custodians, > but the custodians are not releasing them; I take this to mean that the

Re: [racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread Sorawee Porncharoenwase
I have a similar question on will executor. It doesn't seem to get run on program exiting/breaking. Do I need a plumber that calls `collect-garbage`? On Tue, Aug 6, 2019 at 10:27 AM David Storrs wrote: > I should mention that the reason I'm looking into this is because I have > UDP sockets that

[racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-06 Thread David Storrs
I should mention that the reason I'm looking into this is because I have UDP sockets that are not getting closed. They are managed by custodians, but the custodians are not releasing them; I take this to mean that the custodians are not being run. On Tue, Aug 6, 2019 at 1:06 PM David Storrs

Re: [racket-users] [racket users] make-posn question

2019-08-06 Thread Nadeem Abdul Hamid
Probably (require lang/posn) --- nadeem On Tue, Aug 6, 2019 at 1:19 PM Kevin Forchione wrote: > Hi guys, > I love working with the 2htdp/universe and 2htdp/image packages. But > polygon requires posts (and some of the other functions do too). > 2htdp/image doesn’t include a definition. What’s

[racket-users] [racket users] make-posn question

2019-08-06 Thread Kevin Forchione
Hi guys, I love working with the 2htdp/universe and 2htdp/image packages. But polygon requires posts (and some of the other functions do too). 2htdp/image doesn’t include a definition. What’s the best library to require for these? I tried making my own struct and was surprised that the

[racket-users] Re: pict superimpose documentation

2019-08-06 Thread 'Joel Dueck' via Racket Users
The example code using the blue circle and the red rectangle makes it pretty clear. Each pict gets covered up by the one to its right in the argument list. On Saturday, August 3, 2019 at 6:14:13 PM UTC-5, Hendrik Boom wrote: > > The documentation in >

[racket-users] Do custodians shutdown when Racket exits?

2019-08-06 Thread David Storrs
A bunch of reading through docs suggests that custodians do not automatically run when Racket exits and that if I want them to then I should either use a plumber (which is not guaranteed to run if there's a segfault) or register the custodian with the ffi/unsafe/custodian module (

Re: [racket-users] Re: Alternative UI toolkits

2019-08-06 Thread Aidan Gauland
That would be Electron , for which I think Racket would be a /really/ awkward fit, but if anyone has a crack at it, I'd be very interested to see the result. On 6/08/19 9:06 AM, Stephen De Gabrielle wrote: > Sorry, I meant whatever is used to make Visual Studio Code, and

Re: [racket-users] Re: gui widgets over canvas

2019-08-06 Thread Neil Van Dyke
Thank you, Alex.  I'll take another look at using `panel%` that way.  (I wasn't sure that would work well on all platforms, because its own implementation has special-cases for its stock subclasses, which conceivably might be necessary on some platforms.) Regarding scrollbars, I might end up