Posted in

Go泛型与类型系统深度题:interface{} vs ~int vs any,何时触发编译期单态化?(基于Go 1.22 runtime.type结构体对比)

第一章:Go泛型与类型系统深度题 … Go泛型与类型系统深度题:interface{} vs ~int vs any,何时触发编译期单态化?(基于Go 1.22 runtime.type结构体对比)Read more

Posted in

Go语言国泛型性能反直觉真相:interface{} vs any vs ~int 在map[string]T场景下吞吐量差异达219%

第一章:Go语言泛型性能反直觉真 … Go语言国泛型性能反直觉真相:interface{} vs any vs ~int 在map[string]T场景下吞吐量差异达219%Read more

Posted in

Go中any到底是不是interface{}?(权威源码级对比:runtime/internal/unsafeheader与reflect包双验证)

第一章:Go中any与inter … Go中any到底是不是interface{}?(权威源码级对比:runtime/internal/unsafeheader与reflect包双验证)Read more

Posted in

Go中map[any]any含struct转JSON报错“json: unsupported type”?深入runtime.typeAlg与interface{}底层类型的5层判定逻辑

第一章:Go中map[any]a … Go中map[any]any含struct转JSON报错“json: unsupported type”?深入runtime.typeAlg与interface{}底层类型的5层判定逻辑Read more