On Thu, 16 Feb 2023 11:52:03 +0200
Paavo Helde <
ees...@osa.pri.ee> wrote:
>16.02.2023 11:12
Mut...@dastardlyhq.com kirjutas:
>> On Wed, 15 Feb 2023 20:54:39 -0000 (UTC)
>>
legaliz...@mail.xmission.com (Richard) wrote:
>>> [Please do not mail me a copy of your followup]
>>>
>>> Over the next few months, I'll be doing some presentations on network
>>> programming. The presentations will be virtual and uploaded to
>>> YouTube afterwards. You can see them in the Utah C++ Programmers
>>> meetup group here: <
https://www.meetup.com/utah-cpp-programmers/> in
>>> the 'Events' tab:
>>>
>>> - Getting Started with Boost.Asio: Timers and Serial Ports (March)
>>> - TCP/IP Networking with Boost.Asio (April)
>>> - Basic HTTP and WebSocket Programming with Boost.Beast (May)
>>
>> Boost? *gag* Who uses it now anyway given C++17 does everything useful that
>> it used to do bar a few specialised maths algos?
>
>Is this a trick question? From where exactly do you think major portions
>of enhancements to the C++ standards have come over the last 20 years?
>C++17 *is* halfway Boost, even when renamed std::.
I know. C++ took the good bits and left the junk behind. Also when something
is built into the language rather than being a load of hacky macros mixed with
playing silly buggers with the template system it tends to work a lot better.
>To answer the obvious, one currently uses Boost libraries when one needs
>the functionality and the particular library is not yet included in C++
>standards. Like Boost.asio.
Why does it need to be in C++ when theres the O_NONBOCK & O_ASYNC sockets flag
not to mention select() and poll()?
>> Plus the standard C sockets API is fairly simple so why you'd need it wrapped
>
>> up in that outdated library is anyones guess.
>
>Please code up a scalable, portable, TLS-capable HTTP server in C++
>without using any third-party libraries, then come back again. We might
>be still here.
I don't have a problem with 3rd party libraries, I have a problem with Boost.
For HTTP any sane person would use Curl though frankly openSSL is fairly
simple to use and basic HTTP is easy to implement - I've done it.
>About "outdated": the last version of boost came out exactly 2 months
>ago, including 37 listed enhancements and fixes in Boost.asio.
>
>> Whatever happened to the ACE library?
>
>Whatever that is, it seems to be not included in C++ standards either.
It was a C++ networking (and a few other things) library that was briefly
popular in the 2000s. But it had little advantage over just using the sockets
API directly.