This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-24
Channels
- # announcements (1)
- # babashka (19)
- # beginners (10)
- # cherry (13)
- # cider (12)
- # clerk (10)
- # clj-kondo (5)
- # clojure (8)
- # clojure-europe (30)
- # clojure-norway (155)
- # clojure-uk (8)
- # clojurescript (27)
- # community-development (2)
- # conjure (8)
- # cursive (26)
- # data-science (7)
- # datalevin (58)
- # datomic (9)
- # deps-new (2)
- # hyperfiddle (19)
- # jobs-discuss (9)
- # missionary (27)
- # nbb (22)
- # off-topic (11)
- # polylith (59)
- # practicalli (10)
- # reitit (6)
- # releases (1)
- # sci (5)
- # scittle (23)
- # xtdb (37)
Submitted a PR extending fastify
server example, please take a look
https://github.com/babashka/nbb/pull/340
user1:qwerty123456 user2:qwerty123456 https://github.com/babashka/nbb/pull/340/files#diff-de1bc893106f703f5b9fee0f1ed6e31891d124e0f8d341bf30bd9f1b8944cabbR12
Found it out the hard way that #js
is not recursive, for deep-tree objects.
applied-science/js-interop
is very helpful. But one have to be careful of what data structure is being passed as argument.
clj->js
is recursive as well
In #C03U8L2NXNC all of this is a lot easier since everything is just a JS object ;)
Maybe an uninformed question, but, why would one choose squint
over nbb
for writing a backend service (e.g.: using fastify etc.)? Is nbb
purposed for scripting, but squint
provides full interop with JavaScript?
@URCRY0U87 squint is still in development so it's a bit experimental, but I would encourage everyone to try it to make progress in improving it. the REPL experience isn't as good as nbb right now, no nREPL, but this is something I'm working on
Great, will try to re-create the same backend service on squint
. What nbb
lacked is the compile
step, where the developer could investigate the output JavaScript for debugging purposes. Is it a correct assumtion (analogy)?
a) TypeScript -> (bun/tsc/esbuild) -> JavaScript
b) ClojureScript -> squint -> JavaScript