Skip to content

Instantly share code, notes, and snippets.

View forzenheart's full-sized avatar
🤪

lvyhe forzenheart

🤪
  • China ShenZhen
  • 21:43 (UTC +08:00)
View GitHub Profile
@forzenheart
forzenheart / content.md
Created November 28, 2025 10:11 — forked from baymaxium/content.md
为什么Google上十亿行代码都放在同一个仓库里?

原文:高可用架构

导读:相对于一般公司,Google 使用了单一代码仓库,很多人不理解为什么这么做。本文作者是谷歌基础设施小组的工程师,对这个问题进行了详细解读。译者在翻译过程中受益良多,也相信大家看完之后会认为自己还活在史前时代。

早期 Google 员工决定使用集中式源代码管理系统来管理代码库。 这种方法已经在 Google 运行了 16 年以上,而今天绝大多数的 Google 软件仍然存储在一个共享的代码库中,随着 Google 开发软件数量稳步增加,Google 代码库的规模也呈指数增长(图1)。 因此,用于管理代码库的技术也发生了显著变化。

图1

@forzenheart
forzenheart / async.lua
Created June 10, 2022 19:29 — forked from Meorawr/async.lua
Lua 5.1 Async/Await
#!/usr/bin/lua5.1
--- Async/Await for Lua 5.1
-- This script implements async/await functions for Lua, allowing tasks to
-- be queued and scheduled independently.
--
-- This is just an example and has a bunch of issues, isn't tested, isn't
-- even actually used anywhere; I basically just got bored and had one of
-- those "what if?" type ideas 6 hours ago.
local co_create = coroutine.create