4 ms·
"Java assumes memory is cheap at many levels. And usually, it's right." I would say it's usually wrong. Imagine how much ram you'd need if all of your GUI apps
by jshen 15y ago
"Java assumes memory is cheap at many levels. And usually, it's right."
I would say it's usually wrong. Imagine how much ram you'd need if all of your GUI apps were on the JVM. Imagine how much ram you'd need if '$ cat blah.txt | grep "something" | uniq | sort' were all JVM processes. Etc, etc, etc.
It seems to only be right for long lived server side processes that have enough load to make it a benefit.
- angelbob 15y agoYou wouldn't architect that in that way in JVM. Instead, you'd use threads rather than processes, use heavier-weight but more capable tools and so on. The JVM is not The Unix Way. You have to do things differently - and in Java-land, they do. It's not really my thing either, but it's not as bad as you'd think if you just pretend we're mapping all our existing Unix stuff, unchanged, into Java.
- jshen 15y agoRight, and my point is that the JVM way only fits a narrow range of use cases. Primarily long running server side processes.
- seanp2k 15y agoYou mean `$ grep 'something' blah.txt |sort -u`, right?! http://partmaps.org/era/unix/award.html http://partmaps.org/era/unix/award.html