Fork me on GitHub
#nbb
<
2022-06-03
>
borkdude07:06:01

Today @djwhitt is going to do some prototyping in nbb and streaming it: https://twitter.com/djwhitt/status/1532460533286420504

🙏 1
borkdude21:06:52

@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 too

borkdude21:06:39

I 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

borkdude21:06:06

For REPL usage there is (nbb.core/await ...) which lets you "block" on a promise and view its result

djwhitt21:06:40

Ah, thanks for the axio/get tip! Yeah, I don't think memfn is super important. That exploration was mostly just out of curiosity.

djwhitt21:06:12

Ah, good tip re REPL awaiting too.

djwhitt21:06:19

I wonder what that does in Conjure...

djwhitt21:06:00

Nice! Seems to work fine.

djwhitt21:06:09

Yeah, that'll be very handy too.

borkdude21:06:42

(delay 5000) should be (p/delay 5000)

borkdude21:06:02

else you're just creating a clojure.core/delay and there will be no waiting happening

djwhitt21:06:31

Hah, yep, realized that later in the stream. 😅

borkdude21:06:59

Ah, I see it now :)

borkdude21:06:24

It was fun seeing @djwhitt hack some nbb code together here: https://youtu.be/o4zILqFih94