Re: [racket] Lazy Racket?

2012-05-22 Thread Matthias Felleisen
On May 22, 2012, at 1:53 AM, Michael Rice wrote: > I was thinking more along this line: > > http://docs.racket-lang.org/quick/ > > Can I do everything that's there with Lazy Racket? That's a research question. In principle, yes but you may find yourself surprised by occasional strange errors

Re: [racket] Lazy Racket?

2012-05-21 Thread Matthias Felleisen
Do you mean something like this: #lang lazy (require racket/gui) (define f (new frame% [label "hello world"] [width 200] [height 200])) (define t (new button% [label "bye"] [parent f] [callback void])) (send f show #t) On May 21, 2012, at 9:49 PM, Michael Rice wrote: > I answered my ow

Re: [racket] Lazy Racket?

2012-05-21 Thread Michael Rice
I answered my own question by looking at the language menu, I think. Michael On Mon, May 21, 2012 at 4:02 PM, Michael Rice wrote: > Can I get Racket's graphics capability with lazy Scheme? > > Michael > Racket Users list: http://lists.racket-lang.org/users

[racket] Lazy Racket?

2012-05-21 Thread Michael Rice
Can I get Racket's graphics capability with lazy Scheme? Michael Racket Users list: http://lists.racket-lang.org/users

Re: [racket] lazy racket

2011-11-14 Thread Eric Tanter
Thanks Stephen, Eli finally responded pointing out to his pl plugin at http://pl.barzilay.org/pl.plt His lazy.rkt does some "bad hack" (I cite ;)) to ensure all results are forced in the repl. That's what I needed, so for now, I'll just use his `#lang pl lazy' instead of `#lang lazy'. Hopefull

Re: [racket] lazy racket

2011-11-14 Thread Stephen Chang
On Mon, Nov 14, 2011 at 5:04 PM, Eric Tanter wrote: > Thanks for the input. > I tried with Lazy Racket in the language menu instead of #lang, but it does > not really do what I want (ie. Haskell). > Actually, apart from the fact that things are printed differently, the result > is quite the same

Re: [racket] lazy racket

2011-11-14 Thread Eric Tanter
Thanks for the input. I tried with Lazy Racket in the language menu instead of #lang, but it does not really do what I want (ie. Haskell). Actually, apart from the fact that things are printed differently, the result is quite the same: > ones (cons 1 (delay ...)) ;; ! is not enough > (! ones)

Re: [racket] lazy racket

2011-11-14 Thread Stephen Chang
The problem is that only applications are wrapped with the toplevel-forcer. (And you don't actually need !!. Just the regular ! should be sufficient.) For a short term solution, if you select Lazy Racket in the language menu instead of #lang lazy, it will do what you want, due to a subtlety in the

[racket] lazy racket

2011-11-14 Thread Eric Tanter
Hi, I'd like to tweak Lazy Racket such that the top-level interactions in the REPL always use `!!' (recursive force), in order to mimic Haskell's behavior as close as possible. If someone can help me in the very brief term, I would really appreciate it (I plan to start teaching on laziness usi