《CPython Internals》閱讀筆記:p20-p42
《CPython Internals》學(xué)習(xí)第 2 天,p20-p42 總結(jié),總計(jì) 23 頁(yè)。
一、技術(shù)總結(jié)
1.Python interpreter
CPython,PyPython,Jypython,Cython。
2.閱讀 cpython 代碼工具
VSCode 或者 CLion。VSCode 配置講得挺清晰,但是 CLion 的配置講得很混亂,本人看完后感覺(jué)很懵,也沒(méi)配置好,先跳過(guò)吧,回頭再看。
二、英語(yǔ)總結(jié)(生詞:1)
1.reference implementation
(1)refer: re-("back") + fere("to carry")
Refer literally means "to carry back", and over time, it evolved to mean "to direct attention to sth(引導(dǎo)注意力到xxx)" or "to mention sth(提及)"。
(2) reference: refer + -ance(word-forming element attached to verbs to form abstract nouns of process or fact)
reference 有三種用法:1)c/u. the act of mentioning sth。2) vt. to refer to sth。3) adj. used or usable for reference。
CPython is the “official” or reference implementation of Python(注:《CPython Internals》第 21 頁(yè)).
這里的 reference 用作 adjective,意思是“供參考的,供參照的”,reference implementation 常譯作“參考實(shí)現(xiàn)”,有時(shí)候也稱為 sample example、model implementation。
1)定義
In the software development process, a reference implementation is a program that implements all requirements from a corresponding specification(在軟件開(kāi)發(fā)過(guò)程中,參考實(shí)現(xiàn)是一種實(shí)現(xiàn)了對(duì)應(yīng)規(guī)范中所有需求的程序)。
例如上面的 CPython 就是一種參考實(shí)現(xiàn)。
2)含義
reference implementation means the implementation that serves as a standard, guide, or basis(我們稱某種實(shí)現(xiàn)為參考實(shí)現(xiàn),意思是把這種實(shí)現(xiàn)當(dāng)做一種標(biāo)準(zhǔn)、指南或者基礎(chǔ))。
3)說(shuō)明
其實(shí) reference implementation 的定義比較模糊,并不是很絕對(duì)。
關(guān)于英語(yǔ)的注解同步更新匯總到 https://github.com/codists/English-In-CS-Books 倉(cāng)庫(kù)。
三、其它
如果使用的是 WSL + VSCode, 那么某些在 windows 上安裝的 VSCode 擴(kuò)展,需要點(diǎn)擊需要點(diǎn)擊擴(kuò)展下方的 “Install in WSL: Ubuntu-22.04” 再安裝一次。
四、參考資料
1. 編程
(1) Anthony Shaw,《CPython Internals》:https://book.douban.com/subject/35405785/
2. 英語(yǔ)
(1) Etymology Dictionary:https://www.etymonline.com
(2) Cambridge Dictionary:https://dictionary.cambridge.org
歡迎搜索及關(guān)注:編程人(a_codists)
浙公網(wǎng)安備 33010602011771號(hào)