Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Greg Hendershott
Racket has helped turn me into a kind of agnostic, insomniac, autodidact. I lay awake all night wondering if next I should learn more about Linux, Mac or Windows. (Yeah, yeah, I know. It's not nearly as good the original: "Did you hear the one about the agnostic, dyslexic, insomniac? He lay awake

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Greg Hendershott
After working in C/C++ on Windows for nearly 25 years, for some reason I got it into my head I wanted to learn Scheme. I settled on PLT Scheme. I liked the IDE and docs. I spent months with my brain going eh, huh, what? I got through that. I got a lot of help from the amazing people on this list

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Ben Goetter
Please keep political and religious tirades off of this alias. Thank you. On 3/9/2011 3:47 PM, Neil Van Dyke wrote: Forgive me, but this could stand to be mentioned at least once a year, as a reminder... PC hardware tends to become more useful for most technical work if one erases Windows and

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Stephen De Gabrielle
Just don't forget some of us are still in [WinXP/IE6/Excel 2003/Visual Basic] land...for a variety of reasons - good,bad and imaginary. s. On Wed, Mar 9, 2011 at 11:47 PM, Neil Van Dyke wrote: > Forgive me, but this could stand to be mentioned at least once a year, as a > reminder... PC hardwa

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Stephen Chang
> Forgive me, but this could stand to be mentioned at least once a year, as a > reminder... PC hardware tends to become more useful for most technical work > if one erases Windows and installs GNU/Linux. I dont disagree but linux still has some mild annoyances with my laptop, so i run windows. >

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Neil Van Dyke
Forgive me, but this could stand to be mentioned at least once a year, as a reminder... PC hardware tends to become more useful for most technical work if one erases Windows and installs GNU/Linux. (Nowadays, with GNU/Linux being the technical and server platform, and most things being doable

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Stephen Chang
Here's how to compile on windows with vc express. It's obviously more tedious than using the build script, but it's not too bad. COMPILING Racket from source in Windows with Visual C++ Express 2008: (*NOTE: I'm using "plt" as the base directory for the repository) (basically following the appropri

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Stephen Chang
You can build on Windows with VC Express. You just cant use the build.bat script bc there's no devenv. If you use the vcbuild command line tool that comes with VC express, you get some errors. On Wed, Mar 9, 2011 at 5:37 PM, Greg Hendershott wrote: > Oh I didn't realize that, I thought it st

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Gregory Woodhouse
The same is true of 64-bit OS X. I was a little surprised that there were no pre-built 64-bit binaries for OS X. On Mar 9, 2011, at 2:37 PM, Greg Hendershott wrote: > Oh I didn't realize that, I thought it still experimental-ish. That's great. > > Building Racket on Windows has seemed daunting.

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Greg Hendershott
Oh I didn't realize that, I thought it still experimental-ish. That's great. Building Racket on Windows has seemed daunting. For the same reasons I'm using Racket I don't have full MSVC installed these days (IIUC you can't build with Express). And gcc has felt like more Cygwin than I've really wan

Re: [racket] "three uses of macros" + wikipedia

2011-03-09 Thread Gregory Woodhouse
Thanks, this is helpful. I don't use macros very much, and I've been trying to get a better handle on when to use them. Frequently, when I see a macro it does something that could just as easily be done with a function. On Mar 9, 2011, at 9:59 AM, John Clements wrote: > > On Mar 9, 2011, at 9

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Matthew Flatt
We don't yet have a 64-bit build for Windows on the download pages, but Racket builds, runs, and is supported for 64-bit mode in Windows (Vista and up). At Wed, 9 Mar 2011 13:56:56 -0500, Greg Hendershott wrote: > On Windows 7 I would if I could. A 64-bit build of Racket for Windows > could utiliz

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Greg Hendershott
On Windows 7 I would if I could. A 64-bit build of Racket for Windows could utilize more than 2 GB. On Wed, Mar 9, 2011 at 9:46 AM, Noel Welsh wrote: > Increased memory bandwidth and more registers are the main benefits > I'm aware of. I'm not sure if Racket exploits the later, but it should > be

Re: [racket] contracts and the wikipedia article for Racket

2011-03-09 Thread Gregory Woodhouse
Thanks. I've updated the Wikipedia article accordingly. On Mar 9, 2011, at 9:40 AM, Robby Findler wrote: > This is the paper that first introduced the idea: > > Contracts for Higher-Order Functions > Findler, Felleisen > International Conference on Functional Programming (ICFP) 48-59 2002 >

Re: [racket] "three uses of macros" + wikipedia

2011-03-09 Thread John Clements
On Mar 9, 2011, at 9:27 AM, Gregory Woodhouse wrote: > I'm trying to locate this page. What is the URL? Which page? The Wikipedia page on Macros? it's here: http://en.wikipedia.org/wiki/Macro_%28computer_science%29 The posting I referred to is actually linked to from that page, but I'll chase

Re: [racket] contracts and the wikipedia article for Racket

2011-03-09 Thread Robby Findler
This is the paper that first introduced the idea: Contracts for Higher-Order Functions Findler, Felleisen International Conference on Functional Programming (ICFP) 48-59 2002 http://www.eecs.northwestern.edu/~robby/pubs/papers/ho-contracts-icfp2002.pdf Robby On Wed, Mar 9, 2011 at 11:35

[racket] contracts and the wikipedia article for Racket

2011-03-09 Thread Gregory Woodhouse
I notice that the Wikipedia article for Racket (a little sparse in my opinion) http://en.wikipedia.org/wiki/Racket_(programming_language) asserts that Racket was the first higher order language to use a contract system, but that statement has been flagged as needing a citation to back it up. W

Re: [racket] "three uses of macros" + wikipedia

2011-03-09 Thread Gregory Woodhouse
I'm trying to locate this page. What is the URL? On Mar 9, 2011, at 9:04 AM, John Clements wrote: > I just added some text to Wikipedia page for Macros, citing the "3 uses of > macros" posting to the ll1 mailing list. Is there a better reference for > this? > > John _

Re: [racket] (smtp-send-message ...) with #:tls-encode

2011-03-09 Thread Greg Hendershott
To clarify: > Again this won't work with the smtp-send-message provided by net/smtp. > You need to modify it to handle STARTTLS as I showed before. The stock smtp-send-message MIGHT work with Gmail (I haven't tried) but it definitely will NOT work with hosted Exchange. HTH. On Wed, Mar 9, 2011

Re: [racket] (smtp-send-message ...) with #:tls-encode

2011-03-09 Thread Greg Hendershott
It looks like Gmail supports the port 587 STARTTLS approach exactly the same as does hosted Exchange (Gmail also supports connecting using SSL on port 465). So you can use the same approach (port 587 STARTTLS) testing against both servers: (smtp-send-message server ; "smtp.gmail.com" or "smtp.m

[racket] "three uses of macros" + wikipedia

2011-03-09 Thread John Clements
I just added some text to Wikipedia page for Macros, citing the "3 uses of macros" posting to the ll1 mailing list. Is there a better reference for this? John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrat

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Jay McCarthy
I use 64-bit so that I can link against more libraries (like SQLite.) Almost all my MacPorts get compiled as 64-bit. Jay 2011/3/9 John Clements : > For the last four months, I've been using the 64-bit Racket on my spiffy new > 64-bit Macs, and I'm now starting to wonder whether that's really the

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Noel Welsh
Increased memory bandwidth and more registers are the main benefits I'm aware of. I'm not sure if Racket exploits the later, but it should benefit from the former. N. On Wed, Mar 9, 2011 at 2:35 PM, John Clements wrote: ... > > In any case, I thought I'd just ask: how many of you are using 64-bi

[racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread John Clements
For the last four months, I've been using the 64-bit Racket on my spiffy new 64-bit Macs, and I'm now starting to wonder whether that's really the best choice. If I understand correctly, the memory footprint is likely to be substantially larger, and the payoff is--presumably--a speedup on certai

Re: [racket] Extremely slow reading a hash

2011-03-09 Thread Matthew Flatt
It sounds like something is wrong. Can you send us code to replicate the problem? Here's my attempt: #lang scheme (define N 100) (define ht (make-hash)) (time (for ([i (in-range N)]) (let ([b (bytes (random 256) (random 256) (random 256) (random 256))]) (hash-set! ht b i

Re: [racket] Extremely slow reading a hash

2011-03-09 Thread Robby Findler
Sorry: my advice was bad. It probably is the mutable->immutable problem. Below is a snippet of code you might find useful. Also, if your hashes are embedded in some data structure, you might try wrapping them in a struct and then using custom readers and writers on that struct to avoid having to r

Re: [racket] (smtp-send-message ...) with #:tls-encode

2011-03-09 Thread Stephen De Gabrielle
I *am* trying to connect to a exchange server, I just used gmail as a acceptable public target. I'll try again, though I suspect a proxy server it the problem. I can't tell because the server response is truncated. :( Thanks again, Stephen On Wednesday, March 9, 2011, Greg Hendershott wrote: >

Re: [racket] Extremely slow reading a hash

2011-03-09 Thread Jeremy Price
I tried it with a more recent version (Welcome to Racket v5.1.), using my original code and the fasl calls. In both cases, reading in the hash caused racket to quit with an Out of Virtual Memory error, even though the hash had been created by racket (the reader program was run separately, I didn't