I work at Amazon. So everything. Something like 99% of Amazon runs off Java. It's pretty amazing how such a complex system with thousands of micro services and front end interfaces are all put together using a single language. Not many languages out there can boast this kind of flexibility and speed, especially at this kind of scale
原來 Amazon 主力是 Java 啊
Reduced memory usage: No additional memory is used to store object metadata, such as flags facilitating synchronization, identity, and garbage collection.
但是這樣的話 value types 要怎麼被 GC 回收?
不過從 jvisualvm1 看起來,通常 java application 比較佔記憶體的大都是 char[], byte[], int[], ...,所以 value types 確實有機會減少記憶體的使用
Primitives do not currently support qualified method calls or field access (i.e. use of the dot operator)
Primitive types 也不能表達 null... 所以還是需要 wrapper class
The Minimal Value Types article goes into great detail on this initial exploratory implementation and although this first cut includes many approximations of the eventual implementation (such as the use of an annotation to denote a value type rather than an express keyword for this purpose), it provides a promising path for the eventual inclusion of value types into Java.
可能需要增加新的 annotation,所以舊的程式沒辦法直接用...
不是已經有 string pool 的概念了嗎?類似的方法套用到 value types 不知可不可行?