[racket] License question

2013-11-04 Thread Mark Engelberg
I must admit that I have no idea how to interpret the legalese associated with different software licenses. Is it okay to port portions of Racket's math library to other languages? Thanks, Mark Racket Users list: http://lists.racket-lang.org/users

Re: [racket] What #lang to use to create teachpack?

2013-11-04 Thread David Van Horn
On 11/4/13, 6:36 PM, Norman Ramsey wrote: > I think you will find "#lang racket" the best language for writing > teachpacks. Using "#lang racket" I have successfully create a package, installed it, and require'd it. But when I print a structure defined in my package, the arguments don't pri

Re: [racket] What #lang to use to create teachpack?

2013-11-04 Thread Robby Findler
Use #:transparent in the struct declaration. Robby On Monday, November 4, 2013, Norman Ramsey wrote: > > I think you will find "#lang racket" the best language for writing > > teachpacks. > > Using "#lang racket" I have successfully create a package, installed > it, and require'd it. But when

Re: [racket] What #lang to use to create teachpack?

2013-11-04 Thread Norman Ramsey
> I think you will find "#lang racket" the best language for writing > teachpacks. Using "#lang racket" I have successfully create a package, installed it, and require'd it. But when I print a structure defined in my package, the arguments don't print: > (require geo) > (length geonames)

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

2013-11-04 Thread Jens Axel Søgaard
2013/11/4 Ben Duan : > I've asked the question on Stack Overflow [1]. Óscar López gave me an > answer. But I still don't understand it. So I re-post it here: > > Following is my code for SICP exercise 1.29 [2]. The exercise asks us to > implement Simpson's Rule using higher order procedure `sum`. I

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

2013-11-04 Thread Daniel Prager
Interestingly, your code gives the expected result with exact arithmetic: > (simpson-integral cube 0 1 100) 1/4 and less of an error for a smaller number of steps: > (simpson-integral cube 0 1.0 10) 0.24994 Suggestion: Modify the code to print out the intermediate steps in the calcu

Re: [racket] Scribble secref unlinked in PDF output

2013-11-04 Thread Tim Jervis
Thanks Matthew, works great. Kind regards, Tim On 3 Nov 2013, at 17:11, Matthew Flatt wrote: > I've change Scribble to hyperlink section references by default in > LaTeX/PDF output. > > The change turned out to be easy, due to improvements back in July that > deliver a LaTeX-level label to macr

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

2013-11-04 Thread Ben Duan
I've asked the question on Stack Overflow[1]. Óscar López gave me an answer. But I still don't understand it. So I re-post it here: Following is my code for SICP exercise 1.29

[racket] Resources for understanding Racket’s language model?

2013-11-04 Thread Ben Duan
Dear all, I have some difficulties understanding “1 Language Model” of the Racket Reference. I want some detailed explanations on some concepts like “Prompts, Delimited Continuations, and Barriers” etc. Do you have any recommended resources like papers or books for me to start with? Thanks,

Re: [racket] getting entire syntax object in define-syntax-class pattern clause

2013-11-04 Thread Asumu Takikawa
On 2013-11-04 06:56:22 -0500, Neil Van Dyke wrote: > In "define-syntax-class", is there a way that the "#:attr" > expression can get the syntax object that was matched by the syntax > pattern? I think `this-syntax` will let you do that. Cheers, Asumu Racket Users list: ht

[racket] getting entire syntax object in define-syntax-class pattern clause

2013-11-04 Thread Neil Van Dyke
In "define-syntax-class", is there a way that the "#:attr" expression can get the syntax object that was matched by the syntax pattern? Reason: I'd like to use the syntax object in things like runtime errors and perhaps in non-error runtime debugging info. Neil V. Racke

Re: [racket] question on pluggable modules

2013-11-04 Thread Laurent
There are several ways to do that. As Matthias, I often use a file called "base.rkt" where I put all the constants that can be used in different files. For non-constants, I use either a parameter or simply a getter procedure. You can even place there some procedures to be defined later (kind of li

Re: [racket] scribble, tabluar, latex problem?

2013-11-04 Thread Manfred Lotz
Hi all, FYI: I talked to the maintainer of stabular.sty. He prepared a fix which I did test successfully. The fix should make its way to TeX Live in a reasonable time (usually soon after the package will have been uploaded to CTAN). -- Manfred On Thu, 31 Oct 2013 15:03:47 +0100 Manfred Lotz