help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: For text processing, which is more powerful, emacs or perl?


From: Hongyi Zhao
Subject: Re: For text processing, which is more powerful, emacs or perl?
Date: Sun, 20 Dec 2020 09:42:40 +0800

On Sun, Dec 20, 2020 at 8:04 AM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Jean Louis wrote:
>
> > CPAN and Perl are not obsolete, not at all
>
> Today most people will turn to Python instead of Perl for
> solving a general task. Development in Python is very fast and
> the code is to the untrained eye easier to read than Perl code
> which has a more cryptic and esoteric style.
>
> But that doesn't mean Perl is obsolete and people will still
> use it for many years to come.
>
> For Emacs there should be many alternatives and packages that
> deal with Perl code. `perl-mode' is built-in (defined in
> perl-mode.el.gz), you get that when you open a .pl file.
>
> Interestingly, while Perl feels old, and Python pretty new,
> the difference is only 4 years: Perl is from 1987,
> Python 1991.

The performance penalty is the largest bottleneck of Python code. It
can be seen from the following minimal example:

werner@X10DAi:~$ time python3 --version >/dev/null

real    0m0.086s
user    0m0.065s
sys    0m0.027s
werner@X10DAi:~$ time perl --version >/dev/null

real    0m0.003s
user    0m0.003s
sys    0m0.000s



> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>


-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

[Prev in Thread] Current Thread [Next in Thread]