<?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 Jung-Hyun Choi on Medium]]></title>
        <description><![CDATA[Stories by Jung-Hyun Choi on Medium]]></description>
        <link>https://medium.com/@kyunwoo?source=rss-50c86c4fbbe0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0LlOL-Wq1tzLCNatVXajOA.jpeg</url>
            <title>Stories by Jung-Hyun Choi on Medium</title>
            <link>https://medium.com/@kyunwoo?source=rss-50c86c4fbbe0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 06:38:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kyunwoo/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[Being Good at Agent Coding Is Just Being Good at How You Work]]></title>
            <link>https://kyunwoo.medium.com/being-good-at-agent-coding-is-just-being-good-at-how-you-work-bb42eab7cc76?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb42eab7cc76</guid>
            <category><![CDATA[programing]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Thu, 28 May 2026 09:48:00 GMT</pubDate>
            <atom:updated>2026-06-15T05:50:51.475Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Every morning, the agent re-reads the tattoos on its forearm — every note etched there is a fragment of memory a human left behind.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eccb3USMnwg4XuOmW9M27Q.png" /></figure><h3>1. The Spot Where It All Seems to Work</h3><p>A while ago, my company started covering AI agent subscriptions for employees. Everyone is applying them to their own work and trading notes. Not just developers — QA engineers, even the support team are enthusiastic. The vibe is “wait, it can do <em>this</em> much?” One product team has handed off an entire in-progress web service to an agent. (I’m a little worried, honestly.)</p><p>This is what people call <em>vibe coding</em>. A few sentences, and a working program appears. When it breaks, the agent debugs itself. Say what you want and a service materializes in front of you.</p><h3>2. The Spot Where I Hit the Wall</h3><p>I’m building a small side project these days — a kind of Jarvis from <em>Iron Man</em> that does <em>semantic</em> search across my GitHub issues, emails, and notes. It even reaches into old Jira and Mantis projects I no longer use. Ask it something vague like <em>“didn’t we have a similar issue a while back?”</em> and it actually finds it, and suggests a direction.</p><p>For that search to work, you need a vector DB, and the index inside has to stay fresh. Issues and emails change all day, so I needed a <em>scheduler</em> that periodically rebuilds the index. The agent had carried me this far, so I assumed this would be easy too.</p><blockquote><em>But the result was unexpected.</em></blockquote><p>Inside the module the agent already knew (the search server), it fixed things fine. But it didn’t notice that once the scheduler updated the index in a separate process, <em>it needed to tell the search server about it</em>. A human would have intuitively thought <em>“the index changed, the search server should know.”</em> The agent didn’t. The world of <strong>coding-by-words</strong> was supposed to have arrived. It hadn’t. (Should I be relieved? It means humans still have work to do.)</p><p>From that moment, the scales fell from my eyes. With my “just prompt a few sentences” approach, the agent couldn’t even handle <em>the simple communication between two modules</em>. So I ripped out the scheduler and simplified to a single-module design. I decided: first build a workflow that uses the agent properly, then come back and improve.</p><h3>3. Why It Stalls — The Agent Speaks in Intuition</h3><p>Why does agent coding, which seemed omnipotent, stall like this? It helps to peek under the hood.</p><p>The LLM at the agent’s core was built to mimic human thought. I find that the metaphor of <em>intuition</em> fits surprisingly well. When you chat with a friend, you say whatever comes to mind. You don’t really <em>think</em>. (Just me?) The LLM is similar — riding on learned patterns, it improvisationally appends <em>the most plausible next word</em>. It looks like logical reasoning, but at its core, it’s closer to a stream of intuition.</p><p>Intuition connects patterns inside what’s right in front of it. It’s weak at imagining <em>other processes it can’t see</em>. That’s what happened here. The search server and the scheduler are different modules, but the agent tried to solve everything from the single-module view it could see, and never reached the thought that the two needed to be linked.</p><h3>4. What’s Left Beyond the Wall</h3><p>So how do we keep the agent from running wild on intuition alone? After thinking about it for days, I landed on four things. A <em>direction</em> so the agent doesn’t get lost, a <em>promise</em> about what the work should look like, a <em>memory</em> that survives across sessions, and finally <em>a human</em> who stops to look. Let’s call them <strong>architecture, interface, memory, and human</strong>.</p><h4>Architecture — the big picture and the contract between modules</h4><p>What does the project build? What components? Tech stack? Infrastructure? How does it deploy? You need the big picture. These days a lot of this is codified as <em>styles</em> — monolithic or microservice, for instance — and picking a style first makes the details easier. Architecture is valuable in itself, but more importantly, sharing the big picture aligns collaborators, smooths communication, and gets everyone running the same way.</p><p>Collaboration with an agent is no different. We have to leave the architecture somewhere. Only then can the agent locate where this task sits within the whole, and not get lost.</p><h4><strong>Interface — defining exactly what we’re running toward</strong></h4><p>Now that the agent isn’t lost, we have to give it work. Since it moves on intuition, we need to point that intuition at the right target. The work has to be defined clearly.</p><p>A well-written prompt helps, but prompts are still words — interpretation drifts. We need something firmer. The <em>interface</em> of the deliverable: the contract between modules, the inputs and outputs of a function, the behavior of a UI. If this is fuzzy, the agent doesn’t know what to run toward.</p><p>Remember the scheduler incident. If I say “when the index changes, reflect it in the search server,” the agent interprets <em>reflect</em> however it likes. But if I write the contract between the two modules in code first, the conversation changes:</p><pre>class IndexStore(Protocol):<br>    def latest_version(self) -&gt; str: ...<br>    def reload(self, version: str) -&gt; None: ...<br><br>def run_indexing(store: IndexStore) -&gt; str:<br>    &quot;&quot;&quot;Build a new index and return its version id.<br>    Raises IndexBuildError on failure.<br>    Calling store.reload is not this function&#39;s responsibility — the caller does it.&quot;&quot;&quot;</pre><p>A signature and a few lines of docstring nail down <em>who is responsible for what</em>. Who calls reload after run_indexing, what exception bubbles up on failure — couplings that &quot;just make it work&quot; could never pin down become explicit in a single snippet of code. Only then does the agent code toward that target.</p><p>Add tests, and that interface is <em>baked into the code</em>. They act as regression checks and as a <strong>compass</strong> that pulls the agent back to the original target when long sessions blur the goal.</p><h4>Memory — the decisions and context up to now</h4><p>Human memory isn’t perfect either. Old things fade, and we keep what struck us. I can barely remember yesterday’s lunch.</p><p>The agent is one step worse. The amount it can hold is much smaller, and it fills up fast. When full, it keeps the important and summarizes the less important — and discards the rest. And <em>when a session ends, the entire accumulated context is gone</em>. Like the protagonist of <em>Memento</em>, it wakes up to a blank page.</p><p>Fortunately, the protagonist of that film left notes on his body and in photographs to bridge the forgetting. We have to build a similar apparatus. It doesn’t have to be elaborate — a human touch and well-organized documents will do. Decision records, conventions, READMEs, and the tests themselves. The decisions and context have to live outside the code, so the agent can re-read them every session.</p><p>Without this memory, the agent can <em>reverse decisions it doesn’t know were made</em>. It “cleans up” something, the <em>why</em>disappears, and a month later we fall into the same trap.</p><h4>Human — the place where someone stops to look</h4><p>No matter how well the interface is defined and how well the agent implements, at the end a human must check the result. Passing the pre-written tests is not the end. Does it behave as intended? Are there strange detours? Did something else break? If this step is skipped, the mines the agent left get buried throughout your code.</p><p>The next question is <em>when, and how much</em>. My scheduler incident is exactly this. The agent finished, said the tests were fine, and it seemed to work. (Confession: I never explicitly watched it run. I figured “scheduler kicks off indexing on a timer — how hard can it be?”) I trusted that. Much later, actually using it, I discovered indexing wasn’t really working. Indexing isn’t visible, so by the time I checked, the problem had been buried for a while.</p><p>So you need the stance that <em>anything the agent produces must pass through human eyes</em>. And for that check to work, <em>chopping the work into small pieces</em> is essential. Agents can produce big chunks in one go, but humans reviewing big chunks slip into “looks fine, probably” mode. (I do, anyway.) Match the work units to <em>what a person can review in one breath</em>, and look hard at each one. In other words, design a workflow for working with the agent. When the agent reaches an <em>ambiguous fork</em>, don’t let it decide alone — route it back to a human.</p><p>Worth pointing out: human-to-human collaboration has these <em>places to stop and look</em> everywhere. Code reviews, pair programming, walkthroughs, inspections, design reviews, QA — different eyes deliberately placed at every stage and texture. When you work with an agent, that multi-layered structure collapses onto <em>one person</em> — you. Which is exactly why you have to consciously design where, when, and what kind of human checks go in.</p><p>The agent isn’t a person. It won’t take responsibility when things go wrong. That responsibility falls entirely on the person who used it. Even agent-generated code has to be examined to the level where you can stand behind it.</p><h3>5. The Irony</h3><p>A strange thing happens here.</p><p>If you lay out those four — <em>architecture</em>, drawing a <em>contract-bearing interface</em>, leaving decisions and context in <em>documents</em> (specs, issues, wikis…), and a <em>human</em> looking at every stage (code review, QA, integration tests…) — doesn’t the list look familiar?</p><p>These are the things people have always listed when <em>humans</em> try to build good software together. Document the architecture. Break it into small reviewable pieces. Test first. Record decisions. Heard them a thousand times. Some treat them as essential, others wave them off — <em>“we don’t need that, my work hasn’t suffered without it.”</em></p><p>And honestly, in early development, you can get away without these. It’s when the system enters operation, the original developers leave, new developers arrive, customer issues come in, and someone reads the legacy code that <em>“why is this written like this?”</em> finally erupts. But among humans, somehow it gets done.</p><p>The agent doesn’t have that “somehow.” No colleague to ask, no email or issue or system record carrying the key clue. Without information, it doesn’t work. So things people used to say <em>“we don’t need that”</em> about — finally everyone’s doing them. Drawing architectures, adding tests, organizing documents.</p><blockquote><strong><em>It isn’t agents that made these things necessary. They were always necessary — we just put them off because </em>somehow it worked anyway<em>.</em></strong></blockquote><p>Look closely at what people call good practice for working with agents, and they map almost one-to-one onto good practice for working with humans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ET_1FBnc0NuS-rqACXjt0g.png" /></figure><p>Coincidence? I don’t think so. The LLM under the agent was built from human language and thought, so it makes sense that what works for human collaboration also works for the agent. The difference: the agent lacks the <em>somehow</em> that humans muddle through with. To see the agent actually work, the things that were merely recommended become <em>required</em>.</p><h3>6. So Where Now</h3><p>What we have to do now is clear. Maybe one day agents will truly do everything. Not yet. To weave today’s agents into our work, we have to <strong>think strategically about what they’re bad at, and how a human covers for it. We have to think about how humans and agents collaborate.</strong> Call it a workflow, a harness, or just <em>the way you work</em>.</p><p>Lucky for us, there’s a discipline that has spent a long time on the question <em>how do humans collaborate to build good software</em>. <strong>Software engineering.</strong> Drawing architectures, defining interfaces, recording decisions, sizing review units — all of it lives there. Since the agent was modeled on how humans think, applying our human collaboration practices to the agent may be the very key to using it well.</p><p>You don’t have to call it “software engineering.” It’s <em>just the way you usually work</em>. If that way has been running on experience and gut alone, the agent will copy the gaps verbatim. So the real question may not be <em>“how do I use the agent well?”</em> It might be — <em>“is there anything wrong with the way I work?”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb42eab7cc76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[에이전트 코딩을 잘한다는 건, 결국 내가 일하는 방식만큼입니다]]></title>
            <link>https://medium.com/devguru-blog/%EC%97%90%EC%9D%B4%EC%A0%84%ED%8A%B8-%EC%BD%94%EB%94%A9%EC%9D%84-%EC%9E%98%ED%95%9C%EB%8B%A4%EB%8A%94-%EA%B1%B4-%EA%B2%B0%EA%B5%AD-%EB%82%B4%EA%B0%80-%EC%9D%BC%ED%95%98%EB%8A%94-%EB%B0%A9%EC%8B%9D%EB%A7%8C%ED%81%BC%EC%9E%85%EB%8B%88%EB%8B%A4-f4f998d1e6d8?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4f998d1e6d8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Thu, 28 May 2026 09:38:13 GMT</pubDate>
            <atom:updated>2026-06-15T05:48:56.548Z</atom:updated>
            <content:encoded><![CDATA[<p>에이전트는 매 아침 팔뚝의 문신을 다시 읽습니다 — 거기 새겨진 메모들은, 모두 사람이 두고 간 <em>기억의 파편</em>입니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eccb3USMnwg4XuOmW9M27Q.png" /></figure><h3>1. 잘 되는 것처럼 보이는 자리</h3><p>얼마 전 회사가 직원들에게 AI 에이전트 구독 비용을 지원하기 시작했습니다. 다들 각자의 업무에 적용해 보고 경험을 나누고 있습니다. 개발자뿐 아니라 QA 엔지니어, 지원부서까지 반응이 뜨겁습니다. “이 정도까지 할 수 있는 거였나” 하는 분위기이고, 어느 개발팀은 만들고 있던 웹 서비스를 통째로 에이전트에게 맡겨 보는 시도까지 합니다. (살짝 걱정은 됩니다.)</p><p>이른바 <em>바이브 코딩</em>입니다. 말 몇 마디로 동작하는 프로그램이 뚝딱 만들어지고, 오류가 나면 에이전트가 직접 디버깅까지 해 줍니다. 원하는 걸 말하기만 하면 실제로 동작하는 서비스가 눈앞에 펼쳐집니다.</p><h3>2. 한계에 부딪힌 자리 — 제가 겪은 일</h3><p>저는 요즘 작은 사이드 프로젝트를 만들고 있습니다. 영화 아이언맨의 든든한 비서 자비스처럼 제 GitHub 이슈, 이메일, 메모를 <em>의미 기반으로</em> 검색해 주는 도구입니다. 지금은 안 쓰는 예전 Jira나 Mantis의 이슈까지 찾아냅니다. <em>“이 이슈 예전에 비슷한 내용이 있었던 것 같은데”</em> 처럼 막연하게 물어도 떡 하니 찾아주고, 해결을 위한 방향 제시까지 해 줍니다.</p><p>이런 검색이 잘 동작하려면 벡터DB가 필요하고, 그 안의 검색용 인덱스가 늘 최신이어야 합니다. 지금 이 순간에도 이슈며 메일이며 수시로 변하기 때문에 때 되면 <em>인덱스를 갱신해 주는 스케줄러</em>가 필요했습니다. 지금까지 에이전트가 잘해줬으니 이번에도 쉽게 되리라 생각했습니다.</p><blockquote><em>하지만, 결과는 예상 밖이었습니다.</em></blockquote><p>에이전트는 자기가 알고 있는 모듈(검색 서버) 안에서는 잘 고쳤습니다. 그런데 스케줄러를 별도 프로세스로 만들어 인덱스를 갱신한 뒤, 그 사실을 검색 서버에게 알려야 한다는 것은 알아채지 못했습니다. 사람이라면 <em>인덱스가 바뀌었으니 검색 서버에도 알려야겠다</em>는 생각을 직감적으로 떠올렸을 텐데, 에이전트는 거기까지 고려하지 않았습니다. <strong>말로만 코딩하는 세상</strong>이 열린 줄 알았는데, 아니었습니다. (한편으론 다행이려나요. 인간이 할 일이 아직은 남아 있다는 뜻이니까요.)</p><p>이 순간부터 콩깍지가 벗겨지듯, 에이전트의 실체가 보이기 시작했습니다. 프롬프트로 몇 줄 명령을 내리는 제 방식으로는 <em>모듈 사이의 간단한 통신 로직 하나도 제대로 다루지 못한다</em>는 것을요. 그래서 일단 스케줄러는 들어내고 단일 모듈에서만 동작하도록 단순화했습니다. <em>에이전트를 제대로 활용할 워크플로우를 먼저 갖추고, 그다음에 돌아와 다시 개선하자</em>고 마음먹었습니다.</p><h3>3. 왜 막힐까요 — 에이전트는 직감으로 말합니다</h3><p>만능이라 생각했던 에이전트 코딩이 왜 제대로 일을 하지 못하는 걸까요. 잠깐 에이전트의 속을 들여다볼 필요가 있습니다.</p><p>에이전트의 두뇌 격인 LLM은 사람의 사고를 본떠 만들어졌습니다. 저는 인간의 <em>직감</em>을 비유로 설명하면 꽤나 맞아떨어지는 구석이 있다고 생각합니다. 우리는 친구와 수다를 떨 때 머릿속에 떠오르는 말을 그때그때 내뱉습니다. 딱히 <em>생각</em>이라는 걸 거치진 않지요. (저만 그런 건 아니죠?) 비슷하게 LLM도 학습한 패턴 위에서, 지금까지 내뱉은 말을 이어 <em>가장 그럴듯한 그다음 말</em>을 즉흥적으로 붙입니다. 논리적 추론처럼 보여도, 본질은 직감의 흐름에 가깝다고 생각합니다.</p><p>직감은 눈앞에 보이는 코드 안에서 패턴을 잇습니다. 그래서 <em>보이지 않는 다른 프로세스의 존재</em>를 떠올리는 일에는 약합니다. 이번 경우도 그랬습니다. 검색 서버와 스케줄러는 서로 다른 모듈인데, 에이전트는 자기가 보고 있는 모듈 하나의 시야 안에서 직감적으로 풀려다 보니 둘 사이를 이어야 한다는 생각까진 미치지 못한 것이죠.</p><h3>4. 한계 너머에 남는 것</h3><p>그렇다면 에이전트가 직감대로 날뛰지 않게 통제하려면 무엇이 필요할까요. 여러 날 곰곰이 생각한 끝에 네 가지로 정리해 봤습니다. 에이전트가 헤매지 않게 할 <em>방향</em>, 작업의 결과를 또렷이 정해 둘 <em>약속</em>, 세션을 넘겨도 사라지지 않을 <em>기억</em>, 그리고 마지막엔 결국 멈춰 서서 들여다보는 <em>사람</em>. 각각 <strong>아키텍처, 인터페이스, 기억, 사람</strong>으로 부르겠습니다.</p><h3>아키텍처 — 큰 그림과 모듈의 약속</h3><p>프로젝트가 무엇을 만드는지, 어떤 컴포넌트로 이루어지는지, 어떤 기술 스택을 갖는지, 인프라는 무엇이 필요한지, 배포는 어떻게 진행되는지 — 큰 그림이 필요합니다. 요즘은 이런 것들이 많이 정립되어 <em>스타일</em>로 이야기되기도 합니다. 가령 모놀리식인지 마이크로서비스인지 아키텍처 스타일을 정하고 세부 사항을 그리면 더 편리합니다. 아키텍처 수립 그 자체에도 의의가 있지만, 무엇보다 큰 그림을 공유하면 여럿이 협업할 때 한곳을 바라보게 하고, 결국 의사소통이 원활해지고, 모두 같은 방향을 향해 달려갑니다.</p><p>에이전트와의 협업도 마찬가지입니다. 우리는 아키텍처를 어딘가에 남겨 둬야 합니다. 그래야 에이전트가 큰 그림 안에서 이번 작업이 <em>전체의 어디쯤인지</em> 찾을 수 있고, 헤매지 않게 할 수 있습니다.</p><h3>인터페이스 — 무엇을 향해 달릴지 또렷이 정해 두기</h3><p>에이전트가 헤매지 않게 했으니, 이제 일을 시켜야 합니다. 에이전트는 직감적으로 움직이기 때문에, 그 직감이 정확한 방향을 향하도록 할 일을 또렷이 정해 줘야 합니다.</p><p>잘 짜인 프롬프트를 제공하는 것도 좋은 방법이지만, 이건 결국 사람의 말이라 그때그때 해석이 달라질 수 있습니다. 좀 더 분명한 방법이 필요합니다. 즉, 작업물의 <em>인터페이스</em>를 또렷하게 정해 두는 것입니다. 모듈 사이의 약속, 함수의 입력과 출력, UI의 동작 같은 것들이지요. 여기가 모호하면 에이전트는 무엇을 향해 달려야 할지 모릅니다.</p><p>앞서 이야기한 스케줄러 사건을 다시 떠올려 볼까요. “인덱스가 바뀌면 검색 서버에도 반영해 줘”라고 말로 시키면, 에이전트는 그 <em>반영</em>을 자기 좋을 대로 해석합니다. 대신 두 모듈이 합의할 약속을 코드로 먼저 박아 두면 이야기가 달라집니다.</p><pre>class IndexStore(Protocol):<br>    def latest_version(self) -&gt; str: ...<br>    def reload(self, version: str) -&gt; None: ...<br><br>def run_indexing(store: IndexStore) -&gt; str:<br>    &quot;&quot;&quot;새 인덱스를 빌드한 뒤 version id를 반환한다.<br>    빌드 실패 시 IndexBuildError를 던진다.<br>    store.reload 호출은 이 함수의 책임이 아니다 - 호출자가 한다.&quot;&quot;&quot;</pre><p>시그니처와 docstring 몇 줄에 <em>누가 무엇을 책임지는지</em>가 박혀 버립니다. 스케줄러가 run_indexing을 부르고 나서 reload를 누가 호출해야 하는지, 실패 시 어떤 예외가 올라오는지 — &quot;잘 동작하게&quot;라는 말로는 절대 잡히지 않던 결합이, 코드 한 토막으로 분명해지는 셈입니다. 그제야 에이전트가 그 기준을 향해 코드를 짭니다.</p><p>여기에 테스트가 붙으면 그 인터페이스가 <em>코드 안에 박힙니다</em>. 회귀 검사로 자동 작동하면서, 동시에 작업이 길어져 처음 목표가 흐릿해질 때 에이전트를 다시 그 방향으로 끌어오는 <strong>나침반</strong>이 되어 줍니다.</p><h3>기억 — 그동안의 결정과 맥락</h3><p>사람의 기억도 완벽하지 않습니다. 오래된 일은 흐려지고, 인상 깊거나 충격받은 일을 골라서 남깁니다. 저만 해도 어제 점심 메뉴가 가물가물할 때가 많습니다.</p><p>그런데 에이전트는 한 술 더 뜹니다. 기억할 수 있는 양 자체가 훨씬 좁고, 그마저도 금세 가득 차거든요. 한도가 차면 중요한 건 남기고 덜 중요한 건 요약하고, 그마저도 아니면 버립니다. 그리고 <em>작업 세션이 끝나면 그 안에 쌓인 맥락이 통째로 사라집니다</em>. 영화 메멘토의 주인공처럼, 자고 일어나면 백지가 되는 것이지요.</p><p>다행히 영화 속 주인공은 그 망각을 이어 가기 위해 몸과 사진에 메모를 남겼습니다. 우리도 유사한 장치를 만들어야 합니다. 그렇다고 거창한 무언가가 필요한 건 아닙니다. 사람의 손길과 잘 정돈된 문서 정도면 그 기억을 충분히 대신할 수 있습니다. 의사 결정 기록, 컨벤션 문서, README, 그리고 테스트 코드 자체. 그동안의 결정과 맥락이 코드 바깥에 살아 있어야, 매 세션마다 에이전트가 그것을 다시 읽어 들일 수 있습니다.</p><p>이런 기억이 없으면 에이전트는 <em>이미 결정해 둔 것을 모르고 되돌려 버릴 수 있습니다</em>. “왜 이걸 이렇게 만들었지?” 하면서 깔끔하게 고쳐 놓으면, 그 결정의 <em>왜</em>가 사라지고 한 달 뒤 같은 함정에 다시 빠지는 것이지요.</p><h3>사람 — 마지막에 멈춰 서서 들여다보는 자리</h3><p>아무리 인터페이스를 잘 정하고, 에이전트가 알아서 구현을 해 줘도 마지막에는 사람이 결과를 반드시 확인해야 합니다. 사전에 준비된 테스트가 통과했다고 끝이 아닙니다. 의도대로 동작하는지, 이상한 우회로를 만들지는 않았는지, 다른 데가 망가지지는 않았는지 봐야 합니다. 이 단계가 빠지면 에이전트가 남겨 놓은 지뢰가 내 코드 여기저기에 묻히게 됩니다.</p><p>그다음 문제는 <em>어느 시점, 얼마만큼</em> 확인하느냐입니다. 제 스케줄러 사건이 그랬습니다. 에이전트가 구현을 완료했고, 테스트도 문제없다고 했고, 실제로도 동작하는 것 같았습니다. (고백합니다. 사실 동작하는 걸 명시적으로 보지 않았습니다. 스케줄러가 때 되면 인덱싱을 돌려 주는 간단한 작업이라 생각했고, 이 정도를 못할 리 없다 여겼습니다.) 저도 그 말을 믿었습니다. 그리고 한참 뒤 실제로 사용해 보다가, 인덱싱이 제대로 동작하지 않는다는 사실을 알게 됐습니다. 인덱싱은 눈에 잘 띄는 작업이 아니어서, 나중에 확인했을 땐 이미 문제가 한참 묻혀 있었던 것이지요.</p><p>그래서 에이전트가 해 준 작업은 항상 사람의 눈을 거쳐야 한다는 자세가 필요합니다. 그리고 이 확인이 제대로 진행되려면 <em>작업을 잘게 쪼개는 일</em>이 핵심입니다. 에이전트는 한 번에 큰 덩어리를 뽑아낼 수 있지만, 사람이 한 번에 큰 덩어리를 리뷰하다 보면 “대강 잘됐겠지” 하고 넘겨 버리기 쉽습니다. (죄송합니다. 저는 그렇습니다.) 그래서 <em>사람이 한 호흡에 들여다볼 수 있는 만큼</em>에 맞춰 작업 단위를 자르고, 매 단위마다 매의 눈으로 살피는 것이 중요합니다. 일종의 에이전트와 함께 일하는 방법, 순서, 즉 워크플로우를 짜야 한다는 뜻입니다. 에이전트가 <em>애매한 갈림길</em>을 만났을 때도 알아서 결정하게 두지 말고, 사람에게 흘러오게 해야 합니다.</p><p>여기서 한 가지 짚어 둘 게 있습니다. 사람끼리의 협업에는 이런 <em>확인의 자리</em>가 사실 도처에 깔려 있습니다. 코드 리뷰는 기본이고, 페어 프로그래밍·워크스루·인스펙션·디자인 리뷰·QA 단계까지 — 단계와 결마다 다른 사람의 눈이 촘촘히 들어가게 설계되어 있지요. 그런데 에이전트와 일할 때는 이 다층 구조가 통째로 <em>나 한 사람</em>의 어깨로 옮겨 옵니다. 그래서 더더욱, 사람이 들어갈 자리를 <em>언제·어디서·어떤 결로</em> 둘지 의식적으로 짜 둬야 합니다.</p><p>에이전트는 사람이 아니라, 일이 잘못되었을 때 책임져 주지 않습니다. 그 책임은 오롯이 에이전트를 사용한 사람의 몫입니다. 에이전트가 만들어 준 코드라도, 내가 보증할 수 있다는 자신이 들 수준까지 들여다봐야 합니다.</p><h3>5. 아이러니</h3><p>여기서 묘한 일이 벌어집니다.</p><p>방금 정리한 네 가지를 펼쳐 보면 — <em>아키텍처</em>를 그리고, 모듈 간 약속을 박아 두는 <em>인터페이스</em>를 정하고, 결정과 맥락을 <em>문서</em>에 남기고(스펙·이슈·위키처럼요), 단계마다 <em>사람</em>이 들여다본다(코드 리뷰·QA·통합 테스트처럼요) — 어디서 많이 본 목록이 아닌가요?</p><p>원래 <em>사람끼리</em> 좋은 소프트웨어를 만들 때 늘 거론되던 이야기들입니다. 아키텍처를 문서로 남기자, 작은 단위로 쪼개서 리뷰하자, 테스트를 먼저 쓰자, 결정 사항을 기록하자. 다 들어 본 이야기지요. 그런데 이를 필요하다 여기고 업무에 녹여 온 이가 있는가 하면, <em>“굳이 필요 없어. 그런 거 없어도 내가 일하는 덴 아무런 지장이 없어”</em>라며 관심 바깥으로 두는 사람도 있습니다.</p><p>그도 그럴 것이 초기 개발 단계에선 이런 것들이 없어도 문제가 크게 드러나지 않습니다. 운영 단계에 들어가 초기 개발자들은 떠나고, 새로운 개발자가 들어오고, 사용자 이슈가 접수되고 레거시 코드를 분석하다 보면 그제야 <em>“이 코드는 대체 왜 이렇게 되어 있지”</em> 하는 불평이 터져 나옵니다. 하지만 그래도 사람끼리는 어떻게든 일이 되게끔 할 수 있었습니다.</p><p>그런데 에이전트에게는 그 <em>어떻게든</em>이 통하지 않습니다. 상의할 동료도, 어딘가에 중요한 단서가 될 메일도, 이슈도, 시스템상의 기록도 없습니다. 정보를 제공하지 않으면 제대로 동작하지 않습니다. 그래서 사람끼리는 “이런 건 없어도 돼” 하던 것들을, 이제야 다들 비로소 하고 있는 것입니다. 아키텍처를 그리고, 테스트를 깔고, 문서를 정리하기 시작했습니다.</p><blockquote><strong><em>에이전트라서 이런 일들이 필요한 게 아닙니다. 원래 필요했었는데, </em>어떻게든 일이 됐었으니<em> 미뤄 둔 것이지요.</em></strong></blockquote><p>에이전트와 일할 때 좋은 방식이라고 말하는 것들을 가만히 보면, 사람 협업에서 좋은 방식이라고 권하던 것들과 거의 일대일로 대응됩니다. 이렇게 짝지어 볼 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BixArhMvwk9U0BH7PRrkyA.png" /></figure><p>이게 우연일까요. 그렇지 않다고 봅니다. 에이전트의 기반인 LLM이 사람의 언어와 사고를 본떠 만들어졌으니, 사람에게 통하던 협업 방식이 에이전트에게도 통하는 게 어찌 보면 자연스럽습니다. 다만 에이전트에게는 사람끼리 어떻게든 해내는 임기응변이 없습니다. 에이전트가 제대로 일하는 모습을 보기 위해, 원래 권장되던 일들이 비로소 <em>필수</em>가 된 것입니다.</p><h3>6. 그래서 어디로</h3><p>그래서 지금 우리가 해야 할 일은 분명합니다. 언젠가 에이전트가 정말로 모든 걸 다 해 주는 날이 올지도 모르지만, 아직은 아닙니다. 지금의 에이전트를 우리 일에 제대로 접목하려면, <strong>에이전트가 잘 못하는 게 무엇인지, 이를 사람이 어떻게 메울 수 있는지 전략을 짜야 합니다. 인간과 에이전트 간 협업 방법을 고민</strong>해야 합니다. 그것을 워크플로우로 정의하든, 하네스를 구축하든, 그냥 <em>일하는 방식</em>을 정의하든 말입니다.</p><p>그런데 다행히도 <em>사람이 어떻게 협업해서 좋은 소프트웨어를 만드는가</em> — 이 질문을 오랫동안 다듬어 온 학문이 있습니다. <strong>소프트웨어 공학</strong>입니다. 아키텍처를 그리고, 인터페이스를 정하고, 결정을 기록하고, 리뷰 단위를 쪼개는 그 모든 이야기가 거기 담겨 있습니다. 에이전트가 사람이 생각하는 방법을 본떠 만들어졌으니, 사람 간의 협업 방식을 에이전트에 적용하는 것이 결국 <em>에이전트를 잘 쓰는 열쇠</em>가 되지 않을까요.</p><p>소프트웨어 공학이라고 거창하게 부르지 않아도 좋습니다. <em>내가 평소에 일하는 방식</em> 그 자체죠. 만약 그 방식이 경험과 감으로만 굴려 온 것이라면, 에이전트는 그 빈틈을 그대로 베껴 씁니다. 그러니 진짜 질문은 <em>“에이전트를 어떻게 잘 쓸까”</em>가 아닐지도 모릅니다. 오히려 — <em>“내가 일하는 방식에는 이상이 없나요?”</em> 일지도 모릅니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4f998d1e6d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devguru-blog/%EC%97%90%EC%9D%B4%EC%A0%84%ED%8A%B8-%EC%BD%94%EB%94%A9%EC%9D%84-%EC%9E%98%ED%95%9C%EB%8B%A4%EB%8A%94-%EA%B1%B4-%EA%B2%B0%EA%B5%AD-%EB%82%B4%EA%B0%80-%EC%9D%BC%ED%95%98%EB%8A%94-%EB%B0%A9%EC%8B%9D%EB%A7%8C%ED%81%BC%EC%9E%85%EB%8B%88%EB%8B%A4-f4f998d1e6d8">에이전트 코딩을 잘한다는 건, 결국 내가 일하는 방식만큼입니다</a> was originally published in <a href="https://medium.com/devguru-blog">데브구루 기술 블로그</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AMD & Nvidia eGPUs Now Work on Mac — What DriverKit Actually Changed]]></title>
            <link>https://kyunwoo.medium.com/amd-nvidia-egpus-now-work-on-mac-what-driverkit-actually-changed-96a354ce9237?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/96a354ce9237</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 07:39:04 GMT</pubDate>
            <atom:updated>2026-04-16T07:39:04.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="출처: https://x.com/__tinygrad__/status/2039213719155310736/photo/1" src="https://cdn-images-1.medium.com/max/1024/0*9-Sz1xj_LZWEPVNW" /><figcaption><a href="https://x.com/__tinygrad__/status/2039213719155310736/photo/1">https://x.com/__tinygrad__/status/2039213719155310736/photo/1</a></figcaption></figure><p><strong>On April 1, 2026</strong>, a short post from Tiny Corp (@tinygrad), led by George Hotz, went viral across AI developer communities:</p><blockquote><em>“If you have a Thunderbolt or USB4 eGPU and a Mac, today is the day you’ve been waiting for! Apple finally approved our driver for both AMD and NVIDIA.”</em></blockquote><p>— @__tinygrad__, April 1, 2026 [<a href="https://x.com/__tinygrad__/status/2039213719155310736?s=20">View original</a>]</p><p>Given the date, many assumed it was an April Fool’s joke. It wasn’t. Apple had officially signed a third-party external GPU driver — something widely considered impossible since the Apple Silicon transition.</p><h3>Why This Was So Hard</h3><p>When Apple transitioned to Apple Silicon, it effectively cut off the entire legacy GPU driver stack. Thunderbolt eGPUs worked reasonably well on Intel Macs, but since M1, external GPU support became practically nonexistent. The Nvidia situation is even older — Apple had been refusing Nvidia driver approvals since macOS Mojave in 2018.</p><p>Even if someone managed to build a driver, running it on macOS requires Apple’s <strong>official code signature</strong>. Tiny Corp initially ran experiments with SIP (System Integrity Protection) disabled, but with Apple’s official signing, regular users can now use it without disabling SIP at all.</p><p>Two things were required: the technical implementation, and Apple’s official signature. Of the two, getting Apple to <strong>sign a third-party driver</strong> is what makes this moment significant.</p><h3>What DriverKit Made Possible</h3><p>Apple introduced <strong>DriverKit</strong> in 2019 to address the structural limitations of kernel extensions (kexts). The key difference is where drivers run:</p><pre>Legacy kext approach<br>Runs directly in kernel space<br>→ Driver bugs can crash the entire system (kernel panic, etc.)<br>→ Distributable with just code signing + notarization — no separate Apple approval needed<br><br>DriverKit approach<br>Runs in user space, isolated from the kernel<br>→ Eliminates the structural risks of kexts<br>→ Cannot be distributed freely - requires explicit Entitlement approval from Apple</pre><p>DriverKit provides classes for handling PCIe devices (IOPCIFamily, etc.). Since Thunderbolt internally tunnels PCIe, an eGPU is ultimately a PCIe device. Tiny Corp used this architecture to implement a driver that initializes and controls AMD and Nvidia GPUs as compute devices on macOS.</p><h3>How Would You Build This?</h3><p>If you were to implement this driver yourself, where would you start? There are two distinct layers to think about.</p><h3>The PCIe DriverKit Layer</h3><p>Controlling an eGPU via DriverKit starts with understanding PCIe bus fundamentals. BAR (Base Address Register) mapping, device enumeration, and DMA configuration are all within the documented territory of PCI-SIG’s public specifications.</p><p>The harder part comes next. Internal GPU register maps and initialization sequences are not publicly documented by vendors. Since TinyGPU’s driver source is closed, we can only infer:</p><ul><li><strong>AMD</strong>: The amdgpu driver is in the Linux kernel mainline with direct AMD contributions, and register information is effectively public through kernel source headers. Tiny Corp likely referenced this.</li><li><strong>Nvidia</strong>: Two potential references exist — the open-gpu-kernel-modules released in 2022, and the nouveau driver built from years of community reverse engineering. Which was used, if either, remains unknown.</li></ul><h3>The Compute API Layer</h3><p>Getting the GPU recognized by DriverKit isn’t enough. You still need a compute API layer to actually run workloads. The approach differs significantly by vendor.</p><p><strong>AMD</strong> uses <strong>HIP/ROCm</strong>, an open-source compute API built as a CUDA alternative. Since tinygrad already supports the HIP backend, macOS support is handled through a script (setup_hipcomgr_osx.sh) that installs a lightweight ported version of the HIP compiler (hipcomgr) — ROCm itself has no official macOS support.</p><p><strong>Nvidia</strong> is more complicated. CUDA is a closed, proprietary library. Running it natively on macOS would require reverse engineering the driver interface — a substantial undertaking. Tiny Corp sidestepped this entirely by running the CUDA runtime inside a Linux environment within a Docker container. A pragmatic choice that leverages the existing CUDA ecosystem without reverse engineering.</p><p>What Tiny Corp actually built:</p><pre>[PCIe DriverKit Layer]<br>PCIe initialization        → Standard spec implementation<br>AMD GPU register control   → Likely references amdgpu open source<br>Nvidia GPU register control → Likely references open-gpu-kernel-modules or nouveau<br>Full integration           → Connected on top of macOS DriverKit<br><br>[Compute API Layer]<br>AMD    → HIP/ROCm backend (hipcomgr, lightweight macOS port)<br>Nvidia → Linux CUDA runtime inside Docker (reverse engineering bypassed)<br><br>[Common]<br>Apple signature → Entitlement request and approval process</pre><p>From first experiments in May 2025 to receiving Apple’s signature in March 2026 — about 10 months. Whether the technical implementation or the Apple Entitlement approval process took longer, both were clearly non-trivial.</p><blockquote><em>💡 </em><strong><em>Practical note</em></strong><em><br>DriverKit Entitlement approval has historically taken six months or more through Apple’s web portal review process. Starting with Xcode 15, some Entitlements can be handled directly within Xcode, shortening the process. For driver developers, this is a welcome change.</em></blockquote><h3>What Still Doesn’t Work</h3><p>The PCIe DriverKit layer and compute API layer are in place. So why doesn’t game acceleration or external display output work?</p><p>Display output on macOS requires APIs like Metal. Implementing those in a driver would require DriverKit to expose display driver families — which Apple has not made public. Third parties simply have no path to implement it, even if they wanted to.</p><p>There’s also a hard physical ceiling: Thunderbolt 4’s bandwidth (40 Gbps) is roughly 1/6 of desktop PCIe x16 (256 Gbps). This affects both model loading and inference throughput. How practical the performance is compared to a full PCIe bandwidth environment will need to be measured with actual benchmarks.</p><p>Supported requirements: macOS 12.1 or later, Thunderbolt 3/4 or USB4, AMD RDNA3 or newer, Nvidia Ampere (RTX 30 series) or newer.</p><h3>What This Changes</h3><p>This approval doesn’t mean Apple and Nvidia have reconciled. This is Tiny Corp’s driver — entirely unrelated to an official Nvidia driver. What it does prove, for the first time, is that a third-party developer can receive an official Apple signature for a compute accelerator driver through DriverKit.</p><p>It started with a GPU. But NPUs, FPGAs, and custom AI accelerators could follow the same path.</p><p>It’s also worth noting the timing: Mac Pro was quietly discontinued around the same period. Apple may be closing the door on high-performance desktop hardware while opening an official driver path for external compute accelerators.</p><h3>What This Means for Driver Developers</h3><p>Apple has officially deprecated kexts and strongly recommends migrating driver development to DriverKit. DriverKit replacement families are already available for the major areas kexts once covered — USB devices, audio interfaces, network adapters. The TinyGPU case shows this can extend to PCIe devices and, by extension, any external compute device connected via Thunderbolt.</p><p>This matters more in the context of AI. While the conversation around AI agents, LLMs, and AI-native applications continues to accelerate, Gartner forecasts that 40% of enterprise applications will embed AI agents by the end of 2026. For those agents to actually work, the infrastructure layer — GPU efficiency, driver stacks, compute accelerators — has to be in place first. As more attempts emerge to connect AI accelerators to Macs, DriverKit-based driver development experience will become increasingly valuable.</p><p>As someone who works in driver development professionally, this case raised two thoughts: one about the possibilities ahead for what we can build in the AI era, and another about the frustration of learning about this shift through someone else’s blog post rather than seeing it first. It’s a reminder to track these signals earlier — and ideally, to be the ones setting them.</p><h3>References</h3><ul><li>Tiny Corp (@<strong>tinygrad</strong>), X, April 1, 2026. <a href="https://x.com/__tinygrad__/status/2039213719155310736">https://x.com/__tinygrad__/status/2039213719155310736</a></li><li>Tom’s Hardware, “Apple approves drivers that let AMD and Nvidia eGPUs run on Mac”, April 5, 2026. <a href="https://www.tomshardware.com/pc-components/gpu-drivers/apple-approves-drivers-that-let-amd-and-nvidia-egpus-run-on-mac-software-designed-for-ai-though-and-not-built-for-gaming">https://www.tomshardware.com/pc-components/gpu-drivers/apple-approves-drivers-that-let-amd-and-nvidia-egpus-run-on-mac-software-designed-for-ai-though-and-not-built-for-gaming</a></li><li>Apple Developer Documentation, “DriverKit”. <a href="https://developer.apple.com/documentation/driverkit">https://developer.apple.com/documentation/driverkit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96a354ce9237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mac에 AMD·Nvidia eGPU가 연결됐다 — TinyGPU, 드라이버 개발자 관점으로 뜯어보기]]></title>
            <link>https://medium.com/devguru-blog/mac%EC%97%90-amd-nvidia-egpu%EA%B0%80-%EC%97%B0%EA%B2%B0%EB%90%90%EB%8B%A4-tinygpu-%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EA%B0%9C%EB%B0%9C%EC%9E%90-%EA%B4%80%EC%A0%90%EC%9C%BC%EB%A1%9C-%EB%9C%AF%EC%96%B4%EB%B3%B4%EA%B8%B0-f5afb0704452?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5afb0704452</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 09:11:08 GMT</pubDate>
            <atom:updated>2026-04-16T07:36:23.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="출처: https://x.com/__tinygrad__/status/2039213719155310736/photo/1" src="https://cdn-images-1.medium.com/max/1024/0*9-Sz1xj_LZWEPVNW" /><figcaption>출처: <a href="https://x.com/__tinygrad__/status/2039213719155310736/photo/1">https://x.com/__tinygrad__/status/2039213719155310736/photo/1</a></figcaption></figure><p><strong>2026년 4월 1일</strong>, AI 개발자 커뮤니티에서 흥미로운 소식이 퍼졌다. George Hotz가 이끄는 Tiny Corp(@tinygrad)이 X(트위터)에 짤막한 글을 올렸다.</p><blockquote><em>“If you have a Thunderbolt or USB4 eGPU and a Mac, today is the day you’ve been waiting for! Apple finally approved our driver for both AMD and NVIDIA.”</em></blockquote><p>— @__tinygrad__, 2026년 4월 1일 [<a href="https://x.com/__tinygrad__/status/2039213719155310736?s=20">원문 보기</a>]</p><p>날짜가 4월 1일이라 처음엔 만우절 농담인가 싶었지만, 실제였다. Apple이 서드파티 개발사의 외장 GPU 드라이버를 공식 서명한 것이다. Apple Silicon 전환 이후 사실상 불가능하다고 여겨졌던 일이었다.</p><h3>왜 이게 어려웠나</h3><p>Apple Silicon으로 전환하면서 Apple은 기존 GPU 드라이버 스택을 통째로 끊어냈다. Intel Mac 시절에는 Thunderbolt eGPU가 꽤 자연스럽게 동작했지만, M1 이후로는 외부 GPU 활용이 사실상 불가능해졌다. Nvidia의 경우는 더 오래된 문제다. macOS Mojave(2018년)부터 이미 드라이버 승인이 거부된 상태였다.</p><p>설령 누군가 드라이버를 만들더라도, macOS에서 드라이버를 실행하려면 Apple의 <strong>공식 서명</strong>이 필요하다. Tiny Corp도 초기에는 SIP(System Integrity Protection)를 비활성화한 상태에서 실험을 진행했고, 이번에 Apple의 공식 서명을 받으면서 일반 사용자도 SIP 해제 없이 사용할 수 있게 됐다.</p><p>기술적 구현과 Apple의 공식 서명, 두 가지가 모두 필요한 작업이었다. 그 중에서도 Apple이 서드파티 드라이버에 <strong>공식 서명을 내줬다</strong>는 점이 이번 사건을 특별하게 만드는 부분이다.</p><h3>DriverKit이 열어준 가능성</h3><p>Apple은 커널 익스텐션(kext) 방식의 구조적 한계를 보완하기 위해 <strong>DriverKit</strong>을 2019년에 도입했다. 핵심 차이는 실행 공간이다.</p><pre>기존 kext 방식<br>커널 공간(Kernel Space)에서 직접 실행<br>→ 드라이버 오류가 시스템 전체에 전파 (커널 패닉 등)<br>→ 코드 서명 + 공증(Notarization)만으로 Apple 별도 승인 없이 배포 가능<br><br>DriverKit 방식<br>사용자 공간(User Space)에서 격리 실행<br>→ kext의 구조적 문제를 해결 - 드라이버 오류가 시스템 전체로 전파되지 않음<br>→ 누구나 배포할 수 없고, Entitlement를 Apple에 신청해 명시적으로 승인받아야 배포 가능</pre><p>DriverKit은 PCIe 장치를 다루는 클래스(IOPCIFamily 등)를 제공한다. Thunderbolt는 내부적으로 PCIe를 터널링하는 방식이므로, eGPU도 결국 PCIe 장치다. Tiny Corp은 이 구조를 활용해 AMD와 Nvidia GPU를 macOS 위에서 컴퓨트 장치로 초기화하고 제어하는 드라이버를 구현했다.</p><h3>내가 직접 구현한다면?</h3><p>만약 이 드라이버를 직접 구현한다면 어디서부터 시작해야 할까. 크게 두 가지 레이어로 나눠서 생각할 수 있다.</p><h3>PCIe DriverKit 구현 관점</h3><p>eGPU를 DriverKit으로 제어하려면 PCIe 버스 표준에 대한 이해가 먼저다. BAR(Base Address Register) 매핑, 장치 열거, DMA 설정은 PCI-SIG가 공개한 표준 스펙 범위로, 문서화된 영역이다.</p><p>문제는 그 다음이다. GPU 내부 레지스터 맵과 초기화 시퀀스는 벤더가 공식 datasheet로 공개하지 않는 영역이다. TinyGPU 드라이버 소스가 비공개라 실제로 어떻게 처리했는지 확인할 방법은 없지만, 나름대로 추론해보면:</p><ul><li><strong>AMD</strong>: amdgpu 드라이버가 AMD 직접 기여로 Linux 커널 메인라인에 포함되어 있고, 레지스터 정보가 커널 소스 헤더에 사실상 공개되어 있다. 이를 참조했을 가능성이 높다.</li><li><strong>Nvidia</strong>: 2022년 공개한 open-gpu-kernel-modules와 커뮤니티가 오랜 리버스엔지니어링으로 축적한 nouveau 드라이버가 존재한다. 어느 쪽을 참조했는지, 혹은 별도 방법을 택했는지는 알 수 없다.</li></ul><h3>컴퓨트 API 레이어 구현 관점</h3><p>GPU를 DriverKit으로 인식했다고 해서 끝이 아니다. 그 위에서 실제로 연산을 돌리려면 컴퓨트 API 레이어가 필요하다. 이 부분도 벤더별로 접근 방식이 크게 다르다.</p><p><strong>AMD</strong>는 CUDA의 대항마로 만든 오픈소스 컴퓨트 API인 <strong>HIP/ROCm</strong>을 사용한다. tinygrad는 이미 HIP 백엔드를 지원하고 있어서, macOS에서도 HIP 컴파일러(hipcomgr)를 설치하는 스크립트(setup_hipcomgr_osx.sh)로 비교적 단순하게 처리된다. 단, ROCm 자체는 macOS를 공식 지원하지 않으므로 hipcomgr는 별도로 포팅된 경량 버전이다.</p><p><strong>Nvidia</strong>는 다르다. CUDA는 Nvidia의 폐쇄 독점 라이브러리로, macOS에서 네이티브로 구동하려면 드라이버 인터페이스부터 역공학이 필요하다. 이는 실제로 큰 공수다. Tiny Corp은 이 역공학을 우회하기 위해 Docker 컨테이너 안 Linux 환경에서 CUDA 런타임을 그대로 실행하는 방법을 택했다. 역공학 없이 기존 CUDA 생태계를 그대로 활용하는 실용적인 선택이다.</p><p>결국 Tiny Corp이 실제로 한 것은:</p><pre>[PCIe DriverKit 레이어]<br>PCIe 초기화          → 표준 스펙 구현<br>AMD GPU 레지스터 제어 → 추정: amdgpu 오픈소스 참조<br>Nvidia GPU 레지스터 제어 → 추정: open-gpu-kernel-modules 또는 nouveau 참조<br>전체 통합            → macOS DriverKit 위에 연결<br><br>[컴퓨트 API 레이어]<br>AMD  → HIP/ROCm 백엔드 (hipcomgr macOS 경량 포팅)<br>Nvidia → Docker 안 Linux CUDA 런타임 실행 (역공학 우회)<br>[공통]<br>Apple 서명 획득 → Entitlement 신청 및 승인 프로세스</pre><p>2025년 5월 첫 실험을 시작해 2026년 3월 서명을 받기까지 약 10개월이 걸렸다. 기술 구현과 Apple Entitlement 승인 프로세스 중 어느 쪽이 더 긴 시간을 차지했는지는 알 수 없지만, 둘 다 만만치 않은 과정이었을 것이다.</p><blockquote><em>💡 </em><strong><em>실무 노트</em></strong><em><br>DriverKit Entitlement 발급은 기존에는 웹 포털을 통한 신청·심사 방식으로 반년 이상 걸리는 경우가 많았다. Xcode 15부터 일부 Entitlement는 Xcode 내에서 직접 처리할 수 있게 되면서 절차가 단축되고 있다. 드라이버 개발사 입장에서는 반가운 변화다.</em></blockquote><h3>아직 구현되지 않은 것들</h3><p>PCIe DriverKit 레이어와 컴퓨트 API 레이어까지는 됐다. 그렇다면 게임 가속이나 외부 디스플레이 출력은 왜 안 될까.</p><p>macOS가 그래픽/디스플레이 출력을 위해 요구하는 Metal API와 같은 API들이 있다. 이러한 API를 드라이버에서 구현하려면 DriverKit 프레임워크에서 디스플레이 드라이버 관련 패밀리를 제공해야 하는데, 현재는 공개되어 있지 않다. 서드파티가 구현하고 싶어도 할 수 없는 구조다.</p><p>Thunderbolt 4의 대역폭(40 Gbps)이 데스크탑 PCIe x16(256 Gbps)의 약 1/6 수준이라는 물리적 한계도 있다. 이 한계는 모델 로딩 단계는 물론 추론 성능에도 영향을 미친다. PCIe 풀 대역폭 환경과 비교했을 때 어느 정도 실용적인 성능이 나오는지는 실제 벤치마크로 판단해야 한다.</p><p>지원 환경은 macOS 12.1 이상, Thunderbolt 3/4 또는 USB4 포트를 갖춘 기기이며, GPU는 AMD RDNA3 이상, Nvidia Ampere(RTX 30) 이상이 호환된다.</p><h3>이 사건이 남긴 것</h3><p>이번 승인은 Apple과 Nvidia가 화해했다는 의미가 아니다. Tiny Corp이 만든 드라이버이고 Nvidia 공식 드라이버와는 무관하다. 그럼에도 macOS에서 서드파티 개발사가 DriverKit을 통해 컴퓨트 가속기 드라이버를 공식 서명받을 수 있다는 것이 처음으로 증명됐다. GPU로 시작했지만, 앞으로 NPU, FPGA, 커스텀 AI 가속기들이 같은 경로를 밟을 수 있다는 의미다.</p><p>Mac Pro가 조용히 단종된 시점과 맞물린다는 것도 흥미롭다. Apple이 고성능 데스크탑 라인을 접는 대신, 외부 컴퓨트 가속기를 위한 공식 드라이버 경로를 열어준 셈이다.</p><h3>드라이버 개발자로서 본 시사점</h3><p>Apple은 kext를 deprecated로 선언하고, 대부분의 드라이버 개발을 DriverKit으로 전환할 것을 공식 권고하고 있다. USB 장치, 오디오 인터페이스, 네트워크 어댑터 등 kext가 담당하던 주요 영역에 이미 DriverKit 대체 패밀리가 제공되고 있다. 이번 TinyGPU 사례는 PCIe 장치, 나아가 Thunderbolt로 연결되는 외장 컴퓨트 장치까지 그 범위가 넓어질 수 있음을 보여준다.</p><p>이 흐름은 AI 시대와 맞물려 더 큰 의미를 갖는다. AI 에이전트, LLM, AI-Native 애플리케이션 같은 상위 레이어의 논의가 뜨겁지만, 실제로 Gartner는 2026년 말까지 기업 애플리케이션의 40%에 AI 에이전트가 내장될 것으로 전망하고 있다. 에이전트가 실제로 작동하려면 GPU 효율, 드라이버 스택, 컴퓨트 가속기 같은 인프라 레이어가 먼저 갖춰져야 한다. 앞으로 AI 가속기를 Mac에 연결하려는 시도들이 이어질 때, DriverKit 기반의 드라이버 개발 경험은 점점 더 가치 있는 자산이 될 것이다.</p><p>드라이버 개발을 전문으로 하는 입장에서 이번 사례를 접하며 두 가지 생각이 들었다. 하나는 AI 시대에 우리가 수행할 수 있는 역할에 대한 가능성이고, 다른 하나는 이러한 흐름을 타사의 포스팅을 통해 뒤늦게 인지했다는 점에서의 아쉬움이다. 이번 일을 계기로 관련 기술 흐름을 보다 선제적으로 파악하고, 나아가 주도할 필요가 있다는 자극을 받았다.</p><h3>참고</h3><ul><li>Tiny Corp (@tinygrad), X, 2026년 4월 1일. <a href="https://x.com/__tinygrad__/status/2039213719155310736">https://x.com/__tinygrad__/status/2039213719155310736</a></li><li>Tom’s Hardware, “Apple approves drivers that let AMD and Nvidia eGPUs run on Mac”, 2026년 4월 5일. <a href="https://www.tomshardware.com/pc-components/gpu-drivers/apple-approves-drivers-that-let-amd-and-nvidia-egpus-run-on-mac-software-designed-for-ai-though-and-not-built-for-gaming">https://www.tomshardware.com/pc-components/gpu-drivers/apple-approves-drivers-that-let-amd-and-nvidia-egpus-run-on-mac-software-designed-for-ai-though-and-not-built-for-gaming</a></li><li>Apple Developer Documentation, “DriverKit”. <a href="https://developer.apple.com/documentation/driverkit">https://developer.apple.com/documentation/driverkit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5afb0704452" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devguru-blog/mac%EC%97%90-amd-nvidia-egpu%EA%B0%80-%EC%97%B0%EA%B2%B0%EB%90%90%EB%8B%A4-tinygpu-%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EA%B0%9C%EB%B0%9C%EC%9E%90-%EA%B4%80%EC%A0%90%EC%9C%BC%EB%A1%9C-%EB%9C%AF%EC%96%B4%EB%B3%B4%EA%B8%B0-f5afb0704452">Mac에 AMD·Nvidia eGPU가 연결됐다 — TinyGPU, 드라이버 개발자 관점으로 뜯어보기</a> was originally published in <a href="https://medium.com/devguru-blog">데브구루 기술 블로그</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[드라이버 개발자도 몰랐던 레지스트리의 두 얼굴 — 흑백 레지스트리]]></title>
            <link>https://medium.com/devguru-blog/%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EA%B0%9C%EB%B0%9C%EC%9E%90%EB%8F%84-%EB%AA%B0%EB%9E%90%EB%8D%98-%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC%EC%9D%98-%EB%91%90-%EC%96%BC%EA%B5%B4-%ED%9D%91%EB%B0%B1-%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC-b371b9f809ed?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b371b9f809ed</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 06:32:52 GMT</pubDate>
            <atom:updated>2026-03-27T07:19:18.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wEOWYrlSZWd-XUMPpp8aw.png" /></figure><p>저희 Devguru는 Windows 커널 드라이버 개발로 시작해 성장해왔지만, 시대의 변화에 맞춰 이제는 다양한 소프트웨어 영역으로 무대를 넓혀가고 있습니다. 다만 그 출발점이 드라이버 개발이었던 만큼, Windows 드라이버 생태계의 변화는 여전히 저희에게 중요한 의미를 갖습니다.</p><h3>요즘 드라이버 개발자들의 숙제 — 드라이버 패키지 아이솔레이션</h3><p>최근 Microsoft는 드라이버 패키지 아이솔레이션(Driver Package Isolation) 을 강력히 권장하고 있고, 요건은 갈수록 엄격해지고 있습니다. Windows 11 25H2 HLK부터는 아이솔레이션 규칙 점검을 위해 InfVerif /h라는 도구가 WHCP(Windows Hardware Compatibility Program) 인증 과정에서 자동으로 실행됩니다.</p><p>핵심 아이디어는 단순합니다.</p><blockquote><em>드라이버는 자신에게 격리된 공간만 사용해야 한다.</em></blockquote><p>파일 시스템이라면 Driver Store 외부의 하드코딩된 경로를 쓰면 안 됩니다. 레지스트리도 마찬가지입니다. 절대 경로를 직접 쓰는 대신, 드라이버 패키지 단위로 격리된 공간만을 사용해야 합니다.</p><p>이런 방향을 Microsoft가 추진하는 배경에는 몇 가지 이유가 있다고 생각합니다. 드라이버가 자신의 영역 밖을 침범하지 못하게 막아 보안성을 높이고, Windows Update를 통해 드라이버 패키지를 더 쉽게 배포하고 교체할 수 있게 하는 것이 대표적입니다. 장기적으로는 Microsoft Store를 통한 드라이버 배포를 염두에 둔 포석이 아닐까 싶기도 합니다. 실제로 프린터 드라이버 분야에서는 이 흐름이 이미 현실화되고 있습니다. Microsoft는 2026년부터 신규 프린터 모델에 대해 기존 V3/V4 드라이버 대신 IPP 클래스 드라이버 또는 Microsoft Store를 통해 배포되는 PSA(Print Support App)를 사용하도록 정책을 전환했습니다. 범용 드라이버까지 이 방향으로 확장될지는 미지수지만, 선례로는 충분히 참고할 만합니다.</p><p>그 격리된 레지스트리 공간을 여는 API가 바로 IoOpenDriverRegistryKey입니다.</p><p>마침 저희 개발팀은 이 주제로 내부 세미나를 열었습니다. 팀원이 직접 발표를 준비해서 개념부터 실제 적용 방법까지 정리해 공유하는 자리였습니다.</p><h3>IoOpenDriverRegistryKey와 이상한 이름 하나</h3><p>세미나에서 IoOpenDriverRegistryKey를 설명하던 중, 이 함수에 넘기는 DRIVER_REGKEY_TYPE enum이 화면에 올라왔습니다.</p><pre>typedef enum _DRIVER_REGKEY_TYPE {<br>    DriverRegKeyParameters,            // INF가 설치한 파라미터 — 읽기 전용<br>    DriverRegKeyPersistentState,       // 드라이버 전용 런타임 상태 — 쓰기 가능<br>    DriverRegKeySharedPersistentState  // 유저모드와 공유 가능한 런타임 상태<br>} DRIVER_REGKEY_TYPE;</pre><p>발표자는 값 하나하나 짚어가며 설명했습니다. 그런데 두 번째 값인 DriverRegKeyPersistentState라는 이름에서 발표가 잠깐 멈췄습니다.</p><h3>“레지스트리가 원래 영구적인데, 왜 Persistent야?”</h3><p>드라이버 경험이 많은 팀장이 손을 들었습니다. 직감적으로 뭔가 이상하다 느낀 모양이었습니다.</p><blockquote><em>“레지스트리는 원래 재부팅해도 유지되는 거 아닌가요? 그런데 굳이 왜 Persistent라고 이름 붙인 거죠?”</em></blockquote><p>발표자도 명확하게 답하지 못했습니다. 솔직히 말하면, 드라이버 바닥에서 오래 있던 저도 동일한 의문을 내심 가지고 있었습니다. 나중에 찾아봐야지 싶었던 찰나, 팀장이 먼저 질문을 던진 것이었죠.</p><p>평소에 다루는 레지스트리 키는 모두 시스템이 꺼져도 디스크에 살아남습니다. “레지스트리가 저장이 안 될 수도 있단 말인가?” 하는 의문이 남았습니다.</p><p>그래서 발표 중 몰래 핸드폰을 열어 찾아봤습니다.</p><h3>레지스트리에는 ‘휘발성 키’가 있습니다</h3><p>답은 생각보다 가까운 곳에 있었습니다. IoOpenDriverRegistryKey를 설명하는 Microsoft 공식 문서 중 이런 문장이 있었습니다.</p><blockquote>“The registry keys opened by this routine are nonvolatile.”</blockquote><p>IoOpenDriverRegistryKey가 여는 키는 non-volatile이라고 명시하고 있었습니다. 즉, Persistent는 &quot;비휘발성&quot;을 뜻하는 의도된 이름이었습니다.</p><p>레지스트리 키에는 Volatile(휘발성)과 Stable(비휘발성) 두 종류가 있습니다.</p><p>순간적으로 ‘아 맞다, 레지스트리도 휘발되는 특성이 있었지!’ 하는 생각이 스쳐 지나갔습니다. Volatile 키는 드라이버 개발이든 애플리케이션 개발이든 자주 쓰이지 않다 보니 기억 어딘가로 밀려나 있었던 것 같습니다. 이번 질문이 그걸 다시 꺼내게 만들었습니다.</p><h3>Volatile Key — 메모리에만 사는 레지스트리</h3><p>ZwCreateKey 또는 RegCreateKeyEx를 호출할 때 REG_OPTION_VOLATILE 플래그를 전달하면, 그 키는 디스크에 기록되지 않습니다. 커널 메모리에만 존재하며, 시스템이 종료되면 사라집니다.</p><p>이러한 키는 일반 도구로는 만들 수 없습니다. regedit, reg.exe, PowerShell 기본 cmdlet 모두 Volatile 키를 생성하는 옵션을 제공하지 않습니다. RegCreateKeyEx API를 직접 호출해야 합니다.</p><p>일반 애플리케이션 개발자에게는 낯선 개념이지만, 운영체제 내부적으로는 꽤 요긴하게 활용되고 있습니다.</p><ul><li>HKCU\Volatile Environment — 로그온 세션별 환경변수(USERNAME, SESSIONNAME 등). 로그오프하면 사라집니다.</li><li>HKLM\HARDWARE — 부팅마다 하드웨어 감지 결과로 재생성됩니다. regedit에서 보이지만 디스크에 대응하는 파일이 없습니다.</li><li>PnP Manager의 LogConf 키 — 런타임 장치 정보를 저장할 때 Volatile 키를 활용합니다.</li></ul><p>리눅스에도 비슷한 개념이 있습니다. /proc은 실제 파일이 아니라 커널이 런타임에 동적으로 생성하는 가상 파일 시스템(procfs)으로, 프로세스 정보나 시스템 상태를 파일처럼 노출합니다. Volatile 키도 마찬가지로, 형식은 일반 레지스트리 키와 동일하지만 그 내용은 런타임에만 존재합니다.</p><h3>어디에나 만들 수 있습니다, 하지만 규칙이 있습니다</h3><p>Volatile 키는 레지스트리 트리의 거의 어느 위치에나 생성할 수 있습니다. 단, 부모-자식 관계에 엄격한 규칙이 하나 있습니다.</p><ul><li>Stable 부모 아래, Volatile 자식 생성 `<strong>허용`</strong></li><li>Volatile 부모 아래, Volatile 자식 생성 `<strong>허용`</strong></li><li>Volatile 부모 아래, Stable 자식 생성 `<strong>오류 발생`</strong></li></ul><p>부모는 재부팅 시 사라지는데 자식만 덩그라니 디스크에 남는 건 직관적으로도 이상합니다. Windows는 이를 구조적으로 허용하지 않도록 설계되어 있습니다.</p><p>한 가지 주의할 함정이 있습니다. REG_OPTION_VOLATILE로 긴 경로의 키를 한 번에 생성하면, 그 사이의 중간 부모 키들도 자동으로 Volatile로 생성됩니다. 이후 그 경로 아래에 Stable 키를 만들려 하면 STATUS_CHILD_MUST_BE_VOLATILE로 조용히 실패합니다. Raymond Chen(The Old New Thing)도 이 함정을 주제로 <a href="https://devblogs.microsoft.com/oldnewthing/20170525-00/?p=96225">글을 쓴 적 있습니다</a>.</p><h3>커널은 어떻게 구분할까요</h3><p>여기서 한 가지 의문이 생겼습니다. Volatile 키와 Stable 키가 같은 트리 안에 뒤섞여 있다면, 재부팅 시 커널은 어떻게 Volatile 키만 골라서 없애는 걸까요?</p><p>파고들어 봤더니, 메커니즘은 생각보다 단순했습니다.</p><pre>[ZwCreateKey(..., REG_OPTION_VOLATILE)]<br>                 │<br>                 ▼<br>        Parent KEY_NODE (in Hive H)<br>                 │<br>        (Hive = H 그대로 유지)<br>                 │<br>                 ▼<br>        ┌──────────────────────────┐<br>        │        Hive H            │<br>        │                          │<br>        │  Storage[0]              │  ← Stable  (디스크)<br>        │                          │<br>        │  Storage[1]  ◀───────────┤  ← Volatile (메모리)<br>        │        │                 │<br>        │        ▼                 │<br>        │   [New KEY_NODE]         │<br>        │                          │<br>        └──────────────────────────┘<br>                 │<br>                 ▼<br>Parent KEY_NODE<br> ├─ SubKeyLists[0]  ◀── Stable<br> └─ SubKeyLists[1]  ◀── Volatile  ──┐<br>        │                           │<br>        ▼                           │<br> [Child CellIndex] ─────────────────┘<br>        │<br>        ▼<br> [New KEY_NODE (in Storage[1])]</pre><p>Volatile 키라고 해서 별도 Hive로 분리되는 게 아닙니다. 부모와 동일한 Hive 안에 머물되, Storage 슬롯만 다르게 할당됩니다.</p><p>각 Hive는 내부에 두 개의 저장 공간을 가집니다. Storage[0]은 디스크 Hive 파일에 매핑되고, Storage[1]은 커널이 부팅 시 할당하는 가상 메모리에만 존재합니다. 부모 KEY_NODE도 자식 목록을 두 슬롯으로 나눠 관리합니다. Volatile 키로 생성되면 Storage[1]에 할당되고 SubKeyLists[1]에 연결됩니다.</p><p>Hive를 디스크에 flush할 때 Storage[1]은 단순히 건너뜁니다. 다음 부팅에서 Hive를 로드하면 Storage[1]은 빈 채로 새로 시작됩니다. 특별한 소거 로직이 필요 없습니다. 재부팅하면 그 메모리가 사라지는 것 자체가 Volatile의 구현입니다.</p><p>Volatile 부모 아래 Stable 자식이 금지되는 이유도 여기서 자연스럽게 따라옵니다. Volatile 부모가 사라지면 SubKeyLists[0]이 가리키던 자식들을 참조할 방법 자체가 없어지기 때문입니다.</p><blockquote><strong><em>Hive에 대해 더 알고 싶다면</em></strong></blockquote><blockquote><em>레지스트리 트리는 실제로 여러 Hive 파일(</em><em>SYSTEM, </em><em>SOFTWARE, </em><em>NTUSER.DAT 등)의 조합입니다. 각 Hive는 자신이 트리의 어디에 마운트되는지 모릅니다. 루트(</em><em>\Registry)의 Master Hive 하위로 연결될 뿐입니다. </em><em>HKLM\HARDWARE처럼 Volatile만을 위한 Hive는 이 구조에서 &quot;파일 백킹 없이 </em><em>Storage[1]만 가진 Hive&quot;로 표현됩니다. Hive에 대한 자세한 내용은 </em><a href="https://projectzero.google/2024/10/the-windows-registry-adventure-4-hives.html"><em>Project Zero Registry Adventure #4</em></a><em>에 잘 정리되어 있습니다.</em></blockquote><h3>결론 — API 이름은 그냥 붙인 게 아닙니다</h3><p>DriverRegKeyPersistentState. 처음엔 의아한 이름이었습니다. 당연한 것을 왜 굳이 이렇게 이름 붙인 걸까, 싶었습니다.</p><p>하지만 레지스트리의 두 얼굴 — Stable과 Volatile — 을 알고 나면 충분히 납득되는 이름입니다. 드라이버 패키지 아이솔레이션이라는 설계 원칙 아래, 이 API가 여는 키가 “재부팅 후에도 살아남는 non-volatile 키”임을 명시한 이름이었습니다.</p><p>팀 내 질문 하나가 레지스트리 구조의 꽤 깊은 곳까지 끌고 들어갔습니다. 드라이버 개발은 항상 이런 식입니다. API 이름 하나에도 맥락이 있고, 그 맥락을 따라가면 커널 내부 설계와 마주칩니다. 사실 그래서 재미있습니다.</p><p>드라이버 패키지 아이솔레이션은 드라이버 분야 밖에서는 아직 낯선 기술입니다. WHCP 인증 요건이 강화되면서 이 주제로 고민하는 팀이 앞으로 더 늘어날 것 같습니다.</p><p>비슷한 고민을 하고 계신 분이 있다면, 댓글이나 <a href="/service/mailto:cjhnim@devguru.co.kr">개인 메일</a>로 편하게 연락주세요. 함께 기술 공유해요.</p><h3>참고 자료</h3><ul><li><a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-driver_regkey_type">MS Docs — DRIVER_REGKEY_TYPE</a></li><li><a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-ioopendriverregistrykey">MS Docs — IoOpenDriverRegistryKey</a></li><li><a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/develop/driver-isolation">MS Docs — Driver Package Isolation</a></li><li><a href="https://techcommunity.microsoft.com/blog/hardware-dev-center/driver-isolation-ruleset-changes-for-whcp-and-attestation-submissions/4461580">MS Tech Community — Driver Isolation Ruleset Changes for WHCP and Attestation Submissions</a></li><li><a href="https://projectzero.google/2024/10/the-windows-registry-adventure-4-hives.html">Google Project Zero — Windows Registry Adventure #4 (Hive 구조)</a></li><li><a href="https://projectzero.google/2025/04/the-windows-registry-adventure-6-kernel.html">Google Project Zero — Windows Registry Adventure #6 (_HHIVE 커널 내부)</a></li><li><a href="https://doxygen.reactos.org/dc/dea/hivedata_8h_source.html">ReactOS — hivedata.h</a></li><li><a href="https://doxygen.reactos.org/d3/d68/cmparse_8c_source.html">ReactOS — cmparse.c</a></li><li><a href="https://blahcat.github.io/2021-01-10-browsing-registry-kernel-mode/">blahcat.github.io — Browsing the registry in kernel-mode</a></li><li><a href="https://learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexa">MS Docs — RegCreateKeyExA</a></li><li><a href="https://devblogs.microsoft.com/oldnewthing/20170525-00/?p=96225">Raymond Chen — The Old New Thing (Volatile 중간 부모 함정)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b371b9f809ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devguru-blog/%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EA%B0%9C%EB%B0%9C%EC%9E%90%EB%8F%84-%EB%AA%B0%EB%9E%90%EB%8D%98-%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC%EC%9D%98-%EB%91%90-%EC%96%BC%EA%B5%B4-%ED%9D%91%EB%B0%B1-%EB%A0%88%EC%A7%80%EC%8A%A4%ED%8A%B8%EB%A6%AC-b371b9f809ed">드라이버 개발자도 몰랐던 레지스트리의 두 얼굴 — 흑백 레지스트리</a> was originally published in <a href="https://medium.com/devguru-blog">데브구루 기술 블로그</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TDD는 만능이 아니다 — 실무 개발자가 느낀 본질]]></title>
            <link>https://kyunwoo.medium.com/tdd%EB%8A%94-%EB%A7%8C%EB%8A%A5%EC%9D%B4-%EC%95%84%EB%8B%88%EB%8B%A4-%EC%8B%A4%EB%AC%B4-%EA%B0%9C%EB%B0%9C%EC%9E%90%EA%B0%80-%EB%8A%90%EB%82%80-%EB%B3%B8%EC%A7%88-97841876b8e2?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/97841876b8e2</guid>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 08:00:41 GMT</pubDate>
            <atom:updated>2025-11-06T08:00:41.075Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>TDD는 만능이 아니다 — 실무 개발자가 느낀 본질</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0cVe3mjyPQFUIwmmsS4wew.png" /></figure><h3>TDD, 왜 아직도 이야기되는가?</h3><p>TDD(Test Driven Development)는 실패하는 테스트를 먼저 작성하고, 그 테스트를 통과할 만큼만 코드를 작성하는 개발 방식이다. <br>개발자라면 한 번쯤 들어봤을 이름이지만, 사람마다 TDD에 대한 경험과 느낌은 다르다.</p><p>누군가는 실무에서 적극적으로 적용해보려 하고, <br>누군가는 한계를 느끼고 실망하기도 한다.</p><p>하지만 중요한 건, TDD가 <strong>만능 해결책이 아니라는 점</strong>이다. <br>상황에 따라 선택해서 써야 하는 <strong>개발 도구 중 하나</strong>일 뿐이다.</p><h3>TDD는 과학실험과 닮았다</h3><p>TDD의 흐름은 과학실험 절차를 떠올리게 한다.</p><p>1. 가설을 세우고 <br>2. 그 가설을 검증하기 위한 실험을 하고 <br>3. 결과를 분석해서 <br>4. 가설이 맞았는지 확인한다</p><p>맞지 않는다면 또 다른 가설을 세워 같은 과정을 반복한다. <br>여기서 중요한 건 <strong>변인 통제</strong>이다. <br>확인하고 싶은 변수만 바꿔야 무엇이 결과에 영향을 준 건지 알 수 있다.</p><p>TDD도 마찬가지다. <br>무엇을 확인하고 싶은지 테스트로 먼저 정의하고, <br>그 테스트를 통과할 만큼만 코드를 작성한다. <br>그리고 코드와 테스트를 리팩터링하고, 전체 테스트를 돌려 문제가 없는지 확인한다.</p><p>이 반복이 바로 TDD이다.</p><h3>TDD의 기본 사이클</h3><p>TDD의 핵심은 다음 네 가지로 정리된다.</p><ol><li>테스트를 통과할 만큼만 구현한다</li><li>테스트를 통과할 만큼만 구현한다</li><li>테스트와 코드를 리팩터링한다</li><li>전체 테스트를 돌려 이상 여부를 확인한다</li></ol><p>작고 빨리 반복하는 것이 포인트다.</p><h4>테스트를 먼저 작성하는 이유</h4><p>테스트를 먼저 작성한다는 건 <strong>요구사항을 분명히 한다는 것</strong>이다.</p><ul><li>무엇을 입력으로 받고</li><li>무엇을 출력으로 내보내며</li><li>어떤 조건을 만족해야 하는지</li></ul><p>이게 명확하지 않으면 테스트 자체가 작성되지 않는다.</p><p>또 테스트는 가능하면 <strong>작은 단위로</strong> 작성하는 것이 좋다. <br>과학실험에서 변수를 여러 개 동시에 바꾸지 않는 이유와 같다. <br>작아야 어디서 문제가 발생했는지 빠르게 알 수 있다.</p><h4>테스트를 통과할 만큼만 구현하기</h4><p>TDD에서는 <strong>테스트가 요구하는 만큼만 구현</strong>한다. <br>테스트되지 않은 부분까지 과하게 구현하면, 그 코드는 결국 ‘검증되지 않은 코드’가 된다.</p><p>과한 구현인지 확인하는 쉬운 방법이 하나 있다.</p><ul><li>코드 일부를 일부러 틀리게 바꿔본다</li><li>테스트를 다시 돌린다</li><li>그래도 통과한다면 → 해당 코드는 테스트되지 않고 있다는 뜻이다</li></ul><p>이 과정을 반복하면서, 새로운 기능이 필요할 때마다 새로운 테스트를 만들고, <br>그 테스트를 통과할 정도의 코드만 추가한다.</p><p>이렇게 쌓아두면, 기존 코드가 있어도 새로운 코드를 넣는 과정이 더 이상 불안하지 않다. 테스트가 ‘안전망’이 되어주기 때문이다.</p><h4>리팩터링은 필수</h4><p>TDD는 “테스트 작성 → 최소 구현 → 리팩터링” <br>이 사이클을 계속 반복하는 방식이다.</p><p>이 사이클이 원활하게 돌아가려면, <br>코드와 테스트는 매 순간 <strong>읽기 좋고 정제된 상태</strong>여야 한다. <br>중복을 줄이고, 표현을 명확하게 정리해야 한다.</p><p>리팩터링은 옵션이 아니라 TDD의 핵심 단계다.</p><h4>전체 테스트를 돌려보는 이유</h4><p>개발하다 보면 늘 걱정이 생긴다.</p><blockquote>“방금 수정한 코드가 다른 기능을 깨뜨린 건 아닐까?”</blockquote><p>기존 방식이라면 여러 테스트 시나리오를 수동으로 다시 실행해야 한다. <br>하지만 TDD는 테스트를 단계별로 쌓아두는 방식이다.</p><p>그냥 **전체 테스트 한 번 돌려보면 끝**이다. <br>모두 초록불이라면, 그걸로 충분하다.</p><h3>TDD를 해야만 개발 고수일까?</h3><p>TDD를 나는 ‘개발 방법론’보다 ‘<strong>개발 스타일’</strong>이라고 생각한다. <br>정답이 아니고, 반드시 해야만 하는 것도 아니다.</p><p>TDD를 사용하지 않아도 좋은 코드를 만들 수 있다. <br>반대로 프로젝트 상황이나 개발자의 성향에 따라 TDD가 큰 힘을 발휘할 때도 있다.</p><p>중요한 건, TDD는 <strong>필요할 때 선택할 수 있는 하나의 도구</strong>라는 점이다. <br>그리고 제대로 쓰기 위해선 꾸준한 연습이 필요하다는 사실이다.</p><p>TDD는 만능은 아니지만, 제대로 쓰면 강력한 무기가 된다. <br>필요할 때 꺼내 쓸 수 있도록, 천천히 연습해보면 좋을 것 같다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97841876b8e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple Event (Sept 10): Discovering the True Meaning of the Pro Line]]></title>
            <link>https://kyunwoo.medium.com/apple-event-sept-10-discovering-the-true-meaning-of-the-pro-line-3f018a4c6339?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f018a4c6339</guid>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 01:31:37 GMT</pubDate>
            <atom:updated>2024-09-20T01:31:37.905Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuarNiSl_uh4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuarNiSl_uh4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuarNiSl_uh4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/02b6ed4227c9d095400e19f40cffdfff/href">https://medium.com/media/02b6ed4227c9d095400e19f40cffdfff/href</a></iframe><p><strong>Kicking Off</strong></p><p>Apple held its usual event today at 2 a.m. As I was heading to work, I watched a YouTube video where a tech reviewer summarized the announcements. Most people seemed to agree: “There wasn’t anything groundbreaking.” Curious, I decided to watch the full event myself after finishing some work at the office. There were a few moments that really stood out to me, so I thought I’d share them here.</p><p><strong>What Does “Pro” Really Mean?</strong></p><p>I currently use the iPhone 14 Pro, but I’ve always questioned why it’s called “Pro.” Aside from better performance and an upgraded camera, I haven’t noticed any major differences. The distinction between the iPhone 14 and 14 Plus is obvious — mainly size — but the gap between the 14 and 14 Pro feels less significant. They say the “Pro” models are for professionals, but I never quite felt that way. It mostly just seemed like an iPhone with slightly better hardware and a nicer camera.</p><p><strong>Apple Watch Ultra 2</strong></p><p>When it comes to the Apple Watch, the Pro version is the Apple Watch Ultra. Although Apple didn’t announce the Ultra 3 this time around, they did focus on the Apple Watch Ultra 2, which launched in 2023. At first, many people assumed this watch was mainly for divers, which made me wonder, “Is this something I’d ever use?” since diving is something very few people do.</p><p>But through this event, it became clearer who this device is really for. Even though there wasn’t a new Ultra model, they introduced a new Satin Black color and some new bands, highlighting the intended audience. For instance, runners now get automatic track detection, cyclists can track distance, speed, elevation, and heart rate, and even connect a power meter to monitor power output and cadence. Swimmers benefit from automatic stroke detection and lap counting, while hikers can track their latitude, longitude, and routes.</p><p>As someone who enjoys cycling and uses rowing for fitness, I’m excited to see if the Apple Watch Ultra can compete with other sport-focused brands like Garmin.</p><p><strong>AirPods Pro 2</strong></p><p>So who are the AirPods Pro for? They’re really aimed at people who care about their hearing health. According to the World Health Organization, about 1.4 billion people globally suffer from hearing loss. Apple has added new features to the AirPods Pro 2 to help these individuals — and the best part is, it’s all done through software updates, so there’s no need to buy new hardware.</p><p>The AirPods Pro 2 now offer three main features for hearing health. First, there’s “Protection,” which automatically reduces harmful loud sounds. Next is “Awareness,” a clinically certified hearing test that lets users check their hearing health. Finally, “Assistance” uses the hearing test data to offer clinical-grade, non-prescription hearing aid functions, allowing the AirPods to serve as personalized hearing aids.</p><p>This feature is especially meaningful for my father, who has some hearing difficulties, so I’m really excited about this update.</p><p><strong>iPhone 16 Pro</strong></p><p>The iPhone 16 Pro introduces a new feature called “Camera Control.” This gives users more intuitive control over camera settings using a physical button, similar to the half-press feature on traditional cameras. With it, you can easily adjust exposure, lock focus, and change photo styles.</p><p>There’s also an impressive new slow-motion feature that lets you shoot in 4K at 120 frames per second. After recording, you can adjust playback to 0.5x, 0.2x, or normal speed. This is bound to be useful for content creators working with video.</p><p>For musicians, there’s good news too. The iPhone 16 Pro’s voice memo feature allows you to record guitar and vocals separately and mix them later. It also has a function to capture sounds near the su</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f018a4c6339" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple 이벤트 (9/10) : 이제 Pro 라인의 진정한 의미를 알아보다]]></title>
            <link>https://kyunwoo.medium.com/apple-%EC%9D%B4%EB%B2%A4%ED%8A%B8-9-10-%EC%9D%B4%EC%A0%9C-pro-%EB%9D%BC%EC%9D%B8%EC%9D%98-%EC%A7%84%EC%A0%95%ED%95%9C-%EC%9D%98%EB%AF%B8%EB%A5%BC-%EC%95%8C%EC%95%84%EB%B3%B4%EB%8B%A4-7369b280c60d?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7369b280c60d</guid>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Wed, 11 Sep 2024 02:35:13 GMT</pubDate>
            <atom:updated>2024-09-20T01:29:24.330Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apple 이벤트 (9/10) : 이제 Pro 라인의 진정한 의미를 알아보다</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuarNiSl_uh4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuarNiSl_uh4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuarNiSl_uh4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/02b6ed4227c9d095400e19f40cffdfff/href">https://medium.com/media/02b6ed4227c9d095400e19f40cffdfff/href</a></iframe><p><strong>시작하며1</strong></p><p>오늘 새벽 2시에 어김없이 Apple 이벤트가 있었습니다. 아침 출근길에 유튜버가 발표 내용을 요약해 준 영상을 보았는데, “임팩트 있는 업데이트는 없었다”는 의견이 대다수였습니다. 정말 그럴까 궁금해져서, 회사에서 일을 어느 정도 마치고 풀영상을 직접 보게 되었습니다. 그리고 몇 가지 인상 깊은 장면들이 있어 이를 블로그에 남기고자 합니다.</p><p><strong>Pro란 무엇인가?</strong></p><p>저는 현재 아이폰 14 Pro를 사용 중이지만, 솔직히 말해 이 기기가 왜 ‘Pro’라는 이름을 사용하는지에 대해선 의문이 있었습니다. 단순히 성능이 좋고, 카메라가 우수하다는 것 외에는 큰 차이를 느끼지 못했습니다. 아이폰 14와 14 Plus의 차이가 크기의 차이로 명확한 반면, 14와 14 Pro 사이의 차이는 그리 와닿지 않았습니다. Pro가 ‘전문가’를 위한 기기라고 하지만, 그 말이 피부에 와닿지는 않았죠. 결국, 더 나은 카메라 성능과 하드웨어 스펙을 가진 아이폰이라는 생각만 들었습니다.</p><p><strong>애플워치 울트라2</strong></p><p>애플워치 라인의 Pro 버전은 애플워치 울트라입니다. 이번 발표에서 2023년에 출시된 애플워치 울트라2의 후속작인 울트라3는 공개되지 않았지만, 애플워치 울트라가 어떤 사용자들을 위한 디바이스인지 확실히 알 수 있었습니다. 처음 애플워치 울트라가 소개되었을 때, 많은 사람들은 이 기기가 주로 다이버들을 위한 제품이라고 생각했습니다. 다이빙은 극소수의 사람들만 즐기기 때문에, 개인적으로는 “나에게 이 기기가 필요할까?” 하는 의문도 들었죠.</p><p>이번 발표에서는 새로운 울트라 모델이 나오지 않았음에도 불구하고, 새틴 블랙 색상과 새로운 밴드를 통해 이 제품이 누구를 위한 것인지 명확히 전달했습니다. 예를 들어, 러너들을 위한 자동 달리기 트랙 감지 기능이 추가되었고, 사이클리스트에게는 거리, 속도, 고도, 심박수 정보를 제공하며, 파워 미터를 연결해 파워와 케이던스를 측정할 수 있습니다. 수영할 때는 자동으로 스트로크를 감지하고 랩을 카운트하며, 하이킹 시에는 위도, 경도, 경로를 추적할 수 있는 기능도 지원합니다.</p><p>저 역시 자전거 로드를 즐기고, 로잉으로 체력을 단련하기 때문에, 애플워치 울트라가 기존의 스포츠 전문 제품들, 특히 가민 같은 브랜드의 제품을 대체할 수 있을지 기대가 큽니다.</p><p><strong>에어팟 프로2</strong></p><p>에어팟 프로는 누구를 위한 디바이스일까요? 바로 청각 건강을 신경 써야 하는 사람들을 위한 제품입니다. 세계보건기구에 따르면, 전 세계적으로 약 14억 명이 청력 손실을 겪고 있다고 합니다. 애플은 이러한 사람들을 위해 기능을 업데이트했습니다. 하드웨어를 새로 구매할 필요 없이 소프트웨어 업데이트만으로도 말이죠.</p><p>에어팟 프로2는 청각 건강을 위해 세 가지 주요 기능을 제공합니다. 첫 번째는 ‘방지’로, 청력에 해로운 소리를 자동으로 줄여주는 기능입니다. 두 번째는 ‘인지’로, 임상 인증을 받은 청력 테스트를 제공해 사용자가 자신의 청각 건강을 확인할 수 있도록 합니다. 마지막으로 ‘보조’는 청력 테스트 데이터를 기반으로 임상 등급의 비처방 보청 기능을 추가하여, 개인 맞춤형 보청기로 활용할 수 있게 해줍니다.</p><p>이 기능은 한쪽 귀가 불편한 저희 아버지께도 꼭 필요한 기능이어서, 매우 반가웠습니다.</p><p><strong>아이폰 16 프로</strong></p><p>아이폰 16 Pro에는 ‘카메라 컨트롤’이라는 새로운 기능이 추가되었습니다. 이 기능은 일반 카메라의 반셔터 같은 조작감을 제공하는 물리 버튼을 통해, 노출 조절 및 고정, 초점 고정, 사진 스타일 변경 등 카메라의 다양한 기능을 더욱 직관적으로 사용할 수 있게 해줍니다.</p><p>또한, 강력한 슬로모션 기능도 추가되었습니다. 4K 120프레임으로 촬영이 가능하며, 촬영 후에도 재생 속도를 0.5배속, 0.2배속, 또는 일반 속도로 자유롭게 설정할 수 있어 영상 작업을 보다 손쉽게 할 수 있습니다. 이러한 기능은 영상 콘텐츠를 제작하는 창작자들에게 매우 유용할 것입니다.</p><p>음악 작업을 하는 분들에게도 좋은 소식이 있습니다. 아이폰 16 Pro는 음성 메모 기능을 통해 기타 연주와 노래를 따로 녹음한 후 믹싱 작업을 할 수 있습니다. 또한, 카페와 같은 시끄러운 환경에서 촬영할 때, 피사체에 가까운 소리를 주로 녹음하고, 주변 소리는 작게 줄여주는 기능도 있어 음질을 개선할 수 있습니다.</p><p><strong>마치며</strong></p><p>애플워치 울트라는 스포츠를 즐기는 사람들을 위한 제품이고, 에어팟 프로는 청각 건강을 신경 쓰는 이들을 위한 디바이스입니다. 아이폰 16 Pro는 창작자들을 위한 기능을 강화한 제품이죠. 애플은 Pro 라인의 제품들이 각 사용자에게 실질적인 도움이 되기를 기대하는 것 같습니다. 과연 이러한 바람이 실제로 사용자들에게 닿을 수 있을지, 앞으로 계속 지켜볼 필요가 있을 것 같습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7369b280c60d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[개발팀의 일일회의에 너무 많은 기대를 걸지 마세요.]]></title>
            <link>https://kyunwoo.medium.com/%EA%B0%9C%EB%B0%9C%ED%8C%80%EC%9D%98-%EC%9D%BC%EC%9D%BC%ED%9A%8C%EC%9D%98%EC%97%90-%EB%84%88%EB%AC%B4-%EB%A7%8E%EC%9D%80-%EA%B8%B0%EB%8C%80%EB%A5%BC-%EA%B1%B8%EC%A7%80-%EB%A7%88%EC%84%B8%EC%9A%94-0d8761cef8d2?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d8761cef8d2</guid>
            <category><![CDATA[stand-up-meeting]]></category>
            <category><![CDATA[daily-scrum]]></category>
            <category><![CDATA[데일리스크럼]]></category>
            <category><![CDATA[일일회의]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 09:45:16 GMT</pubDate>
            <atom:updated>2024-04-02T09:45:16.628Z</atom:updated>
            <content:encoded><![CDATA[<h3>용어 정리</h3><p>필자가 몸담고 있는 회사에서는 일일회의 또는 데일리 미팅이라는 명칭을 사용합니다. 하지만 스크럼 방식 개발에 포함된 데일리 스크럼이라는 명칭이 현업에서 더 널리 사용되고 있어 보입니다. 또는 일어 서서 회의를 하는 의미로 데일리 스탠드업 미팅 또는 스탠드업 미팅이라는 용어도 많이 사용합니다. 어쨌든 매일매일 정해진 시간 팀원이 모여 짧은 회의를 한다는 의미에서 여기서는 일일회의라는 용어로 글을 이어가겠습니다.</p><h3><strong>이상적인 일일회의의 모습</strong></h3><p>여러분이 생각하고 있는 일일 회의는 어떤 회의인가요? 혹시 아래와 같은 모습의 회의가 아닌가요?</p><ul><li>오전 10시 5분전, 삼삼오오 팀원들이 정해진 공간에 모여 든다. 한손엔 커피를 들고 편하게 참석한 팀원도 있고 노트를 가지고 참석하고 있는 팀원들도 있다.</li><li>오전 10시 정각에 가까워지자 각 팀원들은 둥글게 모인다. 한 팀원의 시작으로 지난날 진행했던 일과 오늘 진행 예정인 일을 간략히 팀원들에게 공유한다. 그리고 진행 중 업무를 원활히 진행되고 있는지, 그렇지 않다면 어떤 방해요소가 있는지 설명한다.</li><li>한 팀원이 발표를 하고 있으면, 다른 팀원들은 메모를 한다. 업무가 과중하게 몰린 팀원은 없는지, 업무 진행에 어려움을 겪고 있는 팀원은 없는지, 내가 도와줄 수 있는 일은 없는지 살핀다.</li><li>오전 10시 12분 경 회의는 종료가 되었다. 모든 팀원은 현재 팀에서 어떤일이 일어나고 있는지 알게 되었고 동기화가 되었다.</li><li>그리고 팀원들은 자신의 업무자리로 하나 둘 돌아간다. 게 중에는 업무 진행에 어려움을 겪고 있는 팀원과 이를 도와주기 위한 팀원은 그 자리에서 좀 더 깊은 대화를 나누기도 한다.</li></ul><p>하지만 이런 이상적인 일일회의를 꿈꾸하며 시작한 회의는 오래 가지 못하는 경우가 많습니다. 기대했던 모습과 달라 실망하게 되고 팀원들은 일일회의 효용가치에 의심을 갖기 시작합니다. 그러다보면 의무적으로 며칠 몇달 일일회의를 하다가 신년이 되면 소리 소문 없이 자연스럽게 일일 회의는 사라집니다.</p><h3><strong>일일회의를 왜 시작하셨나요?</strong></h3><p>일일회의를 왜 도입하려 하셨나요?</p><ul><li>주간 회의 만으론 프로젝트의 리스크 발생 시점을 알아채는 시점이 너무 늦어서 그렇진 않나요?</li><li>업무 피드백의 중요성을 아직은 잘 모르는 주니어 개발자로 구성된 팀이기에 도입했던 일일회의는 아니었나요?</li><li>너무 잦은 회의, 급작스런 회의로 업무의 흐름이 끊어지기에 도입했던 것은 아니었나요?</li></ul><p>아니면 거창한 이유는 아니지만, 이런 이유는 아니셨나요?</p><ul><li>하루에 한번 얼굴 한번 보고 눈을 마주치고 커피 한잔하며 업무 이야기 하자는 것은 아니었나요?</li><li>하루에 15분만 투자하여 팀원 각자가 팀장에게 업무를 보고하는 자리가 필요했던 것은 아니었나요?</li><li>코로나로 팀원 모두가 재택근무이기에 최소한의 업무에 대한 결속감을 갖기 위해 하루에 한번 만나서 업무 공유하기 위함은 아니었나요?</li></ul><p>어떤 이유이든 일일회의를 시작하게 된 계기가 있을 것입니다. 팀의 개발 방식을 업무 방식을 조금이나마 바꿔보고 싶어 시작했을 것이라 생각합니다. 그 이유를 잃어 버리지 마십시오.</p><p>어떤 이유이든 좋습니다. 일일회의를 통해서 생각했던 그 문제점이 해소되고 있다면 그것만으로도 여러분의 일일회의는 충분히 멋지다고 생각합니다.</p><h3>여러분의 일일회의는 충분히 멋지고 값집니다</h3><p>이제 막 스크럼 방식 개발을 도입하였고 데일리 스크럼을 해야한다고 하여 그러한 이유로 일일회의를 하고 계시다구요? 그래서 일일회의를 하는 이유가 특별한 것은 아니라구요? 그래도 괜찮습니다. 원래 이러한 개발 프랙틱스는 일단 따라해보고 그리고 팀에 맞게 바꿔 나가는 것입니다. 첫 단추를 꿰맨 것이기 그것 나름대로 의미가 있습니다. 해보고 팀에 맞지 않는다면 그만하면 그 뿐입니다. 사실 그만하는 것이 아니라 그와 유사한 다른 방법을 찾아 간 것이겠지만요. 예를 들어, 하루에 한번이 아닌 이틀에 한번이라고 뭐가 문제가 되겠습니까? 이틀회의라고 이름을 붙이시고 여러분만의 일일회의를 만들어가면 그뿐입니다.</p><p>매일 같이 일일회의를 하고 있지만, 형식적인 분위기가 되어가고 있고 팀원이 팀장에게 보고하는 자리가 되는것 갖나요? 팀원들끼리는 여전히 서로가 무슨일을 하는지 모르는 것 같나요? 일일회의를 왜 하고 있는지 다시 생각해보세요. 나만의 이상적인 일일회의와 비교하고 있진 않으신가요? 적어도 팀원과 팀장간의 업무 공유가 일어나고 있으니 그것만으로도 의미가 있진 않나요? 팀원과 팀원이 서로 어떤일을 하는지 모르더라도, 적어도 들은 풍월은 남아 있진 않을까요? 그것만으로도 의미가 있습니다.</p><p>개발 프랙티스 자체가 목적이 되면 성공할 수 없습니다. 일일회의를 위한 일일회의를 한다면 성공할 수 없습니다. 여러분의 팀에 걸맞는 일일회의를 만들어 가십시오.</p><p>그리고 원래 개발 문화를 만들어가고 개발 프로세스를 개선하고 가꿔나가는 것은 사람간의 일이기에 큰 변화를 한순간 만들어내는 것은 물리적으로 불가능한 것입니다. 작은 변화 하나 하나가 모여 큰 변화를 만드는 것입니다. 일단 작은 변화를 만들어 냈다는 점에서 자기 자신 우리 팀을 칭찬해 줍시다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d8761cef8d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[free() 는 NULL 입력을 허용할까요?]]></title>
            <link>https://medium.com/devguru-blog/free-%EB%8A%94-null-%EC%9E%85%EB%A0%A5%EC%9D%84-%ED%97%88%EC%9A%A9%ED%95%A0%EA%B9%8C%EC%9A%94-e728dd793b37?source=rss-50c86c4fbbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e728dd793b37</guid>
            <category><![CDATA[개발이야기]]></category>
            <category><![CDATA[소프트웨어]]></category>
            <category><![CDATA[클린코드]]></category>
            <category><![CDATA[버그]]></category>
            <dc:creator><![CDATA[Jung-Hyun Choi]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 02:12:05 GMT</pubDate>
            <atom:updated>2024-02-26T08:23:55.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>free() 는 널(null) 입력을 허용할까요?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0IgRchHNwiIsl_S9.png" /><figcaption><a href="https://pixabay.com/ko/illustrations/%EC%88%AB%EC%9E%90-0-%EC%88%98%ED%95%99-%EC%97%86%EB%8A%94-%EA%B3%84%EC%82%B0-6072118/">https://pixabay.com/ko/illustrations/%EC%88%AB%EC%9E%90-0-%EC%88%98%ED%95%99-%EC%97%86%EB%8A%94-%EA%B3%84%EC%82%B0-6072118/</a></figcaption></figure><h3>free() 함수에 NULL값이 입력되도 문제 없을까?</h3><p>C 라이브러리 중 메모리 할당과 해제하는 함수로 malloc과 free가 있습니다. C언어를 조금이라도 공부하거나 사용해보신 분에게는 익숙한 함수들 입니다.</p><pre>#include &lt;stdlib.h&gt;<br><br>void* malloc(size_t size);<br>void free(void *ptr);</pre><p>보통 동적 메모리를 할당 할 때 malloc을 사용하고 메모리를 시스템에 반환하고자 할 때 free 함수를 사용합니다.</p><pre>free(buffer);<br>buffer = NULL;</pre><p>c언어로 포인터 변수를 다룰 때, 항상 조심하게 됩니다. buffer에 NULL 이 담겨 있다면 위험하진 않을까란 생각에 아래처럼 NULL 포인터인지 확인하는 if 구문을 추가하여 고쳐 쓰는 경우도 많습니다. 이는 프로그램의 안정성을 높이는 중요한 단계가 되기도 합니다.</p><pre>if(buffer) {<br>  free(buffer);<br>  buffer = NULL;<br>}</pre><p>방금 전 c언어에서 포인터 변수를 접근할 땐 항상 조심하게 된다라고 이야기했습니다. 자칫 NULL 포인터를 접근하거나, 이미 해제된 메모리를 그대로 사용하게 되면 프로그램이 갑자기 종료해버리기 때문에 프로그래머는 항상 포인터 사용에 신중을 기합니다. 그 결과 과도한 주의로 코드가 복잡해지고 지저분해질 수도 있습니다. 이를 보완하기 위해 free() 함수 내부적으로 실제로 어떻게 처리하고 있는지 파악할 수 있다면, 보다 효과적인 코드 사용 결정을 내릴 수 있을 것입니다.</p><p>이때 여러분은 어떤 방법을 사용하여, free() 함수가 NULL 입력처리에 대한 예외처리를 하는지 알아보시나요? 제가 접근하는 방법 몇 가지 소개하겠습니다.</p><h4>첫번째 방법, 구글 검색.</h4><p>누구나 그렇듯이 구글에서 검색을 보통 먼저 해봅니다. 그리고 관련 내용에 대해 포스팅한 분은 없는지 블로그를 찾아봅니다. 일단 국내자료를 먼저 찾아보고, 없으면 외국자료도 찾아봅니다. 다음 처럼 영어 키워드 적절히 입력하면 어렵지 않게 원하는 답을 구할 수 있습니다.</p><pre>검색키워드: free function NULL pointer</pre><p>아마 찾아보시면, C99 표준의 7.20.3.2 섹션에서 free에 NULL을 입력하여도 free함수는 아무런 액션을 수행하지 않는다라는 설명을 어렵지 않게 찾을 수 있습니다. (직접 찾아보세요)</p><p>네 해결됬습니다. free 함수는 NULL이 입력되어도 안전하도록 코드가 구현되어 있음을 알게 되었습니다.</p><h4>두번째 방법, 스펙 찾아보기.</h4><p>누군가 포스팅 해 놓은글 또는 Stackoverflow에서 누군가 답변해놓은 코멘트를 신뢰할 수 있을까요? 정확한 Fact가 필요하다면 좀 더 다른 방법을 사용해봐야 합니다. 어떤 방법이 있을까요? C99 표준(7.20.3.2 섹션)에 관련 내용이 있다 했으니 실제 그 내용을 찾아보는 것은 어떨까요?</p><blockquote>If ptr is a null pointer, no action occurs</blockquote><p>실제로 찾아보면 위와 같은 문구를 찾을 수 있습니다. 검색했던 내용이 사실이었음을 확인할 수 있습니다. 이제 좀 마음이 안심이 됩니다.</p><p>정말로 문서의 내용이 정확하다고 완전히 확신하십니까? 실수가 있을 수도 있지 않을까요? 영화 ‘마션’에서 화성에서 생존하기 위해 화성에 오랫동안 버려진 패스 파인터를 고칠 수 있는 방법이 free 함수의 NULL 입력 유무와 관련이 있다면요? 수정한 코드를 적용할 수 있는 기회가 단 한번뿐이라면요?</p><p>좀더 확실한 방법이 있어야 하지 않을까요?</p><h4>세번째 방법, 소스코드 찾아보기.</h4><p>문서의 내용대로 정말 구현이 되어 있는 소스코드를 확인하면, 이보다 확실한 방법은 없을 것입니다. 저는 github의 linux 레파지토리에서 free 함수의 소스코드를 찾아볼 수 있었습니다.</p><p>free()는 실제로 __libc_free() 라는 이름으로 구현되어 있었고 소스코드를 보니 입력된 mem 포인터가 0 인지 확인하는 코드가 있었습니다. 그 옆엔 친절히 주석도 달려 있었습니다.</p><pre>void<br>__libc_free (void *mem)<br>{<br>  mstate ar_ptr;<br>  mchunkptr p;                          /* chunk corresponding to mem */<br> <br>  // (중략)<br> <br>  if (mem == 0)                              /* free(0) has no effect */<br>    return;<br> <br>  p = mem2chunk (mem);<br> <br>  if (chunk_is_mmapped (p))                  /* release mmapped memory. */<br>  {<br>      /* See if the dynamic brk/mmap threshold needs adjusting.<br>  Dumped fake mmapped chunks do not affect the threshold.  */<br><br>  // (이하 생략)</pre><p><a href="https://github.com/lattera/glibc/blob/master/malloc/malloc.c">glibc/malloc/malloc.c at master · lattera/glibc</a></p><p>이제 정말 끝난 것 같습니다. 소스코드까지 확인했으니, 정말 확실합니다. 여러분은 여기서 멈추시겠습니까? 위 코드는 리눅스의 코드입니다. 여러분이 사용한 코드가 리눅스 기반이었다면 이정도로 끝날 수도 있겠습니다. 하지만 윈도우에서 free() 함수를 호출했다면요? 윈도우도 동일하게 동작할까요?</p><p>네. 다시 불안해집니다. 그럼 더 어떻게 확실히해야할까요?</p><h4>네번째, 다섯번째, 여섯번째 …</h4><p>가장 확실한 방법은 실제로 예제를 만들어 보는 것도 방법일 것입니다. 윈도우에서도 정말 분석한 대로 동작하는지 예제 프로그램을 만들어 확인해보는 것이죠.</p><p>또는 라이브 디버깅을 통해 free 함수의 안쪽을 disassembly 하여 확인하는 것도 가능할 것입니다. 대략 free 함수의 안쪽 코드가 어떤 형태인지 소스코드를 봤으니 disassembly된 코드를 보는 것도 겁만 먹지 않으면 어렵지 않게 확인할 수 있을 것입니다.</p><p>그런데 화성의 패스파인더에서 동작하는 코드라면 실제로 만들어보거나 disassembly 하는 것도 어렵지 않을까요? 영화에선 다행히도 똑같이 생긴 패스파인더를 지구에서 시뮬레이션 해보는데요. 그 조차도 허용되지 않는다면 어떤 방법이 있을까요? 그런 경우엔 해당 프로그램의 바이너리를 리버싱하여 free()의 안쪽 코드 확인도 해볼 수 있을 것입니다.</p><h3>일곱번째 방법.</h3><p>여기까지가 제 경험으로 해볼 수 있는 거의 모든 방법이었습니다. 하지만 때때론 이것으로도 부족할 수도 있습니다. 그럴 땐, 거기서 멈추시지 마시고 주어진 조건 안에서 좀 더 사실을 확인할 수 있는 방법, 증명할 수 있는 방법, 문제를 해결할 수 있는 방법을 고민해보세요. 분명 일곱번째 방법이 있을 것입니다.</p><p>free() 함수의 NULL 입력이 허용되는지 확인하기 위해 위처럼 여러 방법을 모두 사용해보시라는 의미는 아닙니다. 처하신 문제 상황에 맞게 최적의 방법을 적용하는 것도 개발자의 선택이라고 생각합니다. 코드 분석 시 구글 검색만이 유일한 방법은 아니며, 다양한 접근 방식을 고려할 수 있다는 생각을 나누고싶었습니다. 그리고 여러분만의 일곱번째 방법 꼭 찾으시길 바라겠습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e728dd793b37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devguru-blog/free-%EB%8A%94-null-%EC%9E%85%EB%A0%A5%EC%9D%84-%ED%97%88%EC%9A%A9%ED%95%A0%EA%B9%8C%EC%9A%94-e728dd793b37">free() 는 NULL 입력을 허용할까요?</a> was originally published in <a href="https://medium.com/devguru-blog">데브구루 기술 블로그</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>