Personal tools

Simonpj/Talk:Papers

From HaskellWiki

Revision as of 15:33, 28 May 2007 by SamB (Talk | contribs)

Jump to: navigation, search

1 Talk page for Simon Peyton Jones's papers

If you are kind enough to read one of my papers, you may like to jot down any thoughts it triggers off, and see what others have written. This talk-page lets you do just that. Here's a link back to my home page, from where you can get to all my papers.

There's a section for each paper. If you want to write notes about a paper where there's no section, just go ahead and create a new section.

You can identify your entries by preceding them with four tildes. Doing so adds your name, and the date. Thus:

Simonpj 08:42, 19 April 2007 (UTC) Note from Simon

1.1 Constructor specialisation for Haskell programs

Here is the paper.

Brandon Moore: In the second paragraph of section 4, I think "the only question is whether the rewrite rule created in Step *3* is correct". I think the aside in section 4.3, middle of the right column on page 6 should say "(We have dropped some dead code here, although in practice that would not be done until the simplifier runs in Step 3)". Lower on the same page, it looks like the definition of f1 has an extra ')' in "(n - 1))".

I also had a few comments about the content :) About reboxing, it seems like you might be able to specialise, but also pass take the existing value as another argument, and arrange to use that argument instead of reboxing. Maybe it would be too hard to specialise the body that way, I doubt just simplifying a beta-redex would do it (but it does sound a bit like as-patterns). For related work, I wonder if flow-analysis is relevant.

Simonpj 08:54, 19 April 2007 (UTC) Yes, you could do that, but in the example in Section 6.1 showing that "this is too conservative", it'd be bad to pass the boxed version as well. It'd end up as an unused argument, and some subequent transformation would then have to get rid of it.

Agl 04:15, 26 April 2007 (UTC) (Typo) At the very top of the second page, the text reads "Here is roughly1 drop translates, after a bit of inlining:". Maybe needs a "how" after the "roughly"?

Agl 04:19, 26 April 2007 (UTC) In the Core translation of drop (page 2), shouldn't the it be case un of { 0 -> ys ... }, (rather than [] as it is currently)? Later: the translation is correct, it's the code for drop at the end of the first page which is odd. (Not wrong, because you can define it to be whatever, but it certainly doesn't match the Prelude drop :) )

SamB 15:30, 28 May 2007 (UTC) I say that that drop is wrong, because the paper says "consider this standard function", which implies that it is the some one that is exported by Prelude.

PeterThiemann 19:57, 15 May 2007 (UTC) It's nice to see these ideas surfacing again, properly worked out, implemented and benchmarked. I'm sure you are not aware of this paper: http://www.informatik.uni-freiburg.de/~thiemann/papers/pepm94.ps.gz , which appeared in PEPM'94. It actually has a precursor, which uses them same example of the last function. I don't have it online, but here is the citation:

        AUTHOR = {Peter Thiemann},
        TITLE = {Avoiding Repeated Tests in Pattern Matching},
        YEAR = 1993,
        PAGES = {141-152}
        TITLE = {3rd International Workshop on Static Analysis},
        YEAR = 1993,
        BOOKTITLE = {3rd International Workshop on Static Analysis},
        EDITOR = {Gilberto Fil{\'e}},
        PUBLISHER = SP,
        ADDRESS = {Padova, Italia},
        MONTH = sep,
        SERIES = LNCS,
        NUMBER = 724,
        ISBN = {3-540-57264-3}