News for hackers. Stuff that matters.
Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by Chabs on Monday October 15, 2018 @02:02AM (#18217707)
What is the rationale behind going for from-full-scratch instead of packaging a copy of ASIO with the library? Beating properly-used ASIO performance is going to be a massive uphill battle, especially in multithreaded scenarios.

On that note, benchmarks against a simple ASIO http server are a must if performance is your #1 stated goal.

Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by lganzzzo on Monday October 15, 2018 @03:33AM (#18218039)
I agree. I should schedule to add ASIO vs oatpp benchmark.

However performance is not the only thing oatpp has. Among with other features oatpp provides ObjectMapping layer. ObjectMapping layer enables you to do cool stuff like: - autodocument endpoints see https://medium.com/oatpp/c-oatpp-web-service-with-swagger-ui...

- easily implement custom protocols (I will write article about this later)

Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by Chabs on Monday October 15, 2018 @09:28AM (#18219451)
I think you are misunderstanding my question. I am not suggesting that ASIO fills the role your library does. All it is, really, is just fancied-up cross-patform select().

What I'm wondering is: Is there's a specific reason you chose to reinvent that specific wheel?

Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by lganzzzo on Monday October 15, 2018 @11:04AM (#18220275)
Oh ok, thank you for clarification.

During the initial investigation boost::asio appeared to work not very good on MacOS. Problems where on the load higher than 10K concurrent connections.

There was multiple requests to compare networking performance of oatpp to ASIO lately. So I want to make full-scale testing before making statements.

Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by michaelvoz on Monday October 15, 2018 @03:14AM (#18217959)
+1 to this. If you are faster than ASIO - consider contributing back. If you are slower, and performance is the goal, what's the point of using your framework?
Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by cannam on Monday October 15, 2018 @09:06AM (#18219322)
In case any other ignorant amateurs like me are wondering what an audio driver layer has to do with web services: it turns out ASIO is also a C++ library for network programming (https://think-async.com/).
Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by Chabs on Monday October 15, 2018 @09:41AM (#18219533)
To elaborate, ASIO is arguably the de-facto standard way to do low-level networking in C++, to the point where it forms the basis for the standard library's upcoming networking library.
Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by _pmf_ on Monday October 15, 2018 @03:16AM (#18217965)
> What is the rationale behind going for from-full-scratch instead of packaging a copy of ASIO with the library?

Is there a way of building ASIO without Boost?

Re:Show HN: Oat++ – Zero-dependency C++ framework for high-p... by beojan on Monday October 15, 2018 @03:49AM (#18218094)
Yes, there's a standalone version of ASIO.