偶尔研究一下 redis
more >>今天弹出一个升级框,天真地点了下去。悲剧发生了。电脑启动不了了。
本来都打算换电脑了。试了一下grub里显示的ubuntu的其他选项。
里面有各种内核版本的普通mode和safe mode。
于是选了旧的3.19版本,
启动成功!喜悦!
String做成immutable的意义何在?
一句话回答: 为了安全, 并发和复用, 详情请入内
在stack overflow看到一段话, 句句说到心坎里,
忍不住转载如下
Almost any language can be parallelized. In some languages it's simple, in others it's a pain in the butt, but it can be done. If you want to run a C++ program across 8000 CPU's in a grid, go ahead! You can do that. It's been done before.
Erlang doesn't do anything that's impossible in other languages. If a single CPU running an Erlang program is less efficient than the same CPU running a C++ program, then two hundred CPU's running Erlang will also be slower than two hundred CPU's running C++.
What Erlang does do is making this kind of parallelism easy to work with. It saves developer time and reduces the chance of bugs.
So I'm going to say no, there is no tipping point at which Erlang's parallelism allows it to outperform another language's numerical number-crunching strength.
Where Erlang scores is in making it easier to scale out and do so correctly. But it can still be done in other languages which are better at number-crunching, if you're willing to spend the extra development time.
And of course, let's not forget the good old point that languages don't have a speed. A sufficiently good Erlang compiler would yield perfectly optimal code. A sufficiently bad C compiler would yield code that runs slower than anything else.
Erlang has preemptive scheduling, and so there is no guarantee that a central process will necessarily get all of the CPU time it needs to flush data,
unless raising the process' priority, but if not done carefully, you can hog a scheduler and make everything rather unfair.
In any case, you want to avoid the pattern where a lot of work is done on a single process.
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true