Back to Browse

Exploring the Hidden Secrets within OCaml’s Local Function Types | OCaml Unboxed

1.6K views
May 29, 2024
9:14

This OCaml Unboxed episode demonstrates how partial application and currying can cause trouble when mixed with locals. It turns out that putting "local_" in your function type may do more than you bargained for! Code used in this video: https://github.com/goldfirere/janestreet-videos/blob/main/locals/08-function-types/local.ml View instructions to get the compiler I use in this video: https://github.com/janestreet/opam-repository/tree/with-extensions Full documentation of locals: https://github.com/ocaml-flambda/flambda-backend/blob/main/ocaml/jane/doc/extensions/local/intro.md

Download

1 formats

Video Formats

360pmp415.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Exploring the Hidden Secrets within OCaml’s Local Function Types | OCaml Unboxed | NatokHD