This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-21
Channels
- # beginners (65)
- # boot (24)
- # cider (2)
- # clara (13)
- # cljs-dev (45)
- # clojure (48)
- # clojure-dusseldorf (2)
- # clojure-italy (69)
- # clojure-norway (1)
- # clojure-russia (5)
- # clojure-sanfrancisco (1)
- # clojure-spec (51)
- # clojure-uk (34)
- # clojurescript (312)
- # cursive (5)
- # datavis (1)
- # datomic (9)
- # duct (13)
- # editors (3)
- # emacs (2)
- # fulcro (11)
- # graphql (19)
- # hoplon (1)
- # immutant (2)
- # jobs (7)
- # jobs-discuss (38)
- # lein-figwheel (1)
- # luminus (6)
- # off-topic (2)
- # parinfer (10)
- # pedestal (1)
- # re-frame (9)
- # reagent (28)
- # reitit (1)
- # remote-jobs (12)
- # ring-swagger (26)
- # shadow-cljs (232)
- # slack-help (8)
- # tools-deps (29)
- # unrepl (29)
- # vim (10)
- # yada (31)
https://github.com/redbadger/shade/ I found this btw, probably works for jars too
Java deps are not supported yet but ideally they should. MrAnderson uses JarJar for that.
@cgrand so, this shading, I could really use something for part of the pack pipeline (either in pack, or separate from shell), if it's particularly agnostic š. I may want to rip it into it's own library at some point.
Seems everyone these days has their own idea about shading and how its supposed to be done.
Pack uses classloaders for one kind of usage, and a lambda zip for another, which works for all my use-cases. It would be interesting to explore shading a little, as it would assist me in targetting some weird environments.
ā¢ coarse: compute a hash of the whole ābundleā and use that hash has a the namespace prefix (so allows to reuse MrAnderson and friends) ā¢ fine: shade each unit (ns, java class) independently, but then the hash must be a suffix (so as not to break package-visibility across classes). Itās more complex but allows some code sharing
is the performance bad enough that sharing is useful? If performance is bad, wouldn't you just aot?
sharing was rather meant to avoid having multiple identical copies in memory (indirecty memory consumption affects perf); AOT doesnāt solve duplication.