《CPython Internals》阅读笔记:p1-p19

《CPython Internals》学习第 1 天,p1-p19 总结,总计 19 页。

一、技术总结

无。

二、英语总结(生词:2)

1.humble vs humbled

(1)humble: humus("earth")

adj. 字面意思是"on the ground", 后面引申为"lowly in kind, state, condition(卑微)", "not proud that you are important(谦卑)"。

(2)humble vs humbled

I love building tools that help us learn, empower us to create, and move us to share knowledge and ideas with others. I feel humbled, thankful, and proud when I hear how these tools and Python are helping you to solve real-world problems, like climate change or Alzheimer's...

刚开始看到上面这句话的时候不禁疑惑 humble 就是形容词,为什么不用 humble 而用 humbled 呢?经过查资料,l两者区别如下:

1)humble: modest, describe a quanlity of a person(即我们常说的"谦虚")。

示例:She is a humble person.

2)humbled: made less proud, especially by awe or admiration, or by gratitude for help received, an undeserved advantage or honor(即我们常说的"自愧不如")。

示例:I felt humbled by their generosity.

"I love building tools that help us learn, empower us to create, and move us to share knowledge and ideas with others."------前一句说作者自己喜欢使用Python开发工具,这些工具帮助人们学习,赋予人们创造的能力,推动人与人之间的知识分享。

"I feel humbled, thankful, and proud when I hear how these tools and Python are helping you to solve real-world problems, like climate change or Alzheimer's..."------后一句说当作者听到人们使用这些工具和 Python 去解决现实世界的问题(如气候变化、阿兹海默症)时,作者感到"humbled, thankful, proud"。

从这里可以看出,其实前后是有一个对比的,前面仅仅是开发一些工具,而后面是去解决现实世界问题,显然后者的影响、意义更大,所以作者感到humbled(自愧不如)。这体现出作者是一个humble(谦虚)的人。

2.navigate

(1)navigate: navis("ship") + *ag("to drive, move")

vi/vt. to direct the way(导航)

p13, In this book, you'll cover the major concepts behind the internals of CPython and learn how to: ... Navigate and comprehend the inner workings of features like lists, dictionaries, and generators...

虽然 navigate 经常被翻译成"浏览(快速的看)",但我觉得在上面这段话中,如果将 navigate 翻译成"浏览"------"在本书中,你将了解 CPython 内部工作原理背后的主要概念,并学习如何浏览并彻底理解列表,字典和生成器等特性的内部工作原理"------"学习如何浏览"总感觉很别扭,因为浏览是不需要学习的。在这里,我觉得navigate的意思偏向"find your way throug/actively exploring",理解成"探究(探索研究)"更好。

关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。

三、其它

1.为什么选择这本书

Python 是本人工作中最常用的开发语言,为了加深对 Python 的理解,更好的掌握 Python 这门语言,所以想对 Python 解释器有所了解,看看是怎么使用C语言来实现Python的,以期达到对 Python语言的掌握达到精通的程度,。

关于 Python 解释器的书不多------Anthony Shaw写的《CPython Internals》,陈儒写的《Python源码剖析》。

因为《CPython Internals》在2021年出版,使用的是Python3,比较新。而《Python源码剖析》在 2008 年出版,使用的是Python 2.5,比较古老。所以先阅读《CPython Internals》。

2.阅读初体验

第一天阅读都还没进入正文,感觉非教材类的书籍都容易有一个毛病------口水话很多、缺乏严谨性。示例:CPython gives the developer writing Python code the platform to write scalable and performant applications,把这句话里面的 CPython 换成其它虚拟机(或解释器)也成立,这种放之四海而皆准的话真的毫无意义,又不是去评奖。This book is all about learning by doing, so be sure to set up your IDE early in the book using the instructions, downloading the code, and writing the examples,严格来说 "set up IDE" 不应该通过"downloading the code, and writing the examples",它们之间是独立的。

总而言之,introduction(简介/概述)这一章读起来就让我感到挺痛苦。

四、参考资料

1. 编程

(1) Anthony Shaw,《CPython Internals》:https://book.douban.com/subject/35405785/

2. 英语

(1) Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org

欢迎搜索及关注:编程人(a_codists)

相关推荐
Go Work15 分钟前
两个等值条件摆着,MySQL 偏要全表扫
经验分享·笔记
Oll Correct26 分钟前
Adobe illustrator 案例十四:花元素标志草图绘制
笔记·ui·adobe·illustrator
每月一号准时摆烂5 小时前
服务器运维笔记(一)——使用shell编写实时查看BMC功率的脚本
运维·服务器·笔记
柳鲲鹏1 天前
内斗学概论:43、平级内斗
笔记
星恒随风1 天前
MySQL 从零入门(四):表的增删改查与基础查询详解
linux·服务器·数据库·笔记·mysql
Z21-X1 天前
云原生运维学习笔记:ECShop全链路容器化部署与Docker底层资源隔离深度剖析
运维·笔记·学习·云原生
晓梦林1 天前
BUUCTF-菜刀流量-MISC-学习笔记
笔记·学习
David猪大卫2 天前
【C++修炼】map 和 set 的使用
c语言·开发语言·数据结构·c++·经验分享·笔记·学习
星恒随风2 天前
MySQL 从零入门(三):表的约束详解
linux·服务器·数据库·笔记·mysql
Oll Correct2 天前
Adobe illustrator 案例十三:adidas标志草图绘制
笔记·ui·adobe·illustrator