Home / Companies / Bubble / Blog / Post Details
Content Deep Dive

Building Bubble: Trees in the Clouds

Blog post from Bubble

Post Details
Company
Date Published
Author
Joshua Haas
Word Count
1,753
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

This is a blog post from Bubble's engineering team discussing their approach to storing and transmitting Abstract Syntax Trees (ASTs), which represent the structure of code in a computer. Unlike traditional programming languages, Bubble doesn't store code but instead stores ASTs as JSON documents. The team faced challenges when trying to load and manipulate these large data structures efficiently, so they invented an abstraction layer called JSONBase, which abstracts away the position in a JSON document from the actual JSON object itself. This allows for faster loading of only needed parts of the application tree into memory without worrying about errors or null references. The team developed three implementations of JSONBase: RuntimeJSON for browser rendering, EditorJSON for the Bubble editor, and ServerJSON for server-side execution. These abstractions enable efficient management of multi-megabyte documents and simplify code development by abstracting away complex issues.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 2 343 110 45 +18%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.