News for hackers. Stuff that matters.
Re:The Deletion of gcj by marktangotango on Monday October 03, 2016 @08:24AM (#12626849)
I evaluated gcj to use in a shareware desktop application in the 2000's. The goal was to compile java + SWT into native binaries for distribution. The goal was a slim installer that didn't require the user to futz with installing java, or bunding a jre. Ended up going with Excelsior JET which is a fantastic project.

In the end, the full java spec doesn't lend itself to aot, because if you claim to be "real" java you have to include support for runtime classloading, which means there has to be a bytecode interpreter embedded in there somewhere. My thoughts are now, if you really want a java/c# style aot language, vala is the way forward.

Re:The Deletion of gcj by amyjess on Monday October 03, 2016 @11:01AM (#12627858)
> My thoughts are now, if you really want a java/c# style aot language, vala is the way forward.

What about D?

Re:The Deletion of gcj by my123 on Monday October 03, 2016 @11:32AM (#12628205)
C# fully supports AOT since a while.
Re:The Deletion of gcj by swift on Monday October 03, 2016 @01:36PM (#12629530)
I'm pretty sure that C# AOT does not eliminate the need for a JIT in the runtime system. Just as one example, how could expression trees be implemented without one?
Re:The Deletion of gcj by pjmlp on Monday October 03, 2016 @02:34PM (#12630065)
You cannot use them.

In .NET Native you have to explicitly inform the compiler of any kind of reflection behavior you might require.

Re:The Deletion of gcj by zgramana on Tuesday October 04, 2016 @11:33AM (#12636285)
Not quite right. Mono has the lovely mkbundle tool which can do what the poster wants: AOT your intermediate/byte code and build a statically linked executable containing your app, the runtime, and all your deps (except for key system dynamic libraries like libc or Security.framework, similar to how go works).

No restrictions on reflection, unlike .NET Native (which has slightly different design goals).

I've used it many times for just this reason with great results. Plus, the runtime was re-licensed to MIT/X11.

Re:The Deletion of gcj by pjmlp on Wednesday October 05, 2016 @07:30AM (#12642975)
My .NET experience is only on Windows, thanks for the clarification.