ivechan's recent timeline updates
ivechan

ivechan

V2EX member #175176, joined on 2016-05-29 19:53:40 +08:00
ivechan's recent replies
spec 就是垃圾,它既不易于维护,又不能精准描述行为。
测试用例和简单的文档就能替代他
18h 57m ago
Replied to a topic by onedge 程序员 百炼 Lite Plan 加入了 qwen3.6
这么多模型,完全不知道该用哪个,阿里的产品总是这样
@MX11XM
不如先回去大厂,然后再寻找其他方向。接触的人群很重要,国企的氛围不适合你这种人,大厂氛围卷但是年轻人还是挺多的,也有朝气。
如果在一个公司,资深员工的工作状态是你厌恶,想都别想都要尽快逃离
1. 别在工作里找意义,外企也一样,除非企业文化和你的价值观相同
2. 多跟人交流,特别是值得信任的人(家人、很好的朋友)
3. 网友的观点是个 P (包括我),多想想自己想干什么
4. 感觉你太焦虑了,Just do it
May 25, 2022
Replied to a topic by fanxasy Java fastjson 真就突出一个阴魂不散
国外很多开源软件其实也有漏洞。。。大可平常心看待。
Apr 10, 2022
Replied to a topic by dangyuluo C++ CPU 指令重排是 cache 同步太慢的表征么?
《 A Primer on Memory Consistency and Cache Coherence 》可以滤清概念
偏实践的话可以看 https://www.kernel.org/doc/Documentation/memory-barriers.txt
(怎么用 MB )
Apr 9, 2022
Replied to a topic by dangyuluo C++ CPU 指令重排是 cache 同步太慢的表征么?
@dahakawang 《 A Primer on Memory Consistency and Cache Coherence 》 没有问题吧。
介绍的都是实际中常见的内存模型,比如 X86 ( TSO )。
这个和某个 specific implementation 没有任何关系.
正如 @nlzy 说的一样,内存模型是一个架构的规范,和微架构实现没有关系。
所有 x86 都是 TSO 的,没有什么例外。
Aug 15, 2021
Replied to a topic by hxys 程序员 有个词,是讲程序的抗异常能力
韧性
N.B. You most likely do _not_ want to use MicroSpinLock or any
* other kind of spinlock. Consider MicroLock instead.”

你连英语都不懂吗。。。
@fengjianxinghun 在进入睡眠之前自旋一会尝试去获取锁那是因为有时候锁短时间内就能获取到,不必要走 slowpath,多了上下文切换等资源损耗。

这就是我说的"除非你真的知道你在做什么"的场景。
spinlock 没有问题,有问题用错场景的人。这里不是解决 spinlock 的问题,这里解决的是 muted lock 在发生竞争时 overhead 过多的问题。


你没必要再拿这种打自己脸的例子来解释了,用户态锁场景下 99%都不应该用 spinlock,就是事实。
说什么你用了 mutex 就是用了 spinlock 简直是偷换概念,胡搅蛮缠。



重要的事情说三遍:

N.B. You most likely do _not_ want to use MicroSpinLock or any
* other kind of spinlock. Consider MicroLock instead.”


N.B. You most likely do _not_ want to use MicroSpinLock or any
* other kind of spinlock. Consider MicroLock instead.”


N.B. You most likely do _not_ want to use MicroSpinLock or any
* other kind of spinlock. Consider MicroLock instead.”
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5725 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 03:40 · PVG 11:40 · LAX 20:40 · JFK 23:40
♥ Do have faith in what you're doing.