Re: [racket] users Digest, Vol 61, Issue 13

2010-09-04 Thread Todd O'Bryan
One gotcha that got me. If you're using 64-bit Ubuntu, you have to install the 32-bit compatibility packages for the binary to work. $ sudo apt-get install ia32-libs will solve that little problem. On Sat, Sep 4, 2010 at 11:12 PM, Todd O'Bryan wrote: > The Jaunty version does work. > > I've cre

Re: [racket] users Digest, Vol 61, Issue 13

2010-09-04 Thread Todd O'Bryan
The Jaunty version does work. I've created a script that downloads and installs the Ubuntu version in the /opt directory, in a folder called /opt/plt-version# with a symbolic link at /opt/plt. It also installs a desktop file so that DrRacket appears in the Applications menu, and adds a MIME type s

Re: [racket] users Digest, Vol 61, Issue 13

2010-09-04 Thread Jon Rafkind
On 09/04/2010 06:25 PM, John Wagner wrote: Re: when, good people, will you provide a racket download for ubuntu users that are on the recent version lucid (10.04)? It's impossible to teach without it. Or should we stay with scheme? Does the Jaunty download not work? http://download.racket

Re: [racket] users Digest, Vol 61, Issue 13

2010-09-04 Thread John Wagner
" > (("8" "9" "10") 'hello) > (else 'goodbye)) -> goodbye > > I'm working in Pretty Big > > > -- next part -- > An HTML attachment was scrubbed... > URL: < > http://lis

Re: [racket] Confusion over compile-time / run-time

2010-09-04 Thread Patrick Li
Thanks for that paper! That's exactly what I was looking for. It seems that it is far from a trivial problem, which I initially thought it was. -Patrick On Sat, Sep 4, 2010 at 6:21 PM, Neil Van Dyke wrote: > You might like this paper: > > http://www.cs.utah.edu/plt/publications/macromod.pdf >

Re: [racket] Confusion over compile-time / run-time

2010-09-04 Thread Neil Van Dyke
You might like this paper: http://www.cs.utah.edu/plt/publications/macromod.pdf -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Confusion over compile-time / run-time

2010-09-04 Thread Patrick Li
Hi everyone, I'm writing a simple scheme compiler for educational purposes, and I'm getting confused over "compile-time" versus. "run-time". If someone could offer a simple explanation that would be greatly appreciated. I don't understand when macros are expanded. Low-level LISP style macros in p

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread YC
I don't know whether planet modules can be used within Pretty Big, but I have a case/equal? and a case/string-ci=? defined in my bzlib/base module - feel free to try it out or take a look at it (in base.ss). > (require (planet bzlib/base)) > (case/equal? "abc" (("def" "ghi" "ijk") 1

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread Noel Welsh
On Sat, Sep 4, 2010 at 9:40 PM, wooks . wrote: > One mans correct is another mans WAD (Works as Designed). The semantics of case are a bit annoying at times. To guess as the reason for this, I suspect it is to allow efficient implementation for switching on numbers and the like. There is cond for

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread wooks .
One mans correct is another mans WAD (Works as Designed). > Subject: Re: [racket] Shurely Shome Mishtake > From: matth...@ccs.neu.edu > Date: Sat, 4 Sep 2010 16:29:59 -0400 > CC: users@racket-lang.org > To: woo...@hotmail.com > > > No this is correct: > > Welcome to DrRacket, version 5.0.1.5

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread Neil Van Dyke
wooks . wrote at 09/04/2010 04:22 PM: (case "8" (("8" "9" "10") 'hello) (else 'goodbye)) -> goodbye Unfortunately, you can't use "case" on strings, for somewhat esoteric reasons: http://docs.racket-lang.org/reference/case.html http://docs.racket-lang.org/reference/eval-model.html#(part._

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread Matthias Felleisen
No this is correct: Welcome to DrRacket, version 5.0.1.5--2010-09-02(7fead28/g) [3m]. Language: Pretty Big; memory limit: 512 MB. > (eqv? 8 8) #t > (eqv? "8" "8") #f > Plus read the docs on case. On Sep 4, 2010, at 4:22 PM, wooks . wrote: > (case 8 > ((8 9 10) 'hello) > (else 'goodbye)

Re: [racket] Shurely Shome Mishtake

2010-09-04 Thread Robby Findler
No mistake. case uses eqv? for comparison (on the quoted thing in each clause). http://docs.racket-lang.org/reference/case.html?q=case#%28form._%28%28lib._racket/private/more-scheme..rkt%29._case%29%29 Robby On Sat, Sep 4, 2010 at 3:22 PM, wooks . wrote: > (case 8 >   ((8 9 10) 'hello) >   (els

[racket] Shurely Shome Mishtake

2010-09-04 Thread wooks .
(case 8 ((8 9 10) 'hello) (else 'goodbye)) -> hello (case "8" (("8" "9" "10") 'hello) (else 'goodbye)) -> goodbye I'm working in Pretty Big _ For list-related administrative tasks: http://lists

Re: [racket] understanding racket exceptions

2010-09-04 Thread Matthew Flatt
The current exception handler really is determined by a continuation mark and not by a parameter (i.e., a mark that is separate from the one that determines the current parameterization). At Fri, 3 Sep 2010 13:03:04 -0600, Jay McCarthy wrote: > That's my understanding of it too. [Maybe modulo para

Re: [racket] understanding racket exceptions

2010-09-04 Thread Matthew Flatt
It looks like you have `call-with-exception-handler' right, but not `with-handlers'. The exception handler installed by `with-handlers' needs to escape to the context of the `with-handlers' form before finding whether any handlers apply. In other words, `with-handlers' combines a prompt (using a g