I wrote Raw::Socket for Perl6.
https://github.com/tokuhirom/p6-Raw-Socket
Concept
We can't pass file handles to another threads on MoarVM. See https://github.com/MoarVM/MoarVM/issues/165. This is serious problem to write networking program on MoarVM.
Then, for now, I wrote a wrapper code for BSD sockets API. It directly calls BSD sockets.
Yes. It's silly. But it works!