[Ndn-interest] Questions about ndn porting to golang

WENTAO SHANG 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
or ndn-js.


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
> --
> Alex
> 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 [1], 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. [2][3][4]
> Does anyone already have experience in using SWIG to link golang programs
> with libndncxx or libndncpp?
> [1] https://github.com/go-ndn/ndn
> [2] https://golang.org/doc/faq#Do_Go_programs_link_with_Cpp_programs
> [3] https://golang.org/cmd/cgo/
> [4] http://www.swig.org/Doc3.0/Go.html
> Thank you.
> ----
> Regards,
> Lei Pi
> University of Memphis
> Masters Student in Computer Science
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170223/d1852033/attachment-0001.html>

More information about the Ndn-interest mailing list