Re: [racket] Using Racket to solve Professor Layton puzzles

2011-07-27 Thread Stephen Chang
> (But apparently Stephen is taking one of these mysterious "vakeyshon" > things that seem to be getting popular recently.  I don't know how one > looks but they sound very dangerous.) I dont know what you're talking about. _ For list-related admi

Re: [racket] Named let and multiple values

2011-07-27 Thread Diogo F. S. Ramos
Justin Zamora writes: > I'd like to be able to write something like this: > > (let loop ([a 1] [b 2]) >(if (= a b) > 3 > (loop (values (add1 a) b > > This would match the way for/fold works with more than one value. > However, I get a message, "context expected 1 value, receiv

Re: [racket] Named let and multiple values

2011-07-27 Thread Carl Eastlund
I can think of one possible better way, assuming the multiple values in an actual program are generated by some other function. Obviously with (loop (values (add1 a) b)) you can simply write (loop (add1 a) b). But if you had (loop (f a b)), where f returns two values, you can write the following:

[racket] Named let and multiple values

2011-07-27 Thread Justin Zamora
I'd like to be able to write something like this: (let loop ([a 1] [b 2]) (if (= a b) 3 (loop (values (add1 a) b This would match the way for/fold works with more than one value. However, I get a message, "context expected 1 value, received 2 values: 2 2", which makes sense giv

Re: [racket] Using Racket to solve Professor Layton puzzles

2011-07-27 Thread Jay McCarthy
On Wed, Jul 27, 2011 at 7:02 PM, Eli Barzilay wrote: > Yesterday, Jay McCarthy wrote: >> My blog now has what I believe is a solution. At least, the test >> case you provide passes and the next few elements make sense. > > That looks right, though pretty verbose...  (And BTW, you're missing > some

Re: [racket] Errors on compiling racket on Lion

2011-07-27 Thread jenny sun
Oooohhh... it seems to work on the mac os 64bit binary! Thanks for the information, Vincent. --Jenny On Wed, Jul 27, 2011 at 5:43 PM, Vincent St-Amour wrote: > Have you tried the nightly builds? > > http://pre.racket-lang.org/installers/ > > Some Lion-related bugs have been fixed since the last

Re: [racket] Errors on compiling racket on Lion

2011-07-27 Thread Vincent St-Amour
Have you tried the nightly builds? http://pre.racket-lang.org/installers/ Some Lion-related bugs have been fixed since the last release. The fixes will be in the next stable version, which should come out in a week or two. Vincent At Wed, 27 Jul 2011 16:05:20 -0600, jenny sun wrote: > > [1 ]

[racket] Errors on compiling racket on Lion

2011-07-27 Thread jenny sun
Hi, I am using the mac OS lion, and tried to install Racket from binary(Mac OS x intel 386), but it does not work on my machine (it will exit drracket immediately when you tried to run it) then I download the source, trying to compile it. But the errors came up as follows: in the src folder, I exe

Re: [racket] Cross-compilation

2011-07-27 Thread Eli Barzilay
25 minutes ago, Ben Goetter wrote: > On 7/27/2011 11:34 AM, Eli Barzilay wrote: > > Eli: Does the build use VS 2010? > > Yes. > >> Is some security feature enabled that might inject uses of > >> DecodePointer() into the code? > > There's nothing that I did explicitly. Also all the solution files >

Re: [racket] racketcon podcasts & proceedings?

2011-07-27 Thread Stephen De Gabrielle
Thanks, I'm sure I'm not the only one who appreciates the effort. S. On Wednesday, July 27, 2011, Sam Tobin-Hochstadt wrote: > On Wed, Jul 27, 2011 at 8:41 AM, Stephen De Gabrielle > wrote: >> Hi, >> >> I remember somone mentioning recording racketcon might happen. > > Yes, the talks were recor

Re: [racket] Cross-compilation

2011-07-27 Thread Ben Goetter
On 7/27/2011 12:43 PM, Eli Barzilay wrote: Is there any real need to support pre-SP2 versions? IIRC, it's been a while since it went out, no? That service pack was released seven years ago; and indeed, Microsoft considers XP SP2 itself at end-of-life, unsupported for the last year. http://su

Re: [racket] Cross-compilation

2011-07-27 Thread Ben Goetter
On 7/27/2011 11:34 AM, Eli Barzilay wrote: Eli: Does the build use VS 2010? Yes. Is some security feature enabled that might inject uses of DecodePointer() into the code? There's nothing that I did explicitly. Also all the solution files are just converted from the older version and tidied up

Re: [racket] Using Racket to solve Professor Layton puzzles

2011-07-27 Thread Eli Barzilay
Yesterday, Jay McCarthy wrote: > My blog now has what I believe is a solution. At least, the test > case you provide passes and the next few elements make sense. That looks right, though pretty verbose... (And BTW, you're missing some way to mark the code as such -- there's no indentation!) Here'

Re: [racket] A question about code-style (and memory usage)

2011-07-27 Thread Eli Barzilay
Yesterday, Robby Findler wrote: > On Tue, Jul 26, 2011 at 4:11 PM, Eli Barzilay wrote: > > Yes, I forgot to add that I can "bind" a name to two characters > > and Emacs will let me choose which one I want to insert, and I can > > also bind a name to a sequence of characters.  For even extra > > cr

Re: [racket] Cross-compilation

2011-07-27 Thread Eli Barzilay
7 hours ago, Matthew Flatt wrote: > DecodePointer() is in XP SP2 and up, which explain why it works on my > XP SP2 machine. > > When I compile my own binary with VS 2008, there's no use of > DecodePointer(), though. There's no direct use of DecodePointer() in > Racket. > > Eli: Does the build use

Re: [racket] racketcon podcasts & proceedings?

2011-07-27 Thread Sam Tobin-Hochstadt
On Wed, Jul 27, 2011 at 8:41 AM, Stephen De Gabrielle wrote: > Hi, > > I remember somone mentioning recording racketcon might happen. Yes, the talks were recorded, thanks to Jeff Dlouhy of the Northeastern University ACM. It will take a couple weeks for the video to be edited and processed. We'

[racket] racketcon podcasts & proceedings?

2011-07-27 Thread Danny Yoo
On Wednesday, July 27, 2011, Noel Welsh wrote: > It's probably too soon to have processed video. I haven't seen any > conference reports, so if anyone wants to put up a blog post that > would be great! I put a small mention of it on my blog. I also have the materials and basic story of my presen

Re: [racket] racketcon podcasts & proceedings?

2011-07-27 Thread Noel Welsh
It's probably too soon to have processed video. I haven't seen any conference reports, so if anyone wants to put up a blog post that would be great! N. On Wed, Jul 27, 2011 at 1:41 PM, Stephen De Gabrielle wrote: > Hi, > > I remember somone mentioning recording racketcon might happen. > > Will t

[racket] racketcon podcasts & proceedings?

2011-07-27 Thread Stephen De Gabrielle
Hi, I remember somone mentioning recording racketcon might happen. Will the presenters presentations(slideshow? ppt?) be available. Forgive me for asking too soon after the event. Kind regards, Stephen -- -- Stephen De Gabrielle stephen.degabrie...@acm.org Telephone +44 (0)20 85670911 Mobile

Re: [racket] Cross-compilation

2011-07-27 Thread Matthew Flatt
DecodePointer() is in XP SP2 and up, which explain why it works on my XP SP2 machine. When I compile my own binary with VS 2008, there's no use of DecodePointer(), though. There's no direct use of DecodePointer() in Racket. Eli: Does the build use VS 2010? Is some security feature enabled that mi

Re: [racket] PLoT - is there a way to have a non-numeric, categorical x-axis (and possibly display histograms)?

2011-07-27 Thread keyd...@gmx.de
Hi Doug, thanks for the kind offer! In fact I've not been able yet to find out how to have a non-numeric x-axis using plot/extend ... I don't seem to find a related function... Now as it's not terribly important - I can use a "workaround" converting the non-numerical data to numbers, only then

[racket] Cross-compilation

2011-07-27 Thread Mark Carter
I just discovered something. I installed v 5.1.2.3 on my Win XP machine. When I try to start DrRacket, I obtain "DrRacket.Exe - Entry Point Not Found: The procedure entry point DecodePointer could not be located in the dyynamic link library KERNEL32.dll." So maybe Win XP with any SP should jus

Re: [racket] Cross-compilation

2011-07-27 Thread Mark Carter
> >From: Stephen Chang >I created an executable on Win7 with racket 5.1.2.3 following the >indicated steps and using the given code (I had to comment out some >stuff because I dont have the required files), and I was able to run >it on win xp (sp2) as well. >