hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

No C++ classes and methods?

Open patlecat opened this issue 5 years ago • 2 comments

When I look at the examples I see only the C interface being used. That's so weird since 80% of the lib was written in C++!?

Is there something for C++?

patlecat avatar Mar 17 '20 08:03 patlecat

No, but I don't think there could be large efforts using these APIs in C++.

Hyperscan compile time is written with C++ to make our analysis easier, but run-time is more performance critical and therefore is written in C. Ultimately we need to have C structures for run-time matching.

Plus most of our target users are C based.

xiangwang1 avatar Mar 17 '20 09:03 xiangwang1

I see, but I think that's only half the story and not enough argument against not just offering a proper C++ interface that performs well, I mean it's not like offering a .NET interface where performance goes out the window. This is C++ and it can be optimized very well with the most recent compilers!

patlecat avatar Mar 22 '20 07:03 patlecat