46
submitted 4 days ago by trevor@lemmy.ml to c/opensource@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] trevor@lemmy.ml 5 points 4 days ago
[-] helix@feddit.org 3 points 4 days ago

It's called "allowlist" and "denylist" nowadays as it's easier to understand for non-native speakers and not racist.

I feel like there's an easier and faster way to match IP addresses than regex, e.g. the search tree apparia suggested. At least use bytes to match ๐Ÿ˜„

[-] trevor@lemmy.ml 1 points 3 days ago* (last edited 3 days ago)

The term's connection with racism, as well as the value in avoiding its use has been disputed.

https://en.wikipedia.org/wiki/Blacklist_%28computing%29#Controversy_over_terminology

(See the section that follows for more context.)

[-] helix@feddit.org 2 points 3 days ago

Yes, but does it really hurt you to make your software more accessible?

What good arguments do you have for the term blacklist?

"Denylist" is easier to understand and doesn't spark discussions. Nobody will be offended, whether it's technically correct to be offended or not.

I'm not a person of colour but your answer still insults me, because it's so tone deaf.

[-] apparia@discuss.tchncs.de 5 points 4 days ago

Holy overengineering, Batman. IP addresses of all things are trivially parseable into fixed-length byte sequences. Just do that and use a search tree. Or, IDK; this is an extremely solved problem, there are probably even better solutions out there -- but I promise you text regex is involved in none of the good ones.

Even for actual string matching, any decent regex engine will compile and optimise an alternation a|b|c|... better than this text wrangling will. Unless you have actual benchmarks showing this gives you an advantage with the engine you're using, you're just introducing complexity for no gain.

[-] MadPsyentist 3 points 3 days ago

Also of note. Regexlicensing.org has issued no licences to date for use of regex in production environments

https://regexlicensing.org/license/

[-] trevor@lemmy.ml 2 points 3 days ago

Not much substance to their argument, mostly just whining. Funny website, though.

this post was submitted on 17 Sep 2026
46 points (97.9% liked)

Open Source

49130 readers
867 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 7 years ago
MODERATORS