Devlog 2: The Importance of Sandboxing
garden-lang.org·2d·
🛡️WASM Sandboxing
Preview
Report Post

2026-01-06

A core feature of Garden is the ability to run untrusted code in a sandbox. Untrusted evaluation is extremely hard to add to an existing language, but Garden is brand new. Sandboxing enables some really interesting workflows.

Interactive Documentation

Every code snippet on this website has Run and Edit buttons. If you want to confirm your understanding of a feature, you can experiment.

Here’s a really simple example.

Since we’re allowing arbitrary code, the user might write something more problematic (accidentally or otherwise). The sandbox ensures we can run this safely.

Path{ p: "/etc/passwd" }.read()

Some programming languages choose to compile their interpreter to wasm, so the execution happens in the browser. This is secure – everything occu…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help