This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-20
Channels
- # adventofcode (72)
- # aleph (8)
- # announcements (21)
- # beginners (43)
- # calva (10)
- # cider (2)
- # cljdoc (12)
- # cljsrn (3)
- # clojure (9)
- # clojure-android (1)
- # clojure-europe (38)
- # clojure-norway (2)
- # clojure-romania (1)
- # clojure-uk (2)
- # clojurescript (58)
- # cursive (8)
- # datomic (29)
- # deps-new (2)
- # depstar (2)
- # fulcro (3)
- # java (20)
- # leiningen (11)
- # luminus (2)
- # off-topic (13)
- # sci (1)
- # shadow-cljs (3)
Looking into generated code, this is how (set #js [...])
looks:
var oRa = $APP.Cj("aaa aarp abarth abb abbott abbvie ... [a lot more] ... yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw".split(" "));
Which looks like a clever Google Closure optimization.
And this is how #{...}
looks:
var oRa = new $APP.yj(null,new $APP.m(null,1504,["studio", null, "etisalat", null, "mortgage", null, "xn--gecrj9c", null, "technology", null, "nl", null, "lilly", null, "wolterskluwer", null, "schmidt", null, "hisamitsu", null, "total", null, "blue", null, "aw", null, "zw", null, "properties", null, "amex", null, "linde", null, "arpa", null, "ieee", null, ... [a lot more] ... , "fairwinds", null, "lk", null, "itau", null],null),null);
Not sure why set constructor has alternating strings with nulls.The latter corresponds to this in unoptimized build:
orgpad.common.util.tld.all_tlds = new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1504, ["studio",null,"etisalat",null,"mortgage",null,"xn--gecrj9c",null,"technology",null,"nl",null,"lilly",null,"wolterskluwer",null,"schmidt",null,"hisamitsu",null,"total",null,"blue",null,"aw",null,"zw",null,"properties",null,"amex",null,"linde",null,"arpa",null,"ieee",null, ... [a lot more] ...,"fairwinds",null,"lk",null,"itau",null], null), null);
No idea why inner PersistentArrayMap is created.
The former corresponds to this:
orgpad.common.util.tld.all_tlds = cljs.core.set(["aaa","aarp","abarth","abb","abbott","abbvie", ... [a lot more] ...,"yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw"]);