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

> Well written Java will always be about 2-4x slower than similar C code.

Nope. A large, concurrent app is likely to be faster in Java given similar effort (of course, given enough effort -- which may be double -- C will eventually surpass that, sometimes even significantly, depending on usage). Currently the main bottleneck, which makes the above statement very dependent on application type, is lack of value types, and that's being addressed. In small sequential apps, there will be a significant advantage to C, which diminishes with the size of the app. The reason is that as the app grows, it gets harder to write manual optimizations while keeping the code modular and maintainable, while HotSpot can do all sorts of optimizations even with nice abstractions.



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

Search: