HNHacker News
TopNewBestAskShowJobs

kid0m4n

771 karma · joined March 11, 2013

submissionscomments
kid0m4n··on Go + Embedded programming
The Github repo: https://github.com/kidoman/embd
kid0m4n··on Free screencasts to learn Go
Owner of gocasts.org here. Love that you got started before I did. I also had something very similar in mind. Want to partner up?
kid0m4n··on Wikileaks publishes 500k new Stratfor emails
Definitely works...
kid0m4n··on Wikileaks publishes 500k new Stratfor emails
Oh, this is so classy: https://search.wikileaks.org/gifiles/?viewemailid=8402

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

kid0m4n··on Go vs C++: Ray tracer (part 3)
The god of all typos has been fixed :)
kid0m4n··on On comparing languages, C++ and Go
Actually, looking deeply at Go from a performance perspective (as I have been, the last couple of days) has revealed a bunch of low hanging fruits/missed optimization opportunities in the Go compiler. That was 50 % the intent of the grand father blog post
kid0m4n··on On comparing languages, C++ and Go
One correction:

Presumption: Writing correct Go code is more fun that C++

kid0m4n··on On comparing languages, C++ and Go
Yep. Octopress really helps with that
kid0m4n··on Go vs C++: Ray tracer (part 3)
Have not tried that... will give it a shot

But I guess we are then going away from idiomatic Go

kid0m4n··on Go vs C++: Ray tracer (part 3)
Oh the possibilities :D
kid0m4n··on Go vs C++: Ray tracer (part 3)
So it totally disables all loop unrolling, inlining... hmm
kid0m4n··on Go vs C++: Ray tracer (part 3)
Adding that to the list of C++ options I am going to try
kid0m4n··on Go vs C++: Ray tracer (part 3)
True...

But, I guess algorithmic advances will happen much less frequently compared to other micro optimizations. And it will keep things interesting across the board.

kid0m4n··on Go vs C++: Ray tracer (part 3)
A pull request is always welcome :)
kid0m4n··on Go vs C++: Ray tracer (part 3)
gccgo should give better numbers with Go as well. I am guess we pick one and stick with it. I don't mind trying Intel's compiler though
kid0m4n··on Go vs C++: Ray tracer (part 3)
Fair enough... let me do a quick test with -O2 and see how that fares
kid0m4n··on Go vs C++: Ray tracer (part 3)
Hey, possible to optimize the code and send over a PR? I would love to rerun the benchmarks with a optimized Rust version and my rust is totally rusty (pun intended :P)
kid0m4n··on Go vs C++: Ray tracer (part 3)
I was looking at the Rust-dev mailing list before going to sleep :)

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...

kid0m4n··on Go vs C++: Ray tracer (part 3)
Author of the article here

It helps in finding out details of what the compiler (Xg) thinks of various funcs inlining applicability (is that even a word?)

kid0m4n··on Business Card Ray Tracer: Go vs C++
C++ multi threaded: https://kidoman.com/programming/go-getter-part-3.html
kid0m4n··on Business Card Ray Tracer: Go vs C++
I have rerun the benchmarks now after optimizing the C++ version the best "I" could:

https://kidoman.com/programming/go-getter-part-2.html

kid0m4n··on Business Card Ray Tracer: Go vs C++
I am trying my hand at a few things... will keep this in mind
kid0m4n··on Business Card Ray Tracer: Go vs C++
"Go Getter" ?
kid0m4n··on Business Card Ray Tracer: Go vs C++
I am happy to rerun the benchmarks (single threaded and multi threaded) with a optimized C++ version. Sadly, been a while since I last worked on C++

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.

kid0m4n··on Deciphering the Business Card Raytracer
The same thing, implemented in Go:

https://github.com/kid0m4n/gorays

kid0m4n··on Parallel Roguelike Lev-Gen Benchmarks: Rust, Go, D, Scala and Nimrod
True, but that would apply only when you are dealing with tasks which are likely to stall. In this particular case, we are doing CPU intensive calculations in tight loops and no I/O. I scaled the number of goroutines from 1 to 8 (total cores in my MBP w/ Hyperthreading), and got best performance with 8. Performance started regressing beyond 8
kid0m4n··on Parallel Roguelike Lev-Gen Benchmarks: Rust, Go, D, Scala and Nimrod
The original was running upto 8 goroutines (my runtime.NumCPU() is 8.)
kid0m4n··on Parallel Roguelike Lev-Gen Benchmarks: Rust, Go, D, Scala and Nimrod
Welcome! Now have a look at this: https://github.com/logicchains/Levgen-Parallel-Benchmarks/pu...
kid0m4n··on Parallel Roguelike Lev-Gen Benchmarks: Rust, Go, D, Scala and Nimrod
Thanks :P And now an even faster version for your perusal:

https://github.com/logicchains/Levgen-Parallel-Benchmarks/pu...

> 120 ms improvement over the origin implementation

kid0m4n··on Parallel Roguelike Lev-Gen Benchmarks: Rust, Go, D, Scala and Nimrod
Have sent in a pull request:

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)

← PreviousPage 3 of 4Next →