This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-22
Channels
- # architecture (30)
- # beginners (56)
- # cider (16)
- # cljs-dev (12)
- # cljsrn (21)
- # clojure (169)
- # clojure-austin (1)
- # clojure-estonia (1)
- # clojure-italy (3)
- # clojure-russia (1)
- # clojure-spec (56)
- # clojure-uk (46)
- # clojurescript (53)
- # consulting (3)
- # core-async (3)
- # cursive (14)
- # data-science (16)
- # datascript (1)
- # datomic (26)
- # defnpodcast (11)
- # docs (3)
- # emacs (6)
- # fulcro (4)
- # graphql (24)
- # hoplon (8)
- # instaparse (4)
- # java (2)
- # jobs (1)
- # jobs-rus (1)
- # jobs_rus (1)
- # keechma (1)
- # luminus (2)
- # lumo (1)
- # mount (36)
- # off-topic (30)
- # om-next (5)
- # onyx (29)
- # precept (23)
- # re-frame (20)
- # reagent (2)
- # remote-jobs (9)
- # ring (2)
- # ring-swagger (3)
- # rum (3)
- # shadow-cljs (100)
- # spacemacs (17)
- # sql (10)
- # timbre (2)
- # unrepl (29)
- # yada (2)
@thedavidmeister Thanks a million! I did something similar to that 🙂
@thedavidmeister Thanks for the Hickey! So using comp creates the transducer? Specter does something similar to transducers, skipping intermediate reifications in the transformation, so I can probably start with that. So to re-sate, I might see some performance benefits by doing all my list modifications in one (transduced) function, rather than streaming the list through a series of modifying formula cells?
And I understand there is some magic of structural sharing at the Closure data level when creating n modified-lists from the original. But when rendering those modified-lists via a formula cell in the old for-tple, is there any sharing going on at the DOM level, or just simply n independent sets of DOM nodes in the cache?
@chromalchemy n independent DOM nodes, cache is positional
@thedavidmeister’s pitch was irresistible so I took a closer look. I do not get why a plain defn
cannot take attributes as a single map:
`(defn my-list
[& items]
(ul (map li items)))
`That’s ^^^^ from https://github.com/hoplon/hoplon/wiki/Composing-HTML, explaining why defelem
is necessary.