Readit News logoReadit News
neogoose commented on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better   github.com/dmtrKovalenko/... · Posted by u/neogoose
oguz-ismail2 · 3 days ago
Since when `{...}' syntax is a glob pattern? What does `{a,b}/c' produce when there is no directory named `a'?
neogoose · a day ago
Since glibc (better to say csh) implemented it. https://man7.org/linux/man-pages/man3/glob.3.html search for GLOB_BRACE
neogoose commented on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better   github.com/dmtrKovalenko/... · Posted by u/neogoose
xiphias2 · 2 days ago
,, Why? Because glob() implemented by glibc sucks. It is very outdated and slow.''

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 · a day ago
I agree though the main problem for me is not the API it's missing functionality of patterns like ./*/*.c. There is a very long running thread in the gnu mailing list where authors do not like this idea.

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)

neogoose commented on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better   github.com/dmtrKovalenko/... · Posted by u/neogoose
gary_0 · 3 days ago
Thanks for sharing. Just curious, is there any way to perform globbing over a list of path-like strings instead of only directly on the filesystem?
neogoose · a day ago
That's one of the reasons I built zlob. It literally has an endpoint to do this but if you are talking about glibc there are 2 options

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

neogoose commented on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better   github.com/dmtrKovalenko/... · Posted by u/neogoose
neogoose · 3 days ago
100% POSIX and glibc compatible globbing library for C, Zig, and Rust that is faster and supports all the modern globbing formats (more than libc and rust glob crate)

It supports all the formats like * and {a,b} expansion as long as have a very efficient syscall and SIMD optimization for faster processing

neogoose commented on Show HN: Free and local browser tool for designing gear models for 3D printing   gears.dmtrkovalenko.dev... · Posted by u/neogoose
kypro · a month ago
Oh nice! I might use this.

I'm using Free Cad's Gear Workbench plugin at the moment. It's okay, but Free Cad kinda sucks.

You thinking about adding other gear types like bevel gears and gear racks?

neogoose · a month ago
I should at some point, I do not need other gear types so I didn't do that, but if this project gets a little attention I'll just do it
neogoose commented on Show HN: Free and local browser tool for designing gear models for 3D printing   gears.dmtrkovalenko.dev... · Posted by u/neogoose
blorenz · a month ago
This is so cool! I'll be using this when I need to generate gears. How is the fitment of the interfacing of the gears after printing? What libraries did you use to build this, too?
neogoose · a month ago
I printed a lot of gears from this website (well I built it because I had to print a lot of different gears) and they came out very nice and reinforced. If you use the optimized for 3D printing export it doesn't need anything from your printer software to just print it, and they mesh with existing gears just fine (for sure if you calculated module correctly)

Libraries are simple: threejs for preview, meshlib for watertight export, used some frontend framework for state management too

Deleted Comment

u/neogoose

KarmaCake day34January 1, 2026
About
software engineer
View Original