liupeng retweeted
《用 Go 语言分析 10 亿行数据,从 95 秒到 1.96 秒》
一篇很不错的 Go 语言性能优化文章,涉及知识点:文件读取性能优化、生产者消费者模型优化、channel vs mutex、自定义 hash,等等。整个调优过程层层递进,思考、用到的工具链及手法非常规范,行文也很工整。值得一读。
r2p.dev/b/2024-03-18-1brc-go…
liupeng retweeted
这一位 MIT 博士的项目。亮点是,用一门带 GC 的语言实现了 kernel,性能只差 15%,最大 GC pause 是 582 µs。结论是 positive 的。
用 Rust 也能写,但 Rust 没 GC,相比之下,就没那么有意思了。
论文探索的问题是,一门带 GC 的高级语言,能不能写高性能的操作系统。
pdos.csail.mit.edu/6.828/202…
This quoted post is unavailable.
liupeng retweeted
搜索功能实现不便宜,一篇短文介绍几种方案的成本对比:
1. pg/mysql 全文搜索
2. SaaS 版:Algolia
3. 自部署: Elasticsearch + DB Sync
4. OpenAI Embedding API + Vector DB
5. 托管版 Elasticsearch
6. 无服务器:Aws Opensearch Serverless
7. 自主设计搜索系统
hackertalk.net/posts/4517475…
liupeng retweeted
ByteByteGo、Udemy、Educative都是我很喜欢的学习架构的网站,虽然也要收费,但是货真价实,和国内流行的“知识付费”完全不一样,很值得
平时多看看不同系统的架构设计能给自己很多启发,我之前面试被问到一个不熟悉的架构,但也现场分析出来了,都靠平时触类旁通
Best places to learn System Design
1. ByteByteGo - https://teapawt.org/t.co/ZnWwDtfuHe
2. Udemy - https://teapawt.org/t.co/Qy0uyYzrG6
3. Educative - https://teapawt.org/t.co/tR5lqVTmSZ
4. Exponent - https://teapawt.org/t.co/v1Wg4eBKwU
5. ZTM - https://teapawt.org/t.co/GsNHAEdnLQ
6. Coursera - https://teapawt.org/t.co/9z2tlGZ2U3
liupeng retweeted
Top 5 Websites to Learn System Design and Software Design in 2022 buff.ly/3BMziV0
liupeng retweeted
6 System Design Questions
1. Instagram Design - https://teapawt.org/t.co/ievqQkql0J
2. Youtube Design - https://teapawt.org/t.co/2OPvvQOfBs
3. Design an LMS - https://teapawt.org/t.co/yoFXC8BOve
4. WhatsApp - https://teapawt.org/t.co/wJtrqGUrV0
5. Parking Lot - https://teapawt.org/t.co/IzQH1uIvuB
6. URL Shortner - https://teapawt.org/t.co/LL6iQYv4t0
liupeng retweeted
多人实时协作文档编辑的实现介绍:fex.baidu.com/blog/2014/04/r…
核心算法叫Operational Transformation,简称OT算法,详细介绍 codecommit.com/blog/java/und…。
OT算法的开源实现:changesets github.com/marcelklehr/chang… shareDB github.com/share/sharedb
其中shareDB还有针对quill编辑器的富文本协作demo。
liupeng retweeted
Finally, after month (if not years) of mostly bikeshedding about the exact wording of the NPEs the @SweetSapMachine team (notably Goetz Lindenmaier) finally managed to convince the OpenJDK stewards of the usefulness of this little extension :)
New candidate JEP: 358: Helpful NullPointerExceptions: openjdk.java.net/jeps/358
liupeng retweeted
Compile #Java byte-code to native CPU's
github.com/mikeakohn/java_gr…
liupeng retweeted
某公司天天投微博广告说它家的站内搜索快。你说你就一站内搜索,几万篇文章后端用MySQL like都慢不到哪儿去,别说用ES了 😂 后端热词加缓存,前端热词加预读,机房好点资源CDN分发下,最差都这速度。十年前Discuz!都能跑到这速度啊,到底有什么好炫的,要用PWA我也认了…
liupeng retweeted
How #JVM prevents false sharing, saves space and helps you create faster web apps. @rukavitsya
dzone.com/articles/what-fals…
liupeng retweeted
Check out all the sessions from⚡️ “JVM Language Summit 2017”
teapawt.org/i/moments/893111760856…
liupeng retweeted
Building a Worker Pool in Go: geeks.uniplaces.com/building…
Implementing Repeatable Read and Serializable Transaction Isolation elliot.land/post/implementin…
1
liupeng retweeted
Slides for "Vectors and Values" talk at JVMLS 2017 w/ @iiiiiian cr.openjdk.java.net/~vlivano… teapawt.org/java/status/8928548658…
Vectors and Values with Vladimir Ivanov @iwan0www and Ian Graves youtu.be/LGVxiDxIrFM #jvmls #jvmls2017 #java

























