This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-10
Channels
- # aws (45)
- # bangalore-clj (16)
- # beginners (109)
- # boot (137)
- # cider (7)
- # cljs-dev (54)
- # cljsrn (22)
- # clojure (77)
- # clojure-conj (1)
- # clojure-greece (2)
- # clojure-nl (5)
- # clojure-russia (36)
- # clojure-spec (15)
- # clojure-uk (54)
- # clojurescript (118)
- # cursive (7)
- # datomic (25)
- # emacs (33)
- # hoplon (276)
- # klipse (38)
- # lein-figwheel (1)
- # leiningen (9)
- # melbourne (1)
- # off-topic (18)
- # om (98)
- # onyx (6)
- # pedestal (1)
- # perun (24)
- # re-frame (46)
- # reagent (6)
- # ring-swagger (3)
- # spacemacs (67)
- # specter (15)
- # untangled (33)
- # vim (6)
Hi all, I’ve spent a couple days working on packaging dependencies for use with the self-hosted compiler in browser environments. I’m not sure what else is being done here, or what an ideal approach would look like, but I’ve got a few things working: Examples - https://cljs-live.firebaseapp.com/ Source - https://github.com/mhuebert/cljs-live
@mhuebert some time ago I also wrote a boot task for collecting source files and move them to a path, ready for self-host *load-fn*
: https://github.com/Lambda-X/boot-pack-source
@jrheard thanks. I’m looking at it
@mhuebert did you try to use your packages inside klipse with the external-libs
url parameter
also @mhuebert I cannot open https://cljs-live.firebaseapp.com/ inside chrome
https security issues
Sorry. It works. It’s just that I’m on a very slow connection
yeah self-hosted cljs cannot be advanced compiled 😞
have you noticed any differences between (ns my-ns.core (:require …))
vs. (require ‘[..])
? Some of my examples don’t work unless I use the (ns..) form and i’m not sure why
what examples?
unfortunately you can’t reproduce it exactly on that webpage, because so long as any (ns ..)
form has been loaded, there is no problem. But both the goog.events
and quil
examples fail if they are run before a ns
form.
@mhuebert can you come to the #klipse channel?
@dnolen have you ever tried loading foreign libraries with Self-hosted CLJS + Node.js?
I found something which I'm not sure it's a bug in the compiler or not.
so because foreign-libs (in CLJSJS, at least) are packaged as UMD modules, requiring them in Node.js (where module
is present) won't actually side-effect the global scope
so to make it work currently I have to:
(with-redefs [js/module js/undefined]
(js/eval source))
oh, where can I find that code?
not a bug in the CLJS compiler then 🙂
thanks
oh there you go
you also set module
to undefined
@dnolen is this bootstrap_node.js
only run for REPLs or appended to :target :nodejs
builds too?
oh right, I'm building with :simple
so that's why I'm not seeing it
hrm seems my problem is a bit different though
I think I just need to do this when requiring foreign-libs
I can't think of anything else for which this is needed
So (lazy question) @anmonteiro is lumo
a self hosted repl or fully fledged? Good job, I tried it and it is fast!
@richiardiandrea what's your difference between self hosted and fully fledged? 🙂
Mmm maybe I am wrong and not up to date then 😄
not your problem, it's just I don't understand what you're asking
Actually if there is parity, especially in macro management, it should not matter
Fully fledged in my mind still needs java
oh no, it's self-hosted then
there's no Java involved
Awesome, are you using inf-clojurebwith that?
not yet, but I plan to add support for a socket REPL
I gave more context in the issue you asked that: https://github.com/anmonteiro/lumo/issues/9#issuecomment-259811462
anyway, let's move this somewhere else, folks might not be interested in Lumo talk in this channel 🙂
Yep cool i'll check there I did not notice I received a notification in my email, thanks!