Java 9 with GPU processing, Java 10 will be all-OOP without primitives
1–10 of 138 posts
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#2Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#3Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#4 public class CompoundObject {
int i;
int j;
double k;
}
This class's data members are all a few bytes away from each other, so once the object is loaded into the CPU cache, all operations should be fast. With boxed types, you might get 3 cache misses when accessing i,j,k.On the other hand, referential transparency can help here. Given referential transparency, the compiler can transparently unbox Integers and translate method calls. So if Oracle does it right, rather than slowing down unboxed code, this might just speed up boxed code.
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#5All-OOP? So functions will be objects too? And classes? And contexts? Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#6All-OOP? So functions will be objects too? And classes? And contexts? Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#7These slides were posted last November, so they're probably a bit stale, but might give some insights: http://www.slideshare.net/JAX_London/keynote-to-java-se-8-an...
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#8All-OOP? So functions will be objects too? And classes? And contexts? Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#9All-OOP? So functions will be objects too? And classes? And contexts? Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
This is a very good point. If functions become objects, interfaces would become literally useless. Somehow it seems that it would not be the case since this would be a drastic change (even thought getting rid of primitives are as well.)
Re: Java 9 with GPU processing, Java 10 will be all-OOP without primitives
#10All-OOP? So functions will be objects too? And classes? And contexts? Not meaning to start a flame, just saying the title's a bit inaccurate IMHO...
This is a very good point. If functions become objects, interfaces would become literally useless. Somehow it seems that it would not be the case since this would be a drastic change (even thought getting rid of primitives are as well.)