Lurker News
After a frantic scramble this morning, our billing team has finished patching a bug which erroneously was charging our monthly subscribers for an extra day.

All test suites are passing now, and SRE has scheduled a postmortem after the QA confirms the fix in 2028.

Comments (481) 159 threads

kccqzy4 replies#
Heard from a friend in China: the age calculation portion of the app to schedule a marriage certificate had a bug where they subtracted 22 (legal minimum age) from the year, which resulted in 2002-02-29 which doesn't exist. The app intends to compare this against the user's birth date. The error handling code assumes all errors are from the comparison. The app then rejected all marriage certificate appointments by complaining that the users are too young to marry legally.
chaorace1 reply#
Haha, that would be quite the appropriate place to put one of those "Please wait and try again" error messages.
tedajax1 reply#
"look, today the math just doesn't work out, try tomorrow"
Saigonautica1 reply#
This is often the result of consulting an astrologer in Asia for a marriage date, to be fair.

Continue this thread — 1 reply

xattt4 replies#
How do leap day birthdays get handled in general? How is the right age iterated every year?
ao98#
The most common approach I’ve seen is to alias them to Mar 1st.
DinaCoder991 reply#
Sadly, I can say from experience the American draft does not count the number of birthdays celebrated to figure out if you're eligible to serve.
qup4 replies#
You got drafted when you were five?

Continue this thread — 4 replies

paulddraper1 reply#
Both Feb 28 and Mar 1 are commonly used to celebrate birthdays.

AFAIK there is no firm convention. Feb is more natural ("My birthday is in February"), Mar is more logical (the 60th days of the year).

js227 replies#
Is March more logical? Feb 29 + 1 year = Feb 28.

Continue this thread — 27 replies

usr1106#
Relevant question for driving, voting, marrying, drinking. I'd assume just the date is compared.

If you are born on 29th, on future 28th you are considered "too young", regardless whether a 29th exists or not. On future March 1st you are "old enough" again regardless.
If a 29th exists you are old enough already on that date. Drinking beer in Germany at 16, I guess in some countries at 20 could be relevant cases. For the more common minimum age of 18 for many things, the limit is reached always on March, 1st because a 29th cannot exist.

swasheck2 replies#
so … many bullets were dodged today
peteradio#
It's a leap year miracle!
DANmode#
Opinionated devs are the best devs.

Tell us about your last marriage?, lol

alphanumeric0#
This is why you use a datetime library.
pavon1 reply#
No, but some of our software writes data to rotating directories named after the date, and while doing some manual debugging on a test system, it started failing to create these directories the first time it rotated on Feb 29 UTC. Turns out it just happened to run out of disk space at that time, but I had myself convinced that it was a leap year bug for over an hour. :)
Imagenuity1 reply#
LOL, a good example of correlation does not equal causation.
markb52 replies#
It's not. There was no correlation at hand here - this was just a coincidence
joks3 replies#
I would think it's an edge case of correlation, but still correlation (100% of the time it has had this error, it was on a leap day, 0% of the time it was not)

Continue this thread — 3 replies

cyanydeez#
anecdote is the singular of date, a correlate is a coincidence.
tgtweak2 replies#
I have a friend who was born on Feb 29, and in Quebec your driver's license fees must be paid on or before your birthday or your license is effectively revoked (It's a convenient reminder). He was on his way to pay them on the 29th and got pulled over for having an expired license... after some awkward common confusion with the police they came to the conclusion that the license bureau moves your "reminder" birthday up by 1 day when the actual day is on Feb 29, instead of back to March 1st, so they don't miss out on 3 years of license payments for leap year birthday citizens.

The cop had never encountered this before (1/1460 chance of occurring * the odds of being pulled over on that day)
I don't think they ever patched this, so watch out if you're a leap day license fee procrastinator in Quebec!

