Advertisement · 728 × 90

Posts by Michael Pratt

proposal: spec: type inferred composite literals · Issue #12854 · golang/go Composite literals construct values for structs, arrays, slices, and maps. They consist of a type followed by a brace-bound list of elements. e.g., x := []string{"a", "b", "c"} I propose adding unt...

Holy cheese my untyped composite literal proposal from 2015 just got accepted. #golang github.com/golang/go/is...

2 hours ago 17 4 3 0

I recently got back into photography and was also not thrilled about giving Adobe money, but I got the sense online that CO’s library management wasn’t as nice as Lightroom, so I’ve stuck with Lightroom.

This thread definitely makes me interested in giving Capture One a shot.

2 days ago 1 0 1 0

>benchmark perf improvements
>it's slower

1 week ago 128 7 4 0
Gerrit Code Review

Compiler nerd joy: making some #golang switch statements ~2.5x faster ⚡

go.dev/cl/756340

1 week ago 24 2 1 0

The SAT had the same cursive paragraph thing too when I took it. I had a similar nervous reaction!

1 week ago 1 0 0 0

“Type Construction and Cycle Detection” by Mark Freeman — go.dev/blog/type-construction-a...

#golang

2 weeks ago 23 9 0 0

Now you’ve learned to stick to HTTP/3 proposals. Those are much simpler than uuid.

2 weeks ago 3 1 1 0
Advertisement

I’m glad I’m not the only one that found the idea of not reviewing code unreasonable. Beyond even finding problems or understanding the code, a key component of code review is ensuring that the code base remains maintainable over the long term.

3 weeks ago 2 1 1 0
Preview
GitHub - u-root/gobusybox: Tools for compiling many Go commands into one binary to save space. Builds are supported for vendor-based Go and module-based Go Tools for compiling many Go commands into one binary to save space. Builds are supported for vendor-based Go and module-based Go - u-root/gobusybox

Oh! If you like bundle, you’ll love github.com/u-root/gobus..., an awesome cursed tool for combining multiple package mains into one binary.

3 weeks ago 2 1 0 0

I’m glad you have this follow up so not to anger the h2_bundle fan club.

3 weeks ago 3 0 2 0
Preview
//go:fix inline and the source-level inliner - The Go Programming Language How Go 1.26's source-level inliner works, and how it can help you with self-service API migrations.

Find out how the source-level inliner in Go 1.26 can help you with API migrations.
go.dev/blog/inliner

4 weeks ago 54 13 1 1

“//go:fix inline and the source-level inliner” by Alan Donovan — https://go.dev/blog/inliner

#golang

4 weeks ago 31 5 0 0

Additionally, I want to speak directly to Iranian New Yorkers: you are part of the fabric of this city — you are our neighbors, small business owners, students, artists, workers, and community leaders. You will be safe here.

1 month ago 10028 1425 53 81

“Allocating on the Stack” by Keith Randall — https://go.dev/blog/allocation-optimizations

#golang

1 month ago 43 7 1 0
Advertisement

Those were the days. Now I use nvim main.go.

1 month ago 17 0 2 0
Preview
spec: generic methods for Go · Issue #77273 · golang/go Proposal: Generic Methods for Go A change of view. Background For clarity, in the following we use the term concrete method (or just method when the context is clear) to describe a non-interface me...

🚀 "spec: generic methods for Go" has been accepted!

You will soon (1.27?) be able to declare (on concrete types only) methods that introduce type parameters, i.e. type parameters other than the ones (if any) that come from the method's receiver.

github.com/golang/go/is...

#golang

1 month ago 11 3 3 0

In retrospect x86-64 may be easier just because i386 is so cursed. At least things are simplified a little in the 64-bit world.

1 month ago 3 0 1 0

Good point! Once @rebane2001.bsky.social adds full i386 support, it should be possible to run Chromium in Linux in CSS. Then there would be no need to do anything natively.

1 month ago 5 0 1 0

My phone is now hot but the best part is I’m not sure if that is from the CPU emulator or from GitHub trying to render the 14k source file when I went to see how this works.

1 month ago 10 0 2 0
Preview
Turn Dependabot Off I recommend turning Dependabot off and replacing it with a pair of scheduled GitHub Actions, one running govulncheck, and the other running CI against the latest version of your dependencies.

Dependabot security alerts have terrible signal-to-noise ratio, especially for Go vulns. That hurts security!

Just turn it off and set up a pair of scheduled GitHub Actions, one running govulncheck and the other running CI with the latest version of your deps.

Less work, less risk, better results!

1 month ago 91 20 4 1

“Using go fix to modernize Go code” by Alan Donovan — https://go.dev/blog/gofix

#golang

1 month ago 61 22 0 4
Preview
Go 1.26 interactive tour New with expressions, type-safe error checking, and faster everything.

Go 1.26 is out, and the announcement says:

"Over the next few weeks, follow-up blog posts will cover some of the topics in more detail. Check back later."

So you can wait a few weeks OR you can read my interactive Go 1.26 tour right away:

antonz.org/go-1-26

1 month ago 52 14 1 0

Some pretty awesome improvements in 1.26 for compiling/testing typescript-go.

With a clean build/test cache, running the full test suite used to take 3m45s, but now takes just 2m10s.

1 month ago 63 5 2 0
Advertisement

“Go 1.26 is released” by Carlos Amedee, on behalf of the Go team — https://go.dev/blog/go1.26

#golang

1 month ago 62 17 1 0

🍵

1 month ago 23 1 0 0

Bah, my joke has a typo anyway 🙃

2 months ago 0 0 0 0

I’ll be honest, I’m a little disappointed that “ahead-of-time gc” isn’t a garbage corrector that collects objects before they are ever allocated.

2 months ago 1 0 1 0

$ jj describe -m "Hello, world!"

2 months ago 209 41 6 8

I have catch-all email on my domain and got one to epstein@. Yikes

2 months ago 1 0 1 0

ICE out of my compiler

2 months ago 6 0 0 0
Advertisement