Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Eli Barzilay
Two hours ago, Matthias Felleisen wrote: > > I second Eli on a second level. > > As much as I think that syntactic simplicity helps a lot of languages, > I don't think this particular kind of simplicity is a major problem or > even worth our attention. > > For a while I decided to try point-

Re: [racket-dev] known problem?

2011-05-17 Thread Eli Barzilay
Yes, it was fixed shortly after 5.1. 10 minutes ago, Robby Findler wrote: > Not just known but already fixed in a public release, I believe. > > Robby > > On Tue, May 17, 2011 at 11:25 PM, Shriram Krishnamurthi > wrote: > > In DrRacket 5.1 on Windows 7, hitting Alt-Space reproducibly > > prod

Re: [racket-dev] known problem?

2011-05-17 Thread Robby Findler
Not just known but already fixed in a public release, I believe. Robby On Tue, May 17, 2011 at 11:25 PM, Shriram Krishnamurthi wrote: > In DrRacket 5.1 on Windows 7, hitting Alt-Space reproducibly produces > this output: > > system-menu in frame%: unimplemented; args were '() > >  === context =

[racket-dev] known problem?

2011-05-17 Thread Shriram Krishnamurthi
In DrRacket 5.1 on Windows 7, hitting Alt-Space reproducibly produces this output: system-menu in frame%: unimplemented; args were '() === context === C:\Program Files (x86)\Racket\5.1\collects\racket\private\more-scheme.rkt:265:2: call-with-exception-handler C:\Program Files (x86)\Racket\5.1\co

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Neil Toronto
Robby Findler wrote: On Tue, May 17, 2011 at 9:52 PM, Matthias Felleisen wrote: For a while I decided to try point-free programming. You can do it in Racket as well as in Haskell. Then I ran across someone's rules for writing Scheme and he had written (lambda (n) (+ x n)) is just as readable

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 9:52 PM, Matthias Felleisen wrote: > For a while I decided to try point-free programming. You can do it in > Racket as well as in Haskell. Then I ran across someone's rules for > writing Scheme and he had written > >  (lambda (n) (+ x n)) > > is just as readable if not more

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Matthias Felleisen
I second Eli on a second level. As much as I think that syntactic simplicity helps a lot of languages, I don't think this particular kind of simplicity is a major problem or even worth our attention. For a while I decided to try point-free programming. You can do it in Racket as well as in

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Tony Garnock-Jones
On 2011-05-17 7:38 PM, Eli Barzilay wrote: This is relevant here, since your extension leads to another layer of headaches. Does this make it into more of a #lang mixin, as was recently discussed in the context of "#lang testable racket" in Another Place? Tony ___

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Eli Barzilay
Four hours ago, Sam Tobin-Hochstadt wrote: > I prefer this over `scut' for two reasons. (1) It makes the simple > cases simpler: you don't have to name anything. (2) It doesn't try > to handle the more complicated cases, which I think is a good thing. > Things that are implicit should either alwa

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 3:16 PM, Sam Tobin-Hochstadt wrote: >  I'll see if I can come up with a smaller test case. Here's a smaller test case for the problem/bug. Since this doesn't call any of the framework/drracket, I'm assuming it's an issue in the GTK bindings. #lang racket/gui (define f (

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 3:20 PM, Robby Findler wrote: > On Tue, May 17, 2011 at 2:16 PM, Sam Tobin-Hochstadt > wrote: >> On Tue, May 17, 2011 at 3:08 PM, Robby Findler >> wrote: >>> On Tue, May 17, 2011 at 2:05 PM, Sam Tobin-Hochstadt >>> wrote: On Tue, May 17, 2011 at 2:58 PM, Robby Fin

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Sam Tobin-Hochstadt
I prefer this over `scut' for two reasons. (1) It makes the simple cases simpler: you don't have to name anything. (2) It doesn't try to handle the more complicated cases, which I think is a good thing. Things that are implicit should either always do the right thing, or just do something simple.

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Jay McCarthy
If you forget how to find super-cut: https://github.com/jeapostrophe/exp/blob/master/scut.ss 2011/5/17 Jay McCarthy : > Obviously, I prefer super-cut, but this is still cute. :) > > Jay > > 2011/5/17 Sam Tobin-Hochstadt : >> Scala has the nice feature that if you write something like this: >>  ls

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Jay McCarthy
Obviously, I prefer super-cut, but this is still cute. :) Jay 2011/5/17 Sam Tobin-Hochstadt : > Scala has the nice feature that if you write something like this: >  lst.map(_ - 1) > It automatically rewrites to a function like this: >  lst.map(x => x - 1) > This makes writing some higher-order fu

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 3:21 PM, Robby Findler wrote: > What is the rule for where the lambda goes? If you have an application with one (or more) occurences of `_' as immediate subforms, then that application is rewritten into (lambda args the-original-application). It doesn't attempt to do a de

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 3:20 PM, John Clements wrote: > > On May 17, 2011, at 12:14 PM, Sam Tobin-Hochstadt wrote: > >> Scala has the nice feature that if you write something like this: >>  lst.map(_ - 1) >> It automatically rewrites to a function like this: >>  lst.map(x => x - 1) >> This makes w

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Robby Findler
But then this: (map (+ 1 _) (list 1 2 3)) would turn into (lambda (_) (map (+ 1 _) (list 1 2 3)) no? Robby On Tue, May 17, 2011 at 2:22 PM, John Clements wrote: > > On May 17, 2011, at 12:21 PM, Robby Findler wrote: > >> What is the rule for where the lambda goes? > > Looks to me like it go

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread John Clements
On May 17, 2011, at 12:21 PM, Robby Findler wrote: > What is the rule for where the lambda goes? Looks to me like it goes at the outside. So the macro plows through the terms and when it gets to the bottom, it decides either to wrap the whole thing in a lambda or not. John > > Robby > > O

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Robby Findler
What is the rule for where the lambda goes? Robby On Tue, May 17, 2011 at 2:14 PM, Sam Tobin-Hochstadt wrote: > Scala has the nice feature that if you write something like this: >  lst.map(_ - 1) > It automatically rewrites to a function like this: >  lst.map(x => x - 1) > This makes writing som

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread John Clements
On May 17, 2011, at 12:14 PM, Sam Tobin-Hochstadt wrote: > Scala has the nice feature that if you write something like this: > lst.map(_ - 1) > It automatically rewrites to a function like this: > lst.map(x => x - 1) > This makes writing some higher-order functions much easier. > > Of course,

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 2:16 PM, Sam Tobin-Hochstadt wrote: > On Tue, May 17, 2011 at 3:08 PM, Robby Findler > wrote: >> On Tue, May 17, 2011 at 2:05 PM, Sam Tobin-Hochstadt >> wrote: >>> On Tue, May 17, 2011 at 2:58 PM, Robby Findler >>> wrote: On Tue, May 17, 2011 at 1:45 PM, Sam Tobin-

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 3:08 PM, Robby Findler wrote: > On Tue, May 17, 2011 at 2:05 PM, Sam Tobin-Hochstadt > wrote: >> On Tue, May 17, 2011 at 2:58 PM, Robby Findler >> wrote: >>> On Tue, May 17, 2011 at 1:45 PM, Sam Tobin-Hochstadt >>> wrote: On Tue, May 17, 2011 at 12:04 PM, Robby Fi

[racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Sam Tobin-Hochstadt
Scala has the nice feature that if you write something like this: lst.map(_ - 1) It automatically rewrites to a function like this: lst.map(x => x - 1) This makes writing some higher-order functions much easier. Of course, it's easy to make this using a macro and `#%app'. You can see the resu

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 2:05 PM, Sam Tobin-Hochstadt wrote: > On Tue, May 17, 2011 at 2:58 PM, Robby Findler > wrote: >> On Tue, May 17, 2011 at 1:45 PM, Sam Tobin-Hochstadt >> wrote: >>> On Tue, May 17, 2011 at 12:04 PM, Robby Findler >>> wrote: In consultation with Matthew, I've pushed

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 2:58 PM, Robby Findler wrote: > On Tue, May 17, 2011 at 1:45 PM, Sam Tobin-Hochstadt > wrote: >> On Tue, May 17, 2011 at 12:04 PM, Robby Findler >> wrote: >>> In consultation with Matthew, I've pushed a change that fixes the too >>> small menu bar problem, at least on a

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 1:45 PM, Sam Tobin-Hochstadt wrote: > On Tue, May 17, 2011 at 12:04 PM, Robby Findler > wrote: >> In consultation with Matthew, I've pushed a change that fixes the too >> small menu bar problem, at least on a VM on my laptop. >> >> If you're seeing this problem, can you ch

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Sam Tobin-Hochstadt
On Tue, May 17, 2011 at 12:04 PM, Robby Findler wrote: > In consultation with Matthew, I've pushed a change that fixes the too > small menu bar problem, at least on a VM on my laptop. > > If you're seeing this problem, can you check and see if the change > fixes it for you too? > > Also, if someon

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Jon Rafkind
Fixed for me too, ubuntu 11.04 32bit, not using unity. thanks a lot Robby! On 05/17/2011 10:53 AM, Kevin Tew wrote: > Its fixed for me now. > > Ubuntu 11.04 x86_64. > > Thanks. > > On 05/17/2011 10:04 AM, Robby Findler wrote: >> In consultation with Matthew, I've pushed a change that fixes the to

Re: [racket-dev] gtk & too-small menu bar

2011-05-17 Thread Kevin Tew
Its fixed for me now. Ubuntu 11.04 x86_64. Thanks. On 05/17/2011 10:04 AM, Robby Findler wrote: In consultation with Matthew, I've pushed a change that fixes the too small menu bar problem, at least on a VM on my laptop. If you're seeing this problem, can you check and see if the change fixes

[racket-dev] gtk & too-small menu bar

2011-05-17 Thread Robby Findler
In consultation with Matthew, I've pushed a change that fixes the too small menu bar problem, at least on a VM on my laptop. If you're seeing this problem, can you check and see if the change fixes it for you too? Also, if someone could try it out on a unity setup, that'd be helpful. Thanks, Rob

Re: [racket-dev] planet-version follies with old planet packages

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 12:04 AM, Jens Axel Søgaard wrote: > 011/5/17 Robby Findler : >> Oh, okay I'm caught up now and, as far as I can tell, the gzip.plt >> package needs to be updated. It has this: >> >>  (define required-core-version "400.0") >> >> in the info.ss file: >> >>  http://planet.rac