[racket-users] Not a rant at all!

2017-12-13 Thread Gregor Kopp
Hi! I just wanted to say that the whole racket system (including dr. racket) is by far my most liked programming system I've ever tried. I'm a hobby programmer and the glitchless ide combined with the very huge documentation makes me wonder why I'm not using it since ever ;) Sometimes I'm in trou

[racket-users] Confirming when garbage collection runs

2017-12-13 Thread David Storrs
I'm using the job-queue module (https://docs.racket-lang.org/job-queue/index.html) and want to confirm that I understand the memory management implications Imagine I do this: (struct fruit (num)) (define (foo) (make-list 1 (fruit 7))) (define (bar) (map (compose add1 fruit-

[racket-users] Re: Confirming when garbage collection runs

2017-12-13 Thread David Storrs
Sorry, bumped 'send' by mistake Imagine I do this: (struct fruit (num)) (define (foo) (make-list 1 (fruit 7))) (define (bar) (map (compose add1 fruit-num) (foo))) (submit-job! (thunk (bar))) I think that the above is roughly equivalent to doing this: (thread (thunk

[racket-users] stumped

2017-12-13 Thread Stephen De Gabrielle
Hi, I'm working on a 'directory' like you would find in VScode, xcode, or clion* https://github.com/spdegabrielle/dir-control/blob/master/dir-control.rkt I's pretty enough, but 'm not sure how to best to store the values against the respective parts of the control, so they can be passed via a cal

[racket-users] Best way to deploy to the package server if the module relies on a DB?

2017-12-13 Thread David Storrs
I have some code that I'd like to release that relies on having a database available. I know that the package server regularly runs tests for the packages, and presumably there won't be a writable DB available on the package server. What is the best way to handle this? -- You received this mess

Re: [racket-users] Best way to deploy to the package server if the module relies on a DB?

2017-12-13 Thread Sam Tobin-Hochstadt
I recommend the techniques described here: http://pkg-build.racket-lang.org/about.html under "dealing with test failures". Sam On Wed, Dec 13, 2017 at 6:21 PM, David Storrs wrote: > I have some code that I'd like to release that relies on having a > database available. I know that the package s

Re: [racket-users] Best way to deploy to the package server if the module relies on a DB?

2017-12-13 Thread David Storrs
Great, thanks. On Wed, Dec 13, 2017 at 6:24 PM, Sam Tobin-Hochstadt wrote: > I recommend the techniques described here: > http://pkg-build.racket-lang.org/about.html under "dealing with test > failures". > > Sam > > On Wed, Dec 13, 2017 at 6:21 PM, David Storrs wrote: >> I have some code that I'

[racket-users] Re: Best way to deploy to the package server if the module relies on a DB?

2017-12-13 Thread Jack Firth
In my fixture package I'm attempting to (hopefully) make this sort of thing easier for RackUnit-based tests (see this github issue ), so if you're using RackUnit I'm interested in seeing what y

[racket-users] Re: stumped

2017-12-13 Thread Alex Harsanyi
I built a similar control, although it does not represent directory paths, just labels which are stacked vertically. I ended up defining a structure to hold the text and width + height of each label and keep these structures in a list. In my case, all labels have the same size so converting a mo

Re: [racket-users] Re: stumped

2017-12-13 Thread Stephen De Gabrielle
Thanks Alex, Much appreciated! Stephen On Thu, 14 Dec 2017 at 04:50, Alex Harsanyi wrote: > I built a similar control, although it does not represent directory paths, > just labels which are stacked vertically. I ended up defining a structure > to hold the text and width + height of each label an