Re: How to change people's minds about LISP?



* Christopher C. Stacy:

>> The simple reason might be that it's so hard to use
>> it as a drop-in C replacement.
>
> System administrators write throw-away programs in C?

Some of them do, yes. But Perl is much more common, especially among
the younger generation.

> Or did you mean that Perl is a drop-in replacement for C?

Lisp could be a drop-in replacement for Perl. Not for all of Perl's
features, of course, but in areas where it makes sense. What you'd
need is a reasonably documented system call/libc interface (and for
that, you apparently need FFI support for 64 bit numbers). cl-ppcre
could be helpful, too, if it compiles regular expression fast enough.
Otherwise, just link in PCRE. You just go along and add the things
you need, and at some point, publish your collection, and commit to
its maintainance.

Actually, it's not too hard to compete with Perl in this area. Perl
has some weaknesses (not just code maintainability). An instructive
example is that regular expressions as a first-class type are pretty
recent innovation in Perl land. 8-)
.



Relevant Pages

  • Re: match string by re using some pattern
    ... The replacement part of a s/// is ... #!/usr/bin/env perl ... my (@pos, @pos2); ... push @pos2, $1; ...
    (comp.lang.perl.misc)
  • Re: back references
    ... &&> You don't use that kind of backreference in the replacement part, ... && Perl allowed it. ... The backslash form was there to make it easy for sed programmers ...
    (comp.lang.perl.misc)
  • Re: replacement for formmail
    ... for a replacement. ... A buggy, insecure perl script used for sending mail from a website. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Find/Replace a block of javascript in 183 html files?
    ... >>Perl handles that well. ... > As a replacement for the javascript? ... it's easier to use Perl's range operator (I meant for you to use ... the 2 filehandle method is in the next Perl script. ...
    (alt.os.linux)
  • Apache Perl Problem...Help!
    ... Okay....you will have to excuse me because I am not fluent in linux at ... My unix admin was recently let go without a replacement and so I ... we are running is done in php and I dont believe it uses perl at all. ...
    (comp.lang.perl.misc)