public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jorge Peixoto de Morais Neto" <please.no.spam.here@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] package.keywords syntax?
Date: Tue, 28 Oct 2008 20:17:50 -0200	[thread overview]
Message-ID: <38af3d670810281517k186dfeacg80d7288c34d52043@mail.gmail.com> (raw)
In-Reply-To: <200810282356.25430.alan.mckinnon@gmail.com>

>> awk? I assumed it was an obsolete language included for compatibility.
>> People should use Python, Perl, or sed's "s" command. Am I wrong?
>
> Yes. You are indeed wrong.
>
> Python and Perl are humungous interpreters that rival Java for size. Perl is
> in a class of it's own for syntax bloat.
>
> sed is neat but has nowhere near the functionality of awk.
>
> For example, I recently needed to scan a massive text file of 89000+ lines and
> count the number of character on each line and print it out with the line
> number. A bash script took 20 seconds to run. A C script took less than half
> a second. An awk script was marginally *quicker*. Granted, most of that time
> is spent writing to the console, but the text processing must then also be on
> par with C.
>
> awk is not obsolete, it's just been around for a while. It's no more obsoleted
> by perl, python and sed than ls is obsoleted by the existence of gui file
> managers
Nice. I might learn it in the future (there are some urgent duties I
must to before, and then I want to learn C* and Python**. Then I may
study awk)

* Before you ask "what, you don't know C?", I mean to really know C,
that is, read a rigorous book such as "C: A Reference Manual" and be
able to write portable programs with well-defined behavior. Speaking
of well-defined behavior, do you know what happens when you cast a
float to an int, and the float is too big to fit into the int?
** I know basic Python, but I think Python is nice enough for a person
to *really* know it.

-- 
Software is like sex: it is better when it is free - Linus Torvalds



  reply	other threads:[~2008-10-28 22:17 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28 17:07 [gentoo-user] package.keywords syntax? Helmut Jarausch
2008-10-28 17:20 ` Neil Bothwick
2008-10-28 17:22 ` Andrey Vul
2008-10-28 17:39   ` Ricardo Saffi Marques
2008-10-28 17:49     ` Neil Bothwick
2008-10-28 20:29     ` Andrey Vul
2008-10-28 21:01       ` Alan McKinnon
2008-10-28 21:34         ` Jorge Peixoto de Morais Neto
2008-10-28 21:47           ` Robert Bridge
2008-10-28 21:56           ` Alan McKinnon
2008-10-28 22:17             ` Jorge Peixoto de Morais Neto [this message]
2008-10-28 22:41               ` Alan McKinnon
2008-10-28 22:55                 ` Jorge Peixoto de Morais Neto
2008-10-29  7:16                   ` Alan McKinnon
2008-10-29 14:16                     ` Andrey Vul
2008-10-29 20:13                     ` Jorge Peixoto de Morais Neto
2008-10-30 10:46                       ` Dirk Uys
2008-10-30 11:00                         ` Dirk Uys
2008-10-30 18:54                           ` Jorge Peixoto de Morais Neto
2008-10-30 19:11                             ` Albert Hopkins
2008-10-31  8:02                               ` Dirk Uys
2008-10-31  9:54                               ` [gentoo-user] OT: Python (was: package.keywords syntax?) Matthias Bethke
2008-10-31 10:31                                 ` Heiko Wundram
2008-10-30 19:12                         ` [gentoo-user] package.keywords syntax? Jorge Peixoto de Morais Neto
2008-10-31  7:57                           ` Dirk Uys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38af3d670810281517k186dfeacg80d7288c34d52043@mail.gmail.com \
    --to=please.no.spam.here@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox