Re: [racket] question on pluggable modules

2013-11-03 Thread Matthias Felleisen
I tend to define such constants in a file dubbed 'basics' and require it everywhere. See https://github.com/mfelleisen/Acquire for example. There 'basics' contains the constants I need for most of the game implementation and some simple functions too. -- Matthias On Nov 3, 2013, at 1

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

2013-11-03 Thread Robby Findler
On Sunday, November 3, 2013, Norman Ramsey wrote: > I'm trying to create a teachpack for use with Intermediate Student > Language. > I believe that I need to create a source file that uses the (provide ...) > form and I need to put it into a package. I have two questions: > > - What, if anythin

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

2013-11-03 Thread Norman Ramsey
I'm trying to create a teachpack for use with Intermediate Student Language. I believe that I need to create a source file that uses the (provide ...) form and I need to put it into a package. I have two questions: - What, if anything, can I put into the info.rkt file to get my teachpack on

[racket] question on pluggable modules

2013-11-03 Thread Stephen Bloch
Program P uses several functions (say, f and g) which can be implemented in several different ways (think of (f,g) as a Java interface, with (f1,g1) as one implementing class, (f2,g2) as another implementing class, etc.) I'd like to be able to run the program with one implementation, then with

Re: [racket] Scribble secref unlinked in PDF output

2013-11-03 Thread Matthew Flatt
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 macros that render section links (when the referenced section is within the same document). At Wed, 23 Oct 20

Re: [racket] curious behavior of path-replace-suffix for files beginning with dot?

2013-11-03 Thread Matthew Flatt
At Mon, 21 Oct 2013 15:38:01 -0700, Matthew Butterick wrote: > Looking over the > documentation f._((lib._racket/private/misc..rkt)._path-replace-suffix))> > I'm > not clear why this would be so: > > > (path-replace-suffix (string

Re: [racket] realm of racket

2013-11-03 Thread Matthias Felleisen
Please work your way thru HtDP/2e first. Realm assumes people have seen a full course on programming (2e is almost complete) and have the maturity to work through some typical first problems. When you're done Realm will be just fine for you. -- Matthias On Nov 3, 2013, at 6:19 AM, Saad Bas

[racket] Fwd: realm of racket

2013-11-03 Thread Saad Bashir
But I have another question. What should I do if need to go back to BSL from time to time as I am still working with Htdp/2. Will you advise to go through Realm of Racket fully and then re-try Htdp/2? Saad On Sun, Nov 3, 2013 at 2:14 PM, Geoffrey S. Knauth wrote: > Glad you got it working!

Re: [racket] Sfont a collection for manipulating fonts

2013-11-03 Thread Daniele Capo
> Have you considered making this a package[1]? Then you can upload it to > the package catalog[2] for easy installation. > > I think it should just be a matter of putting > > (define collection 'multi) > > Oh thanks, I still have to study how packages work. I'm writing a documentation ad fixing

Re: [racket] realm of racket

2013-11-03 Thread Geoffrey S. Knauth
Saad, at first I thought the problem was you put a space after the single-quote mark. I tried what you entered using the Beginning Student with List Abbreviations language, and it worked, space or no space: > '((1 3 5 7 9) (2 4 6 8 0)) (list (list 1 3 5 7 9) (list 2 4 6 8 0)) > ' ((1 3 5 7

[racket] realm of racket

2013-11-03 Thread Saad Bashir
I have been working with Htdp/2 as an absolute beginner and finding it difficult have switched to Realm of Racket. In the first pages it asks one to download Racket which I already have but in the BSL mode. When using it I type in the following in the interactions panel as advised by Realm of Rac