This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-09
Channels
- # announcements (12)
- # babashka (22)
- # beginners (17)
- # boot (6)
- # calva (45)
- # clj-kondo (17)
- # clojure (70)
- # clojure-australia (4)
- # clojure-europe (35)
- # clojure-finland (6)
- # clojure-losangeles (2)
- # clojure-nl (1)
- # clojure-uk (2)
- # clojured (26)
- # clojurescript (10)
- # conjure (1)
- # datahike (1)
- # events (1)
- # honeysql (14)
- # introduce-yourself (5)
- # jobs (5)
- # joyride (2)
- # minecraft (6)
- # off-topic (5)
- # pathom (14)
- # rewrite-clj (1)
- # shadow-cljs (13)
- # tools-build (6)
- # tools-deps (13)
- # vim (29)
- # xtdb (8)
I'm not very surprised about Atom -- the writing has been on the wall for ages š
Iāve never really used Atom. Will people be missing features from it that arenāt present in other editors?
I feel that!
mƄning!
anyone know of any js libs for working with cljs datastructures from js-land ?
browser and react-native ... ideally node.js too
On Node.js you can use nbb as a library. But maybe making your own wrappers which expose assoc
etc to JS will make more sense
yeah, that might be the answer
@simongray yeah, i found that - but unless i'm reading it wrong, mori seems to be a re-implementation of the cljs structures in js-land, rather than an interop thing
@mccraigmccraig I think itās literally just a JS wrapper for the data structure portion of the compiled CLJS source code. I havenāt used it myself, but I guess it will work fineā¦?
it does rather look like a wrapper ... https://github.com/swannodette/mori/blob/master/src/mori.cljs
but on trying it... it looks like mori
datastructures are distinct from cljs datastructures:
cljs.user> (def v (mori/vector 0 1 2))
;; => #'cljs.user/v
cljs.user> (mori/count v)
;; => 3
cljs.user> (count 3)
;; => #object[Error Error: No protocol method ICounted.-count defined for type number: 3]
cljs.user> (mori/count [0 1 2])
;; => #object[Error Error: [0 1 2] is not ISeqable]
I realise youāre making a joke, but my inner grammar nazi always awakes in situations such as these. āMoriā means death by itself, so it is already adequately grim š
oh, ok - in which case i should try it out