[racket] Conditional compilation ?

2012-01-17 Thread Veer Singh
Hello , How do I during compilation stop propagation of shared state in a some module and allow propagation of shared state in other modules. Consider the following normal and compiled modules given below where applying (add) produces list of symbols. Now in module m2 if there is some form like

Re: [racket] problem with raco distribute

2012-01-17 Thread Matthew Flatt
Are you using 64-bit Windows? I see this problem with 64-bit Windows, where "iconv.dll" should be "libiconv-2.dll" --- fixed for the next build. At Mon, 16 Jan 2012 22:26:08 -0600, Will Robinson wrote: > Hello, > > I am trying to use raco to make a distributable exe to share an app with > friend

Re: [racket] Look-ahead in parser-tools?

2012-01-17 Thread Simon Haines
On 17 January 2012 23:53, Dmitry Pavlov wrote: > To work that around, I would > change the lexer rules by putting mandatory quotes around > facts or something like that. > > Thanks Dmitry, I'd contemplated this idea as it simplifies the parser, but complicates the language. I think I've run into

Re: [racket] Look-ahead in parser-tools?

2012-01-17 Thread Simon Haines
Hi Eric, On 17 January 2012 14:19, Erik Silkensen wrote: > Hi Simon, > > I think one problem might be that 'any-string' is including whitespace. > Could you define alias and fact in some way that's more specific? For > example, if you had an 'id' token of just letters ((:+ alphabetic) > (token

Re: [racket] Error installing whalesong

2012-01-17 Thread J G Cho
On Tue, Jan 17, 2012 at 5:24 PM, Danny Yoo wrote: > On Tue, Jan 17, 2012 at 5:09 PM, J G Cho wrote: >> Following instruction per http://hashcollision.org/whalesong/, I tried to run >> >> #lang racket/base >> (require (planet dyoo/whalesong:1:12/make-launcher)) in DrRacket. (v >> 5.2 with unlimite

Re: [racket] Error installing whalesong

2012-01-17 Thread Danny Yoo
On Tue, Jan 17, 2012 at 5:09 PM, J G Cho wrote: > Following instruction per http://hashcollision.org/whalesong/, I tried to run > > #lang racket/base > (require (planet dyoo/whalesong:1:12/make-launcher)) in DrRacket. (v > 5.2 with unlimited memory flag, OSX Snow Leop with 1GB memorty) Whalesong

[racket] Error installing whalesong

2012-01-17 Thread J G Cho
Following instruction per http://hashcollision.org/whalesong/, I tried to run #lang racket/base (require (planet dyoo/whalesong:1:12/make-launcher)) in DrRacket. (v 5.2 with unlimited memory flag, OSX Snow Leop with 1GB memorty) Dr complains during installation: Type Checker: Internal Typed Rack

Re: [racket] Redex on Windows - problem with GraphViz /find-executable-path

