Hacker News
Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better
neogoose
|next
[-]
It supports all the formats like * and {a,b} expansion as long as have a very efficient syscall and SIMD optimization for faster processing
gary_0
|root
|parent
[-]
neogoose
|root
|parent
|next
[-]
1. fnmatch function which is not ideal because it doesn't take into account all the path specific optimizations and does not support BRACE 2. ALTDIRFUNC flag for globbing let you simulate file system which absolutely sucks
in zlob you can simply call zlob_match_paths(<pattern>, <list>, flags, ptr)
where list would be either c string or rust/zig like slices
xiphias2
|next
|previous
[-]
Isn't this a great opportuninty to improve glibc itself instead? Have you tried contributing back and make all programs that use glibc work faster now that you have a lot of knowledge about the problem space?
Anyways congrats to your project!
neogoose
|root
|parent
|next
[-]
While I need this because everyone expects it to be available. Another reason is the API for thing like someone else asked here already (match in memory over a list of paths)
oguz-ismail2
|next
|previous
[-]
neogoose
|root
|parent
|next
[-]
hidroto
|root
|parent
|next
|previous
[-]
what else could you justify it doing?