Golang Weekly - Cleanups and weak pointers in Go 1.24

Plus TypeScript's compiler is rewritten in.. Go? |

#​545 — March 12, 2025

Unsub  |  Web Version

Together with  WorkOS

Go Weekly

TypeScript's Compiler to Get 10x Faster, Thanks to Go — TypeScript has shaken up the JavaScript ecosystem in recent years with an increasing number of developers relying on its strong typing and added structure. TypeScript’s compiler isn’t particularly fast, though, but the TypeScript team at Microsoft is changing that by porting it to Go!

Anders Hejlsberg (Microsoft)

📺 The Syntax podcast had Anders on for an episode discussing the whole porting process. Lots of details for those who want to go deeper.

Why Reimplement TypeScript's Compiler in Go? — Many people have been asking why Microsoft is porting TypeScript’s compiler to Go rather than, say, Rust or C#. TypeScript’s architect Anders Hejlsberg delivered the definitive comment on the matter: Go fit the technical requirements and proved the best high performance language to which to port JavaScript for a variety of reasons.

Microsoft's TypeScript Repo

🔒 Protect Against AI Bots, Fraud, and Abuse in Real Time — With WorkOS Radar you can detect, verify and block harmful behaviour, protecting your app with advanced device fingerprinting. Stop fake signups, stop free tier abuse, and stop bot attacks and brute force attempts today.

Workos sponsor

New Low-Level Tools for Garbage Collection Efficiency — A look at two new features offered by Go 1.24’s garbage collector: runtime.AddCleanup and weak.Pointer. Cleanups are like finalizers, but get around some of their quirks by not resurrecting objects they’re attached to. Weak pointers, meanwhile, let you reference objects without preventing their garbage collection.

Michael Knyszek

💡 The Go team has updated the Go garbage collector docs with info about the above features.

Different Ways of Working with SQL Databases in Go — Starting with a simple schema presenting a basic blog system, Alex walks through a variety of approaches from working with raw SQL and database/sql to sqlx, using ORMs, and sqlc.

Alex Pliutau

Building a Secure Session Manager — The stateless nature of requests to a webapp demands some sort of session management, most commonly via a cookie containing a unique ID to identify the user. Mohamed looks at a way to keep this whole process secure.

Mohamed Said

💡 Mohamed follows on with Implementing Cross-Site Request Forgery (CSRF) Protection in Go Web Apps.

Using Cursor for Large Projects — If you’ve tried using tools like Cursor to write Go code in larger projects, you’ll have almost certainly run into its limitations. Thierry has some tips for adding a bit of structure to the ghost in the machine.

Thierry S. (Stream)

Sign Up for a Workshop to Get Started Building Go-Powered Decentralized Apps — App builders, Go enthusiasts, tinkerers: come and build on gno․land, a smart contract platform for a freer, fairer world.

gno․land sponsor

📄 Building Cross-Platform SDKs: From FFI to WebAssembly – Another story where Cgo reared its ugly head and forced a different approach. Mark Phelps (Flipt)

📄 The Benefits of Native FIPS Support in Go 1.24 Derek Parker (Red Hat)

🛠 Code & Tools

RobotGo: Native Cross-Platform GUI Automation — A way to control the pointer, keyboard, read the screen, etc. Combine this with an LLM perhaps.. if you dare?

V Caesar et al.

ghw 0.15.0: A Go Hardware Discovery/Inspection Library — Find out things about the memory, CPU, storage, network support, and similar things about the host computer. Focused on Linux and Windows, with partial macOS support.

Jay Pipes

ObjectBox Go 1.9: A Fast, Embedded Database for Go Objects — Store objects in ObjectBox and find them again using powerful queries.

ObjectBox Ltd.

📰 Classifieds

Infrastructure Identity: A New Paradigm for Trustworthy Computing in a Zero Trust World – Download your copy here.


👀 Give your eyes a break! MonoLisa makes coding more comfortable. Try MonoLisa now.

📢  Elsewhere in dev

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

n

Older messages

How Swiss Tables make Go 1.24 faster

Wednesday, March 5, 2025

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

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

You Might Also Like

📱 I Wish More Companies Made Phones This Bonkers — How to Check the Age of Your Hard Drive

Tuesday, March 18, 2025

Also: The 10 Best Apple TV+ Shows You're Missing Out On, and More! How-To Geek Logo March 12, 2025 Did You Know The weekday that falls most frequently on the 13th day of the month in the Gregorian

Tomorrow's Photo Management Class: How to sign up!

Tuesday, March 18, 2025

[Attention: Our final free class on photo management is happening tomorrow! This is your last chance to sign up. Register now.] Open your Photos app. What do you see? Thousands of random pictures?

The Sequence Engineering #508: AGNTCY, the Agentic Framework that Brought LangChain and LlamaIndex Together

Tuesday, March 18, 2025

The new framework outlines the foundation for the internet of agents. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

URGENT: Microsoft Patches 57 Security Flaws, Including 6 Actively Exploited Zero-Days

Tuesday, March 18, 2025

THN Daily Updates Newsletter cover ⚡ LIVE WEBINAR ➟ ASPM: The Future of AppSec -- Boom or Bust? Discover How ASPM is Redefining Application Security with Smarter, Unified Solutions. Download Now

⚙️ Making AI for coding work

Tuesday, March 18, 2025

Plus: New self-driving data ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 03/12/2025

Tuesday, March 18, 2025

New blogs from Syncfusion ® Sneak Peek at .NET MAUI: 2025 Volume 1 By Paul Anderson Let's explore the new features and enhancements that will be added in the Syncfusion .NET MAUI suite for the

AI agents are changing work 🤖

Tuesday, March 18, 2025

Windows vs. M4 MacBook Air; VPN tips; Metallica on Vision Pro -- ZDNET ZDNET Tech Today - US March 12, 2025 person walking to work AI agents aren't just assistants: How they're changing the

Interested in a tailored threat briefing for you and your team?

Tuesday, March 18, 2025

Learn from expert identity attack researchers and creators of the SaaS attacks matrix ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

Biome vs. Prettier & ESLint; ESLint flat config improvements; returning from async functions;

Tuesday, March 18, 2025

We have 6 links for you - the latest on JavaScript and tools Is Biome ready to replace Prettier & ESLint? medium.com ESLint: Evolving flat config with extends eslint.org @nzakas@fosstodon.org @

What is a HoundDog(.ai)?

Tuesday, March 18, 2025

Still waiting to hear back from HoundDog… if you have an in, please reach out and let them know I want them on the show!! Until then… Stop PII Leak Detection in the Code! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