This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-07
Channels
- # aleph (11)
- # aws (8)
- # bangalore-clj (4)
- # beginners (32)
- # boot (48)
- # cider (2)
- # cljs-dev (57)
- # cljsrn (4)
- # clojars (22)
- # clojure (67)
- # clojure-argentina (2)
- # clojure-austin (9)
- # clojure-berlin (1)
- # clojure-brasil (15)
- # clojure-france (1)
- # clojure-italy (10)
- # clojure-russia (23)
- # clojure-spec (6)
- # clojure-uk (48)
- # clojurescript (143)
- # cursive (15)
- # datomic (30)
- # emacs (18)
- # hoplon (26)
- # instaparse (1)
- # leiningen (1)
- # om (21)
- # om-next (9)
- # parinfer (3)
- # pedestal (3)
- # planck (2)
- # re-frame (53)
- # reagent (4)
- # ring (5)
- # spacemacs (1)
- # specter (10)
- # sql (16)
- # untangled (19)
- # vim (11)
- # yada (2)
@dnolen the MAX_SAFE_INTEGER
here is probably an oversight, or is it on purpose?
https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/spec.cljs#L638
because Number.MAX_SAFE_INTEGER
is ES6, I think
(you do define a MAX_INT at the beginning of the namespace, so I'm leaning towards oversight)
@anmonteiro we can’t use ES6
right, so probably a bug
need to change that to the MAX_INT
constant defined at the top of the namespace
@dnolen I'm porting the perf tweaks, should I change it as part of this patch or in a separate one?
@anmonteiro fine if in the same patch
OK, will do
@dnolen attached a patch to the perf tweaks JIRA ticket: http://dev.clojure.org/jira/browse/CLJS-1768 as noted in the comment, I've pushed a branch with the 4 different commits to make it easier to review: https://github.com/anmonteiro/clojurescript/tree/spec-perf-tweaks
@anmonteiro thanks!
@dnolen the following ticket is assigned to you, are you planning to fix it? http://dev.clojure.org/jira/browse/CLJS-1702
@anmonteiro if you want to take it go for it
@dnolen as I mentioned in the backlog, I think this is not a bug: http://dev.clojure.org/jira/browse/CLJS-1622
he's trying to use with-redefs
with static-fns true
as far as I understand, this is only supported if the function is marked ^:dynamic
, correct?
@dnolen should we just remove this? https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L2291-L2302
we don't really use it anymore now that require
is a thing
probably would mean breaking changes for tooling... hrm
it doesn't internally
OK I'm OK with that
I think e.g. Planck implements require
through this mechanism
but Planck is tied to a specific ClojureScript version so it can just choose to upgrade whenever
Right—don't worry about Planck; it will be updated to the new macros instead of REPL specials. Besides, it's ok to break Planck.
tested REPLs (including Browser), and ran tests
going to look at http://dev.clojure.org/jira/browse/CLJS-1666 next ("Flag to optionally disable transit analysis cache encoding"). what should this compiler option be called?
@dnolen OK sounds good. default is the current impl? i.e. :transit
if the lib is in the classpath
@dnolen http://dev.clojure.org/jira/browse/CLJS-1666 just attached a patch to the transit thing
@anmonteiro probably want to provide :edn
as default for the 3 argument case no? that and add an explicit case for :edn
, and a throwing case for unknown format?
@dnolen why should we default to :edn
in the 3 argument case?
I thought we wanted to default to Transit
@anmonteiro hrm sorry you’re right but I think we need this to be less implicit then
that is the logic for choosing the format shouldn’t be hard coded into the final arity
right, so we're forced to change the API, I believe
yeah, I have no arguments against that
@anmonteiro yes so you’ll have to touch a couple of other things
no problem touching other stuff, just wanted to make sure
thanks for the feedback, incorporating it now
@anmonteiro @dnolen added a comment to http://dev.clojure.org/jira/browse/CLJS-1666 ... just my 2 cents, gotta sleep now. be back tomorrow.