on psyntax

12 March 2009 11:53 PM (guile | scheme)

For the last few months I've been on a Dybvig kick. He writes clearly, and his papers make sense.

In the last week or two I've been poking at integrating psyntax closer to the heart of Guile, and in doing so have grown familiar with the syntax-case algorithms.

The algorithms themselves are described as lucidly as they can be in a chapter of Beautiful Code.

On the one hand, psyntax is beautiful. It is written in Scheme + syntax-case, yet it transforms code from Scheme + syntax-case to primitive Scheme. It's a compiler, like ones written in Scheme that compile Scheme to native code. You have to bootstrap it with a precompiled version of itself.

On the other hand, Dybvig himself damns it with faint praise, comparing it to an earlier algorithm, KFFD:

The syntax-case expander extends the KFFD hygienic macro-expansion algorithm with support for local syntax bindings and controlled capture, among other things, and also eliminates the quadratic expansion overhead of the KFFD algorithm. The KFFD algorithm is simple and elegant, and an expander based on it could certainly be a beautiful piece of code. The syntax-case expander, on the other hand, is of necessity considerably more complex. It is not, however, any less beautiful, for there can still be beauty in complex software as long as it is well structured and does what it is designed to do.

In other words: it works, dammit, shut up and eat your porridge!

12 responses

  1. Grant Rettke says:

    > In the last week or two I've been poking at integrating
    > psyntax closer to the heart of Guile

    How so?

  2. free robux no survey says:

    Enjoy the fantasy of playing roblox after getting the free robux no survey which will let you to cross all the levels of this game with much ease.

  3. Animation Video Maker says:

    From one viewpoint, psyntax is excellent. It is composed in Scheme sentence structure case, yet it changes code from Scheme language structure case to primitive Scheme. It's a compiler, similar to ones written in Scheme that incorporate Scheme to local code. You need to bootstrap it with a precompiled rendition of itself.

  4. sagar says:

    Once you have downloaded and install the APK from below link, you could by hand Play Store Download mount it. Go through this article to understand.

  5. hillarydavidson says:

    I recommend you find it on. Even however Wiki isn't the most definitive source around, do my dissertation perusing the Wiki article about Little Women ought to give you enough of a thought what the book is about that you can choose whether it intrigues you enough for you to get it.

  6. Lydia says:

    Our customized essay writing service are welcomed by students and professionals all around the world. The debut in the very first paragraph of the letter is vital. For the collection organization to state that it had an agreement on you, it must show the way that it was going to do good for you.

  7. Coursework Writing Services UK says:

    At present the most current arrivals of different Scheme usage, for example, Chez Scheme, Racket, Ikarus, Larceny and Ypsilon, bolster the R6RS standard. There is a compact reference usage of the proposed verifiably staged libraries for R6RS, called psyntax, which loads and bootstraps itself legitimately on different more established Scheme executions.

  8. solitaire spider says:

    I recommend to you one of the most playing soliatire gaame , solitaire spider is one of the most famous game. You can play directly without login and no requied download. just one click and play classic game

  9. free steam cards says:

    You will always have your chance of getting these codes add cash to your steam wallet. steam wallet gift card add money to your wallet.

  10. Mail Encryption says:

    Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.

  11. IPL Tickets in Delhi says:

    DD Vs CSK IPL Tickets: After a decade, IPL matches are still being loved by the entire cricket fans despite the fact that lot controversies get widespread across the nation. We all know that the battle between the teams is mainly said to be the IPL season. It is how we could able to see the IPL tournament. So, whenever the seasons of IPL are nearing, people are always showing their excitement and interests towards watching the matches and their favorite teams and players in the stadium.

  12. visit blog says:

    Wow i can say that this is another great article as expected of this blog.Bookmarked this site..

Leave a Reply