jonmsterling.com

Weeknotes 2026-W06 › Project Pterodactyl: incremental architecture (opens in new tab)

Discussed on Hacker News and r/Compilers

In my spare time I have been continuing to work out the architecture for incremental query-based elaboration on the CAS model. One bit of received wisdom in this area is the “green tree / red tree” distinction, inherited from Roslyn. Green trees are concrete syntax trees that carry no positioning information (except textual length of nodes); red trees are an ephemeral structure that is layered on top of the green tree, and carries absolute positions as well as other useful things. Red trees a...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help