This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-25
Channels
- # bangalore-clj (2)
- # beginners (50)
- # boot (21)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (93)
- # clojure-russia (5)
- # clojure-spec (22)
- # clojure-uk (3)
- # clojurescript (24)
- # data-science (4)
- # datomic (1)
- # events (2)
- # fulcro (46)
- # graphql (9)
- # hoplon (16)
- # lumo (42)
- # off-topic (3)
- # perun (2)
- # protorepl (1)
- # re-frame (10)
- # reagent (12)
- # ring (1)
- # ring-swagger (1)
- # shadow-cljs (12)
- # specter (16)
- # unrepl (10)
@swizzard They are handled just as with regular ClojureScript: Depend on JAR files on the classpath. Lumo has a -c
/ --classpath
argument, as well as -D
/ --dependencies
argument, which provides some sugar for specifying the classpath
Lumo is practically identical to Planck with respect to this, so much of the material at http://planck-repl.org/dependencies.html is likely relevant
Yeah, you can use boot, or if you are more comfortable doing so, you can use lein to download deps
i'm not necessarily planning on distributing this as a library or even necessarily running it more than like once
i'm a python guy at heart and feel uncomfortable without a requirements.txt
-equivalent
@swizzard I’m not sure, but I think you should apply the same trick as with Planck here: https://blog.michielborkent.nl/blog/2016/10/19/one-off-clojure-libraries/
Seemed still valid a couple of months ago: https://clojurians-log.clojureverse.org/lumo/2017-06-15.html
cljs.user=> (require '[com.rpl.specter :as s])
Could not require com.rpl.specter.navs in file com/rpl/specter.cljc
(new)
Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:1928:72)
Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2539:92)
Function.cljs.js.require.cljs$core$IFn$_invoke$arity$5 (NO_SOURCE_FILE <embedded>:5849:145)
Function.cljs.js.load_deps.cljs$core$IFn$_invoke$arity$7 (NO_SOURCE_FILE <embedded>:5859:507)
(NO_SOURCE_FILE <embedded>:5860:420)
Function.cljs.js.require.cljs$core$IFn$_invoke$arity$5 (NO_SOURCE_FILE <embedded>:5838:1)
Function.cljs.js.load_deps.cljs$core$IFn$_invoke$arity$7 (NO_SOURCE_FILE <embedded>:5859:507)
(NO_SOURCE_FILE <embedded>:5860:420)
Function.cljs.js.require.cljs$core$IFn$_invoke$arity$5 (NO_SOURCE_FILE <embedded>:5838:1)
Maximum call stack size exceeded
Function.lumo.repl.print_error.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:6385:96)
Object.lumo.repl.handle_error (NO_SOURCE_FILE <embedded>:6390:60)
(NO_SOURCE_FILE <embedded>:6515:177)
(NO_SOURCE_FILE <embedded>:6014:340)
(NO_SOURCE_FILE <embedded>:5904:425)
(NO_SOURCE_FILE <embedded>:5918:218)
(NO_SOURCE_FILE <embedded>:5863:211)
(NO_SOURCE_FILE <embedded>:5842:36)
(NO_SOURCE_FILE <embedded>:6014:340)
(NO_SOURCE_FILE <embedded>:5904:425)
@swizzard https://github.com/nathanmarz/specter/issues/72 There is an older version of Specter which worked with self-hosted ClojureScript IIRC
Yeah, but 0.12.0 was about a year ago, which is about the lifetime of self-hosted ClojureScript in the general scheme of things 🙂
Or, once you've mastered this stuff, contribute the changes needed to make it work 😜
all i wanted was to use brain.js to make names for a tracery-based nanogenmo project
For people looking to help out in Lumo, there’s only 1 pending task to do before releasing 1.8
I’d like to add a lumo.build.api/watch
function. Should be the same as cljs.build.api/watch
(just swapping out all the JVM APIs with Node.js’s)