News for hackers. Stuff that matters.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by hun-nemethpeter on Sunday May 23, 2021 @04:02PM (#27258052)
Why do you use sometimes pthread primitives from <pthread.h> instead of standard <thread>, <mutex>, ... objects?

For example src/manager/DNSCache.h use std::mutex but src/kernel/Executor.h use pthread_mutex_t?

Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Monday May 24, 2021 @01:35AM (#27261371)
At first we used pthread only. But after the windows branch was added, we have to make it compatible with windows and standard <mutex> was used in the some shared codes. Codes in the "kernel" folder are for Linux only, and some of them are C.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by cobalt on Sunday May 23, 2021 @08:48PM (#27260039)
maybe age of the project?
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by _huayra_ on Sunday May 23, 2021 @03:36PM (#27257868)
What are the advantages of this engine over Boost Beast (and Asio)?
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Sunday May 23, 2021 @03:39PM (#27257883)
No template in user interfaces.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by jcelerier on Sunday May 23, 2021 @04:51PM (#27258479)
How is that an advantage ? either you have N overloads doing manually what templates do automatically, or you have indirection and the implied performance loss
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by 10000truths on Sunday May 23, 2021 @05:26PM (#27258732)
Have you ever compiled a project using ASIO? The template crap everywhere makes build times miserable.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by jcelerier on Sunday May 23, 2021 @06:23PM (#27259184)
I use asio in all my network-using projects. It doesn't particularly bother me, the files that use asio take a few seconds to build ?
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by 10000truths on Sunday May 23, 2021 @06:52PM (#27259368)
Those few seconds can add up very quickly when you’re making incremental changes and have to keep recompiling. I ended up having to write non-template wrappers for all my ASIO stuff and compile them as a separate object file, in order to keep my workflow manageable. Building that one object file would double my total build time.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by jcelerier on Sunday May 23, 2021 @07:03PM (#27259433)
I've actually done that all day long, at most it takes 3-4 seconds between code editing and the app / test running, I'd definitely not trade faster build times for something else in that case, especially when my IDE highlights errors when I type which greatly reduces the need for constant rebuilds.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by mlang23 on Sunday May 23, 2021 @03:33PM (#27257838)
Hmm, seeing Parallel computing, I wonder why the difference tosay, HPX, is.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Sunday May 23, 2021 @03:37PM (#27257875)
We try to solve problem very complex relationship between computing and networking. In an efficient way.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Monday May 24, 2021 @01:36AM (#27261374)
problem with...
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by kitd on Monday May 24, 2021 @02:29AM (#27261565)
As a multifunctional asynchronous client, it currently supports HTTP, Redis, MySQL and Kafka protocols.

That's an interesting selection. Do you have particular problem spaces in mind?

Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Monday May 24, 2021 @04:25AM (#27262141)
Yes. We have applications that use all this clients. This framework supports the backend development of a pretty big industrial search engine, and we tend to build very large backend applications. And as a very light-weighted library, it's also used as a simple asynchronous MySQL client, or a kafka client. And the most often, an http server or client.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by crossentropy on Monday May 24, 2021 @12:14AM (#27261043)
Looks great! Try it today.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by zhoushuguang on Monday May 24, 2021 @12:13AM (#27261039)
looks good to me
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by Barenboim on Sunday May 23, 2021 @01:27PM (#27256784)
An awesome-cpp framework.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by IChooseY0u on Sunday May 23, 2021 @02:33PM (#27257362)
Will definitely check this out; looks good.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by winrid on Sunday May 23, 2021 @01:55PM (#27257030)
Looks very nice to use, but curious, is there anything here that isn't in the Java stdlib + something like the Spark web framework?
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by derefnull on Sunday May 23, 2021 @02:36PM (#27257387)
The first thing that comes to mind is its c++ implementation, which sets it far far apart from the java project you mentioned
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by winrid on Sunday May 23, 2021 @04:18PM (#27258213)
C++ impl of what? It has like four different things.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by nivekkevin on Sunday May 23, 2021 @11:00PM (#27260725)
Spark? You probably meant Spring, Spark is for Big data and such, usually ephemeral.
Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by kitd on Monday May 24, 2021 @02:27AM (#27261558)
There is also a SparkJava web framework

https://sparkjava.com/

Tbh, I don't think it is comparable to this project. A better alternative for Java would be Quarkus or Micronaut, ones that can compile to native using GraalVM.

Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by winrid on Monday May 24, 2021 @01:42PM (#27267385)
Thanks!

I really do need to play with GraalVM.

Re:C++ Workflow: C++ Parallel Computing and Asynchronous Net... by winrid on Monday May 24, 2021 @04:33PM (#27269369)
The reason I did this comparison was to try to better understand what is in this project as I may consider using it, not to compare to Java performance wise.