graalvm

Adam Helins 2023-03-09T08:49:28.711669Z

Promesa is failing at runtime in native images because it uses eval when virtual threads are available: https://github.com/funcool/promesa/blob/master/src/promesa/exec.cljc#L110-L127 When those delays are deref'ed, kaboom. I'm not sure what would be the solution though 🤔

borkdude 2023-03-09T09:02:53.938129Z

oh that's a horrible solution

borkdude 2023-03-09T09:03:14.192319Z

I'll make a PR to fix this

Adam Helins 2023-03-09T09:05:18.621489Z

A fix would have to be fully static right?

borkdude 2023-03-09T09:32:01.263319Z

@adam678 Final PR: https://github.com/funcool/promesa/pull/136

👌 1
Adam Helins 2023-03-09T10:41:39.471089Z

Of course, some good old macro magic

borkdude 2023-03-09T10:42:50.827099Z

can you test this? I wonder if (Thread/ofVirtual) won't be problematic for GraalVM

👍 1
borkdude 2023-03-09T10:42:57.001579Z

on the top level