Pitfalls with Tail Calls and Locals in OCaml | OCaml Unboxed

Поділитися
Вставка
  • Опубліковано 6 тра 2024
  • This is the seventh in a series about locals in OCaml. This episode explains the challenges around tail-call optimization and how to keep local variables from escaping their region. I introduce the [@nontail] annotation to prevent tail-call optimization, which is often needed when writing code with locals.
    Code used in this video: github.com/goldfirere/janestr...
    View instructions to get the compiler I use in this video: github.com/janestreet/opam-re...

КОМЕНТАРІ • 1