News for hackers. Stuff that matters.
Re:Gemini: Google's most capable AI model yet by xnx on Wednesday December 06, 2023 @04:24PM (#38549663)
Google Bard replies with: "There are 43 weekdays between January 11th, 2023, and March 11th, 2023."
Re:Gemini: Google's most capable AI model yet by jchook on Wednesday December 06, 2023 @06:06PM (#38550726)
It seems Wolfram Alpha appropriately excludes March 11th for the math folks (e.g. kind of like SQL BETWEEN, syntax convenience, etc) and Bard appropriately includes January 11th and March 11th, as that is how it would be commonly interpreted.

Edit: or not, March 11th is not a weekday. Though I count 43 weekdays including Jan 11th, so perhaps Wolfram is using an open interval while bard is using a closed interval.

Re:Gemini: Google's most capable AI model yet by sib on Wednesday December 06, 2023 @06:27PM (#38550904)
How many days are between Sunday and Saturday of this week (I live in a place where weeks are generally seen to start on Sunday and end on Saturday)?

Five, right? Would you say seven?

Guess I must be a "math folk."

Re:Gemini: Google's most capable AI model yet by sebastiennight on Wednesday December 06, 2023 @08:14PM (#38551667)
No, I would say 6.

How many days are there between today and tomorrow?

By definition, there is exactly 1 (one) day. That's what tomorrow means :)

Your math would say zero.

Re:Gemini: Google's most capable AI model yet by pbhjpbhj on Wednesday December 06, 2023 @11:08PM (#38552705)
Which day is between today (Thursday) and tomorrow (Friday)?

There are no days between today and tomorrow. No things _between_ this thing and the next thing.

I find your mathematics pretty confusing.

Re:Gemini: Google's most capable AI model yet by sebastiennight on Thursday December 14, 2023 @05:12PM (#38648048)
In most contexts for time differences, a "day" is a time interval (24 hours) instead of a "concrete thing".

If my job contract says that there has to be "one day between" my resignation letter and my handing back my badge, then it means I can resign on Monday and give back the badge on Tuesday (the next day ; "one day after" ; because "one day" has elapsed). Not Monday/Wednesday. Otherwise "zero days between" these events would mean Monday/Tuesday (with your math) and Monday/Monday is also zero?

But I guess we're just rehashing the old argument on whether indexes should start at zero.

Re:Gemini: Google's most capable AI model yet by andelink on Thursday December 07, 2023 @09:24AM (#38556650)
Small nit: BETWEEN is boundary inclusive, testing membership within a closed interval (at least in all SQL dialects I’ve used)