phforms 3 months ago

Processing is what ignited my passion for programming and Quil has become my favorite way of writing it. It is amazing that you can re-evaluate the draw/update function in a running sketch and immediately see the changes, without having to reload the whole thing. And on top of it you have the beauty of the whole Clojure Stdlib with its immutable datastructures.

I just learned that there is now a tweak mode in Processing that lets you tweak certain parameters in the code (via draggable values, etc.) while the sketch is running, which is pretty awesome for experimenting with values. However, you still have to reload the whole sketch when you want to change other parts of the code, you can’t just eval a function in the editor and get immediate feedback like in Quil.

joeevans1000 3 months ago

Are you just mentally switching over from their code examples to Quil, or?

  • kailden 3 months ago

    If you mean translating from the JavaScript, yes. Quil wraps Processing. Quil did not wrap the vector library (P5.Vector) but most of vector operations are pretty easy to write in base clojure or you can use clojure.matrix. The fun(ctional)-mode lines up with passing initial state through the functions, which clojure makes easy.