Forwarded from Deleted Account
Forrestthewoods
Memory Bandwidth Napkin Math
An exploration into C++ memory throughput performance.
Forwarded from 韦小宝 食品厂
YouTube
CppCon 2015: Greg Law " Give me 15 minutes & I'll change your view of GDB"
http://www.Cppcon.org
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/cppcon/cppcon2015
—
Lightning Talk
—
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
*-----*
Register Now For…
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/cppcon/cppcon2015
—
Lightning Talk
—
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
*-----*
Register Now For…
Forwarded from Deleted Account
我忘了上下文是什么,我估计应该是这篇(官网上的文档)-《三台破机器扛2百万tps 》:https://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines
Linkedin
Benchmarking Apache Kafka: 2 Million Writes Per Second (On Three Cheap Machines)
I wrote a blog post about how LinkedIn uses Apache Kafka as a central publish-subscribe log for integrating data between applications, stream processing, and Hadoop data ingestion. To actually make this work, though, this "universal log" has to be a cheap…
Forwarded from fan kid
多谢分享。我看微信在做重构的时候也是采用了这种模式,但是没找到这种验证方式具体叫什么
https://mp.weixin.qq.com/s/8YTb8X8XGurJts31_AlQ1g
https://mp.weixin.qq.com/s/2HK7t8GJUfF99HUDUYqzcA
https://mp.weixin.qq.com/s/8YTb8X8XGurJts31_AlQ1g
https://mp.weixin.qq.com/s/2HK7t8GJUfF99HUDUYqzcA
Weixin Official Accounts Platform
一行代码引发的恐惧
Forwarded from fan kid
按“流量重放”这个关键词,可以找到以下这篇《“流量回放” 在系统重构中的测试实践》
https://mp.weixin.qq.com/s?__biz=MzAwNjEzMDUyNw==&mid=2650200520&idx=1&sn=0ebc243df12a776a199929f36108a34e
https://mp.weixin.qq.com/s?__biz=MzAwNjEzMDUyNw==&mid=2650200520&idx=1&sn=0ebc243df12a776a199929f36108a34e
Forwarded from 值物志
#Talk 查理芒格关于误判心理学的演讲
「人类误判心理学」是传奇投资人、巴菲特的合伙人查理芒格于 1995 年在哈佛大学的演讲。他在演讲中介绍了关于行为决策的框架和多种造成误判的因素,其中包括:
1. 拒绝心理
对难以接受的事实会本能的拒绝。
2. 代理成本
对代理人(如医生、律师、教练等)的过分信任会造成误判。
学习掌握相关的基础知识将降低代理成本。
3. 保持一致性的倾向
我们的心智有一种保持一致,避免自我否认的本能,它阻止我们接受与此前不一致的信息和认知。
4. 巴浦洛夫联想
将 A 与 B 重复地同时展现,将在受众的心智中形成 A 与 B 的联想。
大部分广告的原理是巴浦洛夫联想。例如可口可乐通过大量的广告将其与体育运动、家庭团聚、娱乐活动形成联想。
巴浦洛夫联想很大程度上作用于潜意识,因此也更难以抵抗。
5. 互惠心理
关于互惠心理的一个经典实验是:在校园中请求受访者”是否愿意每周花一个下午的时间带福利院的小孩去公园玩“,会有 1/10 的受访者表示愿意。
若改为先问一下”是否愿意每周花两个下午的时间带福利院的小孩去公园玩“,此时无人表示愿意,但是接下来再问”是否愿意每周花一个下午的时间带福利院的小孩去公园玩“,表示愿意的比例则会上升到 3/10。
这是由于人类有一种互惠和补偿的心理倾向。
6. 社会证明
人们会倾向于参照和复制其他人在同样的情况下的行为。
7. 由于对比效应产生的误判
将双手分别泡在冷水和热水桶中,然后同时放到常温水桶,双手的温感将截然不同。
房产中介常常会使用对比效应来促成交易:他们会先带你看几个条件极差但价格昂贵的房子,然后再带你去看他们真正想要销售给你的房子,由于对比产生的误判,交易的成功率因此得到提升。
8. 对权威的过分信任
9. 禀赋效应:对损失的过分厌恶
10. 嫉妒
11. 化学依赖
12. 赌徒心理:放大预期收益的倾向
13. 爱屋及乌
14. 其他感知、记忆、认知和知识的限制引起的误判
15. 压力引起的心理变化
----
观看由 Tiny Capital 和 Thinko 制作的动画版本:https://vimeo.com/382219966
观看完整演讲:https://youtu.be/pqzcCfUglws
「人类误判心理学」是传奇投资人、巴菲特的合伙人查理芒格于 1995 年在哈佛大学的演讲。他在演讲中介绍了关于行为决策的框架和多种造成误判的因素,其中包括:
1. 拒绝心理
对难以接受的事实会本能的拒绝。
2. 代理成本
对代理人(如医生、律师、教练等)的过分信任会造成误判。
学习掌握相关的基础知识将降低代理成本。
3. 保持一致性的倾向
我们的心智有一种保持一致,避免自我否认的本能,它阻止我们接受与此前不一致的信息和认知。
4. 巴浦洛夫联想
将 A 与 B 重复地同时展现,将在受众的心智中形成 A 与 B 的联想。
大部分广告的原理是巴浦洛夫联想。例如可口可乐通过大量的广告将其与体育运动、家庭团聚、娱乐活动形成联想。
巴浦洛夫联想很大程度上作用于潜意识,因此也更难以抵抗。
5. 互惠心理
关于互惠心理的一个经典实验是:在校园中请求受访者”是否愿意每周花一个下午的时间带福利院的小孩去公园玩“,会有 1/10 的受访者表示愿意。
若改为先问一下”是否愿意每周花两个下午的时间带福利院的小孩去公园玩“,此时无人表示愿意,但是接下来再问”是否愿意每周花一个下午的时间带福利院的小孩去公园玩“,表示愿意的比例则会上升到 3/10。
这是由于人类有一种互惠和补偿的心理倾向。
6. 社会证明
人们会倾向于参照和复制其他人在同样的情况下的行为。
7. 由于对比效应产生的误判
将双手分别泡在冷水和热水桶中,然后同时放到常温水桶,双手的温感将截然不同。
房产中介常常会使用对比效应来促成交易:他们会先带你看几个条件极差但价格昂贵的房子,然后再带你去看他们真正想要销售给你的房子,由于对比产生的误判,交易的成功率因此得到提升。
8. 对权威的过分信任
9. 禀赋效应:对损失的过分厌恶
10. 嫉妒
11. 化学依赖
12. 赌徒心理:放大预期收益的倾向
13. 爱屋及乌
14. 其他感知、记忆、认知和知识的限制引起的误判
15. 压力引起的心理变化
----
观看由 Tiny Capital 和 Thinko 制作的动画版本:https://vimeo.com/382219966
观看完整演讲:https://youtu.be/pqzcCfUglws
Vimeo
Charlie Munger: The Psychology of Human Misjudgement
'The Psychology of Human Misjudgment', a speech given by Charlie Munger in 1995, animated by Tiny and Thinko.
Forwarded from James 🇨🇳
https://github.com/buger/goreplay 这玩意儿就很有市场。
GitHub
GitHub - probelabs/goreplay: GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment…
GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence...
Forwarded from Deleted Account
在Arduino和超低功耗微控制器上用TensorFlow Lite实现机器学习 https://tinymlbook.com/
TinyML Book
Visit the post for more.
Forwarded from fan kid
这个不是很清楚。
正在看
https://martinfowler.com/eaaDev/EventSourcing.html
刚好提到 Event Replay,Event Replay: If we find a past event was incorrect, we can compute the consequences by reversing it and later events and then replaying the new event and later events. (Or indeed by throwing away the application state and replaying all events with the correct event in sequence.) The same technique can handle events received in the wrong sequence - a common problem with systems that communicate with asynchronous messaging.
看到这里时也想到 TCP 的这种方式,应该是可以做到的
正在看
https://martinfowler.com/eaaDev/EventSourcing.html
刚好提到 Event Replay,Event Replay: If we find a past event was incorrect, we can compute the consequences by reversing it and later events and then replaying the new event and later events. (Or indeed by throwing away the application state and replaying all events with the correct event in sequence.) The same technique can handle events received in the wrong sequence - a common problem with systems that communicate with asynchronous messaging.
看到这里时也想到 TCP 的这种方式,应该是可以做到的
martinfowler.com
Event Sourcing
Capture all changes to an application state as a sequence of events.
Forwarded from deep blue
Berkeley DB - 维基百科,自由的百科全书
https://zh.wikipedia.org/wiki/Berkeley_DB
https://zh.wikipedia.org/wiki/Berkeley_DB
Wikipedia
Berkeley DB
Berkeley DB(BDB)是一个高效的嵌入式数据库和键-值数据库编程库,C语言、C++、Java、Perl、Python、Tcl以及其他很多语言都有其对应的API。Berkeley DB可以保存任意类型的键/值对(Key/Value Pair),而且可以为一个键保存多个数据。Berkeley DB支持让数千的并发线程同时操作数据库,支持最大256TB的数据,广泛用于各种操作系统,其中包括大多数类Unix操作系统、Windows操作系统以及实时操作系统。
Forwarded from Deleted Account
发明copy + paste的计算机科学家去世了。(他后来去了Amazon,在steve yegge 吐槽google的那篇文章中也说到过他)
https://gizmodo.com/larry-tessler-modeless-computing-advocate-has-passed-1841787408
https://gizmodo.com/larry-tessler-modeless-computing-advocate-has-passed-1841787408
Gizmodo
The Computer Scientist Responsible for Cut, Copy, and Paste, Has Passed Away
The advent of the personal computer wasn’t just about making these powerful machines available to everyone, it was also about making them accessible and usable, even for those lacking a computer science degree. Larry Tesler, who passed away on Monday, might…
Forwarded from Deleted Account
像这种为什么的文章我最喜欢读了
https://blog.benjojo.co.uk/post/why-is-ethernet-mtu-1500
https://blog.benjojo.co.uk/post/why-is-ethernet-mtu-1500
Forwarded from 4o4
值得程序员反复品味的编码智慧
https://phauer.com/2020/wall-coding-wisdoms-quotes/
中译版:https://mp.weixin.qq.com/s/fvCDYOCFsp0tdiwE6rmM8w
TL;DR!
- 作为程序员,永远不要低估你为简单问题提出异常复杂解决方案的能力。
- 先设计出正确的数据结构,余下的程序会自然而然地显露出来。
- 数据为王:如果你已经选择了正确的数据结构并把数据组织得很好,算法几乎总是不言自明的。数据结构是编程的核心,算法不是。
https://phauer.com/2020/wall-coding-wisdoms-quotes/
中译版:https://mp.weixin.qq.com/s/fvCDYOCFsp0tdiwE6rmM8w
TL;DR!
- 作为程序员,永远不要低估你为简单问题提出异常复杂解决方案的能力。
- 先设计出正确的数据结构,余下的程序会自然而然地显露出来。
- 数据为王:如果你已经选择了正确的数据结构并把数据组织得很好,算法几乎总是不言自明的。数据结构是编程的核心,算法不是。
Philipp Hauer's Blog
The Wall of Coding Wisdoms in Our Office
A collection of quotes stating important principles in software development. They form the 'Wall of Coding Wisdoms' in our office.