lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
richiardiandrea 2019-04-18T18:56:46.027900Z

I was checking how to compile lumo statically and I bumped into this commit that @grav made against a lumo fork https://github.com/grav/lumo/commit/78d04752231f362b34c368be008b5240a25b7797

richiardiandrea 2019-04-18T18:57:20.029Z

Has there been some talk already around adding it to lumo proper?

richiardiandrea 2019-04-18T18:58:15.031Z

The problem I am trying to solve is that the latest lumo need a higher version on some dynamic libraries that the AWS lambda runtime does not support

anmonteiro 2019-04-18T18:58:19.031200Z

@richiardiandrea yes, lumo has been statically compiled before

anmonteiro 2019-04-18T18:58:22.031500Z

but it’s just not feasible

anmonteiro 2019-04-18T18:58:32.031800Z

otherwise native modules don’t work

richiardiandrea 2019-04-18T18:58:45.032100Z

Oh ok that's why

anmonteiro 2019-04-18T18:59:18.033600Z

they only work if you compile them against the musl version that was statically linked in

richiardiandrea 2019-04-18T19:00:47.035900Z

By native modules you mean util, fs, or npm modules that are compiled to native?

anmonteiro 2019-04-18T19:01:11.036200Z

.node modules

anmonteiro 2019-04-18T19:01:28.036700Z

native “extensions” or whatever they’re called

anmonteiro 2019-04-18T19:02:01.038200Z

perhaps we could add a statically compiled Lumo to the build matrix

richiardiandrea 2019-04-18T19:02:33.039Z

Yeah that would be awesome because the AWS runtime use case is so attractive

anmonteiro 2019-04-18T19:02:39.039500Z

right

anmonteiro 2019-04-18T19:02:45.039900Z

I’m not gonna do it but feel free to send a PR

richiardiandrea 2019-04-18T19:02:55.040300Z

And at the moment I am using Grav's binary

richiardiandrea 2019-04-18T19:03:01.040600Z

Ok sounds great

anmonteiro 2019-04-18T19:03:18.041Z

it should really just be a matter of adding that flag conditionally on an env variable or something

richiardiandrea 2019-04-18T19:03:30.041400Z

Yep I think that should an easy one