A compile-time function evaluation experiment

Plus Go's great garbage collection guide, a dependency visualizer, and a Go-powered hex editor. |

#​525 — October 1, 2024

Unsub  |  Web Version

Together with  WarpStream

Go Weekly

Prep: Compile-Time Function Evaluation for Go“By using prep.Comptime, you can evaluate functions at build time, replacing them with their computed results. Just like comptime from Zig. Except it’s not.” It admits it’s “pure blasphemy”, but you can’t deny it’s an interesting idea, though it has limitations and toolexec was not intended to support arbtirary source rewriting.

Mark / pijng

Some Go Web Dev Notes — We’re always fans of Julia’s earnest and helpful but no-nonsense posts and this quick grab bag of thoughts, tips and observations is another good one. She always opens our eyes to something new.

Julia Evans

Reduce Your Data Streaming and Kafka Costs by 80+% — Learn how WarpStream's zero disk, stateless architecture and BYOC model not only reduce Kafka costs by 80% or more, but makes data streaming easier and more secure. Sign up for a free WarpStream account and get $400 in credits that never expire.

WarpStream sponsor

📉 A Guide to the Go Garbage Collector — Not a new page – it dates back to Go 1.19 – but one I’d somehow not encountered before and acts as a living document explaining how Go’s garbage collection system works, complete with helpful interactive diagrams.

Go Documentation

Joining Errors in Go — A helpful look at two approaches: using multiple %ws, and errors.Join (as introduced in Go 1.20).

Paschalis Tsilias

Distributed Metrics in PHP with Go and GobGob is a Go package for efficiently encoding and decoding values between Go apps.

Maurits van der Schee

📄 Writing Raw SQL Easier with pgx and sqlc in Go remvn

📄 6 Tips for Using Strings in Go – Certainly a golden oldie. Jon Calhoun

📄 Using a Separate Go Module for Your tools.go Jamie Tanna

📄 Interfaces in Go – A simple primer/reminder. Matt Boyle

🛠 Code & Tools

Modview: Go Project Dependency Graph Visualizer — A simple way to visualize dependencies in Go projects in a clean, graphical way.

Tuğrul Bayrak

htmgo: Build Simple, Scalable Systems with Go and htmx — It’s a brand new ‘alpha’ project, but provides an interesting way to combine the simplicity of both Go and htmx to quickly build interactive webapps.

maddalax

📰 Classifieds

❓Did you know you can build Fine-Grained Authorization with Go and Open Source? SpiceDB is the most scalable, consistent permissions system inspired by Google Zanzibar.


🪝 Hookdeck: A serverless queue to reliably send, receive, transform, filter, and route events across your event-driven apps.

Ebitengine v2.8.0: The Go 2D Game Engine — Long one of our favorite Go ecosystem projects, Ebitengine takes another gentle step forward with support for 32 bit float format audio and shader customization improvements.

Hajime Hoshi

gqlgen: A go generate-Based GraphQL Server Library — Check out the getting started guide for a feel for the project. GitHub repo.

99designs

Gowitness: A Web Screenshot Utility using Chrome Headless — A website screenshot utility written in Go, that uses Chrome Headless to generate screenshots of web interfaces using the command line.

SensePost

Olric: Distributed Cache and Key/Value Store — It can be used both as an embedded Go library and as a language-independent service.

Burak Sezer

anthropic-claude-golang-sdk: Go Library for Anthropic's Claude API — Send structured messages and handle responses from Anthropic’s conversational AI models within Go apps.

AI Trailblazer

🎁 And one extra for fun..

bed: A Binary/Hex Editor Written in Go — A Go-powered binary editor with a Vim-like user interface that runs in terminals, is portable, fast and has a window splitting feature.

Itchyny

n

Older messages

A type by any other name would smell as sweet..

Tuesday, September 24, 2024

Plus both WIRED and the ACM take a look at Go, scripting Go with Prolog, and a faster linter for Go code. | #​524 — September 24, 2024 Unsub | Web Version Together with Three Dots Labs Go Weekly

Go's great for working with LLMs

Tuesday, September 17, 2024

Plus running Go in the browser, using Go for scripting, and Go's ranking against other languages. | #​523 — September 17, 2024 Unsub | Web Version Together with WorkOS Go Weekly Building LLM-

Why Go's telemetry is worth enabling

Tuesday, September 10, 2024

Plus the latest Go survey, live profiling, and how Go tests its test runner. | #​522 — September 10, 2024 Unsub | Web Version Together with Frontend Masters logo Go Weekly Share Your Feedback in the

Bubble Tea brews up a 1.0 release

Tuesday, September 3, 2024

Plus a Go-powered blogging system, text editor, and JavaScript runtime all walk into a newsletter.. | #​521 — September 3, 2024 Unsub | Web Version Together with Ardan Labs Go Weekly Go 1.23's New

Channels that channel channels?

Tuesday, August 27, 2024

Plus a big TinyGo release, and how Go can be your hammer for every nail. | #​520 — August 27, 2024 Unsub | Web Version Together with WorkOS Go Weekly Range Over Function Types in Go 1.23 — Go 1.23 was

You Might Also Like

AI + high-stakes poker + Google's prompt cheat sheet

Tuesday, October 8, 2024

and a google prompt cheat sheet ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

👍 How My Phone Became My Favorite Game Console — Why Desktop Linux Matters

Tuesday, October 8, 2024

Also: iPhone Mirroring Is Here and Mostly Works, and More! How-To Geek Logo October 8, 2024 Did You Know At the end of the song "Sweet Child O' Mine," found on Guns N' Roses'

Software Testing Weekly - Issue 240

Tuesday, October 8, 2024

How Sonos Lost $200M: A Hard Lesson in Quality 🚨 View on the Web Archives ISSUE 240 October 8th 2024 COMMENT Welcome to the 240th issue! Back in June, I shared with you about the big problem with a new

Immutable Types, DuckDB & Pyodide, Free Threaded, and More

Tuesday, October 8, 2024

Differences Between Python's Mutable and Immutable Types #650 – OCTOBER 8, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Differences Between Python's Mutable and Immutable Types In this

Ranked | The Costliest Hurricanes to Hit the U.S. ☔

Tuesday, October 8, 2024

As of 2023, Hurricane Katrina is the costliest natural disaster in US history, causing over $200 billion in damages in 2024 dollars. View Online | Subscribe | Download Our App Presented by: NEW REPORT:

Daily Coding Problem: Problem #1572 [Easy]

Tuesday, October 8, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. Given a mapping of digits to letters (as in a phone number), and a digit string,

The Race for Server Space

Tuesday, October 8, 2024

Apple's Leak, Disney's Star Wars, Google's Epic Fail, OpenAI's Space Race The Race for Server Space Apple's Leak, Disney's Star Wars, Google's Epic Fail, OpenAI's Space

Microsoft goes Go for SQL Server's CLI

Tuesday, October 8, 2024

Plus new ways to deploy Go apps, reflecting on reflection, and Windows gets high resolution timers in Go. | Together with Frontend Masters logo #​526 — October 8, 2024 Unsub | Web Version Go Weekly

⚙️ Nvidia's new Agents

Tuesday, October 8, 2024

Plus: Chipmaker delivers 100k GPUs ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

How Does Visual Capitalist Work With Clients? 💪

Tuesday, October 8, 2024

Here's how organizations can partner with Visual Capitalist to leverage world-class data storytelling, and its strong audience and reach. View Online | Subscribe | Download Our App For 13 years,