News for hackers. Stuff that matters.
Re:Someone has to say it: Voice assistants are not doing it ... by sokoloff on Wednesday November 23, 2022 @10:34AM (#33720450)
> "hey siri, create alarms every 5 minutes starting at 6am tomorrow"

“OK, I’ve created an infinite number of alarms, every five minutes, starting at 6 AM tomorrow!”

Re:Someone has to say it: Voice assistants are not doing it ... by ghaff on Wednesday November 23, 2022 @11:45AM (#33721519)
As a native English speaker, that seems a profoundly odd request but that is what you asked for.

And you now have me wondering how open-ended calendar requests are actually implemented given that they can't literally have entries out to infinity. (I assume they go out some finite period and some background process periodically re-populates future entries.)

Re:Someone has to say it: Voice assistants are not doing it ... by mercutio2 on Wednesday November 23, 2022 @01:34PM (#33722889)
A recurrence rule is added to a start event, then an occurrence cache is either generated on the fly for periods of interest, or, yes, a rolling cache a year or two in the future is maintained and updated daily.
Re:Someone has to say it: Voice assistants are not doing it ... by ghaff on Wednesday November 23, 2022 @03:17PM (#33724014)
Perhaps trivial, but actually seems like an interesting question given you have to potentially tradeoff RPCs for routine queries (and the number of database records) vs. being wrong for the random "Am I free on this day three years from now?" query. Of course, the answer may be that, in general, the differences don't really matter.