<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[theaipower的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/theaipower</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; theaipower]]></copyright><item><title><![CDATA[【高并发架构设计】-1：高并发通用设计思想]]></title><link>https://blog.csdn.net/theaipower/article/details/147894262</link><guid>https://blog.csdn.net/theaipower/article/details/147894262</guid><author>theaipower</author><pubDate>Mon, 12 May 2025 13:29:26 +0800</pubDate><description><![CDATA[【高并发架构设计】-1：高并发通用设计思想]]></description><category></category></item><item><title><![CDATA[【GoChat】密码处理与实现JWT+进行功能单测]]></title><link>https://blog.csdn.net/theaipower/article/details/147537894</link><guid>https://blog.csdn.net/theaipower/article/details/147537894</guid><author>theaipower</author><pubDate>Sat, 26 Apr 2025 17:12:03 +0800</pubDate><description><![CDATA[【GoChat】密码处理与实现JWT+进行功能单测]]></description><category></category></item><item><title><![CDATA[Docker底层原理浅析 | namespace+cgroups+文件系统]]></title><link>https://blog.csdn.net/theaipower/article/details/147400908</link><guid>https://blog.csdn.net/theaipower/article/details/147400908</guid><author>theaipower</author><pubDate>Tue, 22 Apr 2025 12:41:59 +0800</pubDate><description><![CDATA[namespace机制提供一种资源隔离和虚拟化特性，基于这些特性，PID、IPC、Network等系统资源不再是全局性的，而是某个特定的namespace下面，每个namespace下面的资源对于其他的namespace是不可见的。4、container模式：指定新创建的容器和已经存在的一个容器共享一个network namespace，而不是和宿主机进行共享，新创建的容器不会创建自己的网卡，配置自己的ip，而是和指定的一个容器共享ip+端口范围等。这样，容器就可以通过宿主机的网络接口访问外部网络。]]></description><category></category></item><item><title><![CDATA[Go-zero框架修改模版进行handler统一响应封装]]></title><link>https://blog.csdn.net/theaipower/article/details/147352590</link><guid>https://blog.csdn.net/theaipower/article/details/147352590</guid><author>theaipower</author><pubDate>Sat, 19 Apr 2025 17:10:51 +0800</pubDate><description><![CDATA[Go-zero框架修改模版进行handler统一响应封装]]></description><category></category></item><item><title><![CDATA[使用Ollama+Langchaingo+Gin通过定义prompt模版实现翻译功能]]></title><link>https://blog.csdn.net/theaipower/article/details/146770090</link><guid>https://blog.csdn.net/theaipower/article/details/146770090</guid><author>theaipower</author><pubDate>Sun, 30 Mar 2025 18:38:49 +0800</pubDate><description><![CDATA[使用Ollama+Langchaingo+Gin通过定义prompt模版实现翻译功能]]></description><category></category></item><item><title><![CDATA[Ollama+Langchaingo+Gin开发本地LLM简单应用]]></title><link>https://blog.csdn.net/theaipower/article/details/146768608</link><guid>https://blog.csdn.net/theaipower/article/details/146768608</guid><author>theaipower</author><pubDate>Sun, 30 Mar 2025 17:45:17 +0800</pubDate><description><![CDATA[我的第一篇与llm有关的博客，使用ollama+langchaingo+gin快速构建简单应用。]]></description><category></category></item><item><title><![CDATA[【Go万字洗髓经】Golang中sync.Mutex的单机锁：实现原理与底层源码]]></title><link>https://blog.csdn.net/theaipower/article/details/146487121</link><guid>https://blog.csdn.net/theaipower/article/details/146487121</guid><author>theaipower</author><pubDate>Wed, 26 Mar 2025 22:17:33 +0800</pubDate><description><![CDATA[详细分析了sync.Mutex的核心原理，重点探讨了锁从自旋到阻塞的升级过程，以及自旋+CAS机制和饥饿模式的设计与实现。深入剖析了sync.Mutex的底层源码，包括Mutex结构的定义、全局常量的作用，以及Lock和Unlock方法的具体实现逻辑。文章还探讨了第一次CAS加锁成功的前提条件、竞态检测的实现，以及lockSlow和unlockSlow方法中的关键逻辑，如局部变量的作用、新旧状态值的替换、阻塞挂起机制以及饥饿模式下的特殊处理。]]></description><category></category></item><item><title><![CDATA[【Go | 从0实现简单分布式缓存】-7：增加etcd和gRPC功能]]></title><link>https://blog.csdn.net/theaipower/article/details/146204593</link><guid>https://blog.csdn.net/theaipower/article/details/146204593</guid><author>theaipower</author><pubDate>Wed, 12 Mar 2025 21:33:00 +0800</pubDate><description><![CDATA[在GeeCache的基础上增加etcd和gRPC功能。]]></description><category></category></item><item><title><![CDATA[【Go | 从0实现简单分布式缓存】-6：GeeCache总结]]></title><link>https://blog.csdn.net/theaipower/article/details/146177422</link><guid>https://blog.csdn.net/theaipower/article/details/146177422</guid><author>theaipower</author><pubDate>Tue, 11 Mar 2025 22:53:42 +0800</pubDate><description><![CDATA[总结之前 GoCache 的实现过程，这是一个从零开始用 Go 语言实现的分布式缓存系统。详细介绍了缓存淘汰策略LRU、并发控制、一致性哈希算法、分布式节点通信、缓存击穿的解决方案以及优化方向。]]></description><category></category></item><item><title><![CDATA[【Go沉思录】朝花夕拾：探究 Go 接口型函数]]></title><link>https://blog.csdn.net/theaipower/article/details/146182167</link><guid>https://blog.csdn.net/theaipower/article/details/146182167</guid><author>theaipower</author><pubDate>Tue, 11 Mar 2025 17:05:15 +0800</pubDate><description><![CDATA[接口型函数是Go语言中一种优雅的设计模式，它允许将普通函数转换为接口类型，从而实现接口。其核心是定义一个与接口方法签名相同的函数类型，并为该函数类型实现接口方法。这种模式使代码更加简洁灵活，既可以用函数直接实现接口（通过类型转换），也可以用结构体实现接口，适用于接口只有单一方法的场景。在标准库中，如net/http包的Handler和HandlerFunc就是典型应用，它使API设计更加灵活，提高了代码的可读性和可维护性。]]></description><category></category></item><item><title><![CDATA[【Go万字洗髓经】Golang内存模型与内存分配管理]]></title><link>https://blog.csdn.net/theaipower/article/details/146131181</link><guid>https://blog.csdn.net/theaipower/article/details/146131181</guid><author>theaipower</author><pubDate>Mon, 10 Mar 2025 16:17:57 +0800</pubDate><description><![CDATA[对Golang的内存模型和内存分配与管理进行了全面梳理，探究了一些核心组件，如mcache、mheap、mcentral，并且从GMP视角出发，研究了内存模型，借助对象分配流程，来梳理巩固内存模型的理解和概念。]]></description><category></category></item><item><title><![CDATA[【GoTeams】-5：引入Docker]]></title><link>https://blog.csdn.net/theaipower/article/details/146112432</link><guid>https://blog.csdn.net/theaipower/article/details/146112432</guid><author>theaipower</author><pubDate>Sat, 08 Mar 2025 14:45:19 +0800</pubDate><description><![CDATA[一直对docker的实战有点少，并且随着hub被封之后，也有点惧怕用docker这些，比如写docker-compose进行容器编排，写dockerfile文件编译镜像，编译go程序为可执行文件等，通过本次实战，熟悉了不少，也对整个部署运营有了了解，实战大于学习，之前看过再多的知识，不如自己实战效果更好一些，学习和收获会更大。勇于挑战才能进步。]]></description><category></category></item><item><title><![CDATA[【GoTeams】-4：为项目引入etcd]]></title><link>https://blog.csdn.net/theaipower/article/details/146097739</link><guid>https://blog.csdn.net/theaipower/article/details/146097739</guid><author>theaipower</author><pubDate>Fri, 07 Mar 2025 22:44:31 +0800</pubDate><description><![CDATA[大概梳理下etcd和gRPC之间的关系，但是感觉还不是很懂，后边挑个空再好好搞清楚。]]></description><category></category></item><item><title><![CDATA[【GoTeams】-3：构建api、重构错误码]]></title><link>https://blog.csdn.net/theaipower/article/details/146081661</link><guid>https://blog.csdn.net/theaipower/article/details/146081661</guid><author>theaipower</author><pubDate>Fri, 07 Mar 2025 15:41:24 +0800</pubDate><description><![CDATA[把系统构建api层，前端发起请求将通过api层，api又内部调用gRPC服务，使系统安全性和可拓展性都增加了，然后还进行了重构错误码。]]></description><category></category></item><item><title><![CDATA[【GoTeams】-2：项目基础搭建（下）]]></title><link>https://blog.csdn.net/theaipower/article/details/146073323</link><guid>https://blog.csdn.net/theaipower/article/details/146073323</guid><author>theaipower</author><pubDate>Thu, 06 Mar 2025 21:43:48 +0800</pubDate><description><![CDATA[本篇文章学习到了很多，比如gRPC的服务器生成、服务生成、服务注册，以及如何用闭包进行优雅的关闭，第一次感受到以前学过的知识串起来的感觉！收获颇多的一次代码实战！]]></description><category></category></item><item><title><![CDATA[【GoTeams】-1：项目基础搭建]]></title><link>https://blog.csdn.net/theaipower/article/details/146055340</link><guid>https://blog.csdn.net/theaipower/article/details/146055340</guid><author>theaipower</author><pubDate>Thu, 06 Mar 2025 15:47:17 +0800</pubDate><description><![CDATA[GoTeams：项目协同管理实战1-基础搭建（上）]]></description><category></category></item><item><title><![CDATA[【Linux内核】如何编译并运行一个Linux内核]]></title><link>https://blog.csdn.net/theaipower/article/details/146013991</link><guid>https://blog.csdn.net/theaipower/article/details/146013991</guid><author>theaipower</author><pubDate>Tue, 04 Mar 2025 17:24:16 +0800</pubDate><description><![CDATA[编译并运行一个Linux内核。]]></description><category></category></item><item><title><![CDATA[【鸿蒙操作系统】- 1：实习阶段的一些总结（OS方面）]]></title><link>https://blog.csdn.net/theaipower/article/details/145996761</link><guid>https://blog.csdn.net/theaipower/article/details/145996761</guid><author>theaipower</author><pubDate>Mon, 03 Mar 2025 22:04:42 +0800</pubDate><description><![CDATA[对开源鸿蒙OpenHarmony内核相关知识与实习经历的一些个人理解总结。]]></description><category></category></item><item><title><![CDATA[【基于Raft的KV共识算法】-序：Raft概述]]></title><link>https://blog.csdn.net/theaipower/article/details/145970568</link><guid>https://blog.csdn.net/theaipower/article/details/145970568</guid><author>theaipower</author><pubDate>Sun, 02 Mar 2025 22:51:25 +0800</pubDate><description><![CDATA[Raft概述，介绍任期、领导选举、日志同步等基础概念。]]></description><category></category></item><item><title><![CDATA[【造个轮子】使用Golang实现简易令牌桶算法]]></title><link>https://blog.csdn.net/theaipower/article/details/145915606</link><guid>https://blog.csdn.net/theaipower/article/details/145915606</guid><author>theaipower</author><pubDate>Fri, 28 Feb 2025 13:32:20 +0800</pubDate><description><![CDATA[50行代码手撕简易令牌桶算法]]></description><category></category></item></channel></rss>