Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Michael Wilber
Oh, I see it now. Thanks for the detailed explanation; I had misinterpreted earlier. On Fri, 24 Aug 2012 21:14:48 -0600, Neil Toronto wrote: > On 08/24/2012 06:23 PM, Michael Wilber wrote: > > This is interesting, but I don't understand how moving cons around keeps > > it from allocating? In part

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Neil Toronto
On 08/24/2012 06:23 PM, Michael Wilber wrote: This is interesting, but I don't understand how moving cons around keeps it from allocating? In particular, why are the cons calls "evaluated at expansion time" when we may not even know the length of the list during macro expansion time? If I write

Re: [racket] loop in stateless webserver acts different/weird

2012-08-24 Thread Jay McCarthy
When you use #lang web-server You have to use web-server/lang/web --- http://docs.racket-lang.org/web-server/stateless.html#(part._lang/web) rather than web-server/servlet/web (which you are getting from web-server/servlet) The problem is that your send/suspend/dispatch is the STATEFUL one, n

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Michael Wilber
This is interesting, but I don't understand how moving cons around keeps it from allocating? In particular, why are the cons calls "evaluated at expansion time" when we may not even know the length of the list during macro expansion time? Near the top of the post, it says the code "would be slow b

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Neil Toronto
I've edited the post, so there's no problem anymore. I also changed `drop' and `take' to `split-at', as Ian suggested. On 08/24/2012 03:56 PM, Adolfo Pérez Álvarez wrote: Appending "?m=1" to the URL does the trick also: http://blog.racket-lang.org/2012/08/fully-inlined-merge-sort.html?m=1 201

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Adolfo Pérez Álvarez
Appending "?m=1" to the URL does the trick also: http://blog.racket-lang.org/2012/08/fully-inlined-merge-sort.html?m=1 2012/8/24 Matthias Felleisen : > > The code is fully visible in Safari's rss feed reader. > > > On Aug 24, 2012, at 5:34 PM, Neil Toronto wrote: > >> On 08/24/2012 03:22 PM, J. I

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Sam Tobin-Hochstadt
Nice! It would be great to link from the post to a full version of the code somewhere; I like GitHub gists for this purpose but you can maybe even attach files to posts. On Fri, Aug 24, 2012 at 5:08 PM, Neil Toronto wrote: > I've posted to the Racket blog: > > http://blog.racket-lang.org/2012/

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Matthias Felleisen
The code is fully visible in Safari's rss feed reader. On Aug 24, 2012, at 5:34 PM, Neil Toronto wrote: > On 08/24/2012 03:22 PM, J. Ian Johnson wrote: >> Very cool. > > :D > > > Is anyone else annoyed at the code being cut off in blog posts, even >> though (thankfully) highlighting and copy

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Neil Toronto
On 08/24/2012 03:22 PM, J. Ian Johnson wrote: Very cool. :D > Is anyone else annoyed at the code being cut off in blog posts, even though (thankfully) highlighting and copying gives you the valid code? I am. I'm especially annoyed that it happened in a place that readers are most likely to

Re: [racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread J. Ian Johnson
Very cool. Is anyone else annoyed at the code being cut off in blog posts, even though (thankfully) highlighting and copying gives you the valid code? Also, I suggest split-at versus a take followed by a drop for a teensy performance improvement. -Ian - Original Message - From: "Neil Toro

[racket] Racket blog post: Fully Inlined Merge Sort

2012-08-24 Thread Neil Toronto
I've posted to the Racket blog: http://blog.racket-lang.org/2012/08/fully-inlined-merge-sort.html It shows how to use continuation-passing style in expansion-phase functions to fully inline a merge sort. The expanded code doesn't create any intermediate lists. Or a result list, for that matt

Re: [racket] Typed Racket Quick Start example doesn't typecheck

2012-08-24 Thread Sam Tobin-Hochstadt
In the run-up to version 5.3, we introduced some new problems in the handling of numeric types in Typed Racket, which leads to this not type checking. These problems have since been corrected, but this is a bug in the released version. If you use a pre-release build [1], the code will work correc

[racket] Typed Racket Quick Start example doesn't typecheck

2012-08-24 Thread Pekka Karjalainen
I'm using Racket 5.3 that I downloaded via the usual route. I tried experimenting with Typed Racket starting with the first example program in the Quick Start section of the Typed Racket Guide, and I got a type error right away. I then made sure I had exactly the same code in the file as in the Gui

Re: [racket] wikipedia on IDE's

2012-08-24 Thread Matthias Felleisen
Okay, I have added Geiser. Could others please contribute more specific details as appropriate? The information I supplied (except for DrRacket) are placeholder. On Aug 24, 2012, at 12:14 PM, ozzloy-racket-users wrote: > maybe you're thinking of geiser? > > On Fri, Aug 24, 2012 at 11:45 AM

Re: [racket] wikipedia on IDE's

2012-08-24 Thread Matthias Felleisen
Geiser is it. Thanks. On Aug 24, 2012, at 12:14 PM, ozzloy-racket-users wrote: > maybe you're thinking of geiser? > > On Fri, Aug 24, 2012 at 11:45 AM, Matthias Felleisen > wrote: > > I have added a placeholder for DrRacket, Emacs Quack, and WeScheme: > > > http://en.wikipedia.org/wiki

Re: [racket] wikipedia on IDE's

2012-08-24 Thread ozzloy-racket-users
maybe you're thinking of geiser? On Fri, Aug 24, 2012 at 11:45 AM, Matthias Felleisen wrote: > > I have added a placeholder for DrRacket, Emacs Quack, and WeScheme: > > > http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#Racket > > Would the concerned party please fil

Re: [racket] wikipedia on IDE's

2012-08-24 Thread Matthias Felleisen
I have added a placeholder for DrRacket, Emacs Quack, and WeScheme: http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#Racket Would the concerned party please fill in details? Also I am sure that I have overlooked another Emacs-y thing that has been announced her

Re: [racket] mysterx-mzlib<->ffi/com

2012-08-24 Thread murat demirtas
Hello friends, the problem that I describe still occurs. I thing/assume this is a problem with racket, because in racket 5.3 the given codesequence with misterx gives the same error and in racket 5.2.1 with MisterX there is no problem with this Codesequence: Racket 5.2.1/Misterx:->OK (require

[racket] wikipedia on IDE's

2012-08-24 Thread Stephen Bloch
There's a Wiki page entitled "Comparison_of_integrated_development_environments", indexed by language. There are no entries at all for Scheme or Racket. Since DrRacket is in fact quite a widely-used programming environment, somebody really should add this -- ideally somebody directly involved

Re: [racket] Newbie question: creating a custom canvas

2012-08-24 Thread Matthias Felleisen
Let me spell out Richard's comment in some detail. The docs for on-paint in get-dc say that the function is called on no arguments (other than this) and produce no values. So this demands (define/override (on-paint) ...) because other methods in the superclass call this method like this (on-

[racket] System tray in win32

2012-08-24 Thread kevin2059
Is there any way to make a app with system-tray in racket ? I try to use win32api via ffi/unsafe , but i can not find or overwrite the WindowProc callback function of a top-level-windows 。 How can I do this? Racket Users list: http://lists.racket-lang.org/users