All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Optimizing Speed for the Purple Garden Lexer

By

xnacly

10mo ago· 22 min readenNews

Summary

The blog post discusses strategies used to optimize the speed of the purple garden lexer, focusing on performance in the development of an s-expr based language. It emphasizes that the approaches may not be universally applicable due to varying use cases and designs.

Key quotes

· 3 pulled
Its my attempt at building a language I like, with a battery included approach, while designing it with performance in mind.
I tried to bring receipts for my performance claims, so watch out for these blocks at the end of chapters:Info - Benchmark
A lexer (often also referred to as a tokeniser) is the easiest part o
Snippet from the RSS feed
Making compilation pipelines fast, starting with the tokenizer

You might also wanna read