C++ or Java, which is faster for high frequency trading?
vanillajava.blogspot.com
vanillajava.blogspot.com
http://code.google.com/p/disruptor/
http://martinfowler.com/articles/lmax.html
http://www.infoq.com/presentations/LMAX
I discovered this project thanks to gaius who mentioned it here: http://news.ycombinator.com/item?id=2785195
Having said that, as far as I know (I haven't worked in Java in about a year and a half, so I don't know how this is now), garbage collection is pretty fast nowadays. It may also be possible to speed up if using something like Excelsior JET, though I've never used it, so may be wrong on that.
I'd personally be interested in looking at using a C++/LuaJIT hybrid for something like this though - the bulk of the code would be in Lua with common tasks that require very high performance and don't need to be too dynamic being done in C++.
Only a fraction of this time is left to make a decision. ;)