←back to thread

Show HN: Go Plan9 Memo

(pehringer.info)
302 points pehringer | 8 comments | | HN request time: 1.758s | source | bottom

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
mxey ◴[] No.41880731[source]
> After doing some preliminary research I discovered that Go uses its own internal assembly language called Plan9.

Is the language actually called that?

replies(4): >>41880883 #>>41881786 #>>41881960 #>>41882801 #
mseepgood ◴[] No.41881786[source]
No, it doesn't have a name. Plan 9 is an operating system, and this style of assembly language syntax originates from the assembler used on this operating system. Its like saying "The GNU Compiler Collection uses its own internal assembly language called Unix."
replies(1): >>41882016 #
dekhn ◴[] No.41882016[source]
Well, linux is just a mechanism to make more copies of GCC, so that tracks.
replies(2): >>41882153 #>>41886589 #
pjmlp ◴[] No.41886589[source]
Not when packaged in Android and ChromeOS.
replies(1): >>41892140 #
1. opless ◴[] No.41892140[source]
Which are both Linux?
replies(1): >>41893565 #
2. pjmlp ◴[] No.41893565[source]
They aren't Linux, they use the Linux kernel, alongside a Java or JavaScript userspace, not really the same thing, and a reality termux refuses to acknowledge and that it is why it is no longer available on Play Store.
replies(1): >>41894344 #
3. opless ◴[] No.41894344[source]
No. The Kernel IS the operating system.

No, the user space is (mostly) busybox, in both cases.

The user interface is different sure.

The fact that termux (a Debian userspace) is able to run on android at all is enough to dispel your claims.

Stop with the mental gymnastics, you're ill prepared. If you wish, I can buy you a dictionary.

replies(1): >>41894807 #
4. pjmlp ◴[] No.41894807{3}[source]
As any proper CS or Software Engineering degree will teach you, a kernel alone isn't an operating system.

I suggest to attend one, or search related material freely available.

Termux runs on Android with hacks, and only to the point Google doesn't allow it anymore, unless it is side loaded.

replies(1): >>41895389 #
5. opless ◴[] No.41895389{4}[source]
My dear summer child. My degree trained me to build computers from logic, write an operating system, write userspace code and applications (with a side of AI) all before the year 2000.

I don't know where you did your degree or when. But my friend you are objectively wrong.

Termux no longer runs because it no longer allows (possibly using Linux capabilities?) subprocesses from around Android 10. Android 12 if memory serves actually starts killing background processes.

No hacks. Unless your degree says using the POSIX fork()/exec() API as "hacks".

Please don't embarrass yourself further. It was quite painful reading your prior response.

replies(1): >>41895799 #
6. pjmlp ◴[] No.41895799{5}[source]
Apparently it wasn't that good, otherwise you could tell the difference, since those APIs aren't proving by Linux kernel, rather bionic C library.

Also I they aren't listed as official NDKs APIs, because POSIX isn't part of neither ISO C, nor ISO C++, hence hack.

https://developer.android.com/ndk/guides/stable_apis

A hack that termux folks now suffer from, because it fails Play Store API validation for forking processes, which sidelining works around, until Google decides to forbid that as well.

Coding since 1980's, and only fools are afraid to be embarrassed.

replies(1): >>41895892 #
7. opless ◴[] No.41895892{6}[source]
Hmm the NDK is for userspace, you can remove functions out of the standard libraries, but the Linux syscall API will likely be untouched

Apple does this too for its more locked down devices.

I've been coding since the 80s too. I had assumed from your hubris and ignorance that you were young. My mistake, it's clear that you're merely an idiot.

Enjoy the weekend, happy in the knowledge that I shall no longer be engaging with you.

replies(1): >>41902476 #
8. pjmlp ◴[] No.41902476{7}[source]
Usually people resort to name calling to divert attention for their lack of sound arguments....