VIM and Latex

1 起源起源是在群里看到了有人分享的关于一个人用 vim 写 latex 的文章,但是它的做法是用了一个 vimtex 的独立插件。 我是个 language server 的狂热使用者,所以我就在找一个用 language

C++11内存模型

1 Introduction// cpp concurrency in action 里的例子 1 2 3 4 5 6 7 8 9 void undefined_behaviour_with_double_checked_locking() { if (!resource_ptr) { // 1 std::lock_guard<std::mutex> lk(resource_mutex); if (!resource_ptr) { // 2 resource_ptr.reset(new some_resource); // 3 } } resource_ptr->do_something(); // 4 } 在 C++ Concurrency in Action 中提到过一段很有意思的代码,这段代码存在潜