Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You've got a lot of examples, but for example I recently thought: "How many weekdays are there between Jan. 11th 2023 and Mar. 11th, 2023" and got GPT to write the python code and run it to get the answer. It worked first try, I could inspect the code it generated and saw it looked correct, it was within my original estimate. Took less than one minute.

I had a question about adding new RAM to my computer, about what things I should take into account since the original brand no longer makes paired dimms that match my current spec. It gave me a big bullet list of all of the things I should compare between my current ram, my current motherboard and any new ram I would choose to buy to ensure compatibility.

Both of these are things I might have gone to Google (or even reddit) for previously but I believed I could get faster answers from ChatGPT. I was right in both cases. I didn't have to construct a complicated query, I didn't have to filter SEO spam. I just asked the question in natural language as it appeared in my mind and ChatGPT gave excellent answers with very little delay.



FYI, Wolfram Alpha is good for this type of query too: https://www.wolframalpha.com/input?i=How+many+weekdays+are+t...


Wolfram Alpha has very much the same effect as Siri for me. Often I'll remember it exists and I will think to give it another try. But whenever I try it I get frustrated since it seems to fail on whatever I decided to attempt in that moment. It is maybe just unlucky but it is my experience. I am certain there are millions of things it can do, but for some reason the one thing I try on it always seems to fail.

On the other hand, ChatGPT does seem to give me good results the majority of the time. It certainly fails or hallucinates and I always feel I have to double check it, However, it just feels more reliable as a first stop compared to Siri or Wolfram.

I don't want to have to think "is this a query Siri can handle?" or "will Wolfram Alpha manage to work for this query?" - I just want to get a pretty good answer quickly with no hassle.


Which ChatGPT can utilize with the plugin! (although I'll admit I just go straight to the site if I need to use it)


...although ChatGPT also has a Wolfram Alpha integration


Why write python code for that (through any means) when there are already simple services to do it for you?

https://www.timeanddate.com/date/duration.html


First, I would need to know such a service exists. Given that I didn't know the service exists I would have to Google for such a service. Which is exactly the point in question.

So, let's say I Google for such a service and I make it past the 3 or 4 ads at the top of the search results and however many SEO spammed sites and I get to the site you posted. I literally started writing a response to you saying "it doesn't seem to count only weekdays" but in order not to be wrong on the Internet I went back and checked and buried in the interface is a link "Count only workdays".

So, my answer to why: It was actually faster and easier using ChatGPT to get it to write Python than it would have been for me to use Google to find the site and then to use the site. If I have to do the same thing again in the future I will use ChatGPT rather than try to remember this website url or trust Google to direct me back to it.


Google Bard replies with: "There are 43 weekdays between January 11th, 2023, and March 11th, 2023."


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.


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


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.


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.


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.


Small nit: BETWEEN is boundary inclusive, testing membership within a closed interval (at least in all SQL dialects I’ve used)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: