Get the latest tech news

Doing the Prospero-Challenge in RPython


Recently I had a lot of fun playing with the Prospero Challenge by Matt Keeter. The challenge is to render a 1024x1024 image of a quote from The Tempest by Shakespeare. The input is a mathematical for

What made the challenge particularly enticing for me personally was the fact that the formula is basically a trace in SSA-form – a linear sequence of operations, where every variable is assigned exactly once. The min and max operations form a kind of "spine" of the expression tree, because they are unions and intersection in the constructive solid geometry sense. To achieve even faster performance, I decided to rewrite the implementation in C. While RPython is great for prototyping, it can be challenging to control low-level aspects of the code.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of RPython

RPython

Photo of Prospero-Challenge

Prospero-Challenge