This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-03
Channels
- # announcements (6)
- # babashka (14)
- # beginners (17)
- # biff (3)
- # calva (19)
- # circleci (3)
- # clj-on-windows (1)
- # cljdoc (21)
- # cljs-dev (6)
- # clojure (119)
- # clojure-australia (2)
- # clojure-europe (28)
- # clojure-france (3)
- # clojure-norway (12)
- # clojure-survey (2)
- # clojure-uk (7)
- # clojurescript (25)
- # core-typed (1)
- # cursive (11)
- # datomic (53)
- # emacs (14)
- # events (1)
- # gratitude (1)
- # holy-lambda (21)
- # integrant (2)
- # jobs (1)
- # jobs-discuss (3)
- # juxt (3)
- # kaocha (1)
- # lsp (17)
- # nbb (14)
- # off-topic (25)
- # pathom (11)
- # re-frame (24)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (10)
- # shadow-cljs (11)
- # sql (3)
- # tools-build (6)
- # tools-deps (83)
- # vim (26)
- # xtdb (10)
Today @djwhitt is going to do some prototyping in nbb and streaming it: https://twitter.com/djwhitt/status/1532460533286420504
@djwhitt Skimming through the stream now. Really fun watching you work!
When you require like this: (:require ["axios$default" :as axios])
you can call get
using the alias:
(axios/get ...)
and you will get auto-completions tooI noticed I added memfn
to bb, but not in SCI itself so it's not in nbb. I'll make a note. But imo (axios/get ...)
is better in nbb
For REPL usage there is (nbb.core/await ...)
which lets you "block" on a promise and view its result
Ah, thanks for the axio/get
tip! Yeah, I don't think memfn
is super important. That exploration was mostly just out of curiosity.
else you're just creating a clojure.core/delay and there will be no waiting happening
It was fun seeing @djwhitt hack some nbb code together here: https://youtu.be/o4zILqFih94