|
|
|
|
|
by bluecalm
4636 days ago
|
|
C++ code is 5x faster after some standard optimizations so it's not really the same league. Faster than Python for sure but still unusable for anything CPU bound is the message I get from all of this. This doesn't show anything new though, programming math/graphics is perfect use for C/C++ and you won't really benefit from anything Go has to offer and some of its features actually become annoyance for this kind of application. The biggest strength of of Go doesn't really really shine either as simple parallelism needed for ray tracer is matter of few lines of code in both C and C++. |
|
There is nothing standard about the optimizations -- direct AVX use is enormously uncommon, even among extremely high performance code.