Why 0.1 + 0.2 ≠ 0.3: A Deep Dive into IEEE 754 and Floating-Point ArithmeticYou can find the Chinese version at 從 IEEE 754 標準來看為什麼浮點誤差是無法避免的 Introduction When people first learn to code, they often encounter floating-point errors. If you haven't experienced this yet, you're very lucky! For example, in Python, 0.1 + 0.2 does...Jan 9, 2020 · 4 min readlarrylu.dev
Maximizing Rust Vector Efficiency: Why Initial Capacity Tricks WorkYou can find the Chinese version at 為什麼你應該幫 Rust Vector 加上初始容量 Introduction High-level programming languages usually offer growable arrays, like C++ and Rust's Vectors, Go's Slices, or JavaScript's Arrays. These can change in size and offer push and...Dec 9, 2019 · 4 min readlarrylu.dev
Divide and Conquer: Parallel Computing with Goroutines in GolangYou can find the Chinese version at 分而治之 - 在 Golang 使用 Goroutine 進行平行運算 In Golang, starting a goroutine is very simple; you just need one line: go task(). This makes it easy to write concurrent programs. This article will explain how to use goroutin...Nov 6, 2018 · 5 min readlarrylu.dev
Concurrency in Go: Race Conditions and their SolutionsYou can find the Chinese version at 用一個小例子談談 Golang 中的 Race Condition. Goroutine is one of the most important features of Go. It allows developers to easily achieve concurrency. Also, It is lightweight, making it feasible to create a substantial num...Apr 15, 2018 · 6 min readlarrylu.dev
Sustain Your Data: A Practical Guide to Using Docker VolumesYou can find the Chinese version at Docker 實戰:使用 Volume 保存容器內的數據. This is the third article in the Docker Series. If you haven't read the previous article, "Pushing Your Docker Images to Docker Hub: A Step-by-Step Guide", I recommend taking a look a...Mar 9, 2018 · 3 min readlarrylu.dev