Stack Allocation with Locals in OCaml | OCaml Unboxed

Ғылым және технология

This is the sixth installment in the video series explaining OCaml's locals. In this episode, I demonstrate how stack allocation works with locals. (And yes, even though locals use stack allocation, I guarantee this is not the stack you’re thinking of!)
Code used in this video: github.com/goldfirere/janestr...

Пікірлер: 3

  • @sami9323
    @sami93234 ай бұрын

    Wonderful video with great explanations and code. Love the work going on at Jane Street with OCaml!

  • @MirceaPricop
    @MirceaPricop4 ай бұрын

    It's very interesting that this also makes lists allocate closely together in memory space, thus potentially leading to much better cache locality in addition to saving garbage collection costs.

  • @RichardEisenberg-JS

    @RichardEisenberg-JS

    4 ай бұрын

    Yes that's a good point! I wish I had made that point in the video. :)

Келесі