主页 | Web版 | 订阅 | 归档 | Feed

GopherDaily

20250830

每日一谚:Make it easy to read from top to bottom


Go技术生态

2 倍性能,节省 30 万美元:用 Rust 重写Go关键服务的案例研究
在高流量系统中,成功往往会带来自身的一系列挑战。 在 TikTok 实习期间,我们核心的支付服务(一个用 Go 构建的可靠的系统)开始出现疲劳迹象。 随着 TikTok LIVE 用户群的增长,该服务的 CPU 负载不断攀升,我们面临着来自达到 CPU 阈值的服务的持续稳定性警报。 我们面临一个经典的工程难题:如何在不影响稳定性和不倾家荡产的情况下,从关键系统中榨取更多性能? 这就是我通过有选择地用 Rust 重写性能瓶颈来应对这一挑战的故事,最终实现了 2 倍的性能提升,并预计每年可节省近 30 万美元的云成本。

Python简史:一个圣诞节的“私活”项目,如何改变了编程世界?
近期,一部名为《Python: The Documentary》的纪录片,通过对创始人Guido van Rossum及众多早期核心贡献者的访谈,为我们揭开了这段波澜壮阔的起源故事。这既是一部技术编年史,更是一部关于设计哲学、社区力量、时代机遇与人性光辉的启示录。

【AI应用开发第一课】02 LLM 的“使用说明书”:掌握对话、角色和约束
我们将一起深入解码 LLM OS 的“官方说明书”——即模型规范(Model Spec),并重点学习与 LLM 进行有效交互所需遵循的基本规则、核心结构与关键约束。这些知识,特别是关于对话 (Conversation)、角色 (Role) 扮演及其优先级、交互的无状态性 (Statelessness) 本质 ,以及无处不在的 Token 与资源限制,将为我们后续通过 API 与大模型进行代码级交互奠定坚实的基础。

Dolt 数据库的单元测试
使用 dolt_tests 确保数据质量和正确性。

Structuring Large Go Codebases: Package Organization and Dependency Management
学习如何使用包、分层和清晰的依赖项管理来构建大型 Go 代码库,以实现可扩展的应用程序。

云原生技术

TiDB Cloud Changefeed 与 StreamNative Cloud 的集成
设置 TiDB Cloud Change Data Capture 与 TiDB Cloud Changefeed,将实时数据库事件流式传输到 StreamNative Cloud 上的 Apache Pulsar。

简化 Docker MCP Toolkit 的 Copilot 和 SonarQube
通过使用 Docker MCP Toolkit 和 Gateway 将 SonarQube 与 GitHub Copilot 集成,提高代码质量。在您的 IDE 中实现更快、更安全、AI 驱动的编码。

Kubernetes v1.34:对容器重启的更细粒度控制
随着 Kubernetes 1.34 的发布,引入了一个新的 alpha 功能,它使您能够更精细地控制 Pod 内的容器重启。此功能名为 <strong>容器重启策略和规则</strong>,允许您为每个容器单独指定一个重启策略,覆盖 Pod 的全局重启策略。此外,它还允许您根据容器的退出代码有条件地重启单个容器。 此功能可在 alpha 功能门控 <code>ContainerRestartRules</code> 后面使用。

数据工程与软件工程正在融合
了解 MooseStack 背后的 8 项设计原则——一个用于在 ClickHouse 和开源数据基础设施上构建 TypeScript 或 Python 应用程序的开源开发人员工具包。

与亚马逊CTO对话

使用 Kubernetes 编排数千个 Speedtest
为了监控我们商店系统随时间推移的网络可用性和速度,我们通过在所有商店系统上实施分布式速度测试解决方案来应对这一挑战。

searchcode.com 正在重启(可能吗?)
本文作者解释了关闭searchcode.com的原因,主要是由于运营成本过高和广告收入下降。 他正在考虑重新构想该项目,并寻找新的方式使其持续运营,以避免未来的财务问题。

使用 JIT 编译和 Rust 在软件中模拟 aarch64
我能够为 <code>aarch64</code> ISA(<em>Arm A-profile A64 指令集架构</em>)编写一个简单的即时编译模拟器。 Armv8-A/Armv9-A 规范的规模<strong>很大</strong>,因此最初的范围是基本功能,几乎没有可选的架构特性,例如 SIMD。 我编写模拟器的目的是为了理解 QEMU 的 TCG(Tiny Code Generator)软件模拟的原理。我没有遵循 C 代码实现,而是从头开始用 Rust 实现了相同的概念,利用了其他库来完成繁重的工作(反汇编和 JIT 编译)。 在本文中,我们将介绍从虚拟机的指令到本机代码执行需要做什么。

AI

Agentic AI 架构框架(适用于企业)
为了在企业中负责任且有效地部署 agentic AI,组织必须逐步构建三层架构:基础层、工作流层和自主层,在自主之前需要建立信任、治理和透明度。

流行工具与项目

hashicorp/terraform
Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

livekit/livekit
End-to-end realtime stack for connecting humans and AI

siderolabs/talos
Talos Linux is a modern Linux distribution built for Kubernetes.

XTLS/Xray-core
Xray, Penetrates Everything. Also the best v2ray-core. Where the magic happens. An open platform for various uses.

nats-io/nats-server
High-Performance server for NATS.io, the cloud and edge native messaging system.

traefik/traefik
The Cloud Native Application Proxy

containerd/containerd
An open and reliable container runtime

kubernetes-sigs/kustomize
Customization of kubernetes YAML configurations

open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry Collector

charmbracelet/crush
The glamourous AI coding agent for your favourite terminal 💘

open-telemetry/opentelemetry-go
OpenTelemetry Go API and SDK

spf13/cobra
A Commander for modern Go CLI interactions

kubernetes/ingress-nginx
Ingress NGINX Controller for Kubernetes

SagerNet/sing-box
The universal proxy platform

weaviate/weaviate
Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.

gravitational/teleport
The easiest, and most secure way to access and protect all of your infrastructure.

gitleaks/gitleaks
Find secrets with Gitleaks 🔑

mostlygeek/llama-swap
Model swapping for llama.cpp (or any local OpenAI API compatible server)

ipfs/kubo
An IPFS implementation in Go

avelino/awesome-go
A curated list of awesome Go frameworks, libraries and software

hashicorp/vault
A tool for secrets management, encryption as a service, and privileged access management

uber-go/zap
Blazing fast, structured, leveled logging in Go.

glanceapp/glance
A self-hosted dashboard that puts all your feeds in one place

kubernetes-sigs/gateway-api-inference-extension
Gateway API Inference Extension


编辑:Tony Bai

编辑主页:tonybai.com

GopherDaily项目:github.com/bigwhite/gopherdaily

Copyright 2019-2024 GopherDaily