jpmonettas

joined 1 year ago
 

Mi first blog post, about some techniques on debugging/exploring/understanding Clojure codebases in an interactive way using FlowStorm and the repl.

https://jpmonettas.github.io/my-blog/public/compilers-with-flow-storm.html

It also contains a tour over the internals of the ClojureScript compiler, as it is used as an example of a non trivial Clojure project.

No previous knowledge in compilers is needed and is made so you can follow along by pasting commands on your terminal.

 

Happy to share the first release of ClojureScriptStorm, a dev compiler that tries to bring the same experience as ClojureStorm does for Clojure (automatic instrumentation) to ClojureScript.

This dev compilers are created to improve the experience of using FlowStorm but are not coupled to it, so other tooling can be built on top of them.

It is a fork of the official ClojureScript compiler, with a patch on top to enhance it with automatic instrumentation. It currently supports cljs.main and shadow-cljs.

Here is the new user guide entry .

If you want to try it, be aware that it requires shadow-cljs >= 2.25.4

The current coordinates are com.github.jpmonettas/clojurescript {:mvn/version "1.11.60-2"} which applies the patch over 1.11.60 and the latest FlowStorm is com.github.jpmonettas/flow-storm-dbg {:mvn/version "3.7.5"}

The project is currently hosted here

If you want to use it for your own tooling, take a look at the current tests :