[racket-users] Need help with parallelizing a procedure

2017-08-12 Thread Zelphir Kaltstahl
I want to parallelize a procedure which looks like this: ~~~ (define (gini-index subsets label-column-index) (for/sum ([subset (in-list subsets)]) (for/sum ([label (in-list (list 0 1))]) (calc-proportion subset label label-column-index

Re: [racket-users] Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-12 Thread Jay McCarthy
On Sun, Aug 6, 2017 at 3:49 PM, Cecil McGregor wrote: > The output is as expected as well as the db validity: > (This was performed after running db.dropDatabase() ) > Welcome to DrRacket, version 6.9 [3m]. > Language: racket, with debugging. > '#("Can't wait!" "Another blog?") >> (mongo-db? d) >

[racket-users] Re: Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-12 Thread Cecil McGregor
On Sunday, August 6, 2017 at 2:49:59 PM UTC-7, Cecil McGregor wrote: > I've run the Quickstart and find some problems when > I start adding minor forms. > > The QuickStart is at https://docs.racket-lang.org/mongodb/Quickstart.html > > Here is the QuickStart code: > > #lang racket > (require db/m

Re: [racket-users] Need help with parallelizing a procedure

2017-08-12 Thread Jon Zeppieri
On Sat, Aug 12, 2017 at 6:21 AM, Zelphir Kaltstahl wrote: > > ~~~ > (define (gini-index subsets label-column-index) > (for*/list ([subset (in-list subsets)] > [label (in-list (list 0 1))]) > (place pch >(place-channel-put pch (list subset label label-column-index))

[racket-users] Re: Need help with parallelizing a procedure

2017-08-12 Thread Zelphir Kaltstahl
On Saturday, August 12, 2017 at 12:21:19 PM UTC+2, Zelphir Kaltstahl wrote: > I want to parallelize a procedure which looks like this: > > ~~~ > (define (gini-index subsets label-column-index) > (for/sum ([subset (in-list subsets)]) > (for/sum ([label (in-list (list 0 1))]) > (calc-pro

[racket-users] Choosing when to call an indenter

2017-08-12 Thread Sam Waxman
Hello, I just built an indenter for a #lang I wrote, and placed it into the get-info function. It seems that by default, Racket will only call the indenter if you tell it to (by hitting tab or control I) or when you hit enter. In the latter case, it will only indent the line you're on after you

[racket-users] Running a program in multiple languages at once

2017-08-12 Thread Sam Waxman
Hello, Let's say I have a program the user entered that just looks like 1 + 2 and I have three different #langs, all with different parsers and different notions of addition, for which this is a valid program. I'm looking to make it so that this program outputs the following: "Output for la