This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-31
Channels
- # ai (5)
- # announcements (11)
- # beginners (19)
- # biff (1)
- # calva (8)
- # cider (3)
- # clj-kondo (12)
- # clojure (97)
- # clojure-europe (39)
- # clojure-nl (1)
- # clojure-norway (74)
- # clojure-uk (35)
- # clojurescript (8)
- # component (8)
- # conjure (4)
- # cursive (13)
- # data-science (1)
- # datahike (55)
- # datomic (2)
- # emacs (3)
- # etaoin (6)
- # gratitude (1)
- # hoplon (12)
- # hyperfiddle (54)
- # introduce-yourself (1)
- # lsp (70)
- # missionary (40)
- # music (1)
- # off-topic (79)
- # re-frame (78)
- # releases (4)
- # sql (5)
- # squint (9)
- # tree-sitter (4)
- # xtdb (20)
I have a wip branch that removes spec from the clojurescript side of hoplon as suggested by @borkdude. I generated build reports of the counter demo with spec/no-spec, jquery/goog. Results: • goog/spec: [JS: 357.06 KB] [GZIP: 83.02 KB] • goog/no-spec: [JS: 183.19 KB] [GZIP: 41.37 KB] • jquery/spec: [JS: 439.95 KB] [GZIP: 111.75 KB] • jquery/no-spec: [JS: 264.21 KB] [GZIP: 69.66 KB]
I tried to remember seeing spec errors and tried to get those passing invalid arguments to spec'ed functions but I could not get it. I would be willing to move those to someplace else if we were getting some value from it but I'm not seeing this. What am I missing? :thinking_face:
Oh, I thought there was a call to it but actually there is a function to instrument: https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L219-L222 I will try again later, thanks!
Having this function in the core namespace is especially alarming since it requires Clojure spec test which increases the bundle size even more :)
If I move the specs to a separated namespace is there a way to setup a project to use it only during development or people need to add the spec namespace when they want to instrument and remove it later?