This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-23
Channels
- # 100-days-of-code (1)
- # adventofcode (13)
- # aleph (1)
- # beginners (48)
- # boot (10)
- # calva (52)
- # cider (18)
- # cljsrn (23)
- # clojure (68)
- # clojure-uk (9)
- # clojurescript (5)
- # cursive (3)
- # datomic (4)
- # figwheel (7)
- # fulcro (14)
- # hoplon (2)
- # leiningen (5)
- # lumo (3)
- # off-topic (87)
- # overtone (5)
- # reitit (5)
- # rum (8)
- # shadow-cljs (7)
- # spacemacs (15)
(ns test.core
(:require [cljs.reader :as reader]))
(defn method1 []
(js/console.log "Hello"))
(defn method2 []
(js/console.log (reader/read-string "Hello")))
(method1)
this code compiles to 125k, but I had expected it to strip out cljs.reader
. Is my expectation wrong?
If I comment out the require
and method2
(which isn't used), this compiles down to 5k
@christian767 It could very well be that there is something inherently not DCE-friendly in cljs.reader
. The same thing occurs with cljs.pprint
. See https://dev.clojure.org/jira/browse/CLJS-2885