lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
2017-12-01T00:25:49.000193Z

@richiardiandrea true, good thing to note

2017-12-01T00:27:07.000080Z

@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

1👍
2017-12-01T01:30:54.000226Z

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

2017-12-01T01:31:47.000268Z

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

2017-12-01T01:32:05.000067Z

It’s all very inception

2017-12-01T14:44:17.000308Z

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

2017-12-01T14:44:51.000051Z

its a bit counter-intuitive but it works pretty well

2017-12-01T14:45:24.000158Z

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

2017-12-01T14:45:58.000163Z

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

2017-12-01T14:46:36.000012Z

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

johnjelinek 2017-12-01T16:58:02.000515Z

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

johnjelinek 2017-12-01T16:58:49.000041Z

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

2
hlship 2017-12-01T21:53:30.000600Z

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.

richiardiandrea 2017-12-01T23:02:47.000286Z

@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 :)