章鱼花园 Vol. 44: MMXXII
Happy New Year! 新的一年 MMXXII (2022). 分享一个笑话:
•Question: What's your new year's resolution ?
•Answer: 1920 x 1080 (a.k.a 1080p)。因为 resolution 有「决心」也有「分辨率」的意思。
• 这是玩笑,我的新年愿望:少学习,多睡觉。:)
Sense
Raycast #Tools Potential Alfred 替代品。
Docker DeepL #Docker DeepL 翻译,基于 Docker 无需 API Token. #English
Rust 入门小指南 #Rust 人总要进步,技多不压身,开始看看 Rust。 Omicron 已经很恐怖了,Rust 语言有一本教程叫做 《The Rustonomicon》中文翻译成 《Rust 死灵书》,据说是一本教人如何写 unsafe(非安全) 代码的书。所以要灵魂死亡了嘛。话说我们用 Java/C++ 不是天天在写 unsafe 代码 (bug)吗?
BPF 简史 #Architecture 内核可编程。这篇文章其实把 eBPF/cBPF (统称为 BPF) 的历史脉络讲的比较清楚了,期待未来有更多好玩的吧。
BPF is Eating the World, Don’t you see? - Arnaldo Carvalho de Melo (acmel) From RedhatErrors are values 写 Golang 被吐槽最多的是一堆的错误判断
if err != nil {}代码,导致code smells。相信我,那是因为你的功力不足,当然我也是这样。早在 2014 年有个日本程序员@jxck_在 GoCon 上吐槽这个错误处理,然后 Rob Pike 大神 (Go 作者之一)现场亲自给这哥们重构代码,所以有了这篇博文。这位日本程序员的 Blog 记录了当时的视频。 #Golang 一个好玩的事情, Rob 在这里也讲当时为啥要亲自给他写 "I mentioned this technique in our discussion but@jxck_didn’t see how to apply it. After a long exchange, hampered somewhat by a language barrier, I asked if I could just borrow his laptop and show him by typing some codes." 在我看来这是在吐槽日式英语么。:)
# The Web3 Fraud #Digital-currency Web3 的反对声音,作者 Nicholas Weaver (UCB Researcher)说现在的 Web3 还是现有的那套分布式系统但是把 gatekeeper (responsible entities in the system) 给去掉了,用的是什么呢? Instead there are ugly hacks, such as a "proof of work" system where sibyls (i.e., attackers) are only prevented by the need to waste resources, or "proof of stake" where the design literally becomes "he who has the gold makes the rules"。 文章用了很多 Eth 的性能数据来说明在 Web3 infra 上做现有 Web 同样事情的开销和成本。Put bluntly, the Ethereum “world computer” has roughly 1/5,000 of the compute power of a Raspberry Pi 4! 作者最后的结论「从本质上讲,加密货币空间只是一个巨大的庞氏骗局,早期参与者赚钱的唯一途径是如果有更多的人进入这个空间。加密货币的唯一 “效用”(除了犯罪交易和金融欺诈) 是其他人会为它支付什么,以及任何假装可能存在的现实世界效用的东西,以帮助寻找新的傻瓜。」 你认同吗? #Web3
Sensibility
MMXXII: Roman numerals for 2022 #Life
ilk: a type of people or things similar to those already referred to. #English E.g., "I'm tired of you and your ilk! When you say "you and your ilk," you mean "you and everyone just like you." And that's not usually meant in a nice way.Home Lighting 101 最近买灯,买错了几次。可以了解一下。 #Life
《不要抬头 Don't Look Up 2021》 和 《狩猎 The Hunter 2020》 年底了看了 2 部电影(都有强烈的政治隐喻) 两部的结论都挺有意思的。推荐一看。 #Movies
岁末的话 (2021) 一位从事了近 20 年化学品的毒理评估的科研人员关于疫苗 mRNA,关于 USFDA/CDC的看法。文章有一点是「用药后产生的严重毒副作用都不能排除其与药物的相关性,除非有证据表明其它因素导致了这种毒副作用」科学的审慎和小心求证正是如此。世界不应该只有一种声音,很多时候我们需要数据,结论是谁来得出,就如同分布式系列里面每个 participant一样,at least maximizing their profit。唉,今年 (2022) 这个世界将何去何从? #Life #Politics #Technology
引用链接
[1]Raycast: https://www.raycast.com/[2]Docker DeepL: https://hub.docker.com/r/zu1k/deepl[3]Rust 入门小指南: https://zhengyinyong.com/post/rust-newbie/[4]The Rustonomicon: https://doc.rust-lang.org/nomicon/[5]BPF 简史: https://zhengyinyong.com/post/bpf-history/[6]Errors are values: https://go.dev/blog/errors-are-values[7]日本程序员的 Blog: https://jxck.hatenablog.com/entry/golang-error-handling-lesson-by-rob-pike[8]Go 语言错误处理的姿势: https://nanmu.me/zh-cn/posts/2021/error-handling-in-go/[9]# The Web3 Fraud: https://www.usenix.org/publications/loginonline/web3-fraud[10]Home Lighting 101: https://www.superbrightleds.com/blog/home-lighting-101-guide-understanding-light-bulb-shapes-sizes-codes/2315/[11]《不要抬头 Don't Look Up 2021》: https://nanmu.me/zh-cn/posts/2021/error-handling-in-go/[12]《狩猎 The Hunter 2020》: https://movie.douban.com/subject/30182726/[13]岁末的话 (2021): http://xiang-ping.hxwk.org/2021/12/31/%e5%b2%81%e6%9c%ab%e7%9a%84%e8%af%9d-%ef%bc%882021%ef%bc%89/

