Re: [racket-dev] submodule in macro

2013-01-29 Thread Matthew Flatt
There seems to be a problem with `expand' and `quote'd module names. You can work around the problem by using `(submod . tmp-module-name)'. At Mon, 28 Jan 2013 03:30:21 -0500, Stephen Chang wrote: Actually, moving the rename to the require doesnt work either. But now there's a different error.

Re: [racket-dev] submodule in macro

2013-01-29 Thread Matthew Flatt
At Sat, 26 Jan 2013 10:36:52 -0500, Matthias Felleisen wrote: [[ I don't really understand the answer. I mean I understand the technicality but not the spirit. ]] The 'f' comes from the macro input in both cases. Hence the rename-out could be seen as the actual name required.

[racket-dev] Racket learning page videos

2013-01-29 Thread Nick Shelley
I recently came across a presentation on the Racket way by Matthew Flatt ( http://www.infoq.com/presentations/Racket) and thought that it would be nice to be able to discover this and similar things more easily. I really like how all the publications are available on the Racket learning page.

Re: [racket-dev] Racket learning page videos

2013-01-29 Thread Danny Yoo
On Tue, Jan 29, 2013 at 9:35 AM, Nick Shelley nickmshel...@gmail.com wrote: I recently came across a presentation on the Racket way by Matthew Flatt (http://www.infoq.com/presentations/Racket) and thought that it would be nice to be able to discover this and similar things more easily. I really

Re: [racket-dev] Racket learning page videos

2013-01-29 Thread Nick Shelley
Maybe the main site could just point to the wiki for extra learning materials. On Tue, Jan 29, 2013 at 2:18 PM, Danny Yoo d...@hashcollision.org wrote: On Tue, Jan 29, 2013 at 9:35 AM, Nick Shelley nickmshel...@gmail.com wrote: I recently came across a presentation on the Racket way by

[racket-dev] union-find

2013-01-29 Thread Robby Findler
I've just pushed an implementation of the union-find algorithm to the data/ collection. I didn't do it quite the way wikipedia recommends, but instead made the sets be little containers whose canonical element can be mutated. This suits my purposes well, but I wanted to ask if someone on the list

Re: [racket-dev] long double for racket

2013-01-29 Thread Sam Tobin-Hochstadt
On Mon, Jan 28, 2013 at 8:18 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Sat, 29 Dec 2012 14:05:08 +0300, Michael Filonenko wrote: I have prepared a new version of the patch (attached). Thanks! A question on the design here: why not make extflonums part of the numeric tower? Also, when

Re: [racket-dev] union-find

2013-01-29 Thread Robby Findler
On Tue, Jan 29, 2013 at 4:20 PM, Sam Tobin-Hochstadt sa...@ccs.neu.eduwrote: This is probably a silly question, but don't you also need some way to check if two sets have been unioned? Does your application not need that? You check to see if their canonical element is the same. Robby

Re: [racket-dev] union-find

2013-01-29 Thread Robby Findler
But I should probably provide that, since it can be done more reliably inside the library. Robby On Tue, Jan 29, 2013 at 6:46 PM, Robby Findler ro...@eecs.northwestern.eduwrote: On Tue, Jan 29, 2013 at 4:20 PM, Sam Tobin-Hochstadt sa...@ccs.neu.eduwrote: This is probably a silly

Re: [racket-dev] union-find

2013-01-29 Thread Robby Findler
On Tue, Jan 29, 2013 at 4:23 PM, Danny Yoo d...@hashcollision.org wrote: On Tue, Jan 29, 2013 at 2:51 PM, Robby Findler ro...@eecs.northwestern.edu wrote: I've just pushed an implementation of the union-find algorithm to the data/ collection. I didn't do it quite the way wikipedia

Re: [racket-dev] union-find

2013-01-29 Thread Sam Tobin-Hochstadt
But wouldn't that equate two un-unioned invocations of (uf-new 1)? On Tue, Jan 29, 2013 at 7:47 PM, Robby Findler ro...@eecs.northwestern.edu wrote: But I should probably provide that, since it can be done more reliably inside the library. Robby On Tue, Jan 29, 2013 at 6:46 PM, Robby

Re: [racket-dev] union-find

2013-01-29 Thread Robby Findler
Thanks. That's a bug. uf-set-canonical! changes the canonical element of the set (without affecting the identity of the set). Robby On Tue, Jan 29, 2013 at 4:13 PM, Danny Yoo d...@hashcollision.org wrote: On Tue, Jan 29, 2013 at 2:51 PM, Robby Findler ro...@eecs.northwestern.edu wrote:

Re: [racket-dev] union-find

2013-01-29 Thread Robby Findler
I understood you to be asking for something like this: (check-equal? (uf-same-set? (uf-new 1) (uf-new 2)) #f) (check-equal? (uf-same-set? (uf-new 1) (uf-new 1)) #f) (check-equal? (let ([a (uf-new 1)] [b (uf-new 1)]) (uf-union! a b)

Re: [racket-dev] union-find

2013-01-29 Thread Sam Tobin-Hochstadt
Yes, exactly. I meant that the strategy of just checking the canonical element would have the problem I described -- having an operation for that would fix it. Sam On Tue, Jan 29, 2013 at 7:57 PM, Robby Findler ro...@eecs.northwestern.edu wrote: I understood you to be asking for something like

Re: [racket-dev] Racket learning page videos

2013-01-29 Thread Robby Findler
I agree. Listing important videos on unlikely-to-go-away sites seems important. Robby On Tue, Jan 29, 2013 at 4:44 PM, Matthias Felleisen matth...@ccs.neu.eduwrote: 1. Pointing to the wiki from racket-lang.org is a good idea. 2. But I agree with the original proposal that we really may

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
Update: it happens also for system supplied functions, for example (car 3) displays the same behavior. However, it happens always, when certain programs are in the editor, and never with others. I don't see a pattern. At this moment I cannot attach a file which causes this (am typing in a

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
Update 2: it does not depend on buffer content. I have 9 tab open in this DrRacket. In 5 of them happen the strange message, in 4 of them it doesn't happen. I tried closing one in which it happened and then reopening the same file in a new tab, and in the new tab it doesn't happen. 2013/1/30,

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
AHA! You got it! It happens in the tabs which have 'No debugging...' checked, and doesn't happen otherwise. 2013/1/30, Robby Findler ro...@eecs.northwestern.edu: What is the custom part of the language settings you have on? Robby On Tue, Jan 29, 2013 at 7:47 PM, Pierpaolo Bernardi