Re:How Do You Program a Computer with 10 Terabytes of RAM?
by marssaxman on Wednesday August 05, 2015 @05:39PM
(#10013055)
You start by congratulating yourself for refusing to buy into the Java hype, then continue on with business as usual in C++ or some other non-garbage-collected language.
[ Parent
| on HN ]
Re:How Do You Program a Computer with 10 Terabytes of RAM?
by vardump on Wednesday August 05, 2015 @10:27PM
(#10014222)
After that you discover it's a NUMA machine, you have a lot of inter-cpu communication and curse you have no GC. Why? Because you bottleneck inter-cpu communication so easily with object synchronization. With GC quite a bit of it can be avoided.
If Java just didn't need to allocate each damn small value object (think struct) separately, I think it'd be a lot better with large heaps.
Array of 1000 non-elementary values could be just one allocation, not 1001. That'd also be 1000 times faster to garbage collect.
Re:How Do You Program a Computer with 10 Terabytes of RAM?
by RandomBK on Thursday August 06, 2015 @09:17AM
(#10016156)
We're getting this soon(ish)! http://openjdk.java.net/jeps/169
Still a few years behind other languages, but its coming...
Re:How Do You Program a Computer with 10 Terabytes of RAM?
by pron on Thursday August 06, 2015 @04:27PM
(#10019187)
Quite the opposite. The only way to use so much RAM is with lots and lots of threads (running on lots and lots of cores), which means either sharding or sharing. Sharding scales really badly because when you do have cross-shard transactions or queries, you need expensive locks. A GC makes general-purpose, high-performance lock-free data structures much, much, much easier.