Friday, January 05, 2024

JavaScript sort :(

Scott Robinson on X: "I often forget that, by default, JavaScript sorts integers as if they were strings. 1) This makes no sense 2) I can't imagine how many bugs are sprinkled throughout all the JS code I've written in the last 8 years https://t.co/6yv2ITXRa9" / X

this is hard to believe.... but true :(

array sort in JavaScript is handling numeric values as STRINGS!

[2,13,54].sort() 
> [13, 2, 54]


Scott Robinson (@ScottWRobinson) / X

Turing test: ELIZA (1966) > ChatGPT-3.5; ELIZA-GPT

 1960s chatbot ELIZA beat OpenAI’s GPT-3.5 in a recent Turing test study | Ars Technica

In a preprint research paper titled "Does GPT-4 Pass the Turing Test?", two researchers from UC San Diego pitted OpenAI's GPT-4 AI language model against human participants, GPT-3.5, and ELIZA to see which could trick participants into thinking it was human with the greatest success.

Eliza, a chatbot therapist (//web.njit.edu/~ronkowit/eliza.html)

ELIZA - Wikipedia

ELIZA is an early natural language processing computer program created from 1964 to 1967[1] at MIT by Joseph Weizenbaum


Legendary ELIZA And PARRY Go Head-To-Head With ChatGPT In A Revealing Battle Of Using Generative AI For Mental Health




other ELIZA implementations, without GPT API