functional.cafe is one of the many independent Mastodon servers you can use to participate in the fediverse.
functional.cafe is an instance for people interested in functional programming and languages.

Server stats:

212
active users

Public

"Scheme is a simple language", I recite to myself as I begin reading a macro expander implementation that is 3k lines long.

@dthompson FWIW I wrote a simple macro-expander for Scheme in about 500 lines (with explanations/derivation) in my master thesis:

github.com/panicz/master-thesi

It operates on s-expressions rather than syntax objects, but it supports a pattern language akin to 'macro-by-example' with some extensions, and it also tracks the derivation, so that the expanded code can be 'impanded' back (this feature isn't implemented in the above code, but I had it running on my laptop, and in my bitbucket repo that atlassian decided to kill)

GitHubmaster-thesis/chapters/C.tex at master · panicz/master-thesisData Structure Optimization for Functional Programs - panicz/master-thesis