Re: [racket-users] How to install a planet package?

2017-05-31 Thread Keccak ThreeEightyFour
Ah, too bad. I was curious to play around with this. Thanks for your help, - keccak On Wed, May 31, 2017 at 11:57 PM, Sam Tobin-Hochstadt wrote: > Unfortunately, that seems to be a problem in the library. You can see > the source here: >

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Neil Van Dyke
Steve Byan's Lists wrote on 05/31/2017 10:05 PM: I'd appreciate a short example of what you mean by using `apply` and `lambda` to destructure the list. I'll babble more than you want here, in case anyone on the list is curious in general... #lang racket/base (define

Re: [racket-users] How to install a planet package?

2017-05-31 Thread Sam Tobin-Hochstadt
Unfortunately, that seems to be a problem in the library. You can see the source here: http://planet.racket-lang.org/package-source/toups/functional.plt/1/1/monads.rkt and it depends on a utilities collection that it does not include. Sam On Wed, May 31, 2017 at 11:53 PM,

Re: [racket-users] How to install a planet package?

2017-05-31 Thread keccak192
I just installed from the version 6.9 shell script. I did enter 'Y' for all dependencies. If I switch to (require (planet toups/functional:1:1/monads)) I get the error: /home/kk/.racket/planet/300/6.9/cache/toups/functional.plt/1/1/monads.rkt:3:9: collection not found

Re: [racket-users] Racket for Kids in 2017

2017-05-31 Thread Matthias Felleisen
> On May 31, 2017, at 10:31 PM, Ramon Diaz-Uriarte wrote: > > I've been intending to ask a somewhat similar question, so I'll jump to this > part directly: > > On Sunday, May 28, 2017 at 10:28:33 PM UTC+2, Matthias Felleisen wrote: > > (...) >> >> Realm of Racket is NOT

Re: [racket-users] How to install a planet package?

2017-05-31 Thread Sam Tobin-Hochstadt
Installation from Planet means that you have to use the special planet require syntax, in this case: (require (planet toups/functional:1:1/monads)) Sam On Wed, May 31, 2017 at 9:44 PM, wrote: > Probably a basic question, but when I run: > > raco planet install toups

Re: [racket-users] How to install a planet package?

2017-05-31 Thread Matthias Felleisen
Yes. Did you allow Package to install all dependencies? I just ran it and the installation completed flawlessly. GIT HEAD Racket version. > On May 31, 2017, at 10:07 PM, keccak...@gmail.com wrote: > > Thanks. When I run the planet install it does appear to work. Running > > raco pkg

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Jon Zeppieri
On Wed, May 31, 2017 at 10:05 PM, Steve Byan's Lists wrote: > > I did consider using an association list representation for the attributes, > but I'm depending on s-expression pattern matching for parsing the records. > It's wonderfully convenient for this. I'm under

Re: [racket-users] Racket for Kids in 2017

2017-05-31 Thread Ramon Diaz-Uriarte
I've been intending to ask a somewhat similar question, so I'll jump to this part directly: On Sunday, May 28, 2017 at 10:28:33 PM UTC+2, Matthias Felleisen wrote: (...) > > Realm of Racket is NOT intended for plain beginners. It says so in the > Preface. We really tried hard to clarify that

Re: [racket-users] How to install a planet package?

2017-05-31 Thread keccak192
Thanks. When I run the planet install it does appear to work. Running raco pkg install functional also appears to work, but I still see an error scratch.rkt:5:9: collection not found for module path: functional/better-monads collection: "functional" in collection directories:

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Steve Byan's Lists
Hi Neil, Thanks for the comments. > On May 31, 2017, at 8:21 PM, Neil Van Dyke wrote: > > In addition to what others have mentioned, at this scale, you might get > significant gains by adjusting your s-expression language. > > For example, instead of this: > >

Re: [racket-users] How to install a planet package?

2017-05-31 Thread Matthias Felleisen
There is a ‘functional’ package on the Package server. Try that for now? It’s possible that Planet went off-line. > On May 31, 2017, at 9:44 PM, keccak...@gmail.com wrote: > > Probably a basic question, but when I run: > > raco planet install toups functional.plt 1 1 > > to install a

[racket-users] How to install a planet package?

2017-05-31 Thread keccak192
Probably a basic question, but when I run: raco planet install toups functional.plt 1 1 to install a package, I still get an error for the 2-line script #lang racket (require functional) that this collection is not found in /usr/racket/collects/ I have run every other seemingly related

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Neil Van Dyke
In addition to what others have mentioned, at this scale, you might get significant gains by adjusting your s-expression language. For example, instead of this: (pmem_flush (threadId 140339047277632) (startTime 923983542377819) (elapsedTime 160) (result 0) (addr 0x7fa239055954) (length

[racket-users] event resolution for nested editor-snips in racket/gui

2017-05-31 Thread andrew blinn
I'm trying to use a assign a keypress to toggle the display of the border of an embedded editor-snip. Currently pressing the toggle key only toggles the border of the topmost snip, whereas I want to toggle the border most local to the current caret: - #lang

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Steve Byan's Lists
> On May 31, 2017, at 6:32 PM, Matthias Felleisen wrote: > >> >> On May 31, 2017, at 6:14 PM, Jon Zeppieri wrote: >> >> >> This way, you don't build up a list or a lazy stream; you just process >> each datum as it's read. > > > Yes, that’s what I

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Steve Byan's Lists
Hi Jon, > On May 31, 2017, at 6:14 PM, Jon Zeppieri wrote: > > On Wed, May 31, 2017 at 5:54 PM, Steve Byan's Lists > wrote: >> So, I don't want to try to fit all the records in memory at once. I thought >> that the lazy stream would accomplish

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Matthias Felleisen
> On May 31, 2017, at 6:14 PM, Jon Zeppieri wrote: > > On Wed, May 31, 2017 at 5:54 PM, Steve Byan's Lists > wrote: >> Hi Mathias, >> >> Thanks for taking a look. >> >>> On May 31, 2017, at 4:13 PM, Matthias Felleisen >>>

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Jon Zeppieri
On Wed, May 31, 2017 at 5:54 PM, Steve Byan's Lists wrote: > Hi Mathias, > > Thanks for taking a look. > >> On May 31, 2017, at 4:13 PM, Matthias Felleisen wrote: >> >> >> Can you explain why you create a lazy stream instead of a plain list? > >

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Steve Byan's Lists
Hi Mathias, Thanks for taking a look. > On May 31, 2017, at 4:13 PM, Matthias Felleisen wrote: > > > Can you explain why you create a lazy stream instead of a plain list? The current size of a short binary trace file is about 10 GB, and I want to scale to traces many

Re: [racket-users] Performance of the Racket reader

2017-05-31 Thread Matthias Felleisen
Can you explain why you create a lazy stream instead of a plain list? Your code is strict in the stream so the extra memory for a stream is substantial and probably wasted. Perhaps the below is simplified and you really need only portions of the lazy stream. — Matthias > On May 31, 2017,

[racket-users] Performance of the Racket reader

2017-05-31 Thread Steve Byan's Lists
I've written a command-line tool in Racket to analyze the files produced by a tool that traces accesses to persistent memory by an application. The traces are large: about 5 million records per second of application run time. While developing the tool in Racket was a pleasant, productive, and