Effective Go-3

分配 通过new和make分配空间: - new分配空间,返回指针 - make可以进行生成slices,maps,channels,返回类型 go中更推荐使用切片而不是数组。 - 数组长度固定 - 切片可以动态调整容量(cap) 下面是二位数组和二位切片的示例。 key,value形式的数据结构,key可以是整数,浮…

2021-04-15 · 3 分钟

Effective Go-2

若在一行最后一个标识符为以下类型 - 数字 - 字符串常量 - 特殊标识符号;break continue fallthrough return ++ -- ) } 词法分析器会在标识符后添加分号, 与C不同GO很多地方都省略分号。 另在在if for switch select控制结构后要接 “{”, 例如: 而不要…

2021-04-07 · 2 分钟

Effective Go - 1

为了减少格式化问题带来的争议,可以使用 gofmt 程序对源码进行格式化。

2021-03-07 · 2 分钟

比特币,区块链与自由软件

这篇文章 Open source money: Bitcoin, blockchain, and free software

2021-02-24 · 4 分钟

关于Trie

最早提及Trie树的一篇文章

2021-01-16 · 21 分钟

Understanding Linux filesystems: ext4 and beyond

这篇文章Understanding Linux filesystems: ext4 and beyond

2020-09-16 · 2 分钟

出色管理者如何帮助团队成员解决问题

这篇文章Don’t solve problems if you want to be a great manager

2020-08-12 · 2 分钟

Why mmap is faster than system calls

原文链接 作者 Alexandra Sasha Fedorova

2020-07-24 · 2 分钟

为什么x86无法生存-Why x86 won’t survive

前不久, 评估CEO 库克在其全球开发者大宣布,Mac笔记本以及个人电脑将会改用苹果自家的ARM架构处理器。这将是自2006年从PowerPC处理器改用英特尔x86处理器后,又一次CPU架构的调整。下面这篇文章是Medium推送的,不过文章贬低X86中提到的漏洞, 我查

2020-06-29 · 3 分钟

Timers and time management in the Linux kernel. Part 7.

这篇文章 Timers and time management in the Linux kernel. Part 7

2020-06-07 · 12 分钟