Live data from Hacker News

Ask HN: Did you encounter any leap year bugs today?

news.ycombinator.com

471–480 of 498 posts

Re: Ask HN: Did you encounter any leap year bugs today?

#471

Why this is not a global holiday? Let's all come together and agree to do nothing on this bonus day. Calendar Problems solved.

We should get it off work. We aren't getting paid for the extra day of work right?

Depends, some are paid by the hour.

Re: Ask HN: Did you encounter any leap year bugs today?

#472
post #268

Earlier quoted context omitted.

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).

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

[deleted]

Re: Ask HN: Did you encounter any leap year bugs today?

#473

Unless you're in your 70's, YouTube doesn't allow you to buy premium if you were born on a leap year, because their age calculation is broken, and it thinks you're under 18. Google One works fine. Support will suggest that you change the birthday on your Google account, which breaks account recovery processes that depend on you furnishing matching identity documentation. Mind-boggling. Because nobody at YouTube has a…

> As much as I hate paying so much a month for YouTube of all things, screen-off background play is a paid feature on iPhone

I know you're on iPhone which limits your choices but I'll mention this here anyway, could be useful to someone. Firefox has an addon[1] to fix that. It's very simple and basically just disables the events that tells the page you've switched tabs, and for Youtube hits sends a random keyboard event every N seconds.

I've used it for years and it's great. I can't imagine paying Google of all companies for a feature like that.

[1]: https://addons.mozilla.org/en-US/firefox/addon/video-backgro...

Re: Ask HN: Did you encounter any leap year bugs today?

#475

Earlier quoted context omitted.

But also it doesn't see characters. It sees tokens. The only way it would be reliably able to solve it is if it had a lookup table of token to characters. Which it likely doesn't. You couldn't do it either unless you learned the exact matchings of all tokens to all characters in that token and their positions if you were given tokens as an input. You would have learned the meaning of the token, but not what the exact…

Even if it sees tokens, I don't think it's an impossible task. Certainly an advanced enough LLM should be able to decipher token meanings, to know that a word is made up of the individual character tokens regardless of how the full word is tokenized. Maybe something gpt5 can do (or there's some real technical limitation which I don't understand)

The point is though that this is definitely not a task to evaluate an LLMs intelligence with. It's kind of like laughing at Einstein when he wouldn't be able to decipher hieroglyphs in any language without previous training for those hieroglyphs. Could Einstein potentially learn those hieroglyphs? Sure. But is it the best use of his time - or memory space?

Re: Ask HN: Did you encounter any leap year bugs today?

#476
post #310

Earlier quoted context omitted.

I think what of is getting at is that given {the:1, t: 2, h:3, e:4} There should be somewhere in the corpus, "the is spelled t h e" that this system can use to pull this out. We can ask gpt to spell out individual words in NATO phonetic and see how it does.

> There should be somewhere in the corpus, "the is spelled t h e" that this system can use to pull this out. Such an approach would require an enormous table, containing all written words, including first and last names, and would still fail for made up words. A more tractable approach would be to give it the map between the individual tokens and their letter component, but then you have the problem that this matchin…

The best approach would be to instruct it to under the hood call a function for such asks and hide the fact that it called a function.

Re: Ask HN: Did you encounter any leap year bugs today?

#477
post #268

Earlier quoted context omitted.

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

I asked JavaScript: const { format } = Intl.DateTimeFormat("en-UK", { month: "short", day: "numeric" }); const date = new Date(2024, 1, 29); console.log(format(date)); // 29 Feb date.setYear(2025); console.log(format(date)); // 1 Mar const year = 1000 * 60 * 60 * 24 * 365.2425; console.log(format(new Date(2024, 1, 29).getTime() + year)); // 28 Feb I guess both are logical by some definition of logic.

I can agree with that.

Re: Ask HN: Did you encounter any leap year bugs today?

#479

Earlier quoted context omitted.

Think of it this way: if Feb 29 didn't exist that year, it would have been March 1. If we're being scientific I guess all of us should move our birthday up by 1 day on leap years, but that seems annoying and not sure anyone really cares enough to.

No we should move our birthday celebration up by 6 hours every year. But that would be only relevant if we were celebrating at the exact hour of our birth.

We already don't move them for timezones. I was born at 3am but in France, when I'm in the US I don't celebrate the day before.
Post reply on HN