This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-27
Channels
- # beginners (113)
- # calva (39)
- # cider (18)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (80)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-gamedev (1)
- # clojure-germany (2)
- # clojure-italy (38)
- # clojure-nl (16)
- # clojure-spec (90)
- # clojure-uk (81)
- # clojurescript (28)
- # clojutre (9)
- # cursive (47)
- # data-science (4)
- # datomic (21)
- # emacs (1)
- # events (2)
- # fulcro (11)
- # graphql (2)
- # hoplon (8)
- # hyperfiddle (23)
- # jobs (2)
- # kaocha (4)
- # lein-figwheel (1)
- # luminus (1)
- # mount (1)
- # off-topic (41)
- # pathom (5)
- # pedestal (27)
- # reitit (6)
- # remote-jobs (7)
- # ring-swagger (6)
- # shadow-cljs (42)
- # spacemacs (1)
- # sql (9)
- # tools-deps (6)
- # uncomplicate (2)
- # vim (5)
I find a bug in read-string or in keyword. {(keyword “”) ‘a}
=> {: a}
, but I can not read it as string. (read-string (str {(keyword “”) 'a}))
will rise a runtimeException.
if you are programmatically making keywords, and you need to print/read them, you will need to validate the input
or use strings instead
””
is allowed in keyword. And I can get the map. The problem is we can’t treat the code {: a}
as data. It is un-Lisp
@sodesu99 Just to explain the issue a little: the clojure keyword
fn will take any string and turn it into a clojure.lang.Keyword
object.
However, the reader does not allow any string to be a keyword. There are some rules keywords must follow (e.g. no spaces, no empty string).
Well, got it up a bit later than I'd have liked, but you can try out an early, alpha, rough version of the chrome extension that injects figwheel into browser tabs I'm calling chrepl here https://github.com/johnmn3/chrepl-example. Specific questions can be discussed in #chrepl.
You should be able to find the extension in the store here https://chrome.google.com/webstore/detail/chrepl/ablpgchfbbfachdiakmieocbdgflgfjj
Hi! I use cljsbuild to generate among others a test.js, that I run with phantomjs. That worked fine, but now I've updated cljs from 1.9.229 to 1.9.946 and get this all out of a sudden:
goog.require could not find: tools.money
in logToConsole_
Error: goog.require could not find: tools.money
in require
tools.money is my subject under test and cljsbuild is compiling that file, as it warns me about functions I overwrite in that namespaceDowngrading to 1.9.229 fixes the issue, but I feel bad enough already that I haven't upgraded to 1.10 yet 😉
seems figwheel/cljsbuild by default (in dev at least) creates around 300 requests per page load. Is there some option for making a bundle but unoptimized?
(don't want :advanced
and a production build, want a dev build but with less than 300 requests for dependencies et al)
@victorbjelkholm429 not aware of anything like that in figwheel/cljsbuild but shadow-cljs has support for this: https://clojureverse.org/t/improving-initial-load-time-for-browser-builds-during-development/2518
wouldn't that make every change pull the entire app and not just the changed ns'es in that case?
yeah... in :none
, not all 300 artifacts should be getting pulled on every re-compile, usually. Should feel almost immediate.
is it really a problem? even with browser caching turned off, which I usually do, page load takes a couple of seconds. Figwheel is not even faster than that
problem is that I run a small proxy (dealing with webhooks) so each request has about a 30ms overhead, which adds up to a lot when in dev and loading bunch of dependencies rather than one file
what I'm currently work around is to have two different work modes, one for general frontend dev when everything can live-reload real nice, and one for when dealing with anything webhooks and auth, not with figwheel, only cljsbuild but can't have live-reload...
@victorbjelkholm429 so incremental compilation and updating is out of the question? :whitespace
is not commonly used, so you may find some bumps in the road there. I'm not sure how much it'd improve the situation though.
but I don't fully understand what your setup is accomplishing. what kind of webhooks are we talking about here? Are you just trying to get a repl into a production context?
can anyone answer my question on eval in cljs? I cannot eval a lambda expression but can defn https://groups.google.com/forum/#!topic/clojurescript/3UV6HWyx-vM