News for hackers. Stuff that matters.
Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by polack on Wednesday October 22, 2014 @04:16PM (#8494871)
Sounds interesting! What's needed from the user in order to use this feature? Will it be possible to use from high level languages like java or do you have to use assembly? Can think of quite a lot of applications that would benefit A LOT from this.
Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by apaprocki on Wednesday October 22, 2014 @09:52PM (#8496331)
When you compile C99 apps using _Decimal{32,64,128} types, and you enable a flag on IBM's compiler to use the DFP instructions and tell it you're compiling for at least a POWER6 (e.g., -qarch=pwr6 -qtune=pwr7) it will emit the optimized code. The same types are available in C++ apps as well. (I'm not sure if GCC/LLVM also support emitting the instructions -- haven't checked.)

If higher level languages implemented in C/C++ implement their decimal support using the built-in C/C++ types, they'll get the speed boost.

Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by desdiv on Wednesday October 22, 2014 @04:45PM (#8495003)
High level languages like Python, Ruby, and Go could take advantage of this without having to make any code changes, provided that the appropriate libraries are updated to use this new hardware.

Java, however, is a special case. Since Java bytecode does not have a BigDecimal type, there's no way to update the JVM to take advantages of this hardware unfortunately.

Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by krylon on Wednesday October 22, 2014 @06:09PM (#8495506)
I think I remember reading that zSeries has Decimal Floating Point, too, and that IBM's JVM does take advantage of the instructions on z/OS.

Of course, even if that is true, it is a different architecture. But still, if they made the change on one architecture, it would be silly not to make it on the other one as well.

Unless that was intentional to keep some sort of advantage for zSeries.

Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by wmf on Wednesday October 22, 2014 @06:37PM (#8495619)
I would assume that the IBM JVM uses DFP instructions to implement the BigDecimal class.
Re:Erlang and IBM Power8 in the cloud: super-high single-sys... by apaprocki on Wednesday October 22, 2014 @10:07PM (#8496370)
Yes, according to IBM's presentations, BigDecimal in their JVM uses 64-bit DFP instructions on their hardware. Minimum hardware level is POWER6 or Z10 (Z9 supported via microcode).

http://www.ibm.com/developerworks/rational/cafe/docBodyAttac...