News for hackers. Stuff that matters.
Re:Problems with the Golang runtime and toolchain by SixSigma on Tuesday December 30, 2014 @02:31PM (#8816231)
> The real toolchains everyone else uses were not invented at Lucent nor Google

Plan 9 is not a product of Lucent. It is a product of Bell-Labs. Lucent killed Bell-Labs. Calling it a Lucent product is akin to the worst insult to us you could come up with, unless you said it was GNU-like.

Plan9 C is a product of Thompson, Pike & Ritchie, you can't get more C than that, whatever your standards committee thinks.

> Without the benefit of decades of lessons learned running Unix in production

I'm not sure what the author of the rant thinks the people who invented Unix were doing all those years.

Re:Problems with the Golang runtime and toolchain by coldtea on Tuesday December 30, 2014 @06:49PM (#8817450)
>I'm not sure what the author of the rant thinks the people who invented Unix were doing all those years.

I'm not sure what you think they're doing, but they were not running Unix in production.

I've read an interview with Ken Thompson taken around the nineties, and he mentioned they were using Windows desktop machines. And true to the words he had Windows on the monitor on his desk.

And of course they were doing academic and researchy stuff. Not running Unix in production.

Re:Problems with the Golang runtime and toolchain by davecheney on Tuesday December 30, 2014 @07:23PM (#8817633)
What horse pucky. The first Unix systems were used by Bell Labs' patent department to process patent applications. It was this first customer of the Unix group that sponsored the development of Unix for many of its formative years.
Re:Problems with the Golang runtime and toolchain by coldtea on Wednesday December 31, 2014 @09:01AM (#8819351)
>The first Unix systems were used by Bell Labs' patent department to process patent applications. It was this first customer of the Unix group that sponsored the development of Unix for many of its formative years.

That's the seventies. Or at best early eighties.

We're talking about the last 30 years.

Not to mention that whatever customers Bell Labs had, doesn't translate that Richie, Pike and co were running Unix in production or cared about those systems and those customers themselves...

They had moved on to other researchy stuff...

Re:Problems with the Golang runtime and toolchain by SixSigma on Wednesday December 31, 2014 @01:24PM (#8820425)
POP was written in 1999

The last Unix release with people from the the Lab was UnixWare 7.1 (1999), the last from AT&T in 2001.

Anything else is not Unix.

We know Rob wrote Utah 2000 in that year.

That's 15 years ago.

Re:Problems with the Golang runtime and toolchain by justin66 on Tuesday December 30, 2014 @07:25PM (#8817636)
That's vague enough that it might very well have happened before desktop plan9 was practical for everyday use.
Re:Problems with the Golang runtime and toolchain by f2f on Tuesday December 30, 2014 @07:51PM (#8817736)
The most famous recent photo of Dennis Ritchie has him sitting in front of a windows desktop, drawterm-ed almost full screen into a Plan 9 CPU server. (drawterm is the name of the program that allowed you to connect local resources to a CPU server and essentially present a window on your current desktop as a Plan 9 terminal)

http://www.thetimes.co.uk/tto/multimedia/archive/00221/97222...

Re:Problems with the Golang runtime and toolchain by dap on Tuesday December 30, 2014 @04:47PM (#8816920)
> Plan9 C is a product of Thompson, Pike & Ritchie, you can't get more C than that, whatever your standards committee thinks.

Really?

That looks like an obvious contradiction. Call me a language descriptivist. If everyone else means something else by C, then the thing in question isn't C.

Re:Problems with the Golang runtime and toolchain by f2f on Tuesday December 30, 2014 @04:55PM (#8816960)
"I used to be with it, but then they changed what it was. Now what I'm with isn't it, and what's it seems weird and scary to me..." -- Grandpa Simpson
Re:Problems with the Golang runtime and toolchain by SixSigma on Tuesday December 30, 2014 @05:46PM (#8817167)
hey f2f. This is maht.

It's Go Backlash-Day on HN. The pedestal they've been putting it on must have got high enough.

Re:Problems with the Golang runtime and toolchain by f2f on Tuesday December 30, 2014 @06:49PM (#8817449)
heya, maht! nothing you read below will be news to you, but for the record here's what i think:

as far as the technical arguments against the Plan 9-descendent tools are concerned, yes, they're outdated. but the lack of cruft accumulating over the last 20 years in that toolchain is also the reason why they went with it as bootstrap for Go -- it was simple enough then. this is changing, that's why most of the Go runtime isn't written in C anymore.

the author made the argument that Go's toolchain is hard to port. this is contrary to previous experience with Plan 9's toolchain. i'm hoping 4ad (who did the port to solaris/illumos) can weigh in with his experience, but from what i saw in the commits the process did not take altogether long or appeared arduous. cgo is a separate matter, as we clearly see :)

as far as the author's personal dislike for all things pike that's a different issue altogether. and quite amusing :)

Re:Problems with the Golang runtime and toolchain by 4ad on Tuesday December 30, 2014 @07:11PM (#8817568)
> i'm hoping 4ad (who did the port to solaris/illumos) can weigh in with his experience

What can I say :). I love the Plan 9 assembly. It's the same on every operating system (even though the calling conventions are different on different systems!). It has some higher level constructs that make the assembly more consistent between different hardware architectures. It's verifiable, to some degree, by go vet.

It's not great, there's nothing great to it; in many respects it's old fashioned and anachronistic (static register, really? In Go?), but it works just fine. Other assemblers work fine too. I never felt the need to complain about assemblers. They are such a tiny, trivial, implementation detail I am amazed to see them mentioned at all.

As for the Plan 9 C dialect, the Go toolchain recently removed the C compiles, so I don't see the point of discussing Plan 9 C at all, although I like Plan 9 C quite a lot too.

The linkers work the way they work because they originally supported only static binaries. I don't like the linkers at all, although I like what they do. Cross-compilation is a marvellous thing. The code sucks though, I hate it. But there are new linkers in the work. While I can rant away for days about the linkers (I hate the fucking code), I can't complain about the features. I love the features and how they work. I can just complain about the (inappropriate) code.

The Solaris port was definitely slowed down by the fact that on other Unix systems, Go encodes the system call table. I had to add ELF support for linking with shared libraries, in order to not encode the system call table on Solaris. But I only had to do that once. Say, if I port Go to Haiku (God forbid), the code will now exist, and it will work. If Go supported linking with shared libraries from the beginning, someone would have still written that code. ELF shared library support takes time to write and it's irrelevant (from my perspective) whether I had to do it or someone else. Someone has to write it at some point, the total engineering time spent is the same.

As for the portability of the toolchain, it's pretty portable, though porting to a new operating system is a too minor of a job for that too matter. Time is dominated by other effects. But you can see it if you port it to a new architecture. I am doing the arm64 port, and the Go compiler was very easy to port, much easier than say, gcc.

Re:Problems with the Golang runtime and toolchain by ori_b on Tuesday January 06, 2015 @05:22PM (#8847499)
> The Solaris port was definitely slowed down by the fact that on other Unix systems, Go encodes the system call table.

Is there any reason that you can't just encode the system call table on Solaris too?

Re:Problems with the Golang runtime and toolchain by 4ad on Thursday January 08, 2015 @07:30AM (#8856089)
Yes, unlike Linux, the system call table is not guaranteed to be stable. Also, libc does a lot of things, like set up TLS. It's also critical in the signalling path.
Re:Problems with the Golang runtime and toolchain by ori_b on Thursday January 08, 2015 @12:40PM (#8857594)
If the system call table isn't stable, how can you ship statically linked binaries?
Re:Problems with the Golang runtime and toolchain by 4ad on Thursday January 08, 2015 @12:53PM (#8857694)
On Solaris you don't ship statically linked binaries. All Go binaries are linked with libc.so. In fact, amd64 Solaris doesn't even support statically linked binaries at all. It won't exec them.

The situation is exactly the same as on Windows. Windows Go binaries are dynamically linked agains Windows standard libraries, and Go binaries use the shared libraries instead of doing system calls themselves.

Re:Problems with the Golang runtime and toolchain by SixSigma on Tuesday December 30, 2014 @05:47PM (#8817175)
Ask Chuck Moore what he thinks about ANSII Forth.

I'll save you the trouble : "The ANSII Forth standard does not describe Forth, but a language with the same name."

Re:Problems with the Golang runtime and toolchain by q2 on Tuesday December 30, 2014 @06:25PM (#8817339)
I agree but I want to add that this is a phenomenon across many entities in human life, over a period of time.

Cities changes with time and people who stayed in that city decades ago, when they visit recently, will get the similar impression. Any one who saw a phone in late 70's and saw it now, will get the similar impression. Even jobs also change where designation/title may remain same but underlying technologies,tools,working hours,team composition, challenges,expectations on delivery ...etc all may change.

In conclusion, this is natural phenomenon w.r.t time, where top remains same and change happens below.