#470 — July 25, 2023 |
✍️ It feels like there's a particularly strong drive to improve Go lately, whether it's through the ever growing number of proposals from folks like Russ Cox, the development of tools like |
|
Go Weekly |
An Overhaul of Inlining for Go 1.22 — Inlining is the concept of replacing a function call in a program with the contents of the function itself, thus avoiding the call. Go’s inliner has improved over the years, but the policies around when and what to inline have become a little out of date. The idea, then, is to implement a variety of tweaks that could introduce, Austin says, “significant performance improvements for Go applications”. Austin Clements et al. |
A Preview of Ranging Over Functions — A new language proposal (yes, another one!) suggests adding two new types Eli Bendersky |
Pass SOC 2, FedRAMP, HIPAA, and Other Audits With Ease — Meet compliance requirements, pass audits with minimal effort, and have complete visibility into kubectl access and behavior with Teleport by starting your free trial. The supported standards include SOC 2, FedRAMP, HIPAA, ISO 27001, PCI, and more. Teleport | goteleport․com sponsor |
How to Find and Fix Vulnerable Dependencies with Go Documentation |
Proposal: Let's Make Go's HTTP Request Multiplexer Better — http.ServeMux is an HTTP request multiplexer (or router, if you will) and there has been talk this year of making it better by adding support for HTTP method based routing and support for wildcards in paths. This has now turned into a proposal. Jonathan Amsterdam |
IN BRIEF:
|
Common Pitfalls in Go Benchmarking — “While these pitfalls are presented in Go, they exist in any programming language or environment, so the lessons learned here are widely applicable.” Eli Bendersky |
Getting Friendly with CPU Caches — Understanding how to make your code cache-friendly can result in significant performance gains but be sure you understand the risks and tradeoffs therein. Miki Tebeka and William Kennedy |
Using Cobra to Build Go-Powered CLIs — A step by step tutorial for creating a basic CLI app using the Cobra approach. Joseph Udonsak |
“DevOps Workload Has Dropped by 90% for Services Migrated to Encore” — Check out Bookshop.org's ongoing journey from a Ruby on Rails monolith to a Go microservices architecture. Encore sponsor |
A Gentle Introduction to Pointers in Go — Very short and elementary, but.. “if you’re a bit fuzzy on exactly what pointers and how they work, it should help you out!” Alex Edwards |
From 26 Minutes to 20 Seconds: Using pprof to Optimize Large GraphQL Operations in Go
|
🛠 Code & Tools |
ff 3.4: A 'Flags-First' Package for Configuration — Provides an opinionated way to populate a Peter Bourgon |
Vegeta: An HTTP Load Testing Tool and Library — A Go-powered load testing approach with lots of customization potential, a built-in plotting tool, and even a way to render real-time reports in your terminal. Tomás Senart |
Get Started with Temporal and Go — Build apps with Temporal + Go by setting up your development environment, then exploring how Temporal Applications work. Temporal Technologies sponsor |
ov: Feature-Rich Terminal-Based Text Viewer/Pager — Aims to replace Noboru Saito |
Risor: An Embeddable Scripting Language Written in Go — Formerly known as Tamarin, Risor code (which feels a bit like a hybrid of Go and Python and can use the Go standard library) gets compiled to bytecode and run on a small pure Go VM. GitHub repo. Curtis Myzie |
go-sse 0.6: Spec-Compliant Server-Sent Events (SSE) Library — Server Sent Events is a Web API supported by all major browsers that lets servers stream/send messages to (listening) pages at will. Teodor Maxim |
|
|