logoalt Hacker News

Advanced Scheme Techniques (2004) [pdf]

100 pointsby mooredsyesterday at 3:44 PM16 commentsview on HN

Comments

s20nyesterday at 4:39 PM

Speaking from personal experience, Scheme looks deceptively simple but it is one of the hardest languages to write a compiler for.

I say this mainly because of 2 things:

1. Hygienic Macros (You practically have a whole another language inside the language)

2. First Class Continuations (There is no good way to achieve this other than doing a CPS transform on the AST)

show 5 replies
twoodfinyesterday at 5:19 PM

This is part two of a seminar series:

https://people.csail.mit.edu//jhbrown/scheme/

bjoliyesterday at 6:08 PM

You should all have a look at Oleg Kiselyov's speech about continuations at Dan Friedman's 60th birthday. That is some next level shit.

show 1 reply
shawn_wyesterday at 5:46 PM

Bug: The `list-iter` function presented assumes that an empty list is false. While that's the case in Common Lisp, it isn't in Scheme (and hasn't been in a very long time; iirc in early versions it was optional behavior).

show 1 reply