工作二字似乎就足够概括我这一整年的经历,2018 对于我来说,nothing happens to me。
Go source code study is open source
Published at:
|
Reading:
75 words ~1min
Since the middle of last month, I started to read the source code of programming language Go for better understanding its runtime and more. The entire series are based on Go 1.11 at the moment, and it will continuously getting support for at least three major release version. Now, the entire article is open source at GitHub: https://github.com/changkun/go-under-the-hood. You can submit an issue or pull request to contribute if you
Go source study: unsafe Pattern
Published at:
|
Reading:
1860 words ~4min
Go 源码研究:unsafe
范式
unsafe
包该包会绕过所有的 Go 类型安全检查,几乎是 Cgo 的灵魂,也是支撑 Go 运行时、reflect
、系统调用等机制的核心。
Go source study: sync.Pool
Published at:
|
Reading:
3411 words ~7min
Go 源码研究:sync.Pool
sync.Pool 是一个临时对象池。一句话来概括,sync.Pool 管理了一组临时对象,当需要时从池中获取,使用完毕后从再放回池中,以供他人使用。
Go runtime programming
Published at:
|
Reading:
3998 words ~8min
Go 运行时编程
本文可能会过时。 它旨在阐明不同于常规 Go 编程的 Go 运行时编程,并侧重于一般概念而非特定接口的详细信息。