Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

At least in Haskell you have unboxed primitive types, memory mapped IO, bump-pointer allocation, and compilation to direct loops that are often identical to what GCC produces (or very close).


All of those things also exist in hotspot/Java.

Primitive types have been available since the creation of Java. It's up to the programmer to use boxed types or not.

Memory mapped IO - see Java.nio.

Bump-pointer allocation/compilation to direct loops all exist in hotspot.


>>Primitive types have been available since the creation of Java. It's up to the programmer to use boxed types or not.

You can't use a primitive in a collection: eg HashMap / ArrayList


Can you use GNU Trove or Apache Commons Primitives that support primitive types in collections?


Which is why nifty little libraries like Trove, FastUtil, and HPPC exist.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: