nbb

alvinfrancis 2022-08-13T11:13:52.027429Z

Is the entirety of the google closure library supposed to be available for use in nbb scripts?

borkdude 2022-08-13T11:16:19.039379Z

@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

alvinfrancis 2022-08-13T11:18:40.957629Z

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.

borkdude 2022-08-13T11:19:19.308629Z

We could add those, just let me know which ones

alvinfrancis 2022-08-13T11:20:34.801069Z

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.

borkdude 2022-08-13T11:24:38.764429Z

@alvin.francis.dumalus I see! Where would you use re-frame in the context of an nbb "app" / "script"?

alvinfrancis 2022-08-13T11:29:36.301709Z

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.

alvinfrancis 2022-08-13T11:30:17.696669Z

Honestly, just having fun with it right now 😉 Not sure if it's something that does make pragmatic sense.

borkdude 2022-08-13T11:31:06.714559Z

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

borkdude 2022-08-13T11:31:18.285329Z

I'm open to adding re-frame if more people are interested in using it

borkdude 2022-08-13T11:31:53.070309Z

The best way to "poll" this is to make a Github Discussion so people can provide feedback

alvinfrancis 2022-08-13T11:33:30.033789Z

Sounds good 👍 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 🙂

borkdude 2022-08-13T11:37:31.094189Z

alright then :)