Golang 每周问题 524:2024 年 9 月 24 日

主要观点:

  • Go 1.24 即将迎来通用别名类型,基于类型别名和泛型,Robert Griesemer 解释了其基础及带来的工作变化。
  • Three Dots Labs 提供通过实际项目进行引导学习以掌握后端模式的课程,下一批次即将开始。
  • Phuong Le 介绍 Go 并发系列中关于singleflight的内容,其在数据库访问等方面有很多用例。
  • [Giving Go a Go]在《Communications of the ACM》中获得关注,《WIRED Magazine》也提及 Go 热潮。
  • Vladimir Makarov 研究 Go 编译器的寄存器分配,认为其设计良好且有创意。
  • Rueidis 是一款快速的 Redis 客户端,支持多种功能且得到 Redis 官方认可。
  • Dragonfly 是现代 Redis 替代品,可降低基础设施成本 80%。
  • NewDevTools 提供每日更新的新开发工具和服务,如 GoCV 0.38.0、MongoDB Go Driver 1.17、Buf 1.42、automaxprocs 1.6、River 0.12、Goyave 5.3 等。

关键信息:

  • Go 1.24 预期 2025 年 2 月推出通用别名类型。
  • Three Dots Labs 课程通过实际项目学习后端模式。
  • singleflight确保函数只运行一次并复用结果。
  • Go 在多个领域获得关注。
  • Vladimir 研究 Go 编译器寄存器分配。
  • Rueidis 是高性能 Redis 客户端。
  • Dragonfly 可降低基础设施成本。
  • NewDevTools 包含多种新工具和服务。

重要细节:

  • [What's in an (Alias) Name?]链接到 go.dev/blog/alias-names 及相关提案 go.dev/issue/46477。
  • [Stuck on What to Build?]链接到 threedots.tech/event-driven/?utm_source=golang-weekly。
  • [Go's Singleflight Melts in Your Code, Not in Your DB]链接到 victoriametrics.com/blog/go-singleflight/index.html。
  • [Register Allocation in the Go Compiler]链接到 developers.redhat.com/articles/2024/09/24/go-compiler-register-allocation#。
  • Rueidis 支持自动流水线、客户端缓存等功能且在 Redis 官方 GitHub 组织下。
  • Dragonfly 有 25k GitHub 星标。
  • NewDevTools 中的各工具版本及功能更新,如 GoCV 0.38.0 是 OpenCV 绑定库等。
阅读 20
0 条评论