←back to thread

Show HN: Go Plan9 Memo

(pehringer.info)
302 points pehringer | 4 comments | | HN request time: 0s | source

A quick dive into the Plan9 assembly I picked up while developing my SIMD package for Go, and how it led to a 450% performance boost in calculations.
Show context
rob74 ◴[] No.41880278[source]
In case it's not obvious, the "Plan 9" in the Go Assembler's name comes from https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs, and the reason for that is of course that two of the "Go founders" (Rob Pike and Ken Thompson) are Bell Labs alumni. Some more background on the Go assembler: https://go.dev/doc/asm
replies(3): >>41880349 #>>41880650 #>>41881656 #
colechristensen ◴[] No.41880349[source]
The same people used the same name for two computer related projects.

That's certainly an ... interesting choice.

replies(3): >>41880376 #>>41880498 #>>41883038 #
lloeki ◴[] No.41880498[source]
It is, essentially, the same project. Plan9 is the umbrella term for the whole operating system.

https://plan9.io/sys/doc/comp.html

IIRC before Go was self compiling, it was compiled using 9c, and its architecture inherits from 9c.

EDIT: some nearby threads got the details better!

replies(2): >>41880609 #>>41880619 #
colechristensen ◴[] No.41880619[source]
Interesting trivia about the connection to plan9 the operating system.

>Go uses its own internal assembly language called Plan9.

Plan9 is the name of the OS. You wouldn't name a programming language "Linux", even if Linus created it and it was super related or not at all related.

replies(1): >>41880972 #
1. seryoiupfurds ◴[] No.41880972[source]
It's not "plan9 assembly language" as in "the assembly language named plan9". Read it as "the otherwise unnamed custom assembly language used in the plan9 operating system".

The article simply misspoke by saying that the assembly language is "called plan9".

replies(1): >>41882052 #
2. debugnik ◴[] No.41882052[source]
No way, the article consistently refers to the assembler syntax as "Plan9" throughout the text and title and they talk about "x86 Plan9" and "arm Plan9".

Considering there is no introduction at all to this beyond "I discovered it's called Plan9", I'm assuming the author really thinks this is a language widely named "Plan9".

replies(1): >>41882147 #
3. KerrAvon ◴[] No.41882147[source]
They seem to be badly mistaken
replies(1): >>41883226 #
4. sph ◴[] No.41883226{3}[source]
That seems to be the case: https://news.ycombinator.com/item?id=41880346