How an APL Prototype Helped Designing a Service
summary
A Dyalog APL prototype parses gigabytes of JSON into a 50 megabyte APL matrix (about 100× smaller), implements the core boolean-query engine in 172 lines of APL, and runs per-query work in roughly 3–20 ms per query with preprocessing ~2 minutes per GB. The single-threaded APL prototype exposes optimal data layout and algorithms that the team ports to Go; after adding multithreading and data-layout tweaks Go ultimately outperforms APL, but APL shapes the final design and performance targets.
AI-written summary · about
chapters (10)
- 0:00Introduction and company background
- 3:12The Christmas challenge emerges
- 7:27Learning APL and diving in
- 11:19Overcoming tree structure hurdles
- 14:52Preprocessing the data efficiently
- 18:05Executing queries with APL
- 22:00Prototype results and performance
- 26:38Go prototype competition and outcome
- 30:28APL's impact and lessons learned
- 32:37Q&A session
