News for hackers. Stuff that matters.
Re:Xamarin makes me sad, here is my message to them by pjmlp on Monday September 22, 2014 @04:50AM (#8349762)
> what is a flat array?

In multidimensional arrays you do one single allocation instead of n times m time k times ... allocations.

You can fake this in Java by allocating one major block and doing the math for the respective cell yourself but it is cumbersome.

> What is the advantage of a static binary over just shipping the jvm

The same as doing coding in C and similar languages. Guess one of the reasons why Java lost the desktop.

> What do you mean it always jits?

There isn't any interpretation going on. On most JVMs you need to set execution threshold to zero to achieve similar behavior.

On most JVMs, it is a two step process as they start interpreting and only hot methods (this is customizable on most) get JITted.

> simd is beginning to make its way into java

It is still not clear if it will make it into Java 9 timeframe.

> Is this incorrect?

Yes, as C# as managed to place itself as "good enough C++" on the Windows world, for many use cases.

Re:Xamarin makes me sad, here is my message to them by x0x0 on Monday September 22, 2014 @06:08AM (#8349916)
Thank you.

I've shipped single jar programs -- it's pretty simple to repack everything -- and I believe (but am not 100%) that we included the jvm in there, so it can be done. At the expense of a 100+m download, but for our use case, that was not an issue.

Have you seen performance improvements from forcing always jit? I've played with similar settings and only really found them useful for benchmarking.

I'm surprised you're seeing c# for numerics on windows; I thought there wasn't much besides games that needs to be local and isn't written in c++ these days, either for performance or because the codebase is old. I work on ml programs, mostly c++ and java.

Re:Xamarin makes me sad, here is my message to them by pjmlp on Monday September 22, 2014 @07:20AM (#8350085)
> I'm surprised you're seeing c# for numerics on windows;

Bioinformatics