Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Runtimes & VMs Remove topic Runtimes & VMs Clear all 14 posts RSS

2023

2022

Optimizing Ruby’s Memory Layout: Variable Width Allocation

Deep dive 13 min +130 XP

Ruby 3.2's Variable Width Allocation replaces CRuby's single 40-byte RVALUE slot with five size pools (40, 80, 160, 320 and 640 bytes) so classes, strings, arrays and objects can store their data adjacent to the object instead of in separate malloc'd memory.

Adding the V8 CPU Profiler to v8go

Case study 10 min +100 XP

Exposing V8's CPU profiler through v8go, the Go library for running JavaScript in V8 isolates via Cgo, came down to a choice between lazily fetching each profile node property with its own Cgo call or eagerly building the whole call tree in C++ and rebuilding it in Go from a single pointer.

2021

The quest for software engineering knowledge.

Look:
Layout: