lambda supports optional arguments, and does this by expanding out into a
core form that has flag arguments for if each argument is supplied. This is
tricky to type in TR and so I was investigating why it did it this way. I
did a micro benchmark on another method of expansion and it was 60% faster.
My guess would be code explosion.
-Ian
- Original Message -
From: Eric Dobson
To: dev
Sent: Sun, 24 Feb 2013 12:51:12 -0500 (EST)
Subject: [racket-dev] Expansion of optional arguments in lambda
lambda supports optional arguments, and does this by expanding out into a
core form that has f
Scratch that, didn't look very deeply at your solution.
-Ian
- Original Message -
From: J. Ian Johnson
To: Eric Dobson
Cc: dev
Sent: Sun, 24 Feb 2013 13:46:14 -0500 (EST)
Subject: Re: [racket-dev] Expansion of optional arguments in lambda
My guess would be code explosion.
-Ian
- Ori
At Sun, 24 Feb 2013 09:51:12 -0800, Eric Dobson wrote:
> lambda supports optional arguments, and does this by expanding out into a
> core form that has flag arguments for if each argument is supplied. This is
> tricky to type in TR and so I was investigating why it did it this way. I
> did a micro
I think I figured out the actual answer which is semantics. If the
arguments are ever set!ed then my implementation will lead to a different
value.
(define (f a (b (begin (set! a 2) 3)))
a)
This should return 2 if b is not supplied, but in my expansion it would
return what ever was supplied for
Sounds like a good thing to add to test suite!
Robby
On Sun, Feb 24, 2013 at 2:04 PM, Eric Dobson wrote:
> I think I figured out the actual answer which is semantics. If the
> arguments are ever set!ed then my implementation will lead to a different
> value.
>
> (define (f a (b (begin (set! a 2
On Tuesday, Danny Yoo wrote:
>
> It turns out that prior versions of documentation are linked from the
> "Download" section:
>
> http://download.racket-lang.org/docs/
>
>
> Preferably, this link should show up somewhere on the sidebar of the
> main documentation site.
-1. I think that thi
I mostly agree with Eli here, but it would be nice to be able to go from
the front of docs.racket-lang.org/ to a version specific page with more
goodies (including downloading). Can we make the "version 5.3.3" text at
the upper right clickable?
Robby
On Sun, Feb 24, 2013 at 2:22 PM, Eli Barzilay
Two hours ago, Eli Barzilay wrote:
> I think that this should be reverted, and instead make the older
> docs more available: I'll make another column in the all-versions
> page (main page > download > all versions).
Done, now. See the new links on the all versions page, and there's
also a link in
On Sun, Feb 24, 2013 at 3:16 PM, Eli Barzilay wrote:
> Two hours ago, Eli Barzilay wrote:
>> I think that this should be reverted, and instead make the older
>> docs more available: I'll make another column in the all-versions
>> page (main page > download > all versions).
>
> Done, now. See the
How about the "docs" link on the front page go to a page with the versions
all listed, and those links go to pages that look like the current
docs.racket-lang.org/ ?
On Sun, Feb 24, 2013 at 4:51 PM, Danny Yoo wrote:
> On Sun, Feb 24, 2013 at 3:16 PM, Eli Barzilay wrote:
> > Two hours ago, Eli
On Sun, Feb 24, 2013 at 3:55 PM, Robby Findler
wrote:
> How about the "docs" link on the front page go to a page with the versions
> all listed, and those links go to pages that look like the current
> docs.racket-lang.org/ ?
No, I do like that the default is to show the docs for the current vers
40 minutes ago, Danny Yoo wrote:
> On Sun, Feb 24, 2013 at 3:55 PM, Robby Findler
> wrote:
> > How about the "docs" link on the front page go to a page with the
> > versions all listed, and those links go to pages that look like
> > the current docs.racket-lang.org/ ?
>
> No, I do like that the d
According to my rough count (and running setup with a "-j 1"),
compiling `math' takes 40% of the whole tree compilation.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
_
At Sun, 24 Feb 2013 17:16:13 -0500, Eli Barzilay wrote:
> Two hours ago, Eli Barzilay wrote:
> > I think that this should be reverted, and instead make the older
> > docs more available: I'll make another column in the all-versions
> > page (main page > download > all versions).
>
> Done, now. Se
A few minutes ago, Matthew Flatt wrote:
> At Sun, 24 Feb 2013 17:16:13 -0500, Eli Barzilay wrote:
> > Two hours ago, Eli Barzilay wrote:
> > > I think that this should be reverted, and instead make the older
> > > docs more available: I'll make another column in the all-versions
> > > page (main pa
16 matches
Mail list logo