A while back I ripped a regex out of my SQL parser and replaced it with twenty lines of hand-written string scanning. Then I got nervous. Hand-rolling a scanner because you assume regex is slow is exa...
作者分享了一个名为 gocudrv 的项目,旨在让 Go 服务无需 CGO 和 CUDA 工具链即可直接调用 NVIDIA GPU。文章基于实际生产环境痛点,指出通过 Python sidecar 访问 GPU 导致镜像臃肿(8.4GB)、冷启动慢及序列化开销大。通过纯 Go 实现 CUDA 驱动交互,实现了单静态二进制文件,显著优化了部署效率和资源占用。