Live data from Hacker News

Dalin – A C++ non-blocking network library on Linux

github.com

1–10 of 52 posts

Re: Dalin – A C++ non-blocking network library on Linux

#3
"Only runs on Linux"

C/C++ doesn't really have good general networking libraries that fit all purposes. On that note, I say: yes, great topic!

However.

Portability is one of the key features of C++, and why people still choose it for new projects. If one can constrain project to Linux I'm sure the project constraints would allow a more productive language to be used altogether.

Re: Dalin – A C++ non-blocking network library on Linux

#5
post #3

"Only runs on Linux" C/C++ doesn't really have good general networking libraries that fit all purposes. On that note, I say: yes, great topic! However. Portability is one of the key features of C++, and why people still choose it for new projects. If one can constrain project to Linux I'm sure the project constraints would allow a more productive language to be used altogether.

On the one hand, you're right -- in that I can see and respect why you say that.

On the otherhand, what the heck is wrong with using the syscalls? Every time I write a new high performance networking application, sure, i lose a day or two building primitives out of send recvmsg listen accept and splice, but once i'm done, i'm done, and things work.

I'm confused why people feel the need to make paper thin abstraction layers covering the berkeley sockets API. In the time it takes one to learn how to use the flavor of the month, one probably has gotten halfway there to understanding how to Really do networking.

It's not like networking on Linux is even a shred harder than easy...mumbles off into the distance unlike BLE on Windows10 (and linux)....

Tangentially, I positively can't WAIT for Networking support in c++20 -- that and Concepts I've been waiting for with baited breath.

[EDIT: apologies, i think my tone got away with me.. stupid aspie tendencies... what i MEANT to say somewhere in there, directed to the author, was: "Good Job!!" It's hard work to put yourself out there and enjoy accomplishment. Please do let the rest of the community know if you'd welcome help in porting it to other platforms and adding features and improving performance. Best!]

Post reply on HN