Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 21.1 ('Xojo Eliza')
Instant purchase and download via GumRoad!


Xojo Eliza

Porting a 50-year-old BASIC program to Xojo

Issue: 21.1 (January/February 2023)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 42,992
Starting Page Number: 36
Article Number: 21105
Resource File(s):

Download Icon project21105.zip Updated: 2023-01-03 09:08:58

Related Link(s): None

Excerpt of article text...

Unless you've been living under a rock in the Antarctic, you've heard of ChatGPT, a new machine learning conversationalist that is causing all sorts of controversy (https://tidbits.com/2022/12/09/chatgpt-the-future-of-ai-is-here/). I've been absorbed by World Cup Fever and even I heard about ChatGPT!

Of course, being the ancient being that I am, I immediately thought of Eliza, the original "psychiatrist" conversation program written in BASIC.

Eliza is hilariously primitive compared to ChatGPT, and even ChatGPT is far from perfect—though both can produce eerily appropriate phrases at times that can make you believe there's a real person at the other end.

Since I've been wanting to cover some retro BASIC programs in xDev for a while, what better opportunity to convert Eliza to Xojo?

The Original Code

A search online quickly found me a version of Eliza in BASIC. (I could have scanned a copy from an old book or magazine of mine, but why bother?) The modification date is 1979—so this isn't the original-original code (which was written in the 1960s), but it's old enough for our purposes. (See Code Listing #1 for the source.)

...End of Excerpt. Please purchase the magazine to read the full article.