News for hackers. Stuff that matters.
Re:Nxweb – Fast and Lightweight Web Server by pjmlp on Saturday February 27, 2016 @03:39AM (#11186546)
Or they don't know any better.

I took part in a few projects that replaced high throughput servers handling mobile network traffic from C++ to Java.

Re:Nxweb – Fast and Lightweight Web Server by eva1984 on Saturday February 27, 2016 @05:08AM (#11186675)
Can confirm.

I work at two ad-tech related companies, one large one medium, both use Java from the beginning. And I know other company using Python/Golang as well.

Didn't know C(not C++) is particular popular until today. Note that ad company are pretty business focused, add or remove features for big clients are pretty common, so development efficiency matters a lot.

Re:Nxweb – Fast and Lightweight Web Server by brobinson on Saturday February 27, 2016 @02:49PM (#11188173)
We went from C++ to Go, and started to auto-lose any auctions whose bid requests were in progress during a GC cycle. Go 1.1/1.2 had atrociously long GC pauses (sometimes up to 500ms). You are correct that development efficiency was very important, so losing the auctions was justifiable.
Re:Nxweb – Fast and Lightweight Web Server by iampims on Saturday February 27, 2016 @04:26PM (#11188594)
Are things different with Go 1.5/1.6 now that GC has start to be optimized?
Re:Nxweb – Fast and Lightweight Web Server by elithrar on Sunday February 28, 2016 @10:32AM (#11191109)
As of Go 1.5 (1.6, released last week, makes further improvements):

> The "stop the world" phase of the collector will almost always be under 10 milliseconds and usually much less.

https://golang.org/doc/go1.5

Re:Nxweb – Fast and Lightweight Web Server by brobinson on Saturday February 27, 2016 @04:44PM (#11188663)
Not sure, sorry. I haven't written any high-performance stuff in it since 2014.
Re:Nxweb – Fast and Lightweight Web Server by cmrdporcupine on Saturday February 27, 2016 @07:48AM (#11186951)
Did you have tight and consistent latency requirements?

GC pauses are a killer. They can be worked around, but it takes intensive tuning.

The RTB bidder I wrote many moons ago at a startup was fast as hell, but had problems in the 95th percentile of requests meeting the latency targets, due to GC.

The ad servers at the big ad tech heavy weights are in C++.

Re:Nxweb – Fast and Lightweight Web Server by pjmlp on Saturday February 27, 2016 @08:49AM (#11187067)
Of course, people aren't going to be happy when they packets get dropped or the network monitoring software wasn't able to provide a (soft) real time view of what was happening.

Also note I wasn't doing this alone, it was a very big project a mobile operator.

Re:Nxweb – Fast and Lightweight Web Server by ktRolster on Saturday February 27, 2016 @04:18PM (#11188560)
Your experience isn't representative, so there were probably other confounding factors, like the C++ wasn't very well written, or you weren't dealing with petabytes of data or something like that.
Re:Nxweb – Fast and Lightweight Web Server by faint_coder on Saturday February 27, 2016 @03:58AM (#11186578)
Or maybe THEY don't know any better way to optimize/use C++ instead of switching to Java
Re:Nxweb – Fast and Lightweight Web Server by pjmlp on Saturday February 27, 2016 @09:14AM (#11187122)
Given that I remember the days when C and C++ compilers generated code worse than a junior Assembly programmer, I always find such comparisons interesting.

Not that they aren't true, rather their validaty depends a lot of programmer skillset and compilers being used.

Re:Nxweb – Fast and Lightweight Web Server by goldenkey on Saturday February 27, 2016 @04:01AM (#11186588)
Java is garbage unless you specific 20 -D options to bend it to your will.
Re:Nxweb – Fast and Lightweight Web Server by pjmlp on Saturday February 27, 2016 @09:12AM (#11187113)
I could say the same thing of compiler optimisation flags.
Re:Nxweb – Fast and Lightweight Web Server by goldenkey on Saturday March 05, 2016 @10:10AM (#11229673)
Pretty sure -O3 and we are set. False dichotomy. Java has a lot of users but sheep still get slaughtered.