stealth / grab Goto Github PK
View Code? Open in Web Editor NEWexperimental and very fast implementation of a grep
License: Other
experimental and very fast implementation of a grep
License: Other
I can't pipe to grab, which makes me sad.
grep
could search in several files/dirs:
grep -r help dir*
and finds string in all files/dirs. grab
can't do this.
$ make
c++ -Wall -O2 -I/usr/local/include -DBUILD_WITH_PARALLELISM -L/usr/local/lib -lpcre -pthread grab.cc -o grab
grab.cc:439:3: error: unknown type name 'cpu_set_t'
cpu_set_t cpuset;
^
1 error generated.
make: *** [grab] Error 1
and
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
It is always great to see new grep projects. I always had the feeling that grepping is mostly limited by disk reading speed rather than regex engines, so it is worth to explore newer methods whenever it is possible.
Please be aware that the pcre1 development has has been ended since 2015, and projects (especially new ones) should use its new API called pcre2. Pcre1 is unlikely to see a new release, so some issues will never be fixed. Pcre2 is better, faster, etc. but most importantly: maintained.
grab.cc:226:69: error: use of undeclared identifier 'MAP_POPULATE'
PROT_READ, MAP_PRIVATE||MAP_NORESERVE|MAP_POPULATE,
^
grab.cc:401:3: error: unknown type name 'cpu_set_t'
cpu_set_t cpuset;
I am trying to found a number of pattern searched in the file. But it doesn't show me any output that how much pattern are found. If anyone can help me. It means alot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.