Posted in

Go整型选型难题全解析,从嵌入式到云原生:如何为性能、内存、兼容性精准匹配int8/int16/int32/int64/uintptr?

第一章:Go整型选型难题全解析, … Go整型选型难题全解析,从嵌入式到云原生:如何为性能、内存、兼容性精准匹配int8/int16/int32/int64/uintptr?Read more

Posted in

Go语言基本类型演进史:从Go 1.0到Go 1.22,int/uintptr/unsafe.Pointer语义变迁中的3次重大breaking change

第一章:Go语言基本类型概览与演 … Go语言基本类型演进史:从Go 1.0到Go 1.22,int/uintptr/unsafe.Pointer语义变迁中的3次重大breaking changeRead more

Posted in

Go语言基础数据类型深度解析(官方源码级拆解):int/uint/float/string/bool/complex/array/slice/map/channel 8类本质揭秘

第一章:int与uint:整数类 … Go语言基础数据类型深度解析(官方源码级拆解):int/uint/float/string/bool/complex/array/slice/map/channel 8类本质揭秘Read more

Posted in

slice header三大字段(ptr/len/cap)如何被编译器“偷偷”篡改?:逃逸分析+SSA优化下的底层副作用实录

第一章:slice header … slice header三大字段(ptr/len/cap)如何被编译器“偷偷”篡改?:逃逸分析+SSA优化下的底层副作用实录Read more

Posted in

Go map底层无锁设计真相:不是完全无锁!runtime.mapaccess1中2处atomic.Loaduintptr + 1处atomic.AddUintptr构成轻量同步协议

第一章:Go map底层无锁设计 … Go map底层无锁设计真相:不是完全无锁!runtime.mapaccess1中2处atomic.Loaduintptr + 1处atomic.AddUintptr构成轻量同步协议Read more