From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: For text processing, which is more powerful, emacs or perl? Date: Sun, 20 Dec 2020 14:18:46 +0800 Message-ID: References: <87tushbawm.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Emanuel Berg To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 07:19:28 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqs40-0007w7-Iv for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 07:19:28 +0100 Original-Received: from localhost ([::1]:60354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqs3z-0004a8-Ll for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 01:19:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqs3Z-0004Zl-QT for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 01:19:01 -0500 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:33684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqs3X-0004WH-Rc for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 01:19:01 -0500 Original-Received: by mail-lf1-x12b.google.com with SMTP id l11so16077410lfg.0 for ; Sat, 19 Dec 2020 22:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3mdZO54A6JxGJ4ZWyoHBv7sxIAxruGw5ToTni5dbvvA=; b=YgQRrxee9I2wLSqsNesmpYku7++jk1LUkPeaPxWfXxtXix551X6etqkySfmsoSzYxf kiJzrvcmkXftt/A7ZyuCoE+snkDkhNjiooufd+NClbF3PpXrYm7Ft0rWWssVqGC3ux0e V/veCsV459qH5wti20URCqG6lfnrvYXvPNdJZXvgId0tKmxW6DalA1FFudfUgTImvjPh jfuI3OuAY3hKme2nGUL4WzMIFr2WZPZyEPRlCeVbEQwz6j7kCcREFvgtf5scXB6Ohp6V +jtVniGPr4j6zPIDY0ITESq6OTLhEteVXbYj9+UlcLggVULsC7m1N94j3RbkavDr/8tT vPJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3mdZO54A6JxGJ4ZWyoHBv7sxIAxruGw5ToTni5dbvvA=; b=YSRhB+JUdvt5xCRKh20GBnfSHr6AKh1WR7EC69DvjdbWamffjVJwd/u6QQ7CAcWGTh P/ggYBgjR1T4/Z26Wv1tzxkU6EGHUNGH+BhAvvRcoEoLVJ6hUkS75V+VTgYJDn2Kul+c OAtoOpB4FJEuyz+3denMGDfsUYZvCAqR66Cz++WgtL0c5L2b2s9UC89H0ffi/mbAI3f7 FaotvSHXTA8Uu2waJ1ROjzAuxHdfRzASZ5YEzs1iSCTQi4Ra/TUVLYr8obK3eP+/b2Hw zVDw4LnKcKXq32OXAOxn9BOpxj31s6iX7OG52X8FuTxC6eGOCtd1YGzh8ZM2rVZL38gk Qyng== X-Gm-Message-State: AOAM530fReefaWDGa8M6zlDEuZ4801vRTWO27yJBFQp8MbCMrWG0qPJ+ ukC9owrztFMy5LFajq9kQEqasOvoMh6Qojg/HC8= X-Google-Smtp-Source: ABdhPJzjX8sqFD4VaGE2QRCysaSVs3soax2VxmxkmJIg+uY9xl+FOVTP2l5g3oxbDMwH5qi6DM5QMDOv3Ts1Vg2W75U= X-Received: by 2002:a2e:96cc:: with SMTP id d12mr4763555ljj.246.1608445137364; Sat, 19 Dec 2020 22:18:57 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126623 Archived-At: On Sun, Dec 20, 2020 at 1:31 PM Jean Louis wrote: > > * Hongyi Zhao [2020-12-20 04:43]: > > 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 > > You did not measure the code, rather startup time to show the version. https://perlmaven.com/compare-the-speed-of-perl-and-python-regex -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China