This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-09
Channels
- # announcements (1)
- # atlanta-clojurians (1)
- # beginners (198)
- # calva (4)
- # cider (16)
- # clara (8)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (204)
- # clojure-europe (3)
- # clojure-gamedev (2)
- # clojure-italy (8)
- # clojure-nl (17)
- # clojure-poland (3)
- # clojure-russia (20)
- # clojure-spec (32)
- # clojure-uk (45)
- # clojurescript (59)
- # community-development (1)
- # core-async (25)
- # cursive (20)
- # datomic (47)
- # emacs (7)
- # fulcro (8)
- # iot (1)
- # iotivity (2)
- # jobs (1)
- # jobs-discuss (8)
- # juxt (11)
- # luminus (5)
- # nrepl (4)
- # off-topic (136)
- # onyx (24)
- # other-lisps (1)
- # parinfer (74)
- # pedestal (1)
- # planck (3)
- # portkey (67)
- # random (1)
- # re-frame (28)
- # reagent (11)
- # reitit (9)
- # remote-jobs (3)
- # ring-swagger (2)
- # rum (3)
- # shadow-cljs (96)
- # slack-help (3)
- # spacemacs (6)
- # tools-deps (3)
- # unrepl (1)
- # vim (4)
Nice: It appears that https://dev.clojure.org/jira/browse/CLJS-3034 would give some (or most?) of the benefit of https://dev.clojure.org/jira/browse/CLJS-2869 (in particular, in the important case of clj-nil
handling), with much less complexity.
if one would want to get some analysis on which namespaces contribute most the the generated js size, like shadow-cljs’ build report (https://code.thheller.com/demos/build-report/huge.html), where would be a good place retrieve the info from the compiler?
yep, well for cljsjs you only really need to look up which one got included and look at the filesize of that
I’m using source-map-explorer now on a optimizations :simple
build, but it seems it doesn’t attribute everything correctly, especially def
s defining bigger data structures are not attributed to the ns they are defined in
so I was wondering if there is some step in the compiler where I could log information on the js size of a namespace
only place I found was the source maps. closure compiler only exposes general stuff but not very fine grained otherwise
Clojure's sort-by
and sort
both promise to be stable. The cljs versions of this were written in 2011 and include a comment that
;; matching Clojure's stable sort, though docs don't promise it
(garray/stableSort a (fn->comparator comp))
but the docstring has not been updated to promise this for 8 years now. Would there be interest in committing to this behavior or is this still something that cljs wants to be able to change in the future?fwiw, I think it would be ok to commit to it (as Clojure did), presuming it’s true, which from the look of the call to “stableSort”, it is
that commit message is comparison and sorting. Refs #68
but https://dev.clojure.org/jira/browse/CLJS-68 is entitled "
IEquiv implementation for regular expressions."