[Ndn-interest] Questions about ndn porting to golang
wentaoshang at ucla.edu
Wed Feb 22 21:36:01 PST 2017
I remember I had problem trying to match the golang concurrent programming
model to NDN's async programming model. They seem to be incompatible with
each other. If you program in Go, you need to think about the application
logic in a much different way from you would do when programming in ndn-cxx
On Wed, Feb 22, 2017 at 9:29 PM Alex Afanasyev <aa at cs.ucla.edu> wrote:
> I haven't worked with swig/go, but looked for it when some time ago
> regarding python bindings. I didn't find it to be very easy to write swig
> bindings and it looked a bit fragile and error-prone to use.
> For golang, I think using ndn-cxx library would defeat some of the
> advantages that golang provides, specifically the concurrency. But I
> agree, maintaining multiple libraries would be a lot of work. Though if
> there are users for the library, the users themselves can try to do such
> maintenance :-D
> On Feb 22, 2017, at 8:02 PM, Lei Pi (lpi) <lpi at memphis.edu> wrote:
> Hi everyone,
> While thinking about proposals for the coming NDN Hackathon, I’m curious
> about the possibilities to write NDN applications in golang.
> There is a go-ndn project on github , which seems to be re-implementing
> ndn in golang. But it is not officially supported or maintained.
> Another option for using ndn in golang is to link the binary with the
> libndncxx / libndncpp library. 
> Does anyone already have experience in using SWIG to link golang programs
> with libndncxx or libndncpp?
>  https://github.com/go-ndn/ndn
>  https://golang.org/doc/faq#Do_Go_programs_link_with_Cpp_programs
>  https://golang.org/cmd/cgo/
>  http://www.swig.org/Doc3.0/Go.html
> Thank you.
> Lei Pi
> University of Memphis
> Masters Student in Computer Science
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-interest