lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
anmonteiro 2019-04-26T04:45:43.006900Z

they can also be defined in a clj file

richiardiandrea 2019-04-26T06:56:34.009300Z

Could not make the static build to work unfortunately, it keeps crashing on me, I even compiled on an actually Amazon Ami without success...compilation seems to stop for some compilation error with GCC 7 of Red Hat

grav 2019-04-26T06:57:58.010800Z

Great to see thereโ€™s activity around the aws runtime. Iโ€™ll see if I can get time to participate over the weekend!

richiardiandrea 2019-04-26T07:07:38.013900Z

I was very very excited to have it working and colleagues liked the idea ๐Ÿ˜ Then we got the seg fault and we are now stuck ...spent my evening trying to make it work to no avail ...opened an issue..time to give up and sleep now ๐Ÿ˜ด๐Ÿ˜ด๐Ÿ˜

grav 2019-04-28T11:35:41.016400Z

Could it be that the node_modules that you are trying to use are not compiled on the Amazon AMI?

richiardiandrea 2019-04-28T18:08:05.016600Z

Does the SDK need compilation as well? If so, I didn't know that ๐Ÿ˜ƒ

grav 2019-04-29T10:29:24.016900Z

Iโ€™m not sure - I have used eg Sharp, which requires compilation on an Amazon AMI before it works in Lambda.

grav 2019-04-29T10:31:07.017100Z

I actually thought that the aws sdk might already be available on Lambdas, but my tests show that, when using the current lumo runtime and no node_modules, while (js/require "fs") works in a lambda, (js/require "aws-sdk") does not

grav 2019-04-29T10:32:13.017300Z

Regarding compilation, I guess it comes down to whether the node module is just pure js, or if has a native addon. Iโ€™m not sure how it is with the aws sdk.

grav 2019-04-29T10:33:42.017500Z

If it /is/ the case with aws-sdk it might make perfect sense to do a layer that includes it.

richiardiandrea 2019-04-29T16:00:24.017700Z

Agree yes, and yes you need to add it explicitly. I will explore more

richiardiandrea 2019-04-29T16:05:34.017900Z

From what I can understand from the GitHub repo, it seems just a bunch of Js but I haven't explored each and every service

richiardiandrea 2019-04-29T16:06:03.018100Z

An alternative setup would be to keep it dynamic and copy the libs over maybe? Kind of like sandboxing it

grav 2019-04-30T14:27:50.024600Z

I did manage to make a static build (I believe) via orig lumo-master on Mac, and subsequently use it together with the aws-sdk succesfully. Iโ€™m now trying to build lumo for AWS AMI via Docker, and if that ever succeeds, Iโ€™ll try running it in an AWS AMI docker container with an aws-sdk consuming script.

richiardiandrea 2019-04-30T15:02:12.024800Z

Oh nice, wonder why Mac succeeded. I found a Muslim container and I was going to try that today...maybe I am going to wait for your results first

grav 2019-04-30T15:42:54.025Z

Well, my experiment ended with the error you saw on Github ๐Ÿ˜•

grav 2019-04-30T15:43:58.025200Z

And itโ€™s extremely slow, running the compilation on a docker instance on a mac. A linux machine running Docker, or an EC2 instance would probably be a better env for iterating

richiardiandrea 2019-04-30T16:06:27.025400Z

I know right? that's why is good we don't duplicate work ๐Ÿ˜„

๐Ÿ‘ 1
theeternalpulse 2019-04-26T20:10:46.015500Z

does anyone have a repo that has a good standalone setup with lumo scripts?

grav 2019-04-28T11:28:25.016100Z

I created this which might be useful: https://gist.github.com/grav/39062113284e2b005dc03fce598b2d75

theeternalpulse 2019-04-26T20:11:09.015900Z

as in, a repo of scripts and any plumbing to use it on a personal machine