Inside the lone lisp heap: A technical deep dive into a dynamic language's memory architecture
By
Matheus Afonso Martins Moreira
If you only eat one bagel today, this is the bagel.
Summary
This article discusses the heap implementation of "lone lisp," a dynamic programming language. It describes how lone started as a collection of C data structures with a union type system, a typed value structure, and a custom language designed to combine these values into working program patterns. The article focuses on the technical architecture of the lone lisp heap, including its list, vector, and table data structures.
Key quotes
· 2 pulledLike many dynamic languages out there, lone started out simple.
It was essentially a collection of data structures written in C, an union comprising all of those types, a typed value structure containing the union plus metadata, and a custom language whose entire purpose is to bring all these values together into patterns that resemble working programs.
You might also wanna read
rlisp: A LISP Syntax Frontend That Compiles Directly to Rust
rlisp is a transparent s-expression frontend that compiles directly to Rust, allowing developers to write Rust semantics (ownership, borrowi
Generalizing the += Operator with an "alt" Keyword in a Custom Programming Language
The author discusses a "quarter baked" programming language they've been working on, and presents a syntax idea for generalizing the assignm
Designing Roto: Implementing Optional Semicolons in a New Scripting Language
The article discusses the author's development of a new scripting language called Roto, which aims to be easy to use and read by making semi
Meta Renews Focus on jemalloc Memory Allocator for Infrastructure Performance
Meta is renewing its commitment to jemalloc, a high-performance memory allocator that has been a foundational component in its software infr
Han: A Compiled Programming Language with Korean Keywords Written in Rust
Han is a compiled programming language written in Rust that uses Korean keywords and Hangul script. It's presented as an experiment explorin
Understanding Memory Layout Calculations in Zig Programming
The article explores memory layout calculations in the Zig programming language, inspired by Andrew Kelley's talk on Data Oriented Design. I
