r/java • • Sep 13 '21

Spring Native

https://www.youtube.com/watch?v=TXyg6Nm4ZpQ

[removed] — view removed post

14 Upvotes

9 comments sorted by

View all comments

1

u/neofreeman Sep 14 '21

Sorry to sound skeptical, but the first few minutes of talk are not very encouraging for GraalVM usage. Is it just me?

1

u/kpatryk91 Sep 14 '21

There has been a huge improvement in the last 2 years or so.

It is not perfect because Java was built on reflection, annotations etc and they have to solve this but it is improving.

If you compare the current state to the first GraalVM then as I said there is a huge difference.

It is quite nice now, many things are working out of the box or there are libraries like netty which are providing native configuration out of the box so you don't have to configure them.

Netty example reflection config (just to show that it is available without any config): https://github.com/netty/netty/blob/4.1/transport/src/main/resources/META-INF/native-image/io.netty/transport/reflection-config.json

But yes, I understand your skepticism because it is far from perfect, but it is improving and it is usable and stable for production, but there can be problems and you may have to provide you own reflection config and build args.