Recent submissions

Comment · 1 year ago
Comment · 1 year ago
Comment · 2 years ago
Cool! I love how this written and how powerful that whole approach feels for teaching/learning.
Comment · 2 years ago
Thanks! I started with cljfx and then moved to pure javafx, first because it wasn't straight forward for me to understand the performance overhead of cljfx under different scenarios (when using subscriptions and contexts), and second because I want to drag as few dependencies as possible so they don't conflict with debuggee one's.
Comment · 2 years ago
So recording in FlowStorm doesn't use Clojure metadata capabilities in any way, it is basically about storing function calls, function returns and the pointers to all expressions intermediate immutable values together with their code coordinates.
Comment · 2 years ago
Not sure I follow, can expand on that? I gave a presentation on it recently https://www.youtube.com/watch?v=BuSpMvVU7j4 which goes over demos and implementation details if you are interested in those topics.
Comment · 2 years ago
Cool! I wrote something on the same spirit but for Clojure, called FlowStorm http://www.flow-storm.org/

For instrumentation, instead of an instrumenting agent it uses a fork of the official Clojure compiler (in Clojure you can easily swap compilers at dev) that adds extra bytecode. What is interesting about recording Clojure programs execution is that most values are immutable, so you can snapshot them by just retaining the pointers.

Edit: Since the OP demo is about exploring a web app for people interested in this topics I'm leaving a demo of FlowStorm debugging a web app also https://www.youtube.com/watch?v=h8AFpZkAwPo

Comment · 2 years ago
Have you seen http://www.flow-storm.org/. It does time travel debugging for Clojure and has a bunch of features.
Comment · 2 years ago
I'm working on http://www.flow-storm.org/ A time travel debugger for Clojure with some unique features, aiming to enhance the already awesome interactive development of Clojure by enabling you to record and explore executions on demand.
Comment · 3 years ago
Hi Kenny! Go ahead! There is a ton to explore in this area, so looking forward to whatever works for you.

ClojureDart is still on FlowStorm roadmap, just waiting for the self hosted version there.

Comment · 3 years ago
Comment · 3 years ago
Comment · 4 years ago
Nice, thanks for the links.

Yeah I don't know how stickers trace code, but FlowStorm tracing debugger takes advantage of the immutable data structures used everywhere and by default in Clojure. You can then instrument entire code bases, run them, and tracing is just a matter of retaining(leaking) pointers of every intermediate expression so the GC doesn't collect them. I don't think this is possible when working with mutable objects, since then only way would be to somehow serialize the objects involved at every step so you can analyze the data later, which is prohibitively expensive in most situations.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton