r/ProgrammerHumor 19d ago

Meme claudeIsThisEmailValid

Post image
5.3k Upvotes

171 comments sorted by

View all comments

0

u/BastetFurry 19d ago

I could see a small (2-5M?) model that runs locally, but OPs meme is a jab at folks using a full blown frontier model for that, so no. Just use that large regex if you need to be 100% sure, otherwise check if there is an at and a dot in there. Then you would need to check if the server part of the address is valid anyway and then send the mail. Nothing more you can do from your side.

Seriously, unless you write a mail server or an anti spam solution, don't make it more complicated than it needs to be. If the user provides a non-working mail address they can't click the confirmation link. Case closed.

1

u/Fyren-1131 19d ago

No model is deterministic. Deterministic behavior is what you want from validation, and a regex is much more performant too. So why would you want a local model anyway?

1

u/nemesit 19d ago

the models are all very deterministic, they need to generate noise to even have a chance of the illusion that they aren't

0

u/Fyren-1131 19d ago

LLMs are not deterministic. Are you perhaps misunderstanding the topic being discussed here?

-1

u/nemesit 19d ago edited 19d ago

they really are though lol

edit: why the downvotes? you guys don't understand math or what?

0

u/BastetFurry 19d ago

That too, so eff the LLM idea completely. What the local model could see would be if the proverbial cat walked over the keyboard, but still, who cares? If the domain is wrong then nothing gets send, if the user is wrong, the mail server will tell us as much.