Clojurians
#lumo
<
2017-12-01
>

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

bhurlow00:12:49

@richiardiandrea true, good thing to note

bhurlow00:12:07

@richiardiandrea yea, definitely faster to run some optimized js out of the box, but for me avoiding a long compile step and node.js version fracture is preferable

bhurlow01:12:54

No there is not an official nodejs compiler, instead clojure can generate clojurescript code that includes the compiler in the resulting javascript. This is what they call ‘self-hosted’ or ‘bootstrapped’ and basically the clojurescript compiler is available to all javascript targets as a essentially a library

bhurlow01:12:47

That code can be run with node.js. But it can also run on other js platforms like Rhino, JavascriptCore (MacOS), browsers

bhurlow01:12:05

It’s all very inception

bhurlow14:12:17

Yea, up is a bit of an unconventional use for lambda. Traditionally the lambda idea was to have a small function that exits after the first request, but up instead opts to leave a server running inside the lambda vm for its lifecycle

bhurlow14:12:51

its a bit counter-intuitive but it works pretty well

bhurlow14:12:24

So up does NOT kill the HTTP server after a 200, it leaves it running until lambda kills that vm and/or starts another instance

bhurlow14:12:58

that means that every so ofter there’s a slower request which is triggering a ‘cold boot’, but subsequent requests would hit the already running server

bhurlow14:12:36

As far as non gateway services, up is designed for web services, there are some other tools for worker style lambda routines

johnjelinek16:12:02

ya, but that requires a dependency on Java -- I don't want to take that dependency -- so I'm using lumo to fulfill that dependency instead

johnjelinek16:12:49

https://github.com/johnjelinek/cljs-up I made a hello world of using lumo + up to ship a CLJS web app to AWS lambda

hlship21:12:30

Any interest in https://github.com/anmonteiro/lumo/pull/313 ? I could add more to it if I thought it was going to be picked up.

richiardiandrea23:12:47

@hlship in my Open source time I am not working on the lumo watch thing. So no time for me now...I think you can always add more, I like the approach personally, let's just ask @anmonteiro if he likes it too :)