Re: [racket] record? option doesn't save animated gif

2012-11-08 Thread Todd O'Bryan
Matthias figured out my problem off-list. Basically, I wasn't waiting long enough for the animated gif to be created. I shall endeavor to be more patient. :-) On Thu, Nov 8, 2012 at 10:01 AM, Matthias Felleisen wrote: > > Can you send me a small example? Recording a sequence of world events and

Re: [racket] Racket v5.3.1

2012-11-08 Thread Jon Zeppieri
On Thu, Nov 8, 2012 at 2:39 AM, Laurent wrote: > > > >> * The `case' form dispatches on characters, fixnums, symbols, and >> keywords in logarithmic time. (Thanks to Jon Zeppieri.) >> > > No hidden constant for small dispatchers compared to the previous version? > > Small case expressions (<

Re: [racket] plot w/ log scale

2012-11-08 Thread David Van Horn
On 11/8/12 5:48 PM, Vincent St-Amour wrote: You can use axis transforms, but you may need to bound them. #lang racket (require plot) (parameterize ([plot-y-transform (axis-transform-bound log-transform 1 2000)]) (plot (discrete-histogram '(#(a 10) #(b 100) #(c 1000) Thanks! Maybe someo

Re: [racket] plot w/ log scale

2012-11-08 Thread Vincent St-Amour
You can use axis transforms, but you may need to bound them. #lang racket (require plot) (parameterize ([plot-y-transform (axis-transform-bound log-transform 1 2000)]) (plot (discrete-histogram '(#(a 10) #(b 100) #(c 1000) Vincent At Thu, 08 Nov 2012 17:19:11 -0500, David Van Horn wrote:

Re: [racket] plot w/ log scale

2012-11-08 Thread Stephen Chang
Looks like there are axis-transforming parameters that may do the trick? http://docs.racket-lang.org/plot/ticks_and_transforms.html On Thu, Nov 8, 2012 at 5:19 PM, David Van Horn wrote: > Is there some way to plot a discrete histogram with a log-scale y-axis? > > Thanks, > David > ___

[racket] plot w/ log scale

2012-11-08 Thread David Van Horn
Is there some way to plot a discrete histogram with a log-scale y-axis? Thanks, David Racket Users list: http://lists.racket-lang.org/users

Re: [racket] TR base-env typing classes/instances

2012-11-08 Thread Sam Tobin-Hochstadt
On Wed, Nov 7, 2012 at 4:02 PM, Ray Racine wrote: > Given racket/place/distributed then the typing should go into base-env.rkt > true? > Assuming so, we face the situation that the place/distributed API uses class > instances. > > e.g. spawn-node-supervise-place-at returns (values remote-node% > r

[racket] using new (~a ...) form for errors: minor irritation?

2012-11-08 Thread John Clements
I'm really enjoying the new (~a ...) formatting forms, but I'm wondering about a workaround for this minor irritation: When I call (error...), I typically use the form that includes the function name. However, this form treats its second argument as a format string, not as a message. This means

Re: [racket] XNextEvent blocking 'read' in other thread?

2012-11-08 Thread Kevin Tew
XPending returns an integer and I was using it in a boolean context which led to unintended blocking. Fix coming. On 11/07/2012 12:27 PM, Laurent wrote: Thank you all very much for your answers, they are very helpful. AFAICT, after some light testing, Jon's code does what I want, but Kevin's

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-08 Thread Matthias Felleisen
That happens to the best and worst of us. I switch among syntax-rule, syntax-rules, syntax-case, and syntax-parse. I have made the same mistake as your friend. On Nov 8, 2012, at 10:06 AM, Greg Hendershott wrote: > In general I love internal define and have been using it heavily. > > A

Re: [racket] Racket v5.3.1

2012-11-08 Thread Patrick Useldinger
On 07/11/2012 23:16, Eli Barzilay wrote: Racket version 5.3.1 is now available from http://racket-lang.org/ Thanks for this nice release. I noticed a 20% speed increase on one of my programs, and I absolutely *love* the line indicator triangle in DrRacket! -pu Rack

Re: [racket] standard-module-name-resolver: contract violation

2012-11-08 Thread Laurent
> On some occasions, drracket won't compile my file, and prints an error: >> >> standard-module-name-resolver: contract violation >> expected: module-path? >> given: '(#%foreign) >> >> > > Wait, but this doesn't look right anyway, because '(#%foreign) is a list. > So that may be a type error s

Re: [racket] standard-module-name-resolver: contract violation

2012-11-08 Thread Danny Yoo
On Thu, Nov 8, 2012 at 1:23 AM, Laurent wrote: > On some occasions, drracket won't compile my file, and prints an error: > > standard-module-name-resolver: contract violation > expected: module-path? > given: '(#%foreign) > > Wait, but this doesn't look right anyway, because '(#%foreign) is

Re: [racket] An example of let-vs-define: SICP 2.64

2012-11-08 Thread Greg Hendershott
In general I love internal define and have been using it heavily. After the initial infatuation, I still love it. I've also come to appreciate that sometimes let can be clearer. I like having the choice. Another way internal define can bite you is if you're not real crisp on your understanding of

Re: [racket] record? option doesn't save animated gif

2012-11-08 Thread Matthias Felleisen
Can you send me a small example? Recording a sequence of world events and replaying for the creation of an animated gif is one of the standard tests I run. It passed on my machine a couple of weeks ago -- Matthias On Nov 8, 2012, at 9:47 AM, Todd O'Bryan wrote: > In the universe, if I use th

[racket] record? option doesn't save animated gif

2012-11-08 Thread Todd O'Bryan
In the universe, if I use the record? option for big-bang, I get a bunch of png files, but no animated gif as suggested by the documentation. Am I doing something wrong or have I found a bug? Thanks, Todd Racket Users list: http://lists.racket-lang.org/users

[racket] standard-module-name-resolver: contract violation

2012-11-08 Thread Laurent
On some occasions, drracket won't compile my file, and prints an error: standard-module-name-resolver: contract violation expected: module-path? given: '(#%foreign) But racket or raco make on the command line works fine. This is probably because one of the included files requires '#%foreign,