Ai Dreams Forum

AI Dreams => New Users Please Post Here => Topic started by: cymbod on February 07, 2019, 11:31:24 am

Title: Playing with AI ideas
Post by: cymbod on February 07, 2019, 11:31:24 am
Hello, artificial intelligence has caught my imagination, so I am playing around with concepts.

I code in perl 5, which is a language I like because it is stable and the freedom it gives me to design/code. 

This forum seems to be one of the best out there on AI, and so here I am to learn and share ideas.

Title: Re: Playing with AI ideas
Post by: Korrelan on February 07, 2019, 11:58:34 am
Welcome Cymbod.

There are loads of great projects and insights in the archives.

 :)
Title: Re: Playing with AI ideas
Post by: cymbod on February 07, 2019, 12:08:23 pm
Hi Korrelan.  Thanks for the welcome.  I am slowly exploring this forum, and I will head over to the archives. 
Title: Re: Playing with AI ideas
Post by: Freddy on February 07, 2019, 12:38:58 pm
Hello and welcome  :)
Title: Re: Playing with AI ideas
Post by: Art on February 07, 2019, 06:42:47 pm
Nice to have you with us Cymbod! Enjoy your journey!  O0
Title: Re: Playing with AI ideas
Post by: 8pla.net on February 07, 2019, 07:41:11 pm
Perl is one of the best choices for A.I.
Great regular expressions support,
and cgi/bin runs fast over the web.

Seen a few good A.I. projects in Perl. 
RiveScript used Perl to clone Alicebot.

Loebner Prize judge program was
originally written in Perl.

And, there have been other good
A.I. projects in Perl too, such as
the Eliza perl module.

Perl is good... Good choice.  O0
Title: Re: Playing with AI ideas
Post by: cymbod on February 08, 2019, 08:12:33 am
@ 8pla.net I love Perl 5, it is unfortunate it is no longer taught in many schools and colleges.

@ Freddy and Art Thanks for the welcome  :)
Title: Re: Playing with AI ideas
Post by: Hopefully Something on February 08, 2019, 09:39:32 am
Oh shoot! Where are my manners? Nice to have you join, cymbod.

Question from someone who knows next to nothing about programming. Do pearl and other more professional programming languages have the same inefficient time consuming format, and unforgiving attitude towards errors as the basic, and c++ that those poor teachers are attempting to teach me in college? Or have they managed to file off the rough edges in more modern languages?
Title: Re: Playing with AI ideas
Post by: cymbod on February 08, 2019, 06:36:51 pm
@ Hopefully Something. Hi, thanks, this is a great site.

Perl 5 is good in that it does some checks on the code as it runs the code, and then gives a rough idea where and what the problem is. I try to keep my coding simple and well commented, coding and testing the code in small stages.  Not only can what I coded crash, but it can create unexpected results, or even compromise security through bad coding. 
Title: Re: Playing with AI ideas
Post by: Art on February 09, 2019, 04:09:47 pm
@ 8pla.net - Congrats!!
Only 1111 more to go to reach that elusive 2222 ! O0
Title: Re: Playing with AI ideas
Post by: 8pla.net on February 09, 2019, 04:59:44 pm
Bingo!

Post# 1111

  :D



Title: Re: Playing with AI ideas
Post by: 8pla.net on February 10, 2019, 04:44:39 am
Getting back on topic...  Let's write some Perl code.

Code: [Select]
#! usr/bin/perl
print "Say something...";
chomp ($something = <>);
if ("$something" =~ /HELLO/gi) {
    print "Hello there!\n";
}
else {
    print "You said, \"$something\" just now!\n\n";
}

Program Output:



#> perl bot.pl

Say something... Hello

Hello there!

You said, "Hello" just now!



_________________________________________________
« Edit Notes: Slight adjustment to the Perl code.