Re: [racket] Post package installation

2013-11-07 Thread Laurent
On Fri, Nov 8, 2013 at 2:12 AM, Jay McCarthy wrote: > There is not. I think you should add something into your documentation > that says > > "Run racket -e '(require laurent/init)'" > Side question: Is there a difference with `racket -l laurent/init`? > > after installing. Ok. To remove weig

Re: [racket] possible bug in scribble-pkgs / scribble-lib / scribble / html-render.rkt

2013-11-07 Thread Matthew Butterick
I've posted a comment to the commit, and will study the issue further. https://github.com/plt/racket/commit/7323dde0ea On Thu, Nov 7, 2013 at 3:03 PM, Matthew Flatt wrote: > The intent of the "mywbr" span is to allow a line break between "/" and > the following character (since we sometimes h

Re: [racket] Post package installation

2013-11-07 Thread Jay McCarthy
There is not. I think you should add something into your documentation that says "Run racket -e '(require laurent/init)'" after installing. In my mind, this was not an oversight in the design, but a purposeful thing. Jay On Thu, Nov 7, 2013 at 11:20 AM, Laurent wrote: > Is there something sim

Re: [racket] fun porting scsh to Racket

2013-11-07 Thread Anthony Carrico
Don't feel lonely. Keep putting your stuff in github. Update your readme, put in some examples, maybe in a submodule as unit tests: (module+ test (require rackunit)) -- Anthony Carrico signature.asc Description: OpenPGP digital signature Racket Users list: http://lis

Re: [racket] Boston Area Meet Up

2013-11-07 Thread Daniel King
On Wed, Nov 6, 2013 at 7:41 AM, Greg Hendershott wrote: > I've attended a few things in Boston via Meetup.com, lately.[1] I've > thought, dang, I wish there were one for Racket. My thoughts exactly ;) > Question for NEU folks, or others with local space: If someone like > Daniel did the organiz

Re: [racket] possible bug in scribble-pkgs / scribble-lib / scribble / html-render.rkt

2013-11-07 Thread Matthew Flatt
The intent of the "mywbr" span is to allow a line break between "/" and the following character (since we sometimes have long identifiers where characters like "/" are a helpful break point). The "mywbr" style sets the span width to 0 to avoid rendering any space. Danny Yoo was the last person to

Re: [racket] Changing the pretty print columns when running raco expand

2013-11-07 Thread Matthew Flatt
At Thu, 7 Nov 2013 08:39:41 -0800, Eric Dobson wrote: > I use raco expand a bunch when debugging macros to see the final > output and see why it doesn't match up with my expectations. One issue > I have is that the pretty printer decides to only use 80ish columns > when my terminal is 200 wide, thi

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Stephan Houben
Umm, ok. I retract my comment. I had not inferred that from the.docs. Stephan Stephan Houben Op 7 nov. 2013 17:56 schreef "Neil Toronto" het volgende: > Huh. It looks like they're also using Shewchuk's O(n*log(n)) average-case > distillation algorithm. Like Racket's math library does. :D > > Ne

[racket] Post package installation

2013-11-07 Thread Laurent
Is there something similar to the `install-collection' field in info.rkt but for package installation instead of collection installation? In particular, I'd like to run some interaction with the user to create some default files. Laurent Racket Users list: http://lists.ra

Re: [racket] Changing the pretty print columns when running raco expand

2013-11-07 Thread Eric Dobson
I know about the macro stepper and it doesn't work for my use case. I don't have a simple macro, I have the entire TR typechecker/optimizer. Thus splitting it out into its own module is not feasible. Also because of how TR works there is one major macro application and the macro stepper cannot see

Re: [racket] Changing the pretty print columns when running raco expand

2013-11-07 Thread Konrad Hinsen
Neil Van Dyke writes: > "raco expand"? If you've not yet tried the Macro Stepper feature of > DrRacket, you are in for a treat. And for Emacs fans, Geiser provides macro-expansion-at-a-keypress. Konrad. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Changing the pretty print columns when running raco expand

2013-11-07 Thread Neil Van Dyke
"raco expand"? If you've not yet tried the Macro Stepper feature of DrRacket, you are in for a treat. Racket's theoretical foundation for phases, Racket's syntax objects, "syntax-parse", DrRacket's Macro Stepper, and DrRacket's online Check Syntax (on-the-fly error highlighting when people ar

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Neil Toronto
Huh. It looks like they're also using Shewchuk's O(n*log(n)) average-case distillation algorithm. Like Racket's math library does. :D Neil ⊥ On 11/07/2013 04:24 AM, Stephan Houben wrote: The competition does it better, see Python's fsum: import math janus = [31.0, 2e+34, -1.2345678901235e+80

[racket] Changing the pretty print columns when running raco expand

2013-11-07 Thread Eric Dobson
I use raco expand a bunch when debugging macros to see the final output and see why it doesn't match up with my expectations. One issue I have is that the pretty printer decides to only use 80ish columns when my terminal is 200 wide, this makes the output really ugly and hard to read. If this was a

Re: [racket] Numbers with dimensions

2013-11-07 Thread Konrad Hinsen
Laurent writes: > so many useful ones anyway. Each client module would then require the > module with the unit system it needs, i.e. measures/si or > measures/atomic. > > The units are now in a separate file but I did not try to build another base. > But at least it's possible to r

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Konrad Hinsen
Todd O'Bryan writes: > I just found a lovely Java expression to emphasize the inexactness of > doubles to my AP students. The problem--which I think is from > HtDP/1e--is to find the value of a bag of coins given the number of > pennies, nickels, dimes, and quarters. In BlueJ's code pad (or si

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Laurent
In racket/base, you can also simply use bignums instead: > (define janus '(31.0 2e+34 -1.2345678901235e+80 2749.0 -2939234.0 -2e+33 3.2e+270 17.0 -2.4e+270 4.2344294738446e+170 1.0 -8e+269 0.0 99.0)) > (exact->inexact (apply + (map inexact->exact janus))) 4.2344294738446e+170 No n

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Ben Duan
Thank you all. Your examples are really surprising to me. On Thu, Nov 7, 2013 at 6:20 PM, Todd O'Bryan wrote: > I just found a lovely Java expression to emphasize the inexactness of > doubles to my AP students. The problem--which I think is from > HtDP/1e--is to find the value of a bag of coins

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Stephan Houben
The competition does it better, see Python's fsum: import math janus = [31.0, 2e+34, -1.2345678901235e+80, 2749.0, -2939234.0, -2e+33, 3.2e+270, 17.0, -2.4e+270, 4.2344294738446e+170, 1.0, -8e+269, 0.0, 99.0] print(math.fsum(janus)) # 4.2344294738446e+170 The fsum algorithm is interest

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Todd O'Bryan
I just found a lovely Java expression to emphasize the inexactness of doubles to my AP students. The problem--which I think is from HtDP/1e--is to find the value of a bag of coins given the number of pennies, nickels, dimes, and quarters. In BlueJ's code pad (or similar in DrJava, jGrasp, etc.) >