9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: [9fans] Go: CGO and Plan 9
Date: Wed, 30 Jan 2013 06:41:00 +0200	[thread overview]
Message-ID: <631828b4eaee51d49ac685c47b6b3554@proxima.alt.za> (raw)

I need some help getting my mind around what should be a simple issue:
how to connect Go with Plan 9's "native" toolchain.

To be more specific, I have a port of the OpenLDAP library for Plan 9
that works quite adequately and I would like to access it from GO. I
guess this is true of any similar library ported using APE.  It seems
to me that because Go can connect to native C libraries and because in
Plan 9 the calling conventions are in fact identical, there ought to
be an easy way to do it, but I don't realy understand what's involved.

I suspect that the Go builder would have to be enhanced to deal with
this, while at the same time I wonder if the C compiler and assembler
should be used in a Go APE-like environment.  Whatever, I need help
thinking this through, can anyone assist?

++L

PS: I'd like the answer to be portable outside of Plan 9 (in p9p, to
be exact), but that isn't essential.




             reply	other threads:[~2013-01-30  4:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30  4:41 lucio [this message]
2013-02-01 17:52 ` Pavel Zholkover
2013-02-02 14:28 ` Aram Hăvărneanu
2013-02-02 15:24   ` Anthony Martin
2013-02-02 15:52     ` lucio
2013-02-02 15:41   ` lucio

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=631828b4eaee51d49ac685c47b6b3554@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@9fans.net \
    /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).