Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Include both JVM and JS implementations #148

Open
shaunlebron opened this issue Apr 19, 2016 · 1 comment
Open

Include both JVM and JS implementations #148

shaunlebron opened this issue Apr 19, 2016 · 1 comment

Comments

@shaunlebron
Copy link
Member

shaunlebron commented Apr 19, 2016

As was mentioned, we should probably show both JVM and JS implementations: #147

This is confusing because there are two versions of the ClojureScript compiler:

  1. ClojureScript JVM (built in Clojure) - the optimized compiler for use in production
  2. ClojureScript JS (built in ClojureScript) - the bootstrapped compiler that was added after some years

Both versions are in the same codebase, but they are separated by the #?(:clj ...) and #?(:cljs ...) switches, respectively.

We're currently only reading the :clj versions of the functions

@shaunlebron
Copy link
Member Author

cljc files that we are currently parsing:

$ grep ':filename.*\.cljc' cljs-api.edn | awk '{print $2}' | tr -d '",' | sort -u

# library

src/main/cljs/cljs/pprint.cljc
src/main/cljs/cljs/test.cljc

src/main/cljs/cljs/spec.cljc
src/main/cljs/cljs/spec/alpha.cljc
src/main/cljs/cljs/spec/gen/alpha.cljc
src/main/cljs/cljs/spec/impl/gen.cljc
src/main/cljs/cljs/spec/test.cljc
src/main/cljs/cljs/spec/test/alpha.cljc

# compiler

src/main/clojure/cljs/core.cljc
src/main/clojure/cljs/compiler.cljc
src/main/clojure/cljs/repl.cljc
src/main/clojure/cljs/tagged_literals.cljc

src/main/clojure/cljs/analyzer.cljc
src/main/clojure/cljs/analyzer/api.cljc

shaunlebron added a commit that referenced this issue Oct 8, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant