Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajax77
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
ajax77
14y ago
This simply isn't true. A number of years ago with the introduction of DirectX 10, Autodesk began transitioning several mainstay products to exclusive DirectX use under Windows (see http://archicad-talk.graphisoft.com/files/autodesk_invent
2.
▲
by
ajax77
14y ago
Yeah, no. Kinect uses an IR emitter with an IR-based depth camera, there's nothing stereo about it. A regular RGB camera adds color, but that is all.
3.
▲
by
ajax77
14y ago
Pedantry isn't so bad, if it's correct... As was stated, the term "source codes" is very common in many communities, particularly scientific computing and associated academic circles. The only credibility lost here is... well let's just mo
4.
▲
by
ajax77
14y ago
That's simply not the case.. In general, the "no penalty" holds true for primitive data types, and when passing an r-value instance of a class that has a move copy constructor defined. In the case where your object is an expensively constr
5.
▲
by
ajax77
14y ago
With the niceties of C++11, it's certainly become a lot less painful; lambdas, auto (both variable and return type), variadic templates and r-value references give the language just enough flexibility to allow functional style with far more
6.
▲
by
ajax77
15y ago
My reply wasn't meant as a numerically superior solution, simply as a fairly simple alternative without error codes... As for "original specification", I'm not sure why you even bring that up. complex is certainly in the C++11 specification
7.
▲
by
ajax77
15y ago
A slight variation with neither error codes nor exceptions. template< typename T > auto findRoots(T a, T b, T c) -> pair<maybe<complex<T>>, maybe<complex<T>>> { typedef complex&#
8.
▲
by
ajax77
15y ago
Thankfully you're right; compilers have come a long way and Clang in particular has done a lot for easing the pains of template programming in a number of ways. I'm knee deep in the development of several header-based, fully templated libra
9.
▲
by
ajax77
15y ago
It should be noted, it's very clear his executable sizes are for a Debug compilation. I tossed the same code for the final example into VC10, and sure enough in release mode the compiled size is 10KB, and in debug it's just less than the s
10.
▲
by
ajax77
15y ago
Whether or not you are a C++ fan, templatized algorithms ARE often faster than their C-based, generic counterparts. Any decent C++ compiler should be able to inline generic code while C often relies on function pointers. I'm not saying th
11.
▲
by
ajax77
15y ago
I can sympathize; I too use C++ by day, and have become increasingly bitter/jealous/frustrated as I've spent more time with Haskell by night. To the point that, I've started writing several libraries that enable in C++ several of the featur
12.
▲
by
ajax77
15y ago
I looked for the "sign that the quote is bogus" but missed it. Maybe results that have 5 million hits are bogus? Maybe results that have relevant links are bogus? I can enter all sorts of valid quotes from both current and historic figures
13.
▲
by
ajax77
15y ago
Hard work as a means to success is hardly a post-romantic invention. Newton was very much a student of Aristotle, the teachings of whom we can see very much aligned with the statement in question. In that light, would you also doubt these
14.
▲
by
ajax77
15y ago
You highly doubt a revolutionary figure said a radical thing because it would have been considered impolite/revolutionary/radical? Newton was in a world of his own; he, along with a few select others (Lock, Descartes and others), are in lar