News for hackers. Stuff that matters.
Re:Nodejs+Fabric as fast as multi-threaded C++ by VMG on Saturday November 12, 2011 @10:29AM (#3227965)
The C++ versions were compiled using gcc version 4.4.5 using the compiler flags “-O6 – lpthread”.

Isn't -O6 the same as -O3 ?

Re:Nodejs+Fabric as fast as multi-threaded C++ by pjin on Saturday November 12, 2011 @12:34PM (#3228275)
Fortran compilers (gcc has a Fortran 95 frontend) have long offered optimization levels beyond -O3; i.e., -O6 is a decent upper bound among popular free and commercial compilers, not just gcc/gfortran. The author probably came from a HPC background where -O6 is commonly used for compatibility among such a variety of compilers, even when writing C and C++ programs. Technically not the most portable way to build, but it works.
Re:Nodejs+Fabric as fast as multi-threaded C++ by FabricPaul on Sunday November 13, 2011 @02:51PM (#3231624)
I asked the engineer for a response: "For reference, I used -O6 because it's a historical convention (more of a joke, really) for "optimize the crap out of it". UNIX geeks have been using -O6 in this way for about 30 years."
Re:Nodejs+Fabric as fast as multi-threaded C++ by Game_Ender on Saturday November 12, 2011 @11:29AM (#3228099)
Yes it was a very WTF moment for me as well. The "C++" code is pretty much straight C, with references being the only C++ feature being used.
Re:Nodejs+Fabric as fast as multi-threaded C++ by pjmlp on Saturday November 12, 2011 @05:02PM (#3229054)
It might look like C, but the last time I looked to the C++ standard that is also valid C++ code.
Re:Nodejs+Fabric as fast as multi-threaded C++ by apaprocki on Saturday November 12, 2011 @11:01AM (#3228036)
Yes -O3 is the maximum. Anything higher than (-O1000) just runs -O3.