4 ms·
> So I still prefer working low latency in C as it is more natural, native solution for managing problem where you absolutely need to control memory layouts, pr
by saghm 6y ago
> So I still prefer working low latency in C as it is more natural, native solution for managing problem where you absolutely need to control memory layouts, preallocated object pools, NUMA, compilation of decision trees to machine code, prefetcher, etc.
Out of curiosity, what was the rationale for writing the system in Java? Were the tradeoffs not obvious until too late, was the choice of language dictated by higher-ups, etc.?
- stingraycharles 6y agoProbably the usual suspect, it’s easier to find engineers that know Java than C/C++.
- RobLach 6y agoAnd it’s a foolish assessment. Finding Java programmers who can navigate all the hoops of low latency Java is more difficult than finding a C programmer who can do the same with C.
- lmilcin 6y agoThere is couple of reasons for this. If you choose Java for your project it usually means you don't care a lot about latency and performance (you care some, but not all that much compared to, for example, linux kernel development). You care more about managing larger codebase, having easy access to whole lot of frameworks and libraries, good development tools and easy development / deployment process. Developers who have experience with Java are inevitably people who have mostly had experience with those kinds of projects of which I would say most are corporate backend systems or Android applications. It really is difficult to find any other projects. On the other C is inflicted pain of having much harder development environment for the size of the project. You only use low level language like C when you have a specific need. Maybe you need to develop Set Top Box software, or video codec, or some device controller, or high performance quant library, that kind of stuff. So it isn't really fault of Java developers to not know the stuff. It is natural result of Java being suited to a different type of projects than C is.
- lmilcin 6y agoThe rationale was there were no developers available with skills to work on a complex Common Lisp application.
- peter_lawrey 6y agoProjects with limit time and resources can be completed faster with a high level language giving you more time to optimise it. A well optimised Java application can perform better than a poorly optimised C++ application.