jameysharp/live-long-and-prospero: A small compiler for the Prospero Challenge in Constructive Solid Geometry
github.com·3d
🧸Toy Compilers
Preview
Report Post

live long and Prospero

This is a response to Matt Keeter’s Prospero Challenge. Matt has defined a small language for describing shapes using Constructive Solid Geometry; a friend of mine described this as "like SVG if mathematicians invented it." If you have a shape that’s been described this way, you can decide whether a point is part of that shape by evaluating a mathematical expression on the coordinates of that point. So to draw a complete image of the shape, you need to evaluate the expression on the coordinate of each pixel in the image. If the expression is complicated or you want a high-resolution image, this could get very slow.

The Prospero Challenge is to dra…

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