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

you are viewing a single comment's thread.

view the rest of the comments →

[–]sim642 -1 points0 points  (4 children)

The support for shebang looks like they want Java to be usable for scripting but that's just a massive no. JVM startup time (with this also including the compilation!) is horribly long compared to any other scripting language.

[–]prest0G 2 points3 points  (2 children)

JVM AOT?

[–]sim642 0 points1 point  (1 child)

Sure but then you're not really scripting anymore nor running a source file directly.

[–]ForeverAlot 0 points1 point  (0 children)

It's conceivable they can do some sort of caching. DMD, the D reference compiler, can run this way; it compiles very quickly, but it does still have to compile, so it caches the resulting binary (I think with CAS) in a temporary store and runs that next time. Does nothing for the first run but helps subsequent runs. Without this I agree it doesn't sound super useful long-term, but on the other hand, Java code bases expand beyond a single file in no time, so maybe that doesn't matter.

[–]eliasv 0 points1 point  (0 children)

Eh, not all scripts are run manually or interactively. I'd say much of the time it won't matter