This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-24
Channels
- # aws (14)
- # beginners (111)
- # boot (12)
- # cider (1)
- # cljsrn (7)
- # clojure (65)
- # clojure-dusseldorf (1)
- # clojure-germany (7)
- # clojure-greece (10)
- # clojure-italy (13)
- # clojure-poland (7)
- # clojure-russia (7)
- # clojure-spec (53)
- # clojure-uk (29)
- # clojurescript (27)
- # community-development (9)
- # cursive (2)
- # data-science (1)
- # datomic (17)
- # emacs (16)
- # events (6)
- # fulcro (155)
- # graphql (8)
- # instaparse (1)
- # leiningen (30)
- # lumo (29)
- # om-next (3)
- # other-languages (46)
- # pedestal (11)
- # portkey (7)
- # re-frame (13)
- # reagent (6)
- # ring (8)
- # rum (1)
- # shadow-cljs (75)
- # sql (1)
- # timbre (3)
- # unrepl (128)
Perhaps you really want something like a JavaScript typed array. I've never messed around with those to try to deal directly with primitives that are held contiguously in memory.
Is this a good place to ask a beginner clojurescript related question? Or some other channel/irc?
@duminda there is #beginners if you'd like
is this new? http://cljs.github.io/api/ It looks really cool 🙂
I obviously didn't scroll down enough, I'll just remove the comment here since it doesn't seem to belong
@lockdown- as in adding the dependency to your project, or calling the code?
@noisesmith both I guess, what's the difference?
to use javascript code, use host interop, it's quite simple. To add js libs as deps to your project, there's a few approaches, including cljsjs and npm. I assume using npm deps directly from cljs will be the most robust solution in the future but the impression I get right now is that it is fairly new
to be honest, in my own production app we just grabbed versions of the js libs we wanted and put them in our repo
(but this dates toa few years ago and there are much better options when making a new project now)
@noisesmith ok, so an extern file with the JS lib is the most mature way?
yeah - I'd welcome input from someone who has tried using the new npm integration though
ok, does the JS has lib has to be in its final form without module code right? this is for the browser
there's js module support, supposedly in alpha (but with clojure that can sometimes mean something is perfectly usable and just new) https://clojurescript.org/guides/javascript-modules
that document also describes using npm to manage your deps with cljs
yeah, I was skimming through those and saw various methods, was wondering which is the most mature one
everything in that page is alpha, none of it is mature
cljs itself isn't especially mature, - it's been working for a while but a lot of things change regularly and it isn't on clojure's level
that could just reflect a difference between the java and javascript ecosystems too