It's really fun watching the work on OCaml unfold at JS! Here's a fun one: work ...

@yminsky@discuss.systems

It's really fun watching the work on OCaml unfold at JS!

Here's a fun one: work on a more efficient way of representing optional types, so you don't always have to take an indirection in the "Some" case.

github.com/ocaml-flambda/flamb

The problem with the obvious encoding of having a value be either a null pointer or else a direct pointer to the underlying value, is it doesn't nest well: there's no way of distinguishing Some None from None.

So...the trick is to use the new layout system we've been developing to track whether a value might be null, so you can ban nesting.

This takes a really useful optimization that people have hacked together in various awkward ways, and gives you a simple, general, and safe way of applying it.