Advertisement · 728 × 90
#
Hashtag
#Golang
Advertisement · 728 × 90
ordered package - go.treyburn.dev/ordered - Go Packages

And we’re live! My zero dependency, ordered map package with a focus on ergonomics using generics iterators.

#golang

pkg.go.dev/go.treyburn....

0 0 0 0
Modernizers¶

The introduction of generics in Go 1.18 marked the end of an era of very few changes to the language spec and the start of a period of more rapid—though still careful—change, especially in the libraries. Many of the trivial loops that Go programmers routinely write, such as to gather the keys of a map into a slice, can now be conveniently expressed as a call to a generic function such as maps.Keys. Consequently these new features create many opportunities to simplify existing code.

In December 2024, during the frenzied adoption of LLM coding assistants, we became aware that such tools tended—unsurprisingly—to produce Go code in a style similar to the mass of Go code used during training, even when there were newer, better ways to express the same idea. Less obviously, the same tools often refused to use the newer ways even when directed to do so in general terms such as “always use the latest idioms of Go 1.25.” In some cases, even when explicitly told to use a feature, the model would deny that it existed. (See my 2025 GopherCon talk for more exasperating details.) To ensure that future models are trained on the latest idioms, we need to ensure that these idioms are reflected in the training data, which is to say the global corpus of open-source Go code.

Over the past year, we have built dozens of analyzers to identify opportunities for modernization. Here are three examples of the fixes they suggest:

Modernizers¶ The introduction of generics in Go 1.18 marked the end of an era of very few changes to the language spec and the start of a period of more rapid—though still careful—change, especially in the libraries. Many of the trivial loops that Go programmers routinely write, such as to gather the keys of a map into a slice, can now be conveniently expressed as a call to a generic function such as maps.Keys. Consequently these new features create many opportunities to simplify existing code. In December 2024, during the frenzied adoption of LLM coding assistants, we became aware that such tools tended—unsurprisingly—to produce Go code in a style similar to the mass of Go code used during training, even when there were newer, better ways to express the same idea. Less obviously, the same tools often refused to use the newer ways even when directed to do so in general terms such as “always use the latest idioms of Go 1.25.” In some cases, even when explicitly told to use a feature, the model would deny that it existed. (See my 2025 GopherCon talk for more exasperating details.) To ensure that future models are trained on the latest idioms, we need to ensure that these idioms are reflected in the training data, which is to say the global corpus of open-source Go code. Over the past year, we have built dozens of analyzers to identify opportunities for modernization. Here are three examples of the fixes they suggest:

For languages with lots of regular improvements to best practices, LLMs tend to generate code that represents outdated ways to do things (simply because most code ”out there” will not be refactored yet).

So the go team proactively introduced static analysis […]

[Original post on mastodon.xyz]

0 0 0 0
Video

Our Metal Bowl is coming to Xbox Series X/S on April 23! I had to adapt one of the puzzles and it actually turned out better than the Steam version :)
#xbox #indiegame #golang #ebitengine #pixelart

www.xbox.com/en-gb/games/...

8 3 0 0
Preview
🇩🇪 Founding Engineer - Golang at GlassFlow (Berlin, Germany) Founding Engineer - Golang GlassFlow is a startup building the open-source data streaming infra for the next generation of developers and AI companies: Easy to use, massively scalable and optimized for the AI era. We’re a Berlin startup with a Silicon Valley mentality, backed with $4.8m from Up

GlassFlow is hiring: Founding Engineer - #Golang in #Berlin 🇩🇪 #azure #ai #Germany

0 0 0 0

While #golang has a decent amount of quirks, I actually quite enjoy programming in that language. I might write a blog post about the development some day, focusing on my thoughts on the Go language.

0 0 0 0

The game is not great by any means, but even though I'm not proud of the game itself, I'm proud that I was able to start and finish a "slightly bigger" (i.e. more than 5K lines of code) project in #golang.

0 0 1 0
Video

It took over five months and almost 24,000 lines of #golang code, but I was finally able to finish my latest #metroidvania project.

Download on itch.io: itch.io: jani-nykanen.itch.io/a-dream-of-h...

Source code on #github: github.com/jani-nykanen...

#gamedev #indiedev #pixelart #opengl

8 2 1 0

The go run command starts the application as a sub-process, making the go command itself the parent process
#golang

0 0 0 0
Post image

Native GTK3 + WebKit2GTK desktop app for Ollama on Linux
#golang

github.com/johnohhh1/o...

0 0 0 0
Preview
Parsing 11 languages in pure Go without CGO: how I replaced regex with a tree-sitter runtime I had a problem. I was building a codebase indexer that needed to extract imports, exports, and type...

Parsing 11 languages in pure Go without CGO: how I replaced regex with a tree-sitter runtime
#golang

dev.to/thegdsks/pa...

0 0 0 0

This morning I finally knocked out making the zero dependency, generic ordered map package I’ve always reached for but never found in #golang ecosystem. Finally made good use of the iter package too.

0 0 3 0
Post image

Hey, I recently updated my old tool; it now has a nice TUI and can be installed by Homebrew. github.com/asvid/Remote...
It allows you to see logs on the release build of the Android app and send them via WebSocket to the terminal app.
#android #tool #mobile #AndroidDev #golang

