This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-03
Channels
- # admin-announcements (7)
- # beginners (30)
- # boot (181)
- # cbus (1)
- # cider (55)
- # cljs-dev (8)
- # clojure (104)
- # clojure-dev (3)
- # clojure-japan (1)
- # clojure-russia (70)
- # clojurescript (139)
- # core-logic (4)
- # cursive (23)
- # datomic (25)
- # devcards (10)
- # events (11)
- # funcool (1)
- # hoplon (39)
- # jobs (10)
- # ldnclj (19)
- # lein-figwheel (21)
- # off-topic (4)
- # om (174)
- # onyx (46)
- # re-frame (25)
- # reagent (3)
- # yada (7)
@alandipert: i just tried your advice for heroku deployment. works for me
Hi guys, I am new on http://hoplon.io and I wuld like to know if there is any ressource on how to manage event like :
@micha: Hum, so @% is containing the event object ? If yes, I should write a little function parsing this event and getting the code from it. I will try to do it. And come back if I have any problem ^^. And just another question, what is the meaning of #(....) why use # ?
@shadaen: #(reset! new-item @%)) == (fn [e] (reset! new-item @e)) == (fn [e] (reset! new-item (deref e)))
the # is clojure syntax sugar for making anonymous functions tersely
@x is sugar for (deref x), and works in this case because in cljs 'deref' is a protocol/interface, and we have implemented deref on the jq event object as .val
hum ok, I think I understand it. It's hard by moment to understand clojure. Thanks again guys for you help I will be able to play again with hoplon
:keydown (fn [e] (when (= (.-which e) 13) (reset! new-item @e))
@alandipert: this version seems more natural for me.
@shadaen: you may consider the :change
event instead... it would give you the same result i think
@statonjr: somewhat, https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs is in the hoplon jar and would be usable from any cljs thing
possibly, to some degree. the big magical thing that hoplon does is install head/body when the page loads
but presumably you could write your own cljs to do that part
@alandipert: who is wooby?
it seems s/he (it? deployed hoplon-alpha11 from this commit https://github.com/hoplon/hoplon/commit/9ba3aacb159a9a0cfd375ad2f6d303999ae4fee3 which is 404
can you ask the person to push, pls?
i was trying out alpha11 today because we are experiencing some run-away memory consumption again (especially combined with boot-reload), but alpha11 didn't help
i've also noticed that the when-dom
function is still in the source
https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L564
we were talking about this because it seemed unnecessary.
can't find the exact conversation but was around this time:
http://clojurians-log.mantike.pro/hoplon/2015-09-25.html
you said you would try your app without it too, but we haven't got back to the issue since.
im suspecting if we could get rid of this or safeguard it at least, then we could avoid memory leaks
and also a small but constant level of cpu extra cpu usage even when the page is idle.
i suspect you might not be affected because you are less likely to write leaky code, but in our case it still seems to happen from time to time 😞
@onetom: memory issue in browser?
if we disable boot-reload it gets a bit better but still a manual reload of the page takes 5-15 seconds
i will work more on narrowing the cause tomorrow, but having infinite loop in the framework (in form of that when-dom
) doesn't exactly help debugging
btw, has anyone implemented some hoplonified version of https://github.com/luis-almeida/unveil/blob/master/jquery.unveil.js or http://www.appelsiini.net/projects/lazyload ?
(been mostly out of Hoplonland lately but in it enough to say) good luck presenting tomorrow @alandipert!
@onetom: sorry about that, pushe dnow
my :selected
attribute always seems to resolve to selected=“selected”
instead of my formula cell value? Is there a way I can work around this?
if I update the html in devtools it works correctly