Golang Weekly - How Swiss Tables make Go 1.24 faster

Plus a way to call external library functions without Cgo. |

#​544 — March 5, 2025

Unsub  |  Web Version

Together with  pgAnalyze

Go Weekly

Faster Go Maps with Swiss Tables — One of Go’s newest features is a revamped map implementation powered by a new hash table algorithm called Swiss Table that boosts map operations up to 60% faster in microbenchmarks, while reducing memory overhead. Here’s a look at how it works.

Michael Pratt

Tips to Debug Hanging Go Programs — Next time your Go app becomes unresponsive, these tips can help you find the issue by forcing a stack trace or using Delve to attach to the process (or core dump) and revive the program.

Michael Stapelberg

Keep Postgres Maintenance from Slowing Down Your Go App — Secure your spot to learn the proactive maintenance practices that uncover hidden database performance risks, like slow queries, checkpoint behavior, & connection issues, before they escalate.

pganalyze sponsor

The Cost of Go's panic and recover — When something goes unexpectedly and critically wrong in a Go program you might use panic to abort things quickly, but did you know you can use recover to manage what happens after a panic? This means you could use it as a sort of control flow mechanism, if you were in a particularly unorthodox mood..

Julien Cretel

💡 This post led to a rather extensive discussion on Hacker News.

IN BRIEF:

  • 🇬🇧 GopherConUK returns to London this August and its call for papers has just opened if you'd like to speak. You can submit a talk up until May 17.

  • go-attention is an attempt to create a pure Go implementation of attention mechanisms and transformer layers, such as used in modern LLMs.

Calling Rust from 'Cursed' Go — Cgo is Go’s mechanism for calling external/foreign functions but its performance often causes consternation. Enter purego, a still-in-beta way to make such calls without Cgo.

Preston Thorpe

Nil Channels in Go — Nil channels seem to baffle many Gophers, so Vishnu went on a quest to figure out why in a particular case. This led him to the wisdom of a new Go proverb: “Init when you split; Nil when you merge.”

Vishnu Bharathi

The Magic of Small Engineering Teams — How PostHog uses small teams to ship fast and scale at the same time.

PostHog sponsor

📄 Minesweeper with Raylib Go Bindings – Alex reflects on the joys of basic game development in Go with Raylib and he shares his code too. Alex Pliutau

📄 We Switched from Java to Go and Don't Regret It Miglinci, Steiner, and Enne (Glasskube)

🛠 Code & Tools

Gore 0.6: A Full Featured Go REPL Environment — You get all the niceties you’d expect like line editing, history, multi-line input, the ability to import packages, and, in this latest build, gopls-powered code completion too.

motemen

Go Clean Template — Inspired by Uncle Bob’s ‘Clean Code’ principles, this repo attempts to provide a ‘clean architecture template’ for building Go-powered services that are well organized and won’t turn into a mess. You be the judge.

Evrone

go-git 5.14: An Extensible Git Implementation in Pure Go“Manipulate git repositories at low level (plumbing) or high level (porcelain), through an idiomatic Go API.” Now requires Go 1.23+.

go-git

sqldef 1.0: Idempotent Schema Management for Databases — A Go-powered CLI tool and WASM library for diffing SQL schemas (demo here). Supports MySQL, Postgres, SQLite and SQL Server. Built by one of Ruby’s core team members, too.

Takashi Kokubun

  • TinyGo 0.36.0 – The much celebrated Go compiler 'for small places' gains Go 1.24 and LLVM 19 support, as well as support for several new boards.

  • MongoDB Go Driver v2.1 – Officially supported driver to work with MongoDB. Now supporting MongoDB's new bulk write API and BSON vector datatype.

  • gocron v2.16.0 – Job scheduling package for running Go functions at specified intervals.

  • Wait4X 3.0 – CLI tool for waiting on various ports or services to reach a specified state.

  • pgroll v0.10 – Tool for zero-downtime, reversible schema Postgres migrations.

  • Glow 2.1 – Terminal-based Markdown rendering from the folks at Charm.

  • Pion WebRTC 4.0.13 – Pure Go implementation of the WebRTC API.

  • Sarama v1.45.1 – IBM's Go client library for Apache Kafka.

  • Hugo v0.145.0

