News for hackers. Stuff that matters.
Re:Java is better than C++ for high speed trading systems by chrisseaton on Thursday November 26, 2020 @04:36AM (#25218389)
I don’t know what you think the practical benefit of running with no OS is?
Re:Java is better than C++ for high speed trading systems by bboygravity on Thursday November 26, 2020 @05:10AM (#25218570)
More processing capacity for your application (no need to share with OS), no more interruptions by the OS that are unpredictable in duration, no more interruptions by the OS that are unpredictable in terms of timing and priority and above all, since this seems to be the main goal of the software we're talking about: lower overall latency. Standard C++/JAVA (as far as I know) talks to hardware through a software layer (the OS's system calls). This takes time. Time you can save by cutting out the middle man.

There are apparently ways to do this with an OS running in parallel as well though when you have multiple cores available apparently (see another comment to this thread).

Re:Java is better than C++ for high speed trading systems by chrisseaton on Thursday November 26, 2020 @05:59AM (#25218836)
You can get all this by pinning to a core and DMA to hardware. Think of the OS like a library - if you don't call it and don't ask it to call you it stays out of the way. There's no need to throw away the OS.
Re:Java is better than C++ for high speed trading systems by vgatherps on Thursday November 26, 2020 @06:38AM (#25219068)
This is exactly what is done. OS’s are really nice to have around and will stay out of the way. In the day and age of fpgas no reason to ruin the software side to maybe kind of sort of get a bit faster in your software?
Re:Java is better than C++ for high speed trading systems by toolslive on Thursday November 26, 2020 @07:14AM (#25219276)

    - raw, unshared access to devices.
    - no more interrupts.
You can get really close to this via virtualization though. Run a guest machine without operating system on the hypervisor. It doesn't even have to be low level code to get most of the benefits (for example MirageOS)
Re:Java is better than C++ for high speed trading systems by chrisseaton on Thursday November 26, 2020 @09:07AM (#25220116)
> raw, unshared access to devices

Get to OS to set up DMA for you.

> no more interrupts

If the OS has no need to interrupt you, it will never interrupt you. The OS doesn't context switch from a usefully running application on its own core unless you ask it to.

Don't need virtualisation.