From: Bakul Shah <bakul@bitblocks.com>
To: lucio@proxima.alt.za,
Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto)
Date: Fri, 22 Jul 2011 10:13:20 -0700 [thread overview]
Message-ID: <20110722171320.50A9CB827@mail.bitblocks.com> (raw)
In-Reply-To: Your message of "Fri, 22 Jul 2011 17:37:32 +0200." <20110722153731.GQ1803@fangle.proxima.alt.za>
On Fri, 22 Jul 2011 17:37:32 +0200 Lucio De Re <lucio@proxima.alt.za> wrote:
> But until I clear my slate of a number of distractions, I can only ask
> more knowledgeable persons to look at the code and make suggestions to
> the Go Authors, directly or through my submissions to CodeReview, on
> how to eliminate Bison dependencies that make porting the Go code base
> to Plan 9 difficult. Or help me deal with these problems in a manner
> that can be incorporated into the Go release.
go is too big and changes too fast so rather than try bend it
in the plan9 direction, my advice is to make *no* changes to
the go sources. Just use sed / ed scripts & patch to modify
what you need to during a build, and add some plan9 specific
files/scripts -- this is approach b) from my previous email --
usually what is done in *BSD ports. This can get a port up
quickly. You may still want to feed back changes to the
authors but this usually involves lengthy interactions and is
best done in background mode.
More specifically
1. comment out %error-version
2. fix plan9 yacc to handle apostrophes in // comments because
that is a bug. Alternatively sed 's,//.*,/* & */,'
3. if you find any other bison dependency, work around.
4. avoid porting bison!
I commented out %error-version and removed apostrophes in //
comments in go.y and now the plan9 yacc handles the syntax
fine.
Trying all.bash with yacc, I see that the output of awk script
"bisonerrors" fails. I don't have a great desire to port go to
plan9 so I stopped here but you can checkout what is done here
in the 9front port and/or compare bison y.output.c with yacc
y.output.c because y.output.c is what bisonerrors munges. My
guess is you will need a more or less equivalent yaccerrors
script. As Steve says you won't get nicer error handling but
so it goes.
next prev parent reply other threads:[~2011-07-22 17:13 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 5:36 arnold
2011-07-22 6:33 ` Lucio De Re
2011-07-22 7:42 ` Bakul Shah
2011-07-22 9:49 ` Lucio De Re
2011-07-22 12:41 ` erik quanstrom
2011-07-22 13:03 ` Lucio De Re
2011-07-22 15:13 ` erik quanstrom
2011-07-22 15:37 ` Lucio De Re
2011-07-22 17:13 ` Bakul Shah [this message]
2011-07-22 17:53 ` erik quanstrom
2011-07-22 18:08 ` Lucio De Re
2011-07-22 18:20 ` erik quanstrom
2011-07-22 18:32 ` Skip Tavakkolian
2011-07-22 19:04 ` Lucio De Re
2011-07-22 18:54 ` Lucio De Re
2011-07-22 18:22 ` ComeauAt9Fans@gmail.com
2011-07-22 18:32 ` erik quanstrom
2011-07-22 18:57 ` Lucio De Re
2011-07-22 18:38 ` Bakul Shah
2011-07-22 18:45 ` erik quanstrom
2011-07-22 18:48 ` ComeauAt9Fans@gmail.com
2011-07-22 18:53 ` erik quanstrom
2011-07-22 19:08 ` tlaronde
2011-07-22 18:55 ` Bakul Shah
2011-07-22 19:09 ` erik quanstrom
2011-07-22 19:42 ` Bakul Shah
2011-07-23 9:14 ` erik quanstrom
2011-07-23 13:24 ` Lucio De Re
2011-07-22 19:13 ` Lucio De Re
2011-07-22 15:39 ` Bakul Shah
2011-07-22 15:43 ` erik quanstrom
2011-07-22 16:35 ` Steve Simon
2011-07-22 17:53 ` Lucio De Re
2011-07-22 18:03 ` Lucio De Re
2011-07-22 18:30 ` Ethan Grammatikidis
2011-07-22 18:33 ` erik quanstrom
2011-07-22 18:53 ` ComeauAt9Fans@gmail.com
2011-07-22 19:00 ` Lucio De Re
2011-07-22 20:10 ` Ethan Grammatikidis
2011-07-22 22:59 ` Russ Cox
2011-07-23 11:16 ` Ethan Grammatikidis
2011-07-22 17:48 ` Lucio De Re
2011-07-22 18:17 ` Ethan Grammatikidis
2011-07-22 19:40 ` Bakul Shah
-- strict thread matches above, loose matches on Subject: below --
2011-07-22 8:18 arnold
2011-07-15 8:51 Alex Brainman
2011-07-11 16:59 [9fans] GNU/Linux/Plan 9 disto Gorka Guardiola
2011-07-11 19:31 ` Charles Forsyth
2011-07-12 5:59 ` Pavel Zholkover
2011-07-12 15:13 ` [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto) Lucio De Re
2011-07-12 18:35 ` Francisco J Ballesteros
2011-07-13 18:31 ` Lucio De Re
2011-07-13 18:45 ` Lucio De Re
2011-07-14 18:59 ` stephano zanzin
2011-07-14 20:21 ` Lucio De Re
2011-07-14 20:35 ` Iruatã Souza
2011-07-15 2:37 ` Fazlul Shahriar
2011-07-22 4:40 ` Lucio De Re
2011-07-22 14:37 ` Ethan Grammatikidis
2011-07-27 2:55 ` kokamoto
2011-07-12 18:44 ` Skip Tavakkolian
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=20110722171320.50A9CB827@mail.bitblocks.com \
--to=bakul@bitblocks.com \
--cc=9fans@9fans.net \
--cc=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).