On Tue, 14 Jan 2025 15:31:14 -0800
"Randal L. Schwartz" <[email protected]> wrote:
> I wonder if you fed the Remind docs into Gemini-2.0, how accurate it
> would be able to translate english to remind code?
Well! So... I asked ChatGPT if it was familiar with Remind, and it said
"Yes, sure" and told me a bit about it.
So I wrote:
My trash collection day occurs every second Wednesday starting from
2025-01-14. However, if the Monday, Tuesday or Wednesday of that week
is a public holiday, it gets moved to the following Thursday. Please
make a Remind script that follows those rules.
And the result it gave me was (appropriately?) utter trash. :)
# =======================================================================
# Define public holidays
REM 2025-01-01 MSG New Year's Day
REM 2025-02-17 MSG Family Day
REM 2025-04-18 MSG Good Friday
REM 2025-05-19 MSG Victoria Day
REM 2025-07-01 MSG Canada Day
REM 2025-09-01 MSG Labour Day
REM 2025-10-13 MSG Thanksgiving
REM 2025-12-25 MSG Christmas Day
REM 2025-12-26 MSG Boxing Day
# Function to check if Monday, Tuesday, or Wednesday of the week is a holiday
FSET is_holiday_week() \
( \
hol(match($dow=1|2|3)) \ # <-- DFS: WTF is this???
)
# Remind for trash collection on every second Wednesday
REM 2025-01-14 +14 *1 SKIPMSG is_holiday_week() Trash collection this week
delayed to Thursday
REM 2025-01-15 +1 WEEK!
# =======================================================================
It does manage to lie fairly convincingly, almost as if it does know Remind.
Regards,
Dianne.
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/