Comments (8)
You are right, we should not hard-code CPU-specific compile flags (being amd64 or ARM). I guess that a proper configure script or cmake file could detect them automatically, but we don't have that so far so your PR is the best way forward.
Sorry again, I ogt busy on many other things and I needed to check where this module is used in our internal repos in order to not have any regressions.
from lua-aho-corasick.
There are also other weird things I see, e.g. passing CFLAGS
to c++ compiler, etc. so I'd probably look at these as well.
from lua-aho-corasick.
OK, I created some implementation instead of just talking: #13
from lua-aho-corasick.
@vavrusa Could you please poke someone to get fixes merged? Thanks!
from lua-aho-corasick.
Or just get some "authoritative" opinion; it's not a big deal for us to maintain a fork, but it would seem better if we can agree on one common version.
from lua-aho-corasick.
Hey, sorry for the late answer. It turns out we already fixed this issue internally, I pushed the corresponding patches in #14
from lua-aho-corasick.
Well, this is a misunderstanding between us – my concern was that by default the code should work on any CPU of the given architecture. Old example: x86_64 does not guarantee sse4.1; new example: aarch64 does not guarantee the CRC instructions. I actually suspect that our device which already runs this code doesn't have CRC, but I've been primarily concerned about compatibility from the point of view of generic packaging for unix-like systems.
from lua-aho-corasick.
Solved by merging #13.
from lua-aho-corasick.
Related Issues (7)
- how get all patterns that match that given subject string HOT 2
- License? HOT 1
- FFI Example Usage HOT 1
- Similar projects HOT 9
- macos compile HOT 2
- about load_ac.lua HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-aho-corasick.