2012-01-17 Thread Rodolfo Carvalho
On Tue, Jan 17, 2012 at 18:03, Jos Koot wrote: > Thanks Rodolfo for your interest in lc-with-redex. I discovered the same > problem long ago, but made not any comment on it because I did not need fix > layout (or at least I think so, because I don't know what fix layout should > do. In many respe

Re: [racket] Redex on Windows - problem with GraphViz /find-executable-path

2012-01-17 Thread Jos Koot
Thanks Rodolfo for your interest in lc-with-redex. I discovered the same problem long ago, but made not any comment on it because I did not need fix layout (or at least I think so, because I don't know what fix layout should do. In many respects I am very ignorant :) Thanks Robby for the push. I'l

Re: [racket] Redex on Windows - problem with GraphViz / find-executable-path

2012-01-17 Thread Rodolfo Carvalho
On Tue, Jan 17, 2012 at 16:43, Robby Findler wrote: > Perhaps something more general is better, but for now I've pushed > something so that redex uses "dot.exe" and "neato.exe" under windows. > > Thanks Robby. Maybe find-executable-path could look for PATHEXT on Windows. Would that represent a pe

Re: [racket] Redex on Windows - problem with GraphViz / find-executable-path

2012-01-17 Thread Robby Findler
Perhaps something more general is better, but for now I've pushed something so that redex uses "dot.exe" and "neato.exe" under windows. Thanks, Robby On Tue, Jan 17, 2012 at 12:34 PM, Rodolfo Carvalho wrote: > Hi, > > I'm playing with lc-with-redex by Jos Koot, with example uses of Redex. > > Wh

[racket] Redex on Windows - problem with GraphViz / find-executable-path

2012-01-17 Thread Rodolfo Carvalho
Hi, I'm playing with lc-with-redexby Jos Koot, with example uses of Redex. When I use the traces function (miu-traces.rkt) I get the "PLT Redex Reduction Graph" window, but if I try to redo the layout, clicking on "Fix layout" I get an error: "Co

Re: [racket] Help with phases

2012-01-17 Thread Jon Rafkind
Yes that is my understanding. On 01/17/2012 01:43 AM, Veer Singh wrote: > Thanks , I think I understand it now , so roughly following steps > happens(apology for incorrect terminology) : > > 1. bind the identifier 'phases' to some val(a syntax transformer) in phase 1 > > i) during the above

[racket] Handin server on remote Linux server

2012-01-17 Thread Jordan Johnson
Hi all, Is it possible to run the racket handin-server from a remote Linux shell, without setting up an X forwarding session? When I attempt to start it using "gracket-text -l handin-server" as specified in the docs, I get an error about not having a display available; the error appears to ste

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Stephen Bloch
On Jan 17, 2012, at 8:27 AM, Matthias Felleisen wrote: For the book itself, I now think I took the wrong approach. While it is theoretically arranged properly -- especially the decision to model information with class based data w/o creating methods -- it doesn't suit the psychology of mos

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Matthias Felleisen
On Jan 17, 2012, at 10:40 AM, Jordan Schatz wrote: > But as someone who employees developers I place very little > value on knowledge of Java and wish students would learn more functional > programming, and more then OOP design patterns. Thank you. That's the purpose of HtDComponents, fp progra

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Jordan Schatz
> Excising all Java silliness would leave one with the empty set: { }. > But, thank you for your explanation. I believe you've said here > that you plan to resume work on the book "real soon now" ... I look > forward to that product eagerly. I know that Java has its place, I think that place is a

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Matthias Felleisen
On Jan 17, 2012, at 10:22 AM, Tom Maynard wrote: > On 1/17/2012 7:27 AM, Matthias Felleisen wrote: >> teachers are welcome to use it with standard Java (plus some hints that the >> book's language omits silly keywords). >> > > Excising all Java silliness would leave one with the empty set: { }

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Tom Maynard
On 1/17/2012 7:27 AM, Matthias Felleisen wrote: teachers are welcome to use it with standard Java (plus some hints that the book's language omits silly keywords). Excising all Java silliness would leave one with the empty set: { }. But, thank you for your explanation. I believe you've said

Re: [racket] filtering syntax

2012-01-17 Thread Sam Tobin-Hochstadt
On Tue, Jan 17, 2012 at 4:06 AM, Marijn wrote: > On 16-01-12 15:28, Sam Tobin-Hochstadt wrote: >> On Mon, Jan 16, 2012 at 7:57 AM, Marijn wrote: >>> >>> ((_ ((id rule) ...)) (with-syntax (((dep ...) (free-vars (expand >>> #'(rule ...) >> >> You need to use `local-expand', not `expand', here.

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Matthias Felleisen
On Jan 17, 2012, at 8:13 AM, Tom Maynard wrote: > On 1/17/2012 6:17 AM, Matthias Felleisen wrote: >> http://www.ccs.neu.edu/home/matthias/htdc.html >> > This may or may not be amusing, but I was working backwards (chronologically) > from this starting point. > > Was it the language, or the boo

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Tom Maynard
On 1/17/2012 6:17 AM, Matthias Felleisen wrote: http://www.ccs.neu.edu/home/matthias/htdc.html This may or may not be amusing, but I was working backwards (chronologically) from this starting point. Was it the language, or the book, that went astray? I mean, I guess I don't understand why i

Re: [racket] Look-ahead in parser-tools?

2012-01-17 Thread Dmitry Pavlov
Hello Simon, Some observations that maybe will help: 1. Since the problem is obviously in the lexer, you would probably prefer testing the lexer instead of parser: (define (test-lexer str) (let ((p (open-input-string str))) (port-count-lines! p) (let loop () (let ((tok (position

Re: [racket] Whither ProfessorJ

2012-01-17 Thread Matthias Felleisen
http://www.ccs.neu.edu/home/matthias/htdc.html On Jan 16, 2012, at 11:59 PM, Tom Maynard wrote: > Well, not only ProfJ, but also Viera K. Proulx and her publications, like > "Design of Class Hierarchies" and "How to Design Class Hierarchies" and > K.E.Gray's "ProfessorJ: A Gradual Intro to J

Re: [racket] why shift/reduce conflict?

2012-01-17 Thread Dmitry Pavlov
Hello Veer, I think the conflict may be here(I may be wrong) : When parser encounter C , it can reduce to y or it can shift i.e it think there is A waiting to be read, hence shift/reduce conflict Thanks. I think you are right: while this grammar is not ambiguous per se, it confuses LALR parser

Re: [racket] filtering syntax

2012-01-17 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16-01-12 15:28, Sam Tobin-Hochstadt wrote: > On Mon, Jan 16, 2012 at 7:57 AM, Marijn wrote: >> >> ((_ ((id rule) ...)) (with-syntax (((dep ...) (free-vars (expand >> #'(rule ...) > > You need to use `local-expand', not `expand', here. Probab

Re: [racket] Help with phases

2012-01-17 Thread Veer Singh
Thanks , I think I understand it now , so roughly following steps happens(apology for incorrect terminology) : 1. bind the identifier 'phases' to some val(a syntax transformer) in phase 1 i) during the above step id 'phase2' is bound to some val i.e syntax transformer in phase 2 ii) (p