M
mentificium
Perl has a future in artificial intelligence.
CPAN needs to be populated with AI Mind-Modules.
CPAN needs to be populated with AI Mind-Modules.
Perl has a future in artificial intelligence.
CPAN needs to be populated with AI Mind-Modules.
Perl has a future in artificial intelligence.
CPAN needs to be populated with AI Mind-Modules.
Perl has a future in artificial intelligence.
CPAN needs to be populated with AI Mind-Modules.
Also about AI , from my point of view the "eval" function and the
ability of subroutines to return code brings Perl very close to lisp
Also about AI , from my point of view the "eval" function and the
ability of subroutines to return code brings Perl very close to lisp
Kaz Kylheku said:Yes, in particular close to that Shell dialect of Lisp:
for_pat()
{
local var=$1
local pattern=$2
local action=$3
echo "for $var in $pattern ; do $action ; done"
}
eval $(for_pat x '*.pl' 'echo $x')
Now throw in M4 macros and you have wonderful AI, like GNU Autoconf.
code at run time is to build 'Perl source code strings' and run them
through eval.
RW> One major drawback of Perl compared to Lisp is that there's no
RW> structured representation of Perl code: The only way to generate new
RW> code at run time is to build 'Perl source code strings' and run them
RW> through eval. For the same reason, Perl doesn't have a powerful macro
RW> factility like Lisp.
The term is "homoiconic." Perl has a structured representation, but
you can't turn it back into Perl, that's the missing piece.
Anyway, a macro facility for Perl would be somewhat pointless because macros
are geared toward compiling.
Since Perl is basically uncompilable,
Perl is compiled.
Ted Zlatanov said:RW> One major drawback of Perl compared to Lisp is that there's no
RW> structured representation of Perl code: The only way to generate new
RW> code at run time is to build 'Perl source code strings' and run them
RW> through eval. For the same reason, Perl doesn't have a powerful macro
RW> factility like Lisp.
The term is "homoiconic." Perl has a structured representation, but
you can't turn it back into Perl, that's the missing piece.
Rainer Weikusat said:Sideline joke: http://www.perlprojects.org (found via Google).
Perl
[...]
might as well go with what mainstream
Lisp discarded decades ago: "fexprs".
If macros are considered to be compilers, fexprs are their interpretive
counterpart: user-defined operator functions that, at run time (not
macro-expansion time) receive the unevaluated versions of their arguments,
along with the caller's environment. They do whatever is necessary to make
their construct happen, each time they are called.
Mladen Gogala said:]
and people who lust for 'inelligent beings without civil rights'
should consider getting professional help, at least in the parts of
the world where slavery has been abolished, so that they eventually
get over that.
Well, such "lust" was displayed by Isaac Asimov, Arthur C. Clarke, Philip
K. Dick, Douglas Adams and many other pioneers of the science fiction.
I'm not quite sure whether the better part of the science fiction writers
can be summarily dismissed as people in need of professional help.
Mladen Gogala said:Well, Douglas Adams was actually a satirist, not a science fiction
writer. His Marvin, the paranoid android, is really a funny creation.
Perl has a future in artificial intelligence.
CPAN needs to be populated with AI Mind-Modules.
--
http://mind.sourceforge.net/perl.html
http://www.cpan.org/authors/id/M/ME/MENTIFEX/mind.txt
http://www.nlg-wiki.org/systems/Special:SearchByProperty/Worker/Murray
http://www.reddit.com/r/perl/comments/2080fy/how_did_php_and_python_take_over_such_a_huge
'Artificial Intelligence' is bullshit: Computers are useful because
they're not intelligent, that is, capable of influencing circumstances/
situations for their own benefit, and people who lust for 'inelligent
beings without civil rights' should consider getting professional help,
at least in the parts of the world where slavery has been abolished, so
that they eventually get over that.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.