News for hackers. Stuff that matters.
Re:Libp2p – A modular network stack by codr4 on Sunday October 07, 2018 @11:43PM (#18163984)
Same here, except I prefer C since that makes it more accessible.

That would also allow others to write clients for their favorite languages.

Re:Libp2p – A modular network stack by TheAceOfHearts on Monday October 08, 2018 @12:06AM (#18164064)
I'd also prefer a C version, but I think it's possible to call a Go function from C [0]. I don't know how well that would work though, since Go requires a runtime.

[0] https://github.com/golang/go/wiki/cgo#calling-go-functions-f...

Re:Libp2p – A modular network stack by hobofan on Monday October 08, 2018 @04:37AM (#18165393)
There is also a Rust implementation of libp2p[0]. Exposing C functions from that library is probably the most "proper" way currently feasible to use libp2p from C.

[0]https://github.com/libp2p/rust-libp2p

Re:Libp2p – A modular network stack by pjmlp on Monday October 08, 2018 @02:08AM (#18164514)
C also requires a runtime, it just happens to be a very tiny one.
Re:Libp2p – A modular network stack by pjmlp on Monday October 08, 2018 @02:07AM (#18164512)
Simple, C++ with an additional extern "C"{} set of entry points.

C++'s improved safety over C, while providing such accessibility.

We are after all talking about network protocols, where security should be number one feature.