9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za (Lucio De Re)
Subject: [9fans] Go Plan 9
Date: Sun,  3 Apr 2011 22:45:28 +0200	[thread overview]
Message-ID: <20110403204528.GI1805@fangle.proxima.alt.za> (raw)
In-Reply-To: <BANLkTi=oxwU5HodLv6UNS6d4N2an4E8Ueg@mail.gmail.com>

On Sun, Apr 03, 2011 at 11:20:25AM -0700, Rob Pike wrote:
> 
> I'm not sure I follow.  The 6c and 6g compilers in the Go distribution
> are compiled with the local compiler, such as gcc on Linux and OS X.
> I don't believe it's possible they have Plan 9-specific features in
> their source.  I can believe they would have problems compiling on
> Plan 9, but that's the inverse problem.
> 
On the contrary (if that makes sense), they have that nasty "#include
<stdio.h>" that Erik referred to and Plan 9 is allergic to, as well as a
number of nested #includes that trigger rebellion in the Plan 9 toolchain.
And I don't have a 64-bit host to test them on.

But do not forget that I have a Plan 9 native toolchain that compiles
a runnable copy of "hello.c", including printf() invocation. It's just
too old to be useful.

> Once 6c is built, it is used to build the Go runtime, so the source
> and compiler should match perfectly.  Plan 9 compiler issues should
> not be relevant.
> 
I haven't even considered using the toolchain for Plan 9 native because
I can't track releases given the many changes required to silence the
Plan 9 toolchain.  And maybe some warnings can be overlooked, but I
don't want to be the judge of that.

Basically, I can't find an approach to submitting changes to the Go
toolchain so it can run under Plan 9 that does not involve major surgery,
nor can I separate the changes out in small parcels because testing
is impractical.  I'm hoping that things will eventually settle down and
there will be resources to review extensive, if documentable changes.
Not being able to back-port the Go toolchain to Plan 9 native seems
defeatist.  Now that a runtime is available and will hopefully receive
extensive testing, it makes the exercise even more worthwhile.

And if issues such as compatibility in function argument definitions can
be resolved amicably between the GCC compiler and the Plan 9 toolchain,
then things are really looking up.  But, as I stated earlier, it requires
the will on the Go side to retrofit changes for the sake of Plan 9, and
that may be a problem.  My failed efforts (possibly thoroughly misguided)
to get l.h accepted with changes acceptable to the Plan 9 built-in
pre-processor suggest that the Go developers have different objectives
in mind.

If this does not address Rob's concerns, then I'd like to ask for the
question(s) to be phrased more clearly.

And again, I think one ought to look at all the "Plan 9" favours out
there: 9vx deserves effort, Plan9port could support Go better than the
native environment, linuxemu would provide a useful testbench.  Only GCC
3.0 in Plan 9 is almost certainly a dead end.

++L



  reply	other threads:[~2011-04-03 20:45 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03  9:40 Pavel Zholkover
2011-04-03 10:34 ` erik quanstrom
2011-04-03 14:42   ` Lucio De Re
2011-04-03 14:57   ` Lucio De Re
2011-04-03 15:43     ` erik quanstrom
2011-04-03 16:25       ` Skip Tavakkolian
2011-04-03 17:46         ` erik quanstrom
2011-04-06  7:27           ` Skip Tavakkolian
2011-04-03 17:43     ` Devon H. O'Dell
2011-04-03 17:58       ` Lucio De Re
2011-04-03 18:20         ` Rob Pike
2011-04-03 20:45           ` Lucio De Re [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-09 18:53 Pavel Zholkover
2011-04-09 19:04 ` Skip Tavakkolian
2011-04-09 22:01   ` Pavel Zholkover
2011-04-10  5:07     ` Lucio De Re
2011-04-10  6:28       ` Pavel Zholkover
2011-04-10  9:15         ` Lucio De Re
2011-04-06 13:27 Joel C. Salomon
2011-04-06 16:16 ` David Leimbach
2011-04-05 19:15 Jason Catena
2011-04-04 19:19 Russ Cox
2011-04-03 16:49 Pavel Zholkover
2011-04-03 17:36 ` Lucio De Re
     [not found] <AANLkTik3gx8QK7O-+O=R8oFELTt6WgVHO3dJV51cZiPQ@mail.gmail.com>
2011-04-02 22:56 ` Pavel Zholkover
2011-04-02 23:00   ` andrey mirtchovski
2011-04-02 23:52     ` David Leimbach
2011-04-03  0:04       ` ron minnich
2011-04-03  0:04         ` ron minnich
2011-04-03  0:11           ` ron minnich
2011-04-03  0:16             ` andrey mirtchovski
2011-04-03  0:09       ` andrey mirtchovski
2011-04-03  7:57       ` Pavel Zholkover
2011-04-03  2:18   ` Skip Tavakkolian
2011-04-03  2:48     ` Rob Pike
2011-04-03  5:07       ` Lucio De Re
2011-04-03 18:50         ` Steve Simon
2011-04-03 20:57           ` Lucio De Re
2011-04-03  7:45       ` Pavel Zholkover
2011-04-03  7:51         ` andrey mirtchovski
2011-04-03  9:16       ` erik quanstrom
2011-04-03 21:13   ` Anthony Martin
2011-04-03 21:16     ` Anthony Martin
2011-04-03 21:23       ` Pavel Zholkover
2011-04-03 22:30         ` Anthony Martin
2011-04-04  7:37           ` Pavel Zholkover
2011-04-04 17:27             ` Lucio De Re
2011-04-04 19:18               ` Pavel Zholkover
2011-04-04 20:05                 ` Lucio De Re
2011-04-04 20:11               ` Lucio De Re
2011-04-04 20:33                 ` erik quanstrom
2011-04-05  4:52                   ` Lucio De Re
2011-04-04 23:10               ` ron minnich
2011-04-05  4:33                 ` Lucio De Re
2011-04-05  4:56                   ` erik quanstrom
2011-04-05  6:37                   ` Pavel Zholkover
2011-04-05 19:06                   ` Yaroslav
2011-04-05 20:14                     ` Paul Lalonde
2011-04-06 13:43                     ` Lucio De Re
2011-04-09 17:51                       ` Sergey Kish
2011-04-09 18:24                         ` Skip Tavakkolian
2011-04-09 18:34                         ` Pavel Zholkover
2011-04-03 21:24     ` erik quanstrom
2011-04-04 15:18       ` ron minnich
2011-04-04 15:59         ` erik quanstrom
2011-04-04 23:09           ` ron minnich
2011-04-04 23:17             ` erik quanstrom
2011-04-04 23:27               ` ron minnich
2011-04-05  4:00                 ` ron minnich
2011-04-05  4:22                   ` Russ Cox
2011-04-05  4:47                     ` Lucio De Re
2011-04-05  5:11                       ` Russ Cox
2011-04-05  5:44                         ` Lucio De Re
2011-04-05  5:53                           ` Russ Cox
2011-04-05 15:48                         ` ron minnich
2011-04-05 17:33                           ` ron minnich
2011-04-05 17:33                         ` David Leimbach
2011-04-05 17:32                     ` David Leimbach
2011-04-05 17:36                       ` erik quanstrom
2011-04-05 17:42                         ` David Leimbach
2011-04-05 17:43                       ` andrey mirtchovski
2011-04-05 17:48                         ` David Leimbach
2011-04-05 10:42     ` Anthony Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110403204528.GI1805@fangle.proxima.alt.za \
    --to=lucio@proxima.alt.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).