This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-08
Channels
- # admin-announcements (42)
- # clara (8)
- # cljs-dev (2)
- # clojure (132)
- # clojure-argentina (4)
- # clojure-berlin (3)
- # clojure-brasil (3)
- # clojure-dev (8)
- # clojure-france (2)
- # clojure-hamburg (2)
- # clojure-india (1)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-russia (31)
- # clojure-spain (1)
- # clojurescript (154)
- # core-async (19)
- # datomic (16)
- # devcards (43)
- # funcool (3)
- # hoplon (4)
- # immutant (8)
- # jobs (4)
- # ldnclj (71)
- # off-topic (1)
- # om (4)
- # onyx (30)
- # re-frame (3)
- # reagent (6)
- # remote-jobs (2)
- # ring (2)
Good morning.
@pupeno: sounds like you’ve been messing with nashorn and SSR. I’m going to be trying it with Om in the coming weeks so any tips/gotchas welcome
@afhammad: I found creating the engine on each request too slow. Also, nashorn may or may not eat ram like it was candy. This lead me to put the script engines in a pool, so they can be reused. I did a lot of load testing to make sure it was behaving well. The code I wrote is here: https://github.com/ldnclj/proclodo-spa-server-rendering and I’m writing a blog post about it.
@afhammad: the blog post will be at https://carouselapps.com
afhammad: an approach I’m interested in taking is to make all the rendering code cljs and run in directly on the JVM. That should be much more performant.
I’m not the first one: http://davidtanzer.net/server_side_rendering_with_re_frame but I really don’t want to use Hiccup as it’s XSS vulnerable.
It was not easy and I don’t think I have the ultimate solution yet, but I’m happy with how far I got. I don’t know, though, which challenges you’ll find with Om. Nashorn doesn’t implement a full browser so there’s a lot of ClojureScript that simply won’t run in it.
@afhammad: oh, this is a server-side rendered Om app: https://github.com/DomKM/omelette
I learned quite a bit from it. It is a proof of concept though, so, for example, it’s ignoring the fact that creating the scriptengine on each request will add .4s to your requests. 😡
I managed to achieve this though:
Yeah, I'm giving a somewhat gentle intro to ClojureScript / React / Om. @malcolmsparks is going to do a smallish follow-on about Reagent
@jonpither: how long will the intro take? that seems to be a lot of ground to cover in a short time in a gentle way.
I would aim for exposure to the CLJS working env, Om, React. But you're right it'll be a tight fit
your clojurescript slack wrapper: https://github.com/juxt/fuzz
Oh geez, my blog post for isomorphic clojurescript is already 1500 words long and I still haven’t reached the good bits.
hello jon
great talk so far
i love clojurescript
@jonpither: is the git repo up to date? I have no menu of links under the title
@jonpither hi jon
@jonpither hi jon
Hello Clojurescript app
This is a very cool project, thanks jon
Om next on youtube -- https://www.youtube.com/watch?v=ByNs9TG30E8
applause
@otfrom: re-frame now
see http://www.parens-of-the-dead.com/ for sample code