摘要: 编译系统 参考文档: 图解Rust编译器与语言设计: https://rustmagazine.github.io/rust_magazine_2021/chapter_1/rustc_part1.html Rust编译过程 rustc 的编译过程包含两个层面的“转换阶段”: 一是源代码到可执行文件 阅读全文
posted @ 2026-07-14 18:23 HEZOF 阅读(1) 评论(0) 推荐(0)
摘要: 字符集 解剖Rust: 字符集 词汇表 程序项 Rust使用Unicode字符集 字符使用UTF32编码 字串使用UTF8编码! 由此导致编译器限制: 字串(&str)完全禁止索引 字串(&str)有限支持切片, 遇到非法UTF8边界会panic! 例如: fn main() { let s = " 阅读全文
posted @ 2026-07-14 15:19 HEZOF 阅读(2) 评论(0) 推荐(0)
摘要: package schedule import ( "container/list" "context" "fmt" "sync" ) /**********************************\ Task任务接口 \**********************************/ 阅读全文
posted @ 2023-03-16 16:01 HEZOF 阅读(158) 评论(0) 推荐(0)
摘要: virtualbox网络介绍 Bridge网络: 在主机创建一个bridge(网桥)供各虚机共用. 虚机直接暴露于主机网络环境可能带来诸多麻烦, 最简单就是网管会盯上你. 一般不建议! NAT网络: 虚机基于NAT(网络地址转换)连接外网环境, 也可以连接其他虚机. 但不能连接主机, 为了主机与虚机 阅读全文
posted @ 2022-06-16 11:58 HEZOF 阅读(236) 评论(0) 推荐(0)
摘要: 原版: [金山文档] Golang讲义 https://kdocs.cn/l/ckLEtJcp4m3B 1.前述 1.1 什么是Golang 来自"官网"的定义: https://golang.google.cn/ Go is an open source programming language 阅读全文
posted @ 2021-08-03 11:03 HEZOF 阅读(236) 评论(0) 推荐(0)
摘要: 问题 金山云对象存储(KS3)的"PUT Object" API老是抛"MissingContentLength"! 原因 go http.NewRequest()接收os.File等非bytes.Buffer, strings.Buffer类型时无法设置ContentLength 注意: req. 阅读全文
posted @ 2021-03-25 23:17 HEZOF 阅读(169) 评论(0) 推荐(0)
摘要: time.Tick的巨坑 go版本 >go version go version go1.15.4 windows/amd64 api文档 func Tick(d Duration) <-chan Time Tick is a convenience wrapper for NewTicker pr 阅读全文
posted @ 2021-02-24 10:43 HEZOF 阅读(551) 评论(0) 推荐(0)
摘要: 参考资料 grpc name resolver原理及实践: https://mp.weixin.qq.com/s?__biz=MzA4ODg0NDkzOA==&mid=2247487040&idx=1&sn=35e54214535da2f2203de2b7f09010d1&source=41#wec 阅读全文
posted @ 2021-02-18 14:59 HEZOF 阅读(1752) 评论(0) 推荐(0)
摘要: 总结protobapi扩展protobuf的设计过程, 有点哭笑不得! 应了一句话: 众里寻她千百度, 蓦然回首, 那人也不在灯火处! 辩证评价protobuf二种扩展机制 protobuf custom options protobuf comment constraints 从protobuf的 阅读全文
posted @ 2020-12-15 11:30 HEZOF 阅读(455) 评论(0) 推荐(0)
摘要: 如果无法查看图片, 请跳转博客正文: https://www.cnblogs.com/zolo/p/14066444.html 前述 本教程只说"实践",不谈"理论". 如果哪位觉得有趣, 可以加本人QQ(1255422783)详细交流! 问题 对于后端开发, 经常"众口难调". 一套业务逻辑却要三 阅读全文
posted @ 2020-12-01 09:55 HEZOF 阅读(773) 评论(0) 推荐(0)