Re: [racket] internal definitions in r6rs

2010-09-19 Thread Jos Koot
Thanks Matthew, Jos > -Original Message- > From: Matthew Flatt [mailto:mfl...@cs.utah.edu] > Sent: 19 September 2010 03:54 > To: Jos Koot > Cc: 'PLT-Scheme Mailing List' > Subject: Re: [racket] internal definitions in r6rs > > This is a bug in the R6RS binding for `define'. Your program

Re: [racket] DrRacket performance

2010-09-19 Thread Laurent
On Sun, Sep 19, 2010 at 07:02, wooks . wrote: > > I am running Racket on a Windows PC with an Ubuntu partition (10.4 or > whatever the latest version is called). > > DrRacket tends to become unresponsive after it's been running for about an > hour (I'm talking 15 minute response time). Worse it t

Re: [racket] DrRacket performance

2010-09-19 Thread Laurent
On Sun, Sep 19, 2010 at 11:34, Laurent wrote: > > > On Sun, Sep 19, 2010 at 07:02, wooks . wrote: > >> >> I am running Racket on a Windows PC with an Ubuntu partition (10.4 or >> whatever the latest version is called). >> >> DrRacket tends to become unresponsive after it's been running for about

Re: [racket] Racket VM

2010-09-19 Thread Robby Findler
Well, I'll cheat: you say "raco make filename.rkt". Robby On Sun, Sep 19, 2010 at 12:55 AM, Mathew Kurian wrote: > Hahahaha...Neil, i agree with you, it will be my one of my best of friends > [?] > > But, give me some time to read through...it may take a while before i have > a question. > > Tha

Re: [racket] DrRacket performance

2010-09-19 Thread Robby Findler
Yes, like Laurent suggests, I'd look at the amount of memory you're using. Open a new shell window and run the command "top" in there and see what is going on with the process named "gracket". Robby On Sun, Sep 19, 2010 at 12:02 AM, wooks . wrote: > > I am running Racket on a Windows PC with an

Re: [racket] Java Conversion Utility [very very early stages]

2010-09-19 Thread Shriram Krishnamurthi
> Could you say, offhand: would that mostly be a matter of writing > simple glue code for all the API, or is it harder than that? Do you know PhoneGap? We use PhoneGap. So it would take whatever it takes to extend PhoneGap to the other services (I imagine it's already pretty extensive), and then

Re: [racket] Racket VM

2010-09-19 Thread Mathew Kurian
on command prompt? On Sun, Sep 19, 2010 at 7:18 AM, Robby Findler wrote: > Well, I'll cheat: you say "raco make filename.rkt". > > Robby > > On Sun, Sep 19, 2010 at 12:55 AM, Mathew Kurian > wrote: > >> Hahahaha...Neil, i agree with you, it will be my one of my best of >> friends [?] >> >> But,

Re: [racket] Racket VM

2010-09-19 Thread Robby Findler
Yes. On Sun, Sep 19, 2010 at 8:35 AM, Mathew Kurian wrote: > on command prompt? > > > On Sun, Sep 19, 2010 at 7:18 AM, Robby Findler < > ro...@eecs.northwestern.edu> wrote: > >> Well, I'll cheat: you say "raco make filename.rkt". >> >> Robby >> >> On Sun, Sep 19, 2010 at 12:55 AM, Mathew Kurian

[racket] Question regarding DrRacket x86

2010-09-19 Thread Ellis Lee
Hello, I just wanted to ask if it's all right to download and install DrRacket Windows x86 on my Windows 7 64-bit laptop despite the fact that x86 programs are normally for 32-bit computers. Furthermore, the only Windows version of Racket available for download is the x86 one. Would it cause

Re: [racket] Question regarding DrRacket x86

2010-09-19 Thread Nadeem Abdul Hamid
No, I don't think it will be a problem. I have it installed on my 64-bit laptop and it works fine. --- nadeem On Sun, Sep 19, 2010 at 11:21 AM, Ellis Lee wrote: > Hello, > >  I just wanted to ask if it's all right to download and install DrRacket > Windows x86 >  on my Windows 7 64-bit laptop des

Re: [racket] Question regarding DrRacket x86

2010-09-19 Thread Shriram Krishnamurthi
Ditto. I run DrRacket daily on two different 64-bit laptops running Windows 7, and it works great. [You may notice that you have two folders, "C:\Program Files" and "C:\Program Files (x86)". By tradition, the latter is for 32-bit programs and the former for 64-bit programs, though you can put an

[racket] trouble with draw.ss teachpack

2010-09-19 Thread Jay
Hello, I'm a complete newcomer to Racket. I've just begun working my way through HTDP, and have run into problems with exercise 6.2.1, which uses draw.ss. When I load the file, Racket complains when I make any reference to the "posn" struct (which is essential to all of the drawing tools), sa

Re: [racket] Help: Passing a class to a macro and not an identifier

2010-09-19 Thread Laurent
> > But I'm wondering if multiple calls to define-class->singleton would > > then cause multiple calls to dynamic-require, which would take too > > much time... ? > > You can lift expressions to the top-level and then use those to avoid > multiple dynamic-require's. Search for lift in > collects/r

Re: [racket] Limits of init-auto-scrollbars in canvas%

2010-09-19 Thread Martin Dirichs
Thanks, Matthew, for your in-depth reply! If there is a 16-bit limit to some drawing operations, this will affect the application only if using auto scrollbars. When using manual scrollbars, everything related to drawing stays within the coordinates of the visible area of the canvas. So maybe it'

Re: [racket] "Hybrid" Racket on Cygwin

2010-09-19 Thread Eli Barzilay
On Sep 19, Thomas Chust wrote: > 2010/9/19 Eli Barzilay : > > That's likely to be very difficult, since the Windows stuff is > > very different from the usual configure script.  But do you really > > need to have a cygwin build? > > [...] > > if this is so much more complicated than I thought it i

Re: [racket] Limits of init-auto-scrollbars in canvas%

2010-09-19 Thread Martin Dirichs
On Sat, 18 Sep 2010 23:15 +0200, "Jos Koot" wrote: > A dump question, may be, and off topic too perhaps, but where are you > going > to store 10x10=10^18=1000 tera pixels? > Jos? The virtual size of a canvas may be much greater than the visible part of it. Sure it would be a bit s

Re: [racket] trouble with draw.ss teachpack

2010-09-19 Thread Matthias Felleisen
1. The draw teachpack should be used with the HtDP teaching languages only. I just did so and the following program runs just fine in Beginning Student Language. (start 100 100) (draw-circle (make-posn 30 30) 10 'blue) ;; there's nothing else in the Def area 2. I recommend shunting the fir

Re: [racket] P4P

2010-09-19 Thread Todd O'Bryan
I know I'm in the minority, but I would love early support for contracts. I'm not sure how to fit it in the syntax you've got so far, but something like deffun: copy(img, num) = with-contract: image?, number? -> image if: numeq(num, 1) img else: beside(img, copy(img, -(

Re: [racket] trouble with draw.ss teachpack

2010-09-19 Thread Stephen Bloch
I would start by not using the draw teachpack, nor the parts of HtDP that refer to it. Most of us have been doing graphics using the image, universe, and/or picturing-programs teachpacks instead for several years. One easy introduction to the currently approved approach is at http://www.pict

Re: [racket] trouble with draw.ss teachpack

2010-09-19 Thread Jay
Thanks very much! I didn't quite grasp the interface, and thought I was supposed to "Open" teachpacks; after trying "Language->Add Teachpack" everything works just fine. I appreciate your help. Subject: Re: [racket] trouble with draw.ss teachpack From: matth...@ccs.neu.edu Date: Sun, 19 Sep

[racket] testing in P4P

2010-09-19 Thread Shriram Krishnamurthi
I've added a construct equivalent to check-expect: test: =? is equivalent to (check-expect ) You can see examples.rkt rewritten to use it almost everywhere. No support yet for check-within, etc. Tell me if those are a priority. _ For li

Re: [racket] "Hybrid" Racket on Cygwin

2010-09-19 Thread Thomas Chust
2010/9/19 Eli Barzilay : > [...] > It's still not clear to me why you want a cygwin build instead of a > plain windows build.  The only thing I can think of is being able to > handle cygwin symlinks > [...] I want a Cygwin build because I want FFI access to some C libraries that are intended for a

Re: [racket] P4P

2010-09-19 Thread Shriram Krishnamurthi
In replying to the below, I'm not ignoring the rest of your message. > By, the way, why'd you decide on "numeq" instead of > "number=?". I don't think there's a good verbal choice here (though numeq is especially ugly). You can already write plain ol' =, as in, =(1, 2) -- evaluates to -->

Re: [racket] testing in P4P

2010-09-19 Thread David Van Horn
On 9/19/10 8:45 PM, Shriram Krishnamurthi wrote: I've added a construct equivalent to check-expect: test: =? is equivalent to (check-expect ) You can see examples.rkt rewritten to use it almost everywhere. I like this experiment. Two quick remarks: - I wish conditionals were light

Re: [racket] P4P

2010-09-19 Thread Todd O'Bryan
On Sun, Sep 19, 2010 at 8:57 PM, Shriram Krishnamurthi wrote: > In replying to the below, I'm not ignoring the rest of your message. > >> By, the way, why'd you decide on "numeq" instead of >> "number=?". > > I don't think there's a good verbal choice here (though numeq is > especially ugly).  Yo

Re: [racket] "Hybrid" Racket on Cygwin

2010-09-19 Thread Eli Barzilay
On Sep 20, Thomas Chust wrote: > 2010/9/19 Eli Barzilay : > > [...] > > It's still not clear to me why you want a cygwin build instead of a > > plain windows build.  The only thing I can think of is being able to > > handle cygwin symlinks > > [...] > > I want a Cygwin build because I want FFI acc

Re: [racket] Problem with Racket REPL and pasting

2010-09-19 Thread Danny Yoo
> But if I copy and paste in the same expression, I get an error: >> (+ 1 2 >    3) > reference to undefined identifier: R Confirmed: I can see similar behavior in DrScheme 4.2.5 when I copy-and-paste in Windows 7: ### C:\Program F

Re: [racket] Problem with Racket REPL and pasting

2010-09-19 Thread Danny Yoo
> No clue why "M" is being introduced into the stream.  There's > something in the handling of newlines at the Windows console > interactive REPL that is funky. Note: when I'm using cygwin's bash console, I don't see the error. I've only been able to replicate what you're seeing with the Command

Re: [racket] Java Conversion Utility [very very early stages]

2010-09-19 Thread Mathew Kurian
Prof. Shriram, couldnt we simply add plugins (much like those of the IBM's Eclipse IDE) that provide a visual/ ui for such extensions such as PhoneGap? This is a bit of a digression, but does anyone have the full list of keywords in Racket? I know I could just go through all api and find them, but

Re: [racket] Java Conversion Utility [very very early stages]

2010-09-19 Thread Neil Van Dyke
Mathew Kurian wrote at 09/19/2010 11:49 PM: does anyone have the full list of keywords in Racket? I know I could just go through all api and find them, but I would be obliged if the someone had a list, paste it directly. It would save a lot of time. If all else fails, the search index that

[racket] [REMINDER] Boston Lisp Meeting: Monday 2010-09-20 Hari Prashanth on Functional Data Structures for Typed Racket

2010-09-19 Thread Francois-Rene Rideau
Boston Lisp Meeting: Monday 2010-09-20 Hari Prashanth on Functional Data Structures for Typed Racket http://fare.livejournal.com/158662.html A Boston Lisp Meeting will take place on Monday, September 20th 201