This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-13
Channels
- # babashka (3)
- # beginners (91)
- # calva (10)
- # cherry (1)
- # clj-commons (1)
- # clj-kondo (8)
- # clojure (19)
- # clojure-australia (1)
- # clojure-china (1)
- # clojure-europe (16)
- # clojure-filipino (1)
- # clojure-hk (1)
- # clojure-indonesia (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-norway (2)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # cursive (12)
- # data-science (4)
- # datalevin (3)
- # emacs (16)
- # events (9)
- # hyperfiddle (1)
- # juxt (1)
- # lsp (2)
- # missionary (2)
- # music (1)
- # nbb (14)
- # off-topic (15)
- # pathom (5)
- # releases (1)
- # shadow-cljs (41)
- # sql (10)
- # squint (13)
- # vim (7)
- # xtdb (35)
Is the entirety of the google closure library supposed to be available for use in nbb scripts?
@alvin.francis.dumalus Not all of it is exposed, but if you need something let me know. It's also possible to use the google closure library from npm directly
@alvin.francis.dumalus See here: https://clojurians.slack.com/archives/C029PTWD3HR/p1654207070552289
That is awesome. Thanks! Was just poking around with what's nbb compatible in terms of cljs libraries and was encountering missing google closure namespaces.
In this specific case, I wanted to see if something as broad as re-frame could be pulled in. And got Could not find namespace: goog.async.nextTick
. There might be more there. Will keep poking around.
@alvin.francis.dumalus I see! Where would you use re-frame in the context of an nbb "app" / "script"?
Still toying around with some ideas, but stuff like https://github.com/eccentric-j/cljs-tui-template ported over to just a script seem pretty cool. Right now, I'm playing around with using kafkajs
and rendering live output with ink
. While really easy, the streaming nature of kafka here lends itself well to re-frame's events.
Honestly, just having fun with it right now 😉 Not sure if it's something that does make pragmatic sense.
Yeah, makes sense. For now you could probably do it in the small with just a global reagent atom and functions bashing on that state
The best way to "poll" this is to make a Github Discussion so people can provide feedback
Sounds good :thumbsup: Although personally, I think probably better not to bundle it with nbb even if it's lazily loaded if that's what you mean by including it. Reagent is already plenty 🙂