VM/runtime with unique, borrowed and GC'd reference types
A VM/runtime project exploring how to introduce unique, borrowed, and garbage-collected reference types into its intermediate representation. Inspired by the Lobster language compiler's specialization of functions by reference type as an escape-analysis-like technique, the design considers re-merging specialized functions with compile-time checks replaced by very cheap runtime checks using pointer 'upper byte ignore' bits. The VM is also intended to support both managed source languages and languages where unique and borrowed references are statically checked and possibly stored in objects.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
VM/runtime with unique, borrowed and GC'd reference types
A VM/runtime project exploring how to introduce unique, borrowed, and garbage-collected reference types into its intermediate representation. Inspired by the Lobster language compiler's specialization of functions by reference type as an escape-analysis-like technique, the design considers re-merging specialized functions with compile-time checks replaced by very cheap runtime checks using pointer 'upper byte ignore' bits. The VM is also intended to support both managed source languages and languages where unique and borrowed references are statically checked and possibly stored in objects.
Posted by @Findecanor · Original source ↗
Source text · @Findecanor · · Source ↗
I'm looking at how to introduce unique, borrowed and GC'd reference types into the IR for my VM/runtime.