📰 Classifieds

📌 Faster Deployment – Integrate CarsXE’s API in minutes and get real-time vehicle data with ease. Try it now! 


Blacksmith runs GitHub Actions 2x faster at half the cost with a one-line code change. Trusted by 250+ companies like Ashby and Clerk.

📢  Elsewhere in dev

A quick roundup of some of other interesting stories in the broader landscape, in case you've missed them:

n

Older messages

gopls can now suggest ways to modernize your Go code

Thursday, February 27, 2025

Plus a Go-powered OpenGL Minecraft implementation. | #​543 — February 26, 2025 Unsub | Web Version Together with Stytch logo Go Weekly Testing Concurrent Code with testing/synctest — Concurrency is one

Go 1.24 arrives

Friday, February 14, 2025

Plus slice gotchas, using Go over the radio waves, and replacing React with Go? | #​542 — February 12, 2025 Unsub | Web Version 🏖️ We're taking next week off, so the next issue will be on Wednesday

An interactive tour of Go 1.24

Wednesday, January 15, 2025

Plus generating random art, sending emails, and a variety of gopher images you can use. | #​538 — January 15, 2025 Unsub | Web Version Together with Posthog Go Weekly An Interactive Tour of Go 1.24 — A

The latest Go dev survey results

Wednesday, January 8, 2025

Plus it's time to say goodbye to the Go Time podcast. | #​537 — January 8, 2025 Unsub | Web Version Happy New Year to all. In case you missed our note prior to the Christmas break, Go Weekly is now

A look back at Go's 2024

Thursday, December 19, 2024

Plus a little look forward to 2025 too with Go 1.24. | #​536 — December 17, 2024 Unsub | Web Version 🎄 A mixed bag this week as we cover a few news items but then get into a 2024 roundup of Go news and

You Might Also Like

Software Testing Weekly - Issue 261

Wednesday, March 12, 2025

New AI solutions for testing 👀 View on the Web Archives ISSUE 261 March 12th 2025 COMMENT Welcome to the 261st issue! I have nothing more to add to the genuinely great news that came out recently. I

JSK Daily for Mar 11, 2025

Tuesday, March 11, 2025

JSK Daily for Mar 11, 2025 View this email in your browser A community curated daily e-mail of JavaScript news How to Enforce Type Safety in FormData with TypeScript When working with the FormData

Binary Data, Tail Calls, Pickles, and More

Tuesday, March 11, 2025

Bytes Objects: Handling Binary Data in Python #672 – MARCH 11, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo Bytes Objects: Handling Binary Data in Python In this tutorial, you'll learn about

Shaking The Wasp’s Nest 🐝

Tuesday, March 11, 2025

How Gamergate swarmed into our online lives. Here's a version for your browser. Hunting for the end of the long tail • March 11, 2025 Today In Tedium: You probably have noticed, just like me, that

Daily Coding Problem: Problem #1714 [Easy]

Tuesday, March 11, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an N by N matrix of random letters and a dictionary of words. Find

Mapped | The State of Democracy Around the World 🌐

Tuesday, March 11, 2025

After a historic election year, we show the state of democracy worldwide as it declines to its lowest level in two decades. View Online | Subscribe | Download Our App NEW REPORT: The Age of Data >

Stories, Free Tool & CRM Template

Tuesday, March 11, 2025

Notion stories, smart tools, and a free template to organize your contacts 🔥 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LW 173 - How to become a Shopify Developer in 2025

Tuesday, March 11, 2025

How to become a Shopify Developer in 2025 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Shopify Development news and articles Issue 173 - 03/11

This free AI tool beats Perplexity

Tuesday, March 11, 2025

Ubuntu vs. Debian; The new HR; YouTube randomizer -- ZDNET ZDNET Tech Today - US March 11, 2025 webfeetgettyimages-10141124 DuckDuckGo's AI beats Perplexity in one big way - and it's free to

⚙️ AI bubble bursts (?)

Tuesday, March 11, 2025

Plus: We talk to the CEO of Read AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