Russ Cox
@swtch.com
3.9K followers 10 following 37 posts
Posts Media Videos Starter Packs
swtch.com
Please send a CL updating x/review/git-codereview to work with this too (grep for auth.cookie).
Reposted by Russ Cox
filippo.abyssdomain.expert
There is some chatter about a CA misissuing a certificate for 1.1.1.1.

This CA (crt.sh?caid=201916, only ~300 certs) is only trusted by the Microsoft root program and the eIDAS QWAC trusted list.

MS has not been actively managing their roots for years, and the EU wanted to push theirs on browsers.
Incident Report: Mis-issued Certificates for SAN iPAddress:1.1.1.1 by Fina RDC 2020
Thank you, Youfu, for bringing this to the community’s attention.
groups.google.com
swtch.com
Russ Cox @swtch.com · Aug 29
Heading home from #GopherCon 2025 in NYC. As usual, many people asked how to get one of the amazing Go gopher Hawaiian shirts by Renee French. I've posted the details at github.com/rsc/gophersh.... (I know one person who has made pajama pants with the pattern. Socks might be nice too.) Enjoy!
Hawaiian gopher shirt pattern.
Reposted by Russ Cox
nf.id.au
adg @nf.id.au · Apr 25
Side point: this demonstrates the benefits of plain text file formats. When @robpike.io implemented the coverage tool he made it emit a simple line-based text file that Russ could then manipulate with the ubiquitous Unix tools.
swtch.com
Russ Cox @swtch.com · Apr 26
That was my first thought but the files aren’t sorted the way comm needs.
swtch.com
Russ Cox @swtch.com · Apr 25
True enough, but ultimately the problem is some other code that did run and zigged instead of zagging to the code that didn't run. I tried to make that point point earlier ("may prompt useful questions about what logic led to them being skipped...").
swtch.com
Russ Cox @swtch.com · Apr 25
Overall I think the plumber works pretty well. I wouldn't change much. Language-specific clicking has been replaced by LSPs, but general clicks like URLs, issue numbers, RFCs, email addresses, or phone numbers are still helpful.
swtch.com
Russ Cox @swtch.com · Apr 25
Use tabs instead.

Years ago, when I worked with someone who insisted on spaces, I wrote a little C program called tab that changed spaces to tabs for my editing; tab -u changed them back.

gist.github.com/rsc/78589f27...
Reposted by Russ Cox
acmqueue.bsky.social
Fifty Years of Open Source Software Supply Chain Security

We are all struggling with a massive shift that has happened in the past 10 or 20 years in the software industry. For decades, software reuse was only a lofty goal. Now it's very real.

queue.acm.org/detail.cfm?i...
@swtch.com
Fifty Years of Open Source Software Supply Chain Security - ACM Queue
queue.acm.org
Reposted by Russ Cox
bdowney.bsky.social
With 8 minutes to go, @damienmiller.bsky.social sends me the only funny April Fool's joke of the day.

Notably because I was on the team of people writing the firewall rules for Rob Pike's plan 9 desktop at Google.

@tailscale.com fixes it (albeit ten years too late).
Tailscale Enterprise Plan 9 Support
Securely connect to anything on the internet with Tailscale. Built on WireGuard®️, Tailscale enables you to make finely configurable connections, secured end-to-end according to zero trust principles,...
tailscale.com
Reposted by Russ Cox
vriska.bsky.social
i was going to say it was hilarious but i wished it was real and then i realized it was
Reposted by Russ Cox
thoth.ptnote.dev
I only respect april fools jokes that commit to the bit. This? This is commitment.
bradfitz.com
"Tailscale Enterprise Plan 9 Support"
tailscale.com/plan9

(A little thing I wrote and worked on over the past few weekends with @swtch.com)
tailscale.com
swtch.com
Russ Cox @swtch.com · Apr 1
This was a lot of fun!
bradfitz.com
"Tailscale Enterprise Plan 9 Support"
tailscale.com/plan9

(A little thing I wrote and worked on over the past few weekends with @swtch.com)
tailscale.com
Reposted by Russ Cox
bradfitz.com
"Tailscale Enterprise Plan 9 Support"
tailscale.com/plan9

(A little thing I wrote and worked on over the past few weekends with @swtch.com)
tailscale.com
swtch.com
Russ Cox @swtch.com · Feb 27
If you want to take the time to write up a helpful report about them, sure. I wrote this one up because (1) I needed to document somewhere why my change was causing performance differences that it shouldn't have, and (2) the effect was quite significant in a real program.
swtch.com
Russ Cox @swtch.com · Jan 13
If I could post the explicit link, wait appropriately long, and then edit the comment to use an implicit link, then maybe email would have something useful and web would be even better, at least after the time delay.

But what is the time delay?

3/3
swtch.com
Russ Cox @swtch.com · Jan 13
I "fix" this by writing an explicit link [TITLE HERE ass="text-blue-600 dark:text-sky-400">#12345](https), which shows the link number and title in both contexts, but that isn't as nice as the default web display, omits issue status, and so on.

2/3
swtch.com
Russ Cox @swtch.com · Jan 13
Does anyone know the effective time limit for GitHub comment edits being included in the comment text that is emailed to issue subscribers?

GitHub renders "- #12345" differently on web (nice link with title and issue status) vs email (literally a useless blue #12345).

1/3
swtch.com
Russ Cox @swtch.com · Dec 17
I have found exclusive footage of the mystery drones over New Jersey. youtu.be/qsb74pW7goU?...
swtch.com
Russ Cox @swtch.com · Dec 4
Also if you are just starting out with Ivy you might find these videos helpful: www.youtube.com/watch?v=ek1y...
AoC 2021 Day 1 using Ivy
YouTube video by Russ Cox
www.youtube.com
swtch.com
Russ Cox @swtch.com · Dec 4
With few exceptions, the code requires "active reading", meaning thinking carefully about what each step does and running it in Ivy.

It required "active writing" too. :-)

`git clone 'https'://github.com/rsc/ivy; cd ivy; go install` for my ivy.

I'd like to find time to make videos, but can't now.
swtch.com
Russ Cox @swtch.com · Dec 4
Day 4 part 2 #AdventOfCode

d shift3 m produces the 3 matrices shifted by d*-1 0 1.
d MAS m identifies the A in MAS in direction d.
d xMAS m identifies the A in MAS in direction d or -d.
xMAS m identifies the A in an X-MAS.
op d shift3 m = (-1 0 1 @* d) @shift m
op d MAS m = T and/ 'MAS' == T d shift3 m
op d xMAS m = (d MAS m) or (-d) MAS m
op xMAS m = (1 1 xMAS m) and 1 -1 xMAS m
op solve2 x = +/+/ xMAS pad x

solve2 sample
solve2 input