News for hackers. Stuff that matters.
Re:Server APIs Project by Cyph0n on Tuesday October 25, 2016 @07:27PM (#12792691)
In theory. I've never actually tried Excelsior or any other AOT Java compiler, so I can't comment on that. What I do know is that Swift is free and has first-class support for AOT compilation.
Re:Server APIs Project by pjmlp on Wednesday October 26, 2016 @03:43AM (#12794647)
I think it was an error from Sun not to offer AOT in addition to JIT, but apparently they were religious against the idea, only offering it on the embedded JDKs.

This could have made Java actually relevant on the desktop, ignoring for a second how clueless Sun was about doing good desktop libraries.

However with Java 9 you will be able to use the new Java linker and create you own little VM + AOT startup code.

So that coupled with the large Java eco-system is already good enough for many of us.

Swift does compile to AOT today, but the tooling and libraries outside Apple platforms is almost insignificant, and only good enough for startups willing to bet on it.

Re:Server APIs Project by Cyph0n on Wednesday October 26, 2016 @12:35PM (#12797925)
That Java 9 feature would definitely be amazing. I agree, Swift is nowhere near the maturity of the Java ecosystem.
Re:Server APIs Project by pjmlp on Wednesday October 26, 2016 @01:38PM (#12798610)
The linker part is described in these JavaONE 2016 talks

https://www.youtube.com/channel/UCdDhYMT2USoLdh4SZIsu_1g/sea...

Re:Server APIs Project by Cyph0n on Wednesday October 26, 2016 @05:43PM (#12800916)
Thanks for that. Are you aware of any numbers on the size savings you get for a typical app using jlink?
Re:Server APIs Project by pjmlp on Thursday October 27, 2016 @04:28AM (#12803613)
No, as I am yet to play with it.

So far I only seen the presentations.

But looking at Java 8 on this PC I would say:

jvm.dll (8 MB) + main.exe (200 KB) + trimmed down JRE

Also notice that from the presentations they have some experimental support for jlink plugins, which can further shrink down the size.