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

Some tricks from the Scrapscript compiler

Scrapscript is a small, pure, functional, content-addressable, network-first programming language. fact 5 . fact = | 0 -> 1 | n -> n * fact (n - 1) My previous post talked about the compiler that Chris and I built. This post is about some optimization tricks that we’ve added since. Pretty much all of these tricks are standard operating procedure for language runtimes (OCaml, MicroPython, Objective-C, Skybison, etc). We didn’t invent them. They’re also somewhat limited in scope; the goal was to b...

Read more at bernsteinbear.com

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