<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jacob Walker on</title><link>https://www.ardanlabs.com/authors/jacob-walker/</link><description>Recent content in Jacob Walker on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 18 Apr 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ardanlabs.com/authors/jacob-walker/index.xml" rel="self" type="application/rss+xml"/><item><title>Concurrency Trap #2: Incomplete Work</title><link>https://www.ardanlabs.com/blog/2019/04/concurrency-trap-2-incomplete-work.html</link><pubDate>Thu, 18 Apr 2019 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2019/04/concurrency-trap-2-incomplete-work.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In my first post on &lt;a href="https://www.ardanlabs.com/blog/2018/11/goroutine-leaks-the-forgotten-sender.html"&gt;Goroutine Leaks&lt;/a&gt;, I mentioned that concurrency is a useful tool but it comes with certain traps that don&amp;rsquo;t exist in synchronous programs. To continue with this theme, I will introduce a new trap called incomplete work. Incomplete work occurs when a program terminates before outstanding Goroutines (non-main goroutines) complete. Depending on the nature of the Goroutine that is being terminated forcefully, this may be a serious problem.&lt;/p&gt;</description></item><item><title>Goroutine Leaks - The Abandoned Receivers</title><link>https://www.ardanlabs.com/blog/2018/12/goroutine-leaks-the-abandoned-receivers.html</link><pubDate>Wed, 19 Dec 2018 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2018/12/goroutine-leaks-the-abandoned-receivers.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Goroutine Leaks are a common cause of memory leaks in Go programs. In my &lt;a href="https://www.ardanlabs.com/blog/2018/11/goroutine-leaks-the-forgotten-sender.html"&gt;previous post&lt;/a&gt;, I presented an introduction to Goroutine leaks and provided one example of a common mistake that many Go developers make. Continuing that work, this post presents another scenario on how Goroutines could be leaked.&lt;/p&gt;&#10;&lt;h3 id="leak-the-abandoned-receivers"&gt;Leak: The Abandoned Receivers&lt;/h3&gt;&#10;&lt;p&gt;&lt;em&gt;&lt;strong&gt;For this leak example you will see multiple Goroutines blocked waiting to receive values that will never be sent.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Goroutine Leaks - The Forgotten Sender</title><link>https://www.ardanlabs.com/blog/2018/11/goroutine-leaks-the-forgotten-sender.html</link><pubDate>Mon, 12 Nov 2018 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2018/11/goroutine-leaks-the-forgotten-sender.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Concurrent programming allows developers to solve problems using more than one path of execution and is often used in an attempt to improve performance. Concurrency doesn’t mean these multiple paths are executing in parallel; it means these paths are executing out-of-order instead of sequentially. Historically, this type of programming is facilitated using libraries that are either provided by a standard library or from 3rd party developers.&lt;/p&gt;&#10;&lt;p&gt;In Go, concurrency features like Goroutines and channels are built into the language and runtime to reduce or eliminate the need for libraries. This has created the illusion that writing concurrent programs in Go is easy. You must be cautious when deciding to use concurrency as it comes with some unique side effects or traps if not used correctly. These traps can create complexity and nasty bugs if you’re not careful.&lt;/p&gt;</description></item></channel></rss>