771 karma · joined March 11, 2013
Quote:
Oh, they have enough weapons. Now the serious game begins as Reva pointed out. The investigation of the attack is not interesting. I suspect the findings have already been reached before the first investigator got to work. Now the question is how India responds. God willing, the Indian response will make us a lot of money.
This after the devastating terrorist attack in Mumbai which killed 164 people: http://en.wikipedia.org/wiki/2008_Mumbai_attacks
Presumption: Writing correct Go code is more fun that C++
But I guess we are then going away from idiomatic Go
But, I guess algorithmic advances will happen much less frequently compared to other micro optimizations. And it will keep things interesting across the board.
I would argue that it is not cheating "anymore" as both the Go and C++ version are now equal. In fact, I wanna compare how Rust performs in this exact same test with all optimizations applied. Studying those optimizations will be fun itself.
I have also explained why optimizations are perfectly fine (IMHO) here:
https://github.com/kid0m4n/rays#why-optimize-the-base-algori...
It helps in finding out details of what the compiler (Xg) thinks of various funcs inlining applicability (is that even a word?)
The base C++ version, for reference: https://gist.github.com/kid0m4n/6680629
But its never going to be apples-to-apples comparison. Given the different feature sets of either platform
But this definitely shows that Go performance is in the same ballpark though.
https://github.com/logicchains/Levgen-Parallel-Benchmarks/pu...
> 120 ms improvement over the origin implementation
https://github.com/logicchains/Levgen-Parallel-Benchmarks/pu...
Go performance improves from ~470 ms to ~360 ms on my Quad core MBP 15 (Late 2011)