Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Bindings #205

Open
ynouri opened this issue Dec 4, 2023 · 4 comments
Open

Python Bindings #205

ynouri opened this issue Dec 4, 2023 · 4 comments

Comments

@ynouri
Copy link

ynouri commented Dec 4, 2023

Hi Vectorscan maintainers,

Thanks for your incredible work on this project!

We are currently using Hyperscan in production on AWS Intel instances and are interested in migrating to Vectorscan to reduce our compute costs.

We currently leverage the Python bindings available on this repo: https://github.com/darvid/python-hyperscan

Curious if anyone in the Vectorscan community has already given a stab at a python-vectorscan package? Or even some crude manual attempt we could refer to?

Note: Vectorscan has been discussed on the python-hyperscan repo, see this issue: darvid/python-hyperscan#42 (comment). It doesn't look like there is an immediate plan to support it.

Thank you!

@markos
Copy link

markos commented Dec 4, 2023

Hello @ynouri !

Thank you for your kind words! We don't currently have plans to do a python-vectorscan port, as there is nothing (yet) specific to vectorscan, we are currently ABI and API compatible with hyperscan. So if someone is using python-hyperscan and would like to switch to vectorscan the only thing necessary is to replace the libraries. Possibly that would only require the python requirements definitions to be changed. In the future however, we will definitely provide extensions specific to vectorscan -due to no fault of ours, there is a license change and we have to respect that.

@markos
Copy link

markos commented Dec 4, 2023

What I mean is that you can switch to AWS Graviton CPUs right now! It should not require any serious change at this point in python-hyperscan, if you however do find an issue, feel free to give us feedback so that we can look into it :)

@ynouri
Copy link
Author

ynouri commented Dec 29, 2023

Thanks for your quick reply @markos !

Just wanted to drop a note here that https://github.com/darvid/python-hyperscan does not seem to exist anymore (the entire Github user seems to have been deleted/renamed). Not sure what happened

@ynouri
Copy link
Author

ynouri commented Dec 29, 2023

Side note: we've been able to successfully build python-hyperscan wheels against the Vectorscan library on ARM hardware (Amazon EC2 m7g instance with a Graviton3 CPU). It was mostly drop-in like you mentioned!

Our next step is to benchmark Hyperscan on Intel VS Vectorscan on ARM on our specific use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants