<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Postman-Gpui on ZhengPengDe Blog</title>
		<link>https://847850277.github.io/tags/postman-gpui/</link>
		<description>Recent content in Postman-Gpui on ZhengPengDe Blog</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Wed, 26 Aug 2026 18:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://847850277.github.io/tags/postman-gpui/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>postman-gpui Architecture Design</title>
				<link>https://847850277.github.io/posts/2026/postman_gpui_architecture_design/</link>
				<pubDate>Tue, 25 Aug 2026 09:00:00 +0000</pubDate>
				<guid>https://847850277.github.io/posts/2026/postman_gpui_architecture_design/</guid>
				<description>&lt;h1 id=&#34;postman-gpui-architecture-design&#34;&gt;postman-gpui Architecture Design&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-is-gpui&#34;&gt;What Is GPUI&lt;/h2&gt;&#xA;&lt;p&gt;GUI stands for &lt;strong&gt;Graphical User Interface&lt;/strong&gt;. GPUI is a Rust framework for building native graphical applications.&lt;/p&gt;&#xA;&lt;p&gt;At a high level, GPUI can be understood as an event-driven system:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Event → Update State → Render&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;core-abstraction&#34;&gt;Core Abstraction&lt;/h3&gt;&#xA;&lt;p&gt;A simplified GUI event loop can be expressed as:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;loop {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    event = wait_event();&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    state = update(state, event);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    render(state);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The application waits for events such as mouse clicks, keyboard input, window resizing, timers, and asynchronous task results.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
