holy-lambda

coltnz 2021-10-20T01:54:31.071700Z

Trying to build clojure-runtime without SAM and getting a bit lost. Any tips?

Karol Wójcik 2021-10-20T06:16:48.075200Z

What is the problem?

Karol Wójcik 2021-10-20T06:21:44.078200Z

If you targeting the Clojure backend then the procedure is: 1. Run bb hl:compile 2. Build a docker image 3. Create an ECR and deploy the image 4. Use PackageType Image, and reference the image uri in your cdk.

Karol Wójcik 2021-10-20T06:22:23.079300Z

Anyway highly encourage to rather stick to native backend if you care about cold starts.

Karol Wójcik 2021-10-22T08:43:53.004300Z

This is first time I'm seeing this!

Karol Wójcik 2021-10-25T07:56:55.007200Z

Cool

Karol Wójcik 2021-10-25T07:57:01.007400Z

Btw you're not using docker images?

Karol Wójcik 2021-10-20T11:48:19.088500Z

cc @coltnz

coltnz 2021-10-20T19:17:15.088700Z

Thanks. Yeah I'm currently blocked on native with compiling cognitect-aws.

coltnz 2021-10-20T19:17:38.088900Z

Thought too the clojure runtime might be useful for integration tests

Karol Wójcik 2021-10-20T19:22:44.089100Z

Have you checked the examples? I got plenty users that utilize cognitect-aws.

Karol Wójcik 2021-10-20T19:22:56.089300Z

What service are you trying to integrate?

coltnz 2021-10-20T19:52:01.089500Z

Compiler was crashing on a Jetty class

coltnz 2021-10-20T19:52:32.089700Z

I think the next version of Graal fixes it

Karol Wójcik 2021-10-20T20:23:05.090400Z

Nah. Just show your stacktrace, so that I can help.

Karol Wójcik 2021-10-20T20:25:37.091900Z

See an example: https://github.com/FieryCod/holy-lambda/blob/master/examples/bb/native/sqs.example/src/sqs/example/core.cljc Anyway if you want only cognitect AWS api you can safely use babashka backend ;)

coltnz 2021-10-20T21:08:51.092200Z

Caused by: org.graalvm.compiler.graph.GraalGraphError: java.lang.NullPointerException
	at node: 1281|+ { nodeSourcePosition=at org.eclipse.jetty.util.TypeUtil.<clinit>(TypeUtil.java:192) [bci: 996], stamp=i32,  }

coltnz 2021-10-20T21:09:21.092400Z

Seemed to hard to fix, other than downgrading graal perhaps

Karol Wójcik 2021-10-21T05:34:08.000500Z

What graalvm version do you use?

Karol Wójcik 2021-10-21T06:15:40.001300Z

Btw is it possible for you to create a minimal repro?

coltnz 2021-10-25T06:59:01.007Z

Built OK with latest Graal

coltnz 2021-10-20T01:54:48.071900Z

Would like to deploy with CDK

Benjamin 2021-10-22T08:21:42.001600Z

https://github.com/SingularityGroup/support-bot-announce here is a recent example using graalvm and cdk. It was copied from Karols azure example

Karol Wójcik 2021-10-22T08:33:40.003300Z

Cool! May I include this project in Examples section in README.md?