Hi, I'm Francesc.

Gopher, Developer Advocate, Good Guy

Latest Posts

Feb 12, 2018

Analyzing the performance of Go functions with benchmarks

Analyzing the performance of Go functions with benchmarks This blog post is complementary to episode 27 of justforfunc which you can watch right below. In the previous blog post I discussed two different ways of merging n channels in Go, but we did not discuss which ones was faster. In the meanwhile a third way of merging channels was proposed in a YouTube comment. This blog post will show that third way and compare all of them from a performance point of view, analyzed using benchmarks. ...Read More
Jan 29, 2018

Two ways of merging N channels

This blog post is complementary to episode 27 of justforfunc which you can watch right below. Two weeks ago I explained how nil channels were useful for some important concurrency patterns, specifically when merging two channels. As a result, because this is the internet, many replied telling me there’s better ways to merge two channels than that. And guess what, I agree! The algorithm I showed is useful for only two channels. ...Read More
Jan 15, 2018

Why are there nil channels in Go?

This blog post is complementary to episode 26 of justforfunc which you can watch right below. Everybody that has written some Go knows about channels. Most of us also know that the default value for channels is nil. But not many of us know that this nil value is actually useful. I got this same question on twitter, from a developer learning Go, wondering whether Go nil channels existed just for completeness. ...Read More

All Posts


TOP