个人简介

Echo Blog


江湖无名 安心练剑
  • 如何阅读源码-01-个人心得
    为什么阅读源码 一切都是从模仿开始的 每个人都不是天生会写代码的。 为了写出好的代码,我们应该学会阅读代码、 源码中我们能学到什么 看完一本《百年孤独》,并不会让我们写出类似的代码。 同理看完经典的代码,我们的收益也没有想象中的那么高。 那,我们能获得什么呢? (1)经典的套路,设计模式,设计思想等。 (2)变量的命名,优秀的 api 设计。 还有一些有趣的东西: (1...
    2019-05-10 03:08:59 | Source Code
  • How to design api 如何设计 API
    如何设计好的 API 个人理解。 使用简单,方法容易记忆,甚至不需要看文档。 功能灵活强大。 译序 Qt的设计水准在业界很有口碑,一致、易于掌握和强大的API是Qt最著名的优点之一。 此文既是Qt官网上的API设计指导准则,也是Qt在API设计上的实践总结。 虽然Qt用的是C++,但其中设计原则和思考是具有普适性的(如果你对C++还不精通,可以忽略与C++强相关或是过于细节的部...
    2019-05-10 03:08:59 | How To
  • Memory 内存知识-39-总结
    耗时 这本书很薄,但是读的相对比较吃力。 从 2019-5-10 一直持续到 2019-9-8,接近于4个月的时间。 大概是因为英文太菜,对于读外文书,即使有翻译,也觉得很吃力。 感悟 这本书主要讲解了一些底层的内存知识,其实收获也是比较大的。 算是打开了一个全新的知识面。 以后也可以多阅读下类似的书籍,系统的学习知识。 而不是从网上的博客看一知半解的东西。 后期计划 需...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-38-新技术之向量操作
    Vector Operations The multi-media extensions in today’s mainstream processors implement vector operations only in a limited fashion. Vector instructions are characterized by large numbers of oper...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-37-新技术之增加延迟
    Increasing Latency One thing about future development of memory technology is almost certain: latency will continue to creep up. 延迟将继续蔓延。 We already discussed, in section 2.2.4, that the upcomin...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-36-新技术之事务内存
    Transactional Memory In their groundbreaking(开创性) 1993 paper Herlihy and Moss propose to implement transactions for memory operations in hardware since software alone cannot deal with the problem ...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-35-新技术 DCAS
    Upcoming Technology In the preceding sections about multi-processor handling we have seen that significant performance problems must be expected if the number of CPUs or cores is scaled up. But t...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-34-缺页优化
    缺页优化 On operating systems like Linux with demand-paging support, an mmap call only modifies the page tables. It makes sure that, for file-backed pages, the underlying data can be found and, for a...
    2019-05-10 03:08:59 | Memory