[Ndn-interest] Questions about ndn porting to golang
aa at CS.UCLA.EDU
Wed Feb 22 21:26:43 PST 2017
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://github.com/go-ndn/ndn>
>  https://golang.org/doc/faq#Do_Go_programs_link_with_Cpp_programs <https://golang.org/doc/faq#Do_Go_programs_link_with_Cpp_programs> https://golang.org/cmd/cgo/ <https://golang.org/cmd/cgo/>
>  http://www.swig.org/Doc3.0/Go.html <http://www.swig.org/Doc3.0/Go.html>
> Thank you.
> Lei Pi
> University of Memphis
> Masters Student in Computer Science
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-interest