Get the latest tech news

Some Tricks from the Scrapscript Compiler


Scrapscript is a small, pure, functional, content-addressable, network-first programming language.

Because the encoded version is illegible without knowing ASCII tables in your head (0x63==”c”, 0x62==”b”, 0x61==”a”, etc), we also helpfully print out the string representation to aid debugging. But I vaguely recalled something about OCaml encoding variants with only a couple of bits so I checked out their page on data representations. Sometimes in scraps there are entire constant data structures that get allocated at run-time, every time the parent closure is called.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Tricks

Tricks

Photo of scrapscript compiler

scrapscript compiler

Related news:

News photo

Apple Pencil Pro adds squeeze, roll and haptic feedback to its bag of tricks

News photo

Apple Shares 5 Helpful AirPods Tips and Tricks

News photo

Level up your mobile photography game with a few simple tips and tricks