4 ms·
This is just the endemic result of C++ lacking a package manager. Every library starts out small, adds its own vendored utilities, adds its own dependencies, a
by wokwokwok 3y ago
This is just the endemic result of C++ lacking a package manager.
Every library starts out small, adds its own vendored utilities, adds its own dependencies, and eventually becomes boost.
To be fair to this project, theyve worked quite hard to make the library consumable by others… but yes, its hard to look at the code like https://github.com/warmcat/libwebsockets/blob/50ba61082dc40bb5041e25031ef364a3628417ab/lib/roles/http/server/server.c#L680 https://github.com/warmcat/libwebsockets/blob/50ba61082dc40b...
…and not go… really? As part of the core of libwebsocket?
When you read the justification it’s mostly “well we have a good framework now, so why not use it for other things too?”
C++ life.
/shrug
- WanderPanda 3y agoDon‘t you need a http server to bring about any websocket connection through the upgrade mechanism? Otherwise it would only be a websocket client library
- jhasse 3y agoThis is C though, so a C++ package manager wouldn't help ;)
- mort96 3y agoThis... really doesn't match my experience at all. Most libraries I encounter in C really are self-contained. Seeing a random websockets library also feature a JPEG decoder is really surprising.