redox992 replies#
Wouldn't the drivers license have the expiration date printed on it?
foxyv#
What if the expiration date doesn't exist? Does the license just never expire? Wouldn't that be funny?
tgtweak#
It's not the license expiration date is just the annual date that you need to pay your license renewal fees on.
xandrius2 replies#
I mean, they could have paid it any day before then, right?

I would have just gone on the 28th and be done with it.

stevage1 reply#
Sure...if you knew about this bug in the system.
dolmen#
If you are born on a Feb 29th, you should definitely get used to take this kind of precautions.

(Like I do when entering my last name that is legally spelled with an "é": I still get mojibake in 2024)

badcppdev1 reply#
Let me tell you about this human trait called procrastination.... actually I just have to do something first
tudorw#
Pay By = Wait Until
jewel4 replies#
We have a product that uses ChatGPT via the API, using the 3.5 turbo version. Our query involves some dates. Instead of giving back text like it usually does, today it has been giving errors because it does not think 2024-02-29 is a valid date.

This is easy to reproduce with the web interface, at least sometimes [0]. It start out by saying it's not a valid date and then as it's explaining why it isn't it realizes its mistake and sometimes corrects itself.
[0] https://chat.openai.com/share/37490c9f-81d6-499f-b491-116536...

littlestymaar4 replies#
Wired: LLM are practically AGI

Tired: ChatGPT thinks February 29th isn't a valid date.

AlienRobot#
That's because it's trained on 2021 data. No February 29 back then!
pants22 replies#
For the record, both ChatGPT-4 and Gemini Ultra affirmed that it's a valid date. Gemini reasoned through it and GPT-4 ran python code to make sure 2024 was divisible by 4.
daseiner1#
Did it also check if 2024 is divisible by 100 but not 400?
roland355 replies#
Interesting... But that isn't exactly true! Centuries that are not divisible by 4 don't count!

Continue this thread — 5 replies

peteradio#
But akshually neither does my uncle Ned
pquki43 replies#
My favorite prompt: asking "How many e's are there in the word egregious". Always says three (ChatGPT 3.5, 4, 4 turbo). When you ask it which three, it realizes its mistake and apologizes (or sometimes tells you where they are that is completely wrong). Looks like it just outputs gibberish for these things.
devjab10 replies#
It’s always gibberish, it’s just really good at guessing.

I forgot what exactly it was I was doing. We were trying to get it to generate word lists of words ending with x or maybe it was starting with. For a marketing PoC and it made up oceans of words that not only didn’t start/end with x but mostly didn’t include x at all.
Isn’t this also why it can pass CS exams and job interviews better than like 95% of us, but then can’t help you solve the most simple business process in the world. Because nobody has asked that question two billion times on its training data.

Continue this thread — 10 replies

moozilla10 replies#
ChatGPT is specifically bad at these kinds of tasks because of tokenization. If you plug your query into https://platform.openai.com/tokenizer, you can see that"egregious" is a single token, so the LLM doesn't actually see any "e" characters -- to answer your question it would have had to learn a fact about how the word was spelled from it's training data, and I imagine texts explicitly talking about how words are spelled are not very common.

Good explanation here if this still doesn't make sense: https://twitter.com/npew/status/1525900849888866307, or check out Andrej Karpathy's latest video if you have 2 hours for a deep dive: https://www.youtube.com/watch?v=zduSFxRajkE
IMO questions about spelling or number sense are pretty tired as gotchas, because they are all basically just artifacts of this implementation detail. There are other language models available that don't have this issue. BTW this is also the reason DALL-E etc suck at generating text in images.

Continue this thread — 10 replies

botanical#
I just asked it with Gemini; at first, it got it right. Then I asked if it was sure and it apologised and said 3 is the correct answer. When asked what are the 3 "e"s, it says:

> The three "e"s in "egregious" are: > > 1. The first "e" is located in the first syllable, between the "g" and the "g". > 2. The second "e" is located in the second syllable, following the "r". > 3. The third "e" is located in the third syllable, following the "i" and before the last "o".

Continue this thread — 3 more replies

Load more comments