Projects using JavaScript

25.05.2023

Testing the p5.cljs editor

There was never a time where I the JavaScript ecosystem more than when I tried to write tests for the p5.cljs web editor. Things broken left and right, missing plugins, babel, transpiling, modules, npm. Disclaimer: I don’t hate the JS ecosystem in earnest. Just … sometimes. This article is about why I chose Jest as the test runner for the p5.cljs editor and the steps necessary to get it working with third-party components I was using.

22.05.2023

The Best String Compression in JavaScript

edit: 23.05.22 - add benchmarks of gzip, zlib and deflate via wasm-flate Lately, I needed to find a decent algorithm to compress strings in JavaScript so that I could encode it as a URL param. Since the strings to be encoded where p5 sketches that ran in the p5.cljs web editor, it was important that the compressed string was short enough to enable longer sketches to be written. The algorithms After some searching on the web, I found some algorithms that I could use for this purpose.