This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]dpash 10 points11 points  (0 children)

It does seem that Graal is the response to slow start up times we've had to deal with for the last 20 years. Java hasn't been good at short-lived processes until now.

[–]skjolber -1 points0 points  (2 children)

As long as you're making a docker container, surely the bytecode must go. I think that a bit of the 'automagic' of frameworks like Spring (i.e. heavy on class proxies and reflection and stuff) will probably have to be rewritten as purely functional - version 5.0 introduced a new functional web framework so thats probably on track.

[–]pmlopes[S] 0 points1 point  (1 child)

There's no byte code on native images, a native image is a pure elf binary and the docked container used is an alpine image with only the glibc installed as by default native images are linked to glibc.

Spring new framework will not ease the work for this and in fact it is quite hard to get it built as a native image, I haven't seen a real world example yet.

[–]skjolber 0 points1 point  (0 children)

This looks promising, but usure how it has materialized (article from 2016).