News Score: Score the News, Sort the News, Rewrite the Headlines

Compiling Pattern Matching

Introduction This post intends to provide a brief overview of the algorithm described in Luc Maranget’s “Compiling Pattern Matching to Good Decision Trees”. I’m fond of this formalisation as it has a straightforward implementation and results in reasonable decision trees for the majority of practical instances of pattern matching encountered in functional programming. Additionally, the resulting decision tree is easy to reason about and can be used as the basis of related transformations - such ...

Read more at compiler.club

© News Score  score the news, sort the news, rewrite the headlines