Get the latest tech news

Prospero challenge, now with more garbage collection


Matt Keeter put up The Prospero Challenge, which is like catnip for me. It’s a well-scoped project: we have a slow program. Make it faster within these constraints. In this post, I will describe two very small changes that can speed up his sample program with minimal effort.

His sample tiny implementation, which I will reproduce here, uses Python and NumPy to compute pixels in parallel while parsing the input: Matt made the observation that oops, it’s storing every single frame and that takes up… uh… A quick internet search reveals that CuPy should be a drop-in replacement for NumPy that runs on the GPU.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of garbage collection

garbage collection

Photo of Prospero Challenge

Prospero Challenge

Related news:

News photo

The Prospero Challenge

News photo

JVM statistics cause garbage collection pauses (2015)

News photo

Crafting Interpreters with Rust: On Garbage Collection