1 0 0 0
Preview
GitHub - pymander/maybe: A simple command line utility that succeeds sometimes. A simple command line utility that succeeds sometimes. - pymander/maybe

I was looking back at the work I did on my "maybe" tool last year, and it is actually pretty cool. #golang #maybe https://github.com/pymander/maybe

1 1 0 0

I recently write more Go lang than anything else. I just wanted to share two resources that I recently found particularly helpful and interesting.

Redowan Delowar’s blog:
rednafi.com
@rednafi.com

Fallthrough podcast:
fallthrough.transistor.fm
@skriptble.me @matthewsanabria.dev

#go #golang

12 3 2 0
go gc pauses over the past week

go gc pauses over the past week

"Go has GC pauses", oh no think of the μs saved! #golang #coding #programming

2 0 0 0
Preview
Release v0.23.1 · hymkor/go-multiline-ny

#golang > Release v0.23.1 · hymkor/go-multiline-ny
github.com/hymkor/go-multiline-ny/r...

0 0 0 0
Preview
CVE-2026-40189: CWE-862: Missing Authorization in patrickhener goshs CVE-2026-40189 is a critical authorization bypass vulnerability in the goshs SimpleHTTPServer written in Go. Versions prior to 2.0.0-beta.4 enforce ACL/basic-auth only on directory listings and file reads but do not enforce authorization on

CRITICAL: patrickhener goshs <2.0.0-beta.4 lets unauth users upload, delete, and bypass folder auth! Upgrade to 2.0.0-beta.4+ ASAP. Restrict access until fixed. radar.offseq.com/threat/cve-2026-40189-cw... #OffSeq #CVE202640189 #GoLang

0 0 0 0
Preview
Release v1.14.3 · nyaosorg/go-readline-ny

#golang > Release v1.14.3 · nyaosorg/go-readline-ny
github.com/nyaosorg/go-readline-ny/...

1 0 0 0
Golang Weekly Issue 596: April 10, 2026 #​596 — April 10, 2026

Issue 596 of the Golang Weekly newsletter mentions the v1 release of github.com/jub0bs/cors. Nice! #golang

golangweekly.com/issues/596

6 1 0 0
Preview
Go Bitwise Flags and Bitmasks: Configuration Pattern Guide • Asaduzzaman Pavel How to use bitwise flags, bitmasks, and iota for configuration in Go. Learn bitwise OR, AND, XOR operations, set/clear/toggle patterns, and practical examples with JSON serialization.

Go Bitwise Flags and Bitmasks: Configuration Pattern Guide
#golang

iampavel.dev/blog/go-bit...

3 0 0 0
Post image

A Go framework for building MCP servers. Your struct tags are your schema.
#golang

github.com/AKhilRaghav...

0 0 0 0
Post image

I've been playing around with a new fractal. Tomorrow I'll try animating it with a fragment shader. #fractal #golang

2 0 0 0
86mb rss

86mb rss

100k requests

100k requests

p95/p99 response time

p95/p99 response time

"Go isnt good with memory", "Go cant handle web traffic", "Go is too slow". ????

#golang #coding #programming #webdev

0 0 0 0
Post image

Log is the simplest possible data structure for recording events.

The index files is why reads are O(1), you jump straight to the byte position, no scanning again from start every time a request is made.

Read the log structure underneath

#distributedsystems #golang #buildinpublic

1 1 1 0
Video

I managed to get the live migration functionality working for virtual machines. I had to speed up the video to fit in a 3m window. This project is written in Go, uses QEMU/KVM, and I deploy it to all my bare metals.

#homelab #selfhosted #technology #virtualization #kvm #golang #indiedev #linux

4 0 0 0

I love comprehending concepts through simplest analogies and not a fan of big words. If you've been confused by interfaces in Go, this one's for you. An old post, but it sure breaks the complexity with a silly analogy.

Enjoy: ashwiniag.com/interfaces-i...

#golang #go #programming #learninpublic

0 0 0 0
Post image

In the hindsight the flow looks as

#golang #distributedsystems #learninpublic #protobuf

0 0 0 0
Post image

10K, 1M.. or more active SSE streams Building MCPSprut ( MCP Hub )

How I built an MCP hub designed to hold as many SSE streams as a single machine can handle
#golang

ernest-khas.hashnode.dev/part-1-10k-...

2 0 0 0
Preview
Avoiding supply chain attacks in Go If you’ve been following the news in recent weeks (March/April 2026), you must have read about two major “supply chain attacks” that occurred. You were probably affected in some way by the problem with the LiteLLM and Axios projects.

An interesting article about "Avoiding supply chain attacks in Go"
#golang

eltonminetto.dev/en/post/202...

1 0 0 0
(iterate think thoughts): Giving LLMs a Formal Reasoning Engine for Code Analysis Dmitri's blog about programming, Clojure, and software development

yogthos.net/posts/2026-0... this is so damn cool! I had Claude port this to a native #golang toolchain, skipping tree sitter and prolog. Still evaluating but it cuts down time to research code considerably

1 0 0 0