Richard Jones 和 Rafael D Lins 写的《Garbage Collection: Algorithms for Automatic Dynamic Memory Management》。非常通俗好读,易于上手。我把整本书全看完了,这在技术书里对我来说几乎破天荒了。
"Garbage Collection: Algorithms for Automatic Dynamic Memory Management" by Richard Jones and Rafael D Lins. Very readable and approachable. I read the entire book, which I almost never do with technical books.
Richard Jones 的《Garbage Collection》。我本想推荐龙书(Dragon Book),不过放到现在看确实有点老了。Agner Fogg 的任何东西拿来做优化都很棒。还有就是 D 语言论坛,我们在那儿总是吵得热火朝天……
"Garbage Collection" by Richard Jones I'd recommend the Dragon Book, but it's a bit dated these days. Anything by Agner Fogg is good for optimization. There's always the D forum, where we're always going hammer and tong…
……Python 的 GC,通常会在引用计数的基础上加上 mark & sweep 阶段,这样哪怕某些垃圾对象内部自引用但没有外部引用,最终也会被回收。(顺便提一句,Richard Jones 和 Rafael Lins 写的《Garbage Collection》是了解 GC 细节的绝佳资料。O'Reilly 的 OCaml 书里也有不错的概览 (http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora082....……
…Python's GC, a mark&sweep phase is usually added to reference counting so that if there's garbage which contains references to itself but has no external references, it will eventually be collected. (_Garbage Collection_ by Richard Jones and Rafael Lins is an excellent resource on GC details, btw. There's also a decent overview in the O'Reilly OCaml book (http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora082....…
……超出适用场景乱用就会变成灾难)等等。他们全都是亲手写过硬核代码的大师,很多人理论水平也很高。http://www.amazon.com/Coders-at-Work-Peter-Seibel/dp/1430219... Jones 和 Lins 的《Garbage Collection》:基本是该领域唯一的专著(除了今年年中即将出版的《Advanced Garbage Collection》续作),涵盖了截至90年代中期的整个领域。有意思得多……
…disaster when used beyond their proper niches), etc. All are masters who've gotten their hands dirty, many are theory people as well. http://www.amazon.com/Coders-at-Work-Peter-Seibel/dp/1430219... Garbage Collection by Jones Lins: Pretty much the only book in the field (except for the forthcoming Advanced Garbage Collection sequel in the middle of this year), covers the territory as of the mid-90s. Much more fun…
……结束。Update:是的,有时候允许内存泄漏也没事)。正如有人在别处说的,这是个多维度的问题,单维度的 garbage collector 不可能在所有场景下都完美契合。最近 HN 上讨论过的 Richard Jones 那本《Garbage Collection》,我强烈建议你买来读读。
…the end. Edit: yes, it's sometimes ok to leak). As somebody says elsewhere, it's multidimensional issue and a single dimensional garbage collector can't be a brilliant match for everything. The book "Garbage Collection" by Richard Jones, recently discussed on HN, is something I'd highly recommend you buy and read.
Richard Jones 和 Rafael D Lins 写的《Garbage Collection: Algorithms for Automatic Dynamic Memory Management》。非常通俗好读,易于上手。我把整本书全看完了,这在技术书里对我来说几乎破天荒了。
"Garbage Collection: Algorithms for Automatic Dynamic Memory Management" by Richard Jones and Rafael D Lins. Very readable and approachable. I read the entire book, which I almost never do with technical books.
Richard Jones 的《Garbage Collection》。我本想推荐龙书(Dragon Book),不过放到现在看确实有点老了。Agner Fogg 的任何东西拿来做优化都很棒。还有就是 D 语言论坛,我们在那儿总是吵得热火朝天……
"Garbage Collection" by Richard Jones I'd recommend the Dragon Book, but it's a bit dated these days. Anything by Agner Fogg is good for optimization. There's always the D forum, where we're always going hammer and tong…
……Python 的 GC,通常会在引用计数的基础上加上 mark & sweep 阶段,这样哪怕某些垃圾对象内部自引用但没有外部引用,最终也会被回收。(顺便提一句,Richard Jones 和 Rafael Lins 写的《Garbage Collection》是了解 GC 细节的绝佳资料。O'Reilly 的 OCaml 书里也有不错的概览 (http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora082....……
…Python's GC, a mark&sweep phase is usually added to reference counting so that if there's garbage which contains references to itself but has no external references, it will eventually be collected. (_Garbage Collection_ by Richard Jones and Rafael Lins is an excellent resource on GC details, btw. There's also a decent overview in the O'Reilly OCaml book (http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora082....…
……超出适用场景乱用就会变成灾难)等等。他们全都是亲手写过硬核代码的大师,很多人理论水平也很高。http://www.amazon.com/Coders-at-Work-Peter-Seibel/dp/1430219... Jones 和 Lins 的《Garbage Collection》:基本是该领域唯一的专著(除了今年年中即将出版的《Advanced Garbage Collection》续作),涵盖了截至90年代中期的整个领域。有意思得多……
…disaster when used beyond their proper niches), etc. All are masters who've gotten their hands dirty, many are theory people as well. http://www.amazon.com/Coders-at-Work-Peter-Seibel/dp/1430219... Garbage Collection by Jones Lins: Pretty much the only book in the field (except for the forthcoming Advanced Garbage Collection sequel in the middle of this year), covers the territory as of the mid-90s. Much more fun…
关于这个话题资料很多。从这里入门很不错:http://www.amazon.com/Garbage-Collection-Algorithms-Automati...
There is a lot of data on this topic. This is a good starting place: http://www.amazon.com/Garbage-Collection-Algorithms-Automati...
……结束。Update:是的,有时候允许内存泄漏也没事)。正如有人在别处说的,这是个多维度的问题,单维度的 garbage collector 不可能在所有场景下都完美契合。最近 HN 上讨论过的 Richard Jones 那本《Garbage Collection》,我强烈建议你买来读读。
…the end. Edit: yes, it's sometimes ok to leak). As somebody says elsewhere, it's multidimensional issue and a single dimensional garbage collector can't be a brilliant match for everything. The book "Garbage Collection" by Richard Jones, recently discussed on HN, is something I'd highly recommend you buy and read.