This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-02
Channels
- # babashka (68)
- # beginners (22)
- # calva (8)
- # cider (10)
- # cljs-dev (31)
- # clojure (35)
- # clojure-europe (6)
- # clojure-norway (17)
- # clojurescript (5)
- # conjure (10)
- # data-science (8)
- # datascript (10)
- # emacs (3)
- # fulcro (20)
- # humbleui (3)
- # london-clojurians (1)
- # membrane (9)
- # nbb (34)
- # off-topic (16)
- # pathom (15)
- # releases (1)
- # shadow-cljs (15)
- # sql (15)
You can now install bebo (renamed from dbb) from a CDN :)
deno install --allow-read --allow-net --name bebo
and then:
bebo examples/server/example.cljs
something I would like for code is to be able to reuse some code between node and the browser. Shadow CLJS has support for additional conditional reader options to mix code that is targetted to the :browser
or :node-script
I don't know why the CLJS core team rejected it so don't want to get too deep into it here
it would however be worth knowing whether you have plans for nbb
to support these targets?
I think nbb just ignores :browser
so that should already work. nbb itself respects the :org.babashka/nbb
reader tag
usually in Cursive one can tell the editor that macro p/->
should be treated as ->
but we don't have that option for reader tags. I'll see if he has a ticket and open one otherwise. Is it supported in Calva?
@U04V5V0V4 those conditional requires are how i did it in sitefox so it can be used with both nbb or shadow-cljs. i isolated all of these imports into a single namespace to keep it out of the codebase: https://github.com/chr15m/sitefox/blob/main/src/sitefox/deps.cljc i'm strongly considering just ditching non-es6 for shadow-cljs though so i don't have to do this.
My head has just exploded 馃く馃く!
Now there is also a run.ts
script that you can invoke to preserve the permission flags:
deno run --allow-net
I only just realized that I can use scittle as a way to make a UI to test Lambdas made it nbb
- awesome!
I'll post a link once it's working. First I had to realise it was an option. But if you look at scittle you will see that it supports fetch
scittle allows any JS interop so if your browser supports fetch, you should indeed be able to use that
@U04V5V0V4 I think that would be a good idea
Btw, there is also an http client available: https://babashka.org/scittle/#cljs-ajax But since fetch is available, maybe I'll deprecate it in the future, unless someone thinks it's worth keeping