- 博客(237)
- 收藏
- 关注
原创 《Operating System Concepts》阅读笔记:p2-p8
示例:By now, you can probably see that the term operating system covers many roles and functions. That is the case, at least in part, because of the myriad designs and uses of computers(《Operating System Concepts》第5页)。
2025-02-09 00:06:48
757
原创 2025年1月文章一览
专业方面,2025年1月阅读完了两本书《计算机组成及汇编语言原理》、《CPython Internals》。虽然《计算机组成及汇编语言原理》是 2008 年出版,但经典就是能跨越时间,即使现在是 2025 年,读起来依然顺畅,给人启发。想想 《CPython Internals》 写的如此糟糕,而自己却花了那么多时间,真是糟蹋啊,吸取 1 月阅读的教训,在 2 月的阅读中,保持 30 页/天的进度。1月回家过了个年,今年的春节于我而言,是一个平淡的新年, 没有什么变化。
2025-02-05 08:42:55
226
原创 《Operating System Concepts》阅读笔记:p1-p1
无。An operating system acts as an intermediary between the user of a computer and the computer hardware(《Operating System Concepts》第1页。。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-29 00:03:27
505
原创 《CPython Internals》读后感
Python 是本人工作中最常用的开发语言,为了加深对 Python 的理解,更好的掌握 Python 这门语言,所以想对 Python 解释器有所了解,看看是怎么使用C语言来实现Python的,以期达到对 Python语言的掌握达到精通的程度,。关于 Python 解释器的书不多——Anthony Shaw写的《CPython Internals》,陈儒写的《Python源码剖析》。因为《CPython Internals》在2021年出版,使用的是Python3,比较新。
2025-01-27 15:08:56
858
原创 《CPython Internals》阅读笔记:p360-p377
可视化工具。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-26 14:54:57
307
原创 《CPython Internals》阅读笔记:p356-p359
如果按照作者所给的定义“The benchmark suite is the tool to use when comparing the complete performance of Python.”,那么 timeit 也算一个 benchmark suite。但是,timeit 不能算作 benchmark suite,可以算一个 benchmark tool。所以作者给的定义非常不准确。
2025-01-25 23:40:39
509
原创 《CPython Internals》阅读笔记:p353-p355
Python中常用的 benchmark 有 timeit, pyperformance。x**x”我觉得这是一个很糟糕的示例,没有看出这个示例有什么意义。对于timeit 模块,我更希望放在整个项目中去看,看看它在实际项目中的应用。很遗憾,截止到目前,在我所看过的书中,关于 timeit 的使用都是测试一些代码片段。(2)关于timeit的一点说明。
2025-01-24 23:18:29
674
原创 《CPython Internals》阅读笔记:p336-p352
GDB 是 GNU Dbugger 的缩写。(1)安装(2)创建 .gdbinit 文件(3)配置 .gdbinit 文件注:1./project/cpython 为 cpython 所在的目录。(4)设置断点GDB的使用可以参考书籍《Debugging with GDB》或者在线手册。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-23 23:50:35
1064
1
原创 《CPython Internals》阅读笔记:p329-p335
p331, There are two types of debugger, console and visual——作者将 debugger分为两类:(1)console:lldb(MAC系统使用), GDB(Linux系统使用))。(2)visual:Visual Studio Debugger, CLion Debugger, VS Code Debugger——这就是没话硬拗。无。
2025-01-22 23:59:21
373
原创 《CPython Internals》阅读笔记:p285-p328
p285, In Objects object.c, the base implementation of the object type is written in pure C code. There are some concrete implementations of basic logic, like shallow comparisons(《CPython Internals》第285页)。
2025-01-21 13:57:58
834
原创 《CPython Internals》阅读笔记:p250-p284
介于我觉得作者写得乱七八糟的,读完我已经不想说话了,所以今日无技术总结。(1)spawn:来自于词根expandere。spawn原来的意思是“spreadingoutoffisheggsreleasedinwater”,后来演变为“vt.toengenderinlargenumber(大量产生),giveriseto(产生),generate(),bringforthsth(产生,创造)”。
2025-01-20 14:20:38
319
原创 《CPython Internals》阅读笔记:p232-p249
无。overhead的字面意思是:abovethehead,后来演变成"representthingssituatedaboveormetaphoricallyreferringtoadditionalcosts".adj.operating,lying,orcommingfromabove.示例:Thisroomneedsoverheadlighting(这个房间需要顶灯).
2025-01-19 23:52:37
706
原创 《CPython Internals》阅读笔记:p221-p231
无。idiom.separately(单独地)inthespecifiedgroups(一次)。示例:(1)Icanonlydoonethingatatim(我一次只能做一件事)。(2)Wecarriedtheboxestwoatatimeupthestairs(我们一次抬两个箱子上楼)。(3)hetookthestairstwoatatime(他一步跨两级楼梯)。
2025-01-17 23:57:10
484
原创 《CPython Internals》阅读笔记:p177-p220
上面这几个定义摘自第 178 页。我不得不再次吐槽:既然是分类,那么分类的依据是什么?很遗憾,作者没有说。介于此,补充一个GNU的文档说明,个人觉得GNU的说明更清楚:●●从GNU的文档中我们不难看出:首先根据是否需要手动可无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-16 22:38:32
718
原创 《CPython Internals》阅读笔记:p152-p176
上面的代码涉及两个指令:LOAD_FAST, LIST_APPEND。整章看下来这有这点算是可以记的了,其它的只感觉作者在零零碎碎的罗列内容。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-15 23:21:52
338
原创 《CPython Internals》阅读笔记:p151-p151
无。The CPython interpreter will evaluate and execute a code object fetched from either the marshaled .pyc file or the compiler(《Python Internals》第151页)。这两个词我在阅读中经常会遇到,它们的区别是什么呢?我还没有搞清楚,现在先mark汇总,后续再做总结。
2025-01-14 22:44:42
331
原创 《CPython Internals》阅读笔记:p118-p150
补充一些本人整理的关于 Context-Free Grammar(CFG) 的知识。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-13 23:51:06
641
原创 《CPython Internals》阅读笔记:p97-p117
《CPython Internals》学习第 7 天,p97-p117 总结,总计 21 页。根据《Compilers-Principles, Techniques, and Tools》(《编译原理》第2版)第 5 页:The first phase of a compiler is called lexical analysis or scanning. The lexcical analyzer reads the stream of characters making up the source
2025-01-12 23:51:55
570
原创 《CPython Internals》阅读笔记:p96-p96
当做这在 92 页提到 parser-tokenizer 的时候我没在意,也不知道这个词项表达什么意思。然后其在 96 页的时候以及后面又提到了,先Mark一下。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-11 23:50:07
330
原创 《CPython Internals》阅读笔记:p76-p95
无。vi/vt. to exam sth to ensure it is correct, true, or in good condition.示例:这种用法比较常见。(2)Unlike PEP 8, there are few tools for checking compliance with PEP 7(注:《CPython Internals》第78页).
2025-01-10 23:18:18
452
原创 《CPython Internals》阅读笔记:p61-p75
wiki 上写的是 self-hosting compiler, 不知道作者为什么要改成 self-hosted。也称为compiler generator。
2025-01-10 00:00:07
976
原创 《CPython Internals》阅读笔记:p43-p60
其实我比较好奇作者列的这些 package 是根据经验还是根据什么列的,是否有遗漏?网上看的很多文章也没有说一个基本的编译有多少个 package 是必需的,反正如果编译的时候报错就根据错误继续安装。感觉是列不列出这些 package 的效果都差不多。这里先记录一下。无。关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
2025-01-08 22:38:49
752
原创 《CPython Internals》阅读笔记:p20-p42
Refer literally means “to carry back”, and over time, it evolved to mean “to direct attention to sth(引导注意力到xxx)” or “to mention sth(提及)”。reference 有三种用法:1)c/u. the act of mentioning sth。
2025-01-07 23:56:09
528
原创 《CPython Internals》阅读笔记:p1-p19
无。adj. 字面意思是“on the ground”, 后面引申为“lowly in kind, state, condition(卑微)”, “not proud that you are important(谦卑)”。刚开始看到上面这句话的时候不禁疑惑 humble 就是形容词,为什么不用 humble 而用 humbled 呢?经过查资料,l两者区别如下:1)humble: modest, describe a quanlity of a person(即我们常说的“谦虚”)。
2025-01-07 00:00:09
628
原创 《计算机组成及汇编语言原理》读后感
这本书来自于:https://github.com/codefollower/My-Blog/issues/1。工作之后,个人一直追求的一个方面就是“系统化”,笼统的来说就是从以下两方面进行系统化:“基础”+“专业”。这本书属于基础方面的深化,通过 Java 虚拟机来讲计算机组成。
2025-01-05 16:31:58
803
原创 《计算机组成及汇编语言原理》阅读笔记:p200-p240
vt. to image sth to happen/to expect sth to happen (设想,期望)。
2025-01-04 15:42:44
742
原创 《计算机组成及汇编语言原理》阅读笔记:p178-p199
BSWAP 的意思是 “Byte SWAP”, 作用是“The bswap instruction reverse the byte order of the destination. This instruction is provided for converting little-endian values to big-endian format and vice versa.”。示例:bswap eax。
2025-01-03 10:42:20
840
原创 《计算机组成及汇编语言原理》阅读笔记:p177-p177
A programming model where the program has access to the entire capability of the machine, bypassing security and memory management. Useful primarily for operating systems and other supervisor-level programs(实模式是一种编程模型,其中程序可以绕过安全管理和内存管理去访问机器的全部功能。
2025-01-02 23:20:56
827
原创 2024年12月文章一览
看了下是从23年7月就开始写文章一览了,感觉过了很长很长的时间。2025年,祝大家元旦快乐,在新的一年都能得偿所愿。欢迎搜索及关注:编程人(a_codists)
2025-01-02 20:30:04
349
原创 《计算机组成及汇编语言原理》阅读笔记:p160-p176
so much 在这里用作名词,意思是"many things"。as with so much in life 等同于 like many things in life, just as it is often the case in life(就像生活中的很多事情一样)。
2025-01-01 00:04:43
919
原创 《计算机组成及汇编语言原理》阅读笔记:p133-p159
《计算机组成及汇编语言原理》学习第 11 天,p133-p159 总结,总计 27 页。Broadly speaking, a contiguous section of memory. More specifically, a section of memory referenced by one of the segment registers of the 80x86 family.The memory of the 8088 was divided into segments of 64 Kby
2024-12-30 20:32:29
1040
原创 《计算机组成及汇编语言原理》阅读笔记:p128-p132
8088处理器是16位电脑,寄存器是16位,数据总线(data bus)是8位,地址总线是20位。
2024-12-29 21:50:00
355
原创 《计算机组成及汇编语言原理》阅读笔记:p123-p127
《计算机组成及汇编语言原理》学习第 9 天,p123-p127 总结,总计 5 页。(1)cache memoryremove blank from “Most computers support two different kinds (levels) of cache: level one (L1) cache is built into the CPU chip itself and runs at CPU speed, while level two (L2) cache is a special
2024-12-28 23:57:14
555
原创 《计算机组成及汇编语言原理》阅读笔记:p121-p122
vt. interpet sth in a new of different way(重新解释)。disk.
2024-12-27 23:46:05
453
原创 《计算机组成及汇编语言原理》阅读笔记:p116-p120
例如:16位电脑提升到32位电脑。One way to make computers more useful is to allow them to run more than one program at a time.——不是很确定这里指的是不是“多进程”。
2024-12-26 23:35:16
626
2
原创 《计算机组成及汇编语言原理》阅读笔记:p86-p115
在许多编程语言中,有类种循环:一种是在程序开头检测条件(test the condition),另一种是在程序末尾检测条件。在大部分的词典中,decrement都只做名词,但是在计算机领域,也可以做动词。
2024-12-25 15:33:12
821
原创 《计算机组成及汇编语言原理》阅读笔记:p82-p85
vt. to say unpleasant things about someone, in order to cause other people to have a bad opinion of them(诋毁)。
2024-12-24 23:58:19
914
原创 《计算机组成及汇编语言原理》阅读笔记:p48-p81
c/u. an event that result in great harm, damage, death, or serious difficulty(灾难)。
2024-12-23 22:52:11
667
原创 《计算机组成及汇编语言原理》阅读笔记:p28-p47
在控制单元(Control Unit, CU)里面有一个指令寄存器(Instruction Register, IR)和一个程序计数器(Program Counter, PC)。PC保存下次要访问的内存(memory)地址, IR保存从内存地址拿到的数据(pattern)。vt. to promise together(妥协,折中,让步)。
2024-12-22 17:17:21
808
原创 《计算机组成及汇编语言原理》阅读笔记:p9-p27
quantum的本意是:c. the smallest amount of sth(量子)。In physics, a quantum is the minimum amount of any physical entity (physical property) involved in an interaction(在物理学中,量子(quantum)是参与基本相互作用的任何物理实体(物理性质)的最小量)。c. the smallest amount of sth(量子)。
2024-12-21 23:32:30
996
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人