<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Brian Kim on Medium]]></title>
        <description><![CDATA[Stories by Brian Kim on Medium]]></description>
        <link>https://medium.com/@brianjckim?source=rss-5a04262e40b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RcIMLdXGPsU7YyFDuct7RQ.jpeg</url>
            <title>Stories by Brian Kim on Medium</title>
            <link>https://medium.com/@brianjckim?source=rss-5a04262e40b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:47:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brianjckim/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Two Generals’ Problem]]></title>
            <link>https://brianjckim.medium.com/two-generals-problem-5eadb3f395ed?source=rss-5a04262e40b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eadb3f395ed</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Brian Kim]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 00:41:55 GMT</pubDate>
            <atom:updated>2018-08-13T01:23:56.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*x0I2HtuCJFMFWlN0h2QRaw.png" /><figcaption>Two Generals’ Problem</figcaption></figure><p>The Two Generals’ Problem is an unsolvable problem in computer science that explores two-party communication over an unreliable channel.</p><p>FYI: If you’ve gone down the crypto rabbit hole, you probably know about the Byzantine Generals’ Problem. The Two Generals’ Problem is a more specific version of that problem.</p><h4><strong>The Problem</strong></h4><p>Meet Alice and Bob. Alice is in charge of Army A and Bob Army B. Alice and Bob have been ordered to attack and destroy Castle C. However, there are some constraints:</p><ol><li>Castle C is situated on top of a mountain. Alice and Bob have each set up camp on opposite ends of the mountain.</li><li>It is impossible to reach the other end of the mountain without traversing the top.</li><li>Alice and Bob must attack in unison to be successful. An uncoordinated approach will result in defeat.</li></ol><p>Let’s assume that Alice will decide the timing of the attack and share it with Bob via messenger. Bob will then send a response back to Alice in a similar manner. If consensus is reached, Alice and Bob will attack Castle C together.</p><h4><strong>Two of N Possible Scenarios</strong></h4><p>There are multiple scenarios that can be derived from this problem. I’ll walk through a couple to catch the common pitfalls in action.</p><ol><li>Suppose Alice sends a message to Bob but doesn’t get a response back. It is likely that the messenger encountered trouble either on the way there or back. Alice could send additional messages to Bob, but the results will be inconsistent. The scenario will turn into a game of probability, and the two parties will not be able to reach a consensus.</li><li>Suppose Alice and Bob successfully send the messenger back and forth. How does Bob know that Alice’s message has not been tampered with? How does Alice know that she has received a clean response from Bob? How does Bob know that his response has been safely delivered to Alice? How does Alice know that Bob knows that she has received the response? Alice and Bob will be stuck in an infinite loop, questioning whether consensus has truly been reached.</li></ol><p>Therefore, it is safe to conclude that it is impossible for two parties to establish common knowledge without a reliable method of communication.</p><h4><strong>Analogy to Computer Science</strong></h4><p>Let’s keep the lack of shared knowledge and the unsound communication channel but replace the armies with computers. If you’ve made a connection to TCP (Transmission Control Protocol), you’re on the right track.</p><p>TCP relies on a “4-way handshake” to terminate a connection. Computer A sends a FIN message to share its intent to terminate. Computer B responds with an ACK message and then a FIN. Computer A then sends an ACK message of its own. A total of four messages are exchanged to confirm a termination.</p><p>I could return to the infinite loop faced by Alice and Bob, but I think the analogy is pretty clear. It is extremely challenging for two parties to reach a consensus over an unreliable channel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eadb3f395ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[StarCraft and Cyworld]]></title>
            <link>https://brianjckim.medium.com/starcraft-and-cyworld-30e8ed1a5c3e?source=rss-5a04262e40b------2</link>
            <guid isPermaLink="false">https://medium.com/p/30e8ed1a5c3e</guid>
            <dc:creator><![CDATA[Brian Kim]]></dc:creator>
            <pubDate>Thu, 19 Jul 2018 01:05:44 GMT</pubDate>
            <atom:updated>2018-07-19T01:10:13.248Z</atom:updated>
            <content:encoded><![CDATA[<p>Earlier this afternoon I came across an old photo of myself from 2003. I was a first-grade student at an elementary school in Seoul. As old memories began to surface, I made two interesting realizations.</p><ol><li>I picked up StarCraft, a real-time strategy game by Blizzard, in 2003 and regularly played against my dad’s employees. My brother, who is two years younger than me, started at an even younger age.</li><li>I joined Cyworld, my first social networking platform, in 2004. What’s important is that I was not alone. I had at least a dozen friends who actively maintained their profiles and purchased virtual goods to do so.</li></ol><p>I’m not going to debate the effects of StarCraft and Cyworld on child development, but I am curious how the two have contributed to who I am today. I also have a few other things on my mind right now, but I’m going to brainstorm further before I share my thoughts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30e8ed1a5c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yes, Snap will be fine.]]></title>
            <link>https://brianjckim.medium.com/yes-snap-will-be-fine-acb4f2d0e824?source=rss-5a04262e40b------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb4f2d0e824</guid>
            <dc:creator><![CDATA[Brian Kim]]></dc:creator>
            <pubDate>Wed, 02 May 2018 13:54:14 GMT</pubDate>
            <atom:updated>2018-05-15T00:47:02.936Z</atom:updated>
            <content:encoded><![CDATA[<p>We all saw $SNAP plunge after its earnings call the other day. A few thoughts on why Wall Street needs to hold its horses:</p><ol><li>“Slowest growth ever” is still growth. It doesn’t matter how it is portrayed. Growth is still growth. One cannot just ignore 191 million DAUs.</li><li>As I mentioned in a prior tweet on $SNAP, its ad tools haven’t been fully utilized yet. This is the industry norm. Let’s give it some time.</li><li>It may be two to three years out, but mass adoption of AR will redefine the landscape. I believe $SNAP will be in a very compelling position.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb4f2d0e824" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I have a weird hobby.]]></title>
            <link>https://brianjckim.medium.com/i-have-a-weird-hobby-f3b8eefe2b39?source=rss-5a04262e40b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3b8eefe2b39</guid>
            <dc:creator><![CDATA[Brian Kim]]></dc:creator>
            <pubDate>Thu, 15 Feb 2018 14:57:21 GMT</pubDate>
            <atom:updated>2018-10-20T23:21:37.438Z</atom:updated>
            <content:encoded><![CDATA[<p>For the first two years of college, I thought I’d pursue a career as a tech investment banker. I focused on M&amp;A/IPO stories in the news and began to read through tech S-1s in my spare time.</p><p>I’m no longer interested in investment banking, but the S-1s have stuck with me to date. This is a hobby that I’ve kept to myself, and it’s been rewarding in many different ways.</p><p>I may write up a longer story on Stitch Fix’s IPO in the future; it’s my favorite (Yes, even more than Snap’s) one from last year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3b8eefe2b39" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>