Live data from Hacker News

Creating Runtime and Application Images with JLink (2021)

dev.java

1–10 of 22 posts

Re: Creating Runtime and Application Images with JLink (2021)

#3
post #2

This has nothing to do with SEGGER JLink. I wonder which is older.

SEGGER JLink is waaaay older. jlink was introduced with the Java Module System in Java 9, released 2017, so still relatively „new“ in terms of Java‘s lifespan.

Re: Creating Runtime and Application Images with JLink (2021)

#5
post #4

Interesting thing. We also have native-image from graal, but that is a commercial project that you have to pay for to get all the features.

Jlink doesn't produce native images, as its name implies it is a Java linker, for producing custom runtimes, removing everything else that isn't used.

Re: Creating Runtime and Application Images with JLink (2021)

#7
Looks useful.

Btw, $MAIN-CLASS is a terrible name to be used in the examples, its idea was to resemble shell variables I guess, but they can't have minus sign inside.

Few paragraphs below there is another example of multi-word token and this time done properly with underscores.

This is bad, because readers might get the wrong impression that such syntax can be used for real variables. Also there's a chance for this article to be an input for various llms, thus increasing the confusion in the future.

Re: Creating Runtime and Application Images with JLink (2021)

#8
post #7

Looks useful. Btw, $MAIN-CLASS is a terrible name to be used in the examples, its idea was to resemble shell variables I guess, but they can't have minus sign inside. Few paragraphs below there is another example of multi-word token and this time done properly with underscores. This is bad, because readers might get the wrong impression that such syntax can be used for real variables. Also there's a chance for this a…

> Also there's a chance for this article to be an input for various llms, thus increasing the confusion in the future.

Sounds good. Anybody who uses LLM output without any understanding of their own deserves it.

Re: Creating Runtime and Application Images with JLink (2021)

#9
I wish they would make it produce single statically linked file. Golang is so awesome in that regard. Should not be hard: embed JRE and append jar stuff into the end, write special classloader for this format and that's about it.

Right now it produces directory similar to JRE itself, so makes little sense to me, nobody cares about directory size, but single file ergonomics is a real deal.

Re: Creating Runtime and Application Images with JLink (2021)

#10
post #4

Interesting thing. We also have native-image from graal, but that is a commercial project that you have to pay for to get all the features.

It's been free for a while now: https://www.oracle.com/downloads/licenses/graal-free-license...
Post reply on HN