This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-12
Channels
- # announcements (10)
- # babashka (26)
- # beginners (113)
- # calva (75)
- # cider (7)
- # clj-http (1)
- # cljdoc (2)
- # cljfx (3)
- # cljs-dev (13)
- # clojure (79)
- # clojure-europe (21)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-sweden (1)
- # clojure-uk (23)
- # clojureladies (4)
- # clojurescript (26)
- # clojureverse-ops (2)
- # conjure (2)
- # cursive (2)
- # data-science (1)
- # datalog (6)
- # datomic (1)
- # degree9 (2)
- # depstar (4)
- # esprit (3)
- # fulcro (25)
- # introduce-yourself (2)
- # jobs (3)
- # lsp (30)
- # meander (38)
- # missionary (9)
- # nbb (7)
- # news-and-articles (2)
- # off-topic (28)
- # pathom (46)
- # polylith (19)
- # re-frame (4)
- # reitit (2)
- # sci (8)
- # shadow-cljs (23)
- # specter (17)
- # spire (1)
- # tools-deps (16)
- # unrepl (1)
- # xtdb (30)
Does anyone know if Vouch/@dnolen have done a "hello world" example of the Storyboard+CLJS+Krell workflow? And that is re-frame
I spotted in that video as well, I think. I have someone looking at Storyboard, it does seem like a good way to go.
there are a couple of specific boring details - like we use npm git deps to declare our UI component dep
one RN specific trick is the need for Context, to transform nested ClojureScript values sent as props
I'm writing some glue code for integrating a CLJS library into a JS application. I've managed to get most things to work, but now I'm stuck at trying to get the JS side to provide some options to the CLJS library. The library is expecting keywords, but not finding how to create CLJS keywords from JS land (or, what the replacement could be that CLJS would still be happy with)
org.clojure/google-closure-library {:mvn/version "0.0-20210811-6da97fe1"}
org.clojure/google-closure-library-third-party {:mvn/version "0.0-20210811-6da97fe1"}
finally some more recent Google Closure Library artifacts, these need some testing though because Closure changed their repo and we had to reinstate some things manually
if you're on 1.10.866 would be great to give these a spin - basic stuff - Browser REPL works - but seeing them on real projects would be more informative
Why is long
implemented differently from int
? Even though the docstring mentions that they're identical.
(defn int
"Coerce to int by stripping decimal places."
[x]
(bit-or x 0))
(defn long
"Coerce to long by stripping decimal places. Identical to `int'."
[x]
(fix x))
(defn- ^number fix [q]
(if (>= q 0)
(Math/floor q)
(Math/ceil q)))
I have a single page, purely client side application. I have never done client side routing before. Is it possible to simulate the exact same behaviour as regular routing? such that back and forward buttons of the browser works? and the url in the url tab is updated accordingly?
Simple enough by using HTML5 history API, but even simpler with a lib. bidi
, reitit
, maybe some others.
And yet, it is possible to have the exact same experience as with regular routing. Do note however, that even in the case of SPAs with routing, you still need the server to have the exact same routes - otherwise, you will see HTTP 404 upon page reloading after some navigation.
is codemirror still the state of the art when it comes to a web editor with support for clojure/EDN and paredit?
Nextjournal's clojure-mode is open source and uses Codemirror 6 which is a complete rewrite
I'd like to have 2-4 different editable areas, so something light weight that I can have multiple instance or split panes is important to me
codemirror is a bit heavy weight which is why i'm wondering if there are others that provide similar essential functionality
or check out oakes/paren-soup
https://github.com/mogenslund/liquid , it might require a little more effort up front, but you could probably adapt liquid for this purpose.