Published onNovember 16, 2024Keeping it small: helping the compiler to remove unused code in OCamlocamldead-code-eliminationtree-shakingunused-codeOCaml has some facilities for eliminating unused code - I explore what it can do, and how you structure your code to take advantage of it
Published onOctober 23, 2024Dead code elimination dead end: OCaml doesn't tree-shakeocamldead-codetree-shakingMy (unsuccessful) investigation into removing unused code from the compiled output of OCaml, including all the web archeology and deep-dive into how native binaries are formed.