cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
dnolen 2020-01-13T14:20:58.012400Z

well those are two very different things

dnolen 2020-01-13T14:21:14.012900Z

cached-core is actually about the cached analysis and compiled file that we put into the ClojureScript JAR

dnolen 2020-01-13T14:21:34.013400Z

that's for everyone - was done long before the AOT cache for deps

2020-01-13T14:37:40.018100Z

ok thanks, my understanding about AOT cache is fuzzy, but I’d like to get CLJS-1902 properly done watever it takes and this was another minor issue, IMO core.cljs should get inlined source maps when that option is enabled I have some bandwidth to prepare patches, it would be great if you could revisit CLJS-1902 and make the decision how should I resolve that windows test issue[1] and if we should modify cached-core to look at :inline-source-maps flag as well [1] https://clojure.atlassian.net/browse/CLJS-1902

dnolen 2020-01-13T14:43:26.018700Z

agreed that if you want inline source maps we should skip the pre-compiled core and emit the requested thing instead

2020-01-13T14:44:35.019400Z

ok, I will modify cached-core to reflect :inline-source-maps build option, should it also be placed into build-affecting-options?

dnolen 2020-01-13T14:57:58.019900Z

yep that's necessary

dnolen 2020-01-13T14:58:26.020500Z

I wouldn't not edit cached-core logic - cache-core is only used when we build the JAR

dnolen 2020-01-13T14:59:11.021200Z

rather we need to see if :inline-source-maps is being used - if so then then just skip cached-core should be sufficient

2020-01-13T15:02:17.021700Z

I believe cached-core is also called from compile-file during normal compilation

2020-01-13T15:04:49.022400Z

aot-cache-core seems to be the function which prepares the pre-compiled stuff, called from aot.clj entrypoint

dnolen 2020-01-13T15:12:23.023Z

yes - just skip in compile-file

2020-01-13T15:14:01.023400Z

ok

2020-01-13T17:53:15.024200Z

If I have patches for issues i’ve submitted to Clojure Jira is there a process to get those looked at / added to a release?

dnolen 2020-01-13T18:50:50.024800Z

just drop them here if you're interested - whether they get in or not really depends on whether it's a bug, enhancement, etc.

pbrown 2020-01-13T20:46:54.026700Z

Hi there! I have a relatively minor question about assoc in Clojure vs ClojureScript. In ClojureScript, (assoc {} :a 1 :b) => {:a 1, :b nil}, whereas the Clojure version throws an IllegalArgumentException. Would there be any interest in a port of https://clojure.atlassian.net/browse/CLJ-1052? I'd hit this while refactoring some assocs to use threading macros (and forgetting to delete the old first argument to be threaded in the new code), and was expecting Clojure's behavior.

2020-01-13T23:54:18.027600Z

@dnolen they’re both to bring some changes in Clojure spec that seem to have been missed into the ClojureScript version: https://clojure.atlassian.net/browse/CLJS-3204 https://clojure.atlassian.net/browse/CLJS-3203