4 ms·
> Clojure’s slow startup time on the JVM makes it unfeasible for serverless functions GraalVM could totally change this.
by james-mcelwain 7y ago
> Clojure’s slow startup time on the JVM makes it unfeasible for serverless functions
GraalVM could totally change this.
- joobus 7y agoClojure uses too much runtime reflection. I tried many iterations of compiling different server projects with Graal and none worked. I could get simple programs to compile with an older clojure version, but nothing with recent code.
- james-mcelwain 7y agoI'd expect the tooling will improve over time. This obviously isn't an immediate solution for running Clojure in situations where cold starts matter, but in general I think many of the improvements coming to the JVM in the next few years will pay dividends for Clojure.
- smashedtoatoms 7y agoNot to mention provisioned lambdas if you're on AWS.
- abiro 7y agoProvisioned lambdas make sense if you set the capacity to your median load to save money. But you still want the snappy horizontal scaling of lambda for loads above the median.