Xuepeng Fan
Xuepeng Fan
Hi, 我大概看了一下内存模型部分,整体来说写得不错,精神可佳,貌似你大多数部分是翻译的那本concurrency in action?有个地方貌似不太准确,请你参考。 > 例如,如果两个变量读写互不相关,编译器有可能将读操作提前(暂且称为预读prefetch 吧),或者尽可能延迟写操作,假设如下面的代码段:.... 首先这里不能称为预读,这里编译器的优化其实是instruction reorder,是为了充分利用cpu的流水线结构,而将读写不相关的操作放到一起,这样cpu在等待一个数据从内存读过来(数千cpu周期)的时候,同时还能干别的,而不是干等着。预读是硬件的,和编译器没有太大关系。 其次,下面的这个例子。。。请问你是不是没有亲自编译看看?按照你写的这种reorder,结果都变了,这不可能的。。。
Got error like this after 'npm start', App threw an error during load TypeError: Cannot read property 'pin' of undefined at Object. (/Users/me/git/aragon-desktop/src/lib/ipfs-caching.js:12:57) at Object. (/Users/me/git/aragon-desktop/src/lib/ipfs-caching.js:99:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at...