#494 — February 6, 2024
Unsub | Web Version
Go Weekly
Testing Out Profile-Guided Optimization on Dolt's SQL Benchmarks — Profile-guided optimization was introduced in Go 1.20. The Dolters(?) created a benchmark and saw small (t...
Happy new year!
The first release of 2024 is here!
This is a transcription of Jim Lawless's interview with Ben Hoyt on his Stray Pointers podcast. We discuss Forth, C, CGI, Python, Go, and AWK.
I used reach for reflection whenever I needed a Retry function in Go. It’s fun to write,
but gets messy quite quickly.
Here’s a rudimentary Retry function that does the following:
It takes in another function that accepts arbitrary arguments.
Then tries to execute th...
I used reach for reflection whenever I needed a Retry function in Go. It’s fun to write,
but gets messy quite quickly.
Here’s a rudimentary Retry function that does the following:
It takes in another function that accepts arbitrary arguments.
Then tries to execute th...
I used reach for reflection whenever I needed a Retry function in Go. It’s fun to write,
but gets messy quite quickly.
Here’s a rudimentary Retry function that does the following:
It takes in another function that accepts arbitrary arguments.
Then tries to execute th...
Build retry logic in Go without reflection using generics. Implement exponential backoff and configurable retry strategies with type safety.
In a previous post I've
discussed how to access Google's multimodal Gemini models from Go (with a nice
free tier!)
Recently, Google's SDKs were added as providers for LangChainGo; this makes it possible to use the
capabilities of the LangChain framework with Google's Gemini model...
Despite moonlighting as a gopher for a while, the syntax for type assertion and type
switches still trips me up every time I need to go for one of them.
So, to avoid digging through the docs or crafting stodgy LLM prompts multiple times, I
decided to jot this down in a gobyexampl...