This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-31
Channels
- # aleph (38)
- # beginners (91)
- # boot (4)
- # cider (20)
- # clara (11)
- # cljs-dev (4)
- # clojure (179)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-portugal (1)
- # clojure-russia (1)
- # clojure-sanfrancisco (1)
- # clojure-spec (183)
- # clojure-uk (50)
- # clojurescript (111)
- # core-async (24)
- # cursive (4)
- # datascript (11)
- # datomic (29)
- # fulcro (120)
- # gorilla (2)
- # jobs (1)
- # keechma (2)
- # keyboards (26)
- # leiningen (4)
- # luminus (7)
- # lumo (15)
- # off-topic (2)
- # onyx (31)
- # parinfer (12)
- # portkey (1)
- # protorepl (1)
- # re-frame (50)
- # reagent (106)
- # remote-jobs (1)
- # ring-swagger (2)
- # rum (10)
- # spacemacs (17)
- # sql (16)
- # test-check (1)
- # yada (2)
Yesterday I was able to run instaparse on lumo and added it to a clojar, if someone's interested to try it out https://clojars.org/instaparse-lumo
@hlolli thanks for doing that. where is the code for that fork?
looks like the clojars page is still pointing to the regular instaparse project.
@aengelberg my bad, forgot to change to project.clj metadata. The fork is here https://github.com/hlolli/instaparse-lumo
maybe. it seems like the tough part is to write macros that behave differently on clj vs cljs
is that possible?
hmm, good question, I would guess on compilation time (or cache generation for lumo) then the reader macros are respected.
having instaparse work on all three platforms (clj, cljs, and bootstrapped cljs) is a difficult problem when macros are involved
I think it doesn't have to be, I think the macros dont need any reader macros like this one here https://github.com/Engelberg/instaparse/blob/master/src/instaparse/core.cljc#L274 not sure why this works in non-bootstraped clojurescript.
If I understand lumo correctly, it treats macros and clojure data the same and caches it, but will ignore all clojure reader macros.
Im haveing a problem that I can only describe, I'm using js/require like I do often without problems, but on a js file that I didn't write. From the namespace that the js/require call is made, everything works fine, as soon as I require that namespace from a 3rd party namespace, I start getting 'cannot read property of undefined' errors. Are there alternative ways to load js files, or ways to expose the file contents more "global".