This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-30
Channels
- # announcements (5)
- # babashka (2)
- # beginners (85)
- # cider (59)
- # cljs-dev (2)
- # clojure (10)
- # clojure-europe (61)
- # clojure-gamedev (20)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (5)
- # cursive (24)
- # data-science (4)
- # datascript (8)
- # emacs (1)
- # fulcro (8)
- # graalvm (30)
- # gratitude (9)
- # hyperfiddle (71)
- # introduce-yourself (1)
- # jackdaw (1)
- # leiningen (8)
- # london-clojurians (1)
- # missionary (3)
- # other-languages (10)
- # pathom (8)
- # pedestal (18)
- # polylith (4)
- # proletarian (5)
- # reitit (7)
- # releases (4)
- # ring (8)
- # sci (10)
- # shadow-cljs (27)
- # squint (3)
- # tools-deps (2)
- # xtdb (17)
Hello! 🙂 Is it worth learning Pathom 2 or better learn Pathom 3 and start use it in production?
They are both pretty similar from a user perspective, so it doesn't matter too much if you start with 2 then moves to 3 at some point. I found the best thing about pathom3 is how good it is at batching, but I was also quite disappointed by how slow it is when you have a lot of resolvers (it takes 500ms to compute the plan, and I had issues where a wrong plan is cached and then it sticks to it, with caching it obviously goes does to almost 0 after warming up), and how slow it is when you return a LOT of items (count more or less 1ms per item so +1k items takes more than 1 sec where a hand built SQL response with multiple query would take under 100ms)
I’m still using 2, and I kind of prefer how it does async handling, and I have a ton of code written around it, but I am constantly tempted by the better batching of 3. Interesting to hear about the planner problems. That kind of thing is always tough to get right.
I recently learned that Fulcro Inspect resolver index doesn’t work with Pathom3 — @U0522TWDA has a tutorial of how to replicate it, but i didn’t have time to try to make this work. (Reminder to self: write up the problem I had to Jakub) In that moment, I definitely wondered whether Pathom 2 might be more desirable, as it seems to be the more traveled path, and has the best support inside of Fulcro and RAD.
Yes, there’s that. The fact that I don’t yet use 3 means the tooling isn’t going to get attn too quickly, unless others step up to do it
@U03K8V573EC @U0CKQ19AQ @U6VPZS1EK Thank you for answers! 🙂
It's very simple, but you need the standalone Pathom Viz https://blog.jakubholy.net/2023/pathom-viz-for-fulcro-pathom3/
@U0522TWDA Thank you!