Clojurians
#lumo
<
2017-05-09
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

martinklepsch05:05:55

Hey all :slightly_smiling_face: I need to transform some personal legacy data in XML to something else… Are there any facilities bundled with lumo that can parse XML?

martinklepsch05:05:22

Closure must have something but I can’t find it…

john05:05:40

@martinklepsch goog/dom.xml?

martinklepsch05:05:57

@john yeah … that doesn’t work because you cannot create DOM nodes in node

john05:05:46

Yeah, that's all I see

martinklepsch05:05:51

And clojure.data.xml doesn’t work either. @anmonteiro is that renaming of clojure->cljs a bug maybe? I remember a convo that this could be automated…

(require 'clojure.data.xml)
#error {:message No such namespace: cljs.data.xml, could not locate cljs/data/xml.cljs, cljs/data/xml.cljc, or Closure namespace "cljs.data.xml" in file clojure/data/xml/name.cljc, :data {:tag :cljs/analysis-error}}
WARNING: Use of undeclared Var clojure.data.xml.impl$macros/eval at line 36 clojure/data/xml/impl.clj

martinklepsch06:05:43

To reproduce

boot -d org.clojure/data
lumo -c ~/.m2/repository/org/clojure/data.xml/0.2.0-alpha2/data.xml-0.2.0-alpha2.jar

borkdude09:05:57

Has someone wrote a Clojure linter like Joker in Lumo? Seems a nice use case for it

borkdude09:05:14

Don’t know if the ecosystem provides things like parsers for Clojure in cljs yet

pesterhazy10:05:34

it does seem like a great fit eventuallly

pesterhazy10:05:56

One issue is that when you need to consume dependencies, lumo can still be quite slow to start up

pesterhazy10:05:14

with a linter you really want <1000ms latency

rmturner12:05:58

how do i use external cljs libs with lumo? I'm using an andare.jar already, but i'm not sure how to use https://github.com/r0man/cljs-http from source,

borkdude13:05:44

@rmturner Maybe Calvin can help you

borkdude13:05:54

@rmturner Also you can use this technique: http://blog.michielborkent.nl/blog/2016/10/19/one-off-clojure-libraries/ (see Planck, works also for Lumo I think)