I figure you might as well have a channel to chat about Portal...
This is really cool, thanks!
I want to encourage more people to use these visualization tools. I think tools like REBL, Reveal, and Portal are important to Clojurians. I think that this is a great example of what tap>
and datafy
/ nav
can do for tooling!
I agree! I'm really excited to see what kind of work flows these type of tools enable.
I think a major plus is that they aren't coupled to any particular IDE / editor which really reduces their barrier to entry.
Personally, I've been playing with the idea of generating a program trace as a nav tree and visualizing it in portal.
So instead of having to manually instrument your code with individual print statements, just instrument the root and nav to anything that looks interesting.
Normally this would look overwhelming in a terminal, but in a browser you can focus on what's important
https://github.com/djblue/portal/blob/trace/src/portal/trace.cljc#L99
That looks very interesting! And the nice thing about using tap>
is that multiple tools can benefit from the underlying trace data.
I added @logbot and @zulip-mirror-bot so this channel gets archived to ClojureVerse and Zulip.
@djblue I keep forgetting that (portal.api/open)
will block if it finds and starts Chrome (whereas browse-url
does not block) so it would probably be friendlier if it defaulted to running in a future
?
Also, I updated my https://github.com/seancorfield/atom-chlorine-setup to reference Portal (as well as Reveal and REBL).
I should be able to fix this soon 💯
Anyone have any preferences on keyboard shortcuts? I was going to add a few for quickly toggling between different viewers.
vim style key bindings are always appreciated 🙂
What would be a good way to map vim key bindings?