Re: [racket] monochrome bitmaps

2012-11-03 Thread Matthew Flatt
A "monochrome" bitmap is just black-and-white. If a grayscale PNG has more colors than black or white, it will be loaded the same way as a color bitmap. At Fri, 2 Nov 2012 22:15:39 -0400, Harry Spier wrote: > To clarify one point: > Is a monochrome bitmap a greyscale bitmap or a black and white bi

Re: [racket] Scope of PLaneT was: (no subject)

2012-11-03 Thread Matthias Felleisen
We never imagined limits on Planet. Indeed, we tend to think of 'applications' as potential components, so I see no problem with posting such applications. I think LGPL is much preferred over GPL. -- Matthias On Nov 2, 2012, at 6:23 PM, Edward Blake wrote: > Hello Neil, Matthias > > Thanks

Re: [racket] how to run multiple servlets in a racket web server?

2012-11-03 Thread Jay McCarthy
>From the Web server's perspective, a servlet is just a function from requests to responses. If you use serve/servlet, there's no reason that the 'start' function you give it can't dispatch to many things that you think of as independent servlets: (define-values (top-dispatch top-url) (dispatch-r

Re: [racket] Typed Racket Binding For Plot

2012-11-03 Thread Neil Toronto
On 10/29/2012 07:03 AM, Matthias Felleisen wrote: On Oct 29, 2012, at 12:31 AM, Neil Toronto wrote: I wouldn't mind changing the API; it would be nice to have things like `points' accept sequences anyway. I haven't put much thought into what would be in the sequences, though. Question: c

Re: [racket] Typed Racket Binding For Plot

2012-11-03 Thread Matthias Felleisen
On Nov 3, 2012, at 11:13 AM, Neil Toronto wrote: > On 10/29/2012 07:03 AM, Matthias Felleisen wrote: >> >> >> On Oct 29, 2012, at 12:31 AM, Neil Toronto wrote: >> >>> I wouldn't mind changing the API; it would be nice to have things like >>> `points' accept sequences anyway. I haven't put muc

Re: [racket] Typed Racket Binding For Plot

2012-11-03 Thread Jay McCarthy
I have a little language for doing this: https://github.com/jeapostrophe/exp/tree/master/tr-cheat run https://github.com/jeapostrophe/exp/blob/master/tr-cheat/tr-cheat-use.rkt to see the SEGFAULT :) On Sat, Nov 3, 2012 at 9:20 AM, Matthias Felleisen wrote: > > On Nov 3, 2012, at 11:13 AM, N

Re: [racket] Typed Racket Binding For Plot

2012-11-03 Thread Matthias Felleisen
I was thinking of turning of type checking and the translation of types into contracts. (Unless I misunderstand your mini language, I think you're cheating in a more fundamental manner "-) On Nov 3, 2012, at 11:41 AM, Jay McCarthy wrote: > I have a little language for doing this: > > https:

Re: [racket] Scope of PLaneT was: (no subject)

2012-11-03 Thread Hendrik Boom
On Sat, Nov 03, 2012 at 10:39:53AM -0400, Matthias Felleisen wrote: > > We never imagined limits on Planet. Indeed, we tend to think > of 'applications' as potential components, so I see no problem > with posting such applications. > > I think LGPL is much preferred over GPL. -- Matthias Dual l

[racket] Replace user32 with GTK on WinXP

2012-11-03 Thread Игорь Шилов
Hi there! I use Racket v5.3 on Windows XP and trying to understand how DrRacket and gracket works. I found "racket\collects\mred\private\wx\win32" - as I understand, ffi bindings to user32.dll, a win32 user interface implementation. Can I (and how) configure DrRacket and gracket works on win32 vers

Re: [racket] Replace user32 with GTK on WinXP

2012-11-03 Thread Matthew Flatt
You can try setting the PLT_WIN_GTK environment variable, which will cause "racket\collects\mred\private\wx\platform.rkt" to select the Gtk backend under Windows. I haven't tried it in a while, though, so I don't know how well it will work (i.e., I gave up the idea of really supporting that mode).

[racket] Cost of the contract boundary in the math library

2012-11-03 Thread Neil Toronto
Moving to dev so as to not upset the locals with preliminary results. :D On 11/03/2012 09:20 AM, Matthias Felleisen wrote: Last night Sam, Tony and I had a discussion on TR/R boundaries for his "racket on a router" project. Tony ported his software from Racket to Typed Racket and stopped halfway

Re: [racket] Replace user32 with GTK on WinXP

2012-11-03 Thread Игорь Шилов
Thanks for operative reply. I've look in "racket\collects\mred\private\wx\platform.rkt", found there (case (system-type) [(windows) (if (getenv "PLT_WIN_GTK") gtk-lib '(lib "mred/private/wx/win32/platform.rkt"))] [(macosx) '(lib "mred/private/wx

Re: [racket] Cost of the contract boundary in the math library

2012-11-03 Thread Matthias Felleisen
On Nov 3, 2012, at 1:46 PM, Neil Toronto wrote: > Higher-order functions, though, are dog slow. In particular, all the array > functions are higher-order, because an array is just a function with a > rectangular domain; e.g. `array-map' is composition. That's the only thing I am talking abou

Re: [racket] Cost of the contract boundary in the math library

2012-11-03 Thread Robby Findler
I can't recall why exactly now, but there is something about how the contract system wraps first-order contracts that lets things run faster. Robby On Sat, Nov 3, 2012 at 4:42 PM, Matthias Felleisen wrote: > > On Nov 3, 2012, at 1:46 PM, Neil Toronto wrote: > >> Higher-order functions, though, a

[racket] tutorials on using redex

2012-11-03 Thread geb a
Hi, I've been working with redex (a little bit) trying to work my way through "Semantics Engineering".  Is there anything resembling an idiots guide to programming languages?  The specialized terms in Semantics are slowing me way down.  It probably is necessary to have that approach.  In that c

[racket] translate from Racket to Common Lisp

2012-11-03 Thread daniel rupistraliz avez
Hello. I would like to make a program that translate from Racket to Common Lisp. One motivation is speed, for example a recent example in the racket blog about the 2n+1 problem gives 1200 milliseconds in Racket and 500 in sbcl (without declaring fixnum or any other optimization). I w

Re: [racket] translate from Racket to Common Lisp

2012-11-03 Thread Hendrik Boom
On Fri, Nov 02, 2012 at 04:25:09PM +, daniel rupistraliz avez wrote: > > Hello. > > I would like to make a program that translate from Racket to Common Lisp. > > Do you know about some attempts in this directions? Guy Steele's master's thesis, a compiler for Scheme. ftp://publica

Re: [racket] translate from Racket to Common Lisp

2012-11-03 Thread Neil Van Dyke
It is flattering for the Racket language that someone would go to all the trouble of making a translator so that they could continue to program in Racket, even though they were using a Common Lisp backend. :) I think that blog entry was an introductory programming tutorial, and it was not focu

Re: [racket] Scope of PLaneT was: (no subject)

2012-11-03 Thread Neil Van Dyke
Edward Blake wrote at 11/02/2012 06:23 PM: I've assumed until now that PLaneT to be appropriate mainly for libraries and development oriented tools, but with the submodules feature some Racket applications could also serve a dual purpose as libraries quite easily. Yes. For the forthcoming Rack