r/java • u/bluepoison24 • Apr 05 '26
I built an engine that auto-visualizes Java algorithms as they run
I’ve always found it annoying that you have to use specific frameworks just to see an algorithm in action. I wanted to build something where you could just write:
int[] arr = {5, 2, 8, 1};
arr[0] = 10; // ← automatically visualized
I ended up "hacking" the JVM using a Java Agent to inject visualization callbacks into the bytecode.
Why bytecode? It doesn't matter if you write arr[i] = x or arr[getIndex()] = compute(); at the bytecode level, it's all just one instruction. This makes the visualization incredibly robust.
Try it here: https://www.algopad.dev/#
View all comments
Show parent comment
-1
u/tealpod Apr 05 '26
Nowadays, we have to face this new criticism, being called 'AI slop', I think we should Ignore it. You are doing great work.
If I were you I will have the Share button always visible(even for existing examples, not only for modified code) which is important viral sharing.
And one more minor suggestion, everytime I visit, the tour is starting, and the 'Skip tour' button can be bit more visible.