Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

self-hosted clojurescript #361

Open
sonwh98 opened this issue Apr 7, 2018 · 4 comments
Open

self-hosted clojurescript #361

sonwh98 opened this issue Apr 7, 2018 · 4 comments

Comments

@sonwh98
Copy link

sonwh98 commented Apr 7, 2018

I am trying to get reagent working in self-hosted clojurescript. I am encountering two problems.

  1. macros are defined in .clj files. For example, there is reagent.interop.cljs and reagent.interop.clj . the cljs does nothing but (:require-macros [reagent.interop]) . To fix this problem, I just copied the .clj into the .cljs

  2. My load-fn does not know where to extract cljsjs dependencies. I asked a question here about it https://groups.google.com/forum/#!topic/clojurescript/E7H1cuZQpys

Now that clojurescript can run macros, is there a reason why macro expansions can't be done in cljs instead of clj?

@mfikes
Copy link

mfikes commented Apr 8, 2018

@sonwh98 With respect to your point (1) above, in self-hosted ClojureScript, macros are defined in *.clj and *.cljc files, just as they are done in JVM-based ClojureScript. The only difference is that the macro namespaces are (perforce) compiled as ClojureScript (taking the :cljs branch in reader conditionals).

Perhaps your last question above is answered by https://github.com/clojure/clojurescript/wiki/Bootstrapped-ClojureScript-FAQ#with-bootstrapped-clojurescript-can-we-now-have-namespaces-that-mix-both-macros-and-functions

@Deraen
Copy link
Member

Deraen commented Apr 12, 2018

I'd like to add self-host test case at some point to the project. Those interop macros will probably be removed at some point which hopefully will help with this: #325.

@mfikes
Copy link

mfikes commented May 7, 2018

With respect to self-host test cases, support for doo has landed (but not yet released):
bensu/doo@830f52b

@Deraen Deraen added this to the 1.1 milestone Apr 25, 2021
@Deraen
Copy link
Member

Deraen commented Jun 5, 2021

What's the status of self-hosted cljs? Both Lumo and Planck seem a bit old and haven't been updated to the latest clojurescript versions?

@Deraen Deraen removed this from the 1.1 milestone Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants