I've programmed in Perl but I'm no Perl-programmer notwithstanding.
On 2024-04-12, Kenny McCormack <gazelle@shell.xmission.com> wrote:
In article <uvbe3m$2cun7$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
...
I've programmed in Perl but I'm no Perl-programmer notwithstanding.
That's like saying "Yeah, I've had sex with men, but that don't make gay..."
I've programmed so little in Perl in such distant nineties, that
it's analogous to only having seen the shower scene in /Midnight Express/.
I programmed in Perl to filter log files, but then I got to The AWK >Programming Language book. Sadly, I never wrote another Perl. I don't
think I do very well with sophisticated languages. I feel I need a
single reasonable way of doing things.
There should be one - and preferably only one - obvious wayWhy Dutch? Unless I understand Guido van Rossum very well? :)
to do it. Although that way may not be obvious at first unless
you're Dutch.
Johanne Fairchild <jfairchild@tudado.org> wrote or quoted:
I programmed in Perl to filter log files, but then I got to The AWK
Programming Language book. Sadly, I never wrote another Perl. Idon't
think I do very well with sophisticated languages. I feel I need a
single reasonable way of doing things.
Perl:
The motto of the Perl community is, "There's More Than One Way
To Do It," or TMTOWDI (pronounced "Tim Toady").
Python:
There should be one - and preferably only one - obvious way
to do it. Although that way may not be obvious at first unless
you're Dutch.
I've programmed in Perl but I'm no Perl-programmer notwithstanding.
Some more or less obvious reasons I see...
Abstraction of diverse Unix utilities' interfaces.
(...)
Supporting data structures (beyond primitive arrays).
Less quirks than Shell. (I'm saying that as an experienced Shell programmer.)
I find perl much more quirky. Among many other things, it lacks an straightforward support of nested data structures (you neeed to use
something called references), as it flattens nested arrays
automatically. That was an erroneous early design decission.
That being said, no other language comes close in conciseness when
it comes to text processing and interacting with the OS (filesystem,
pipes, etc). Any other language is too verbose for those tasks.
That being said, no other language comes close in conciseness when it
comes to text processing and interacting with the OS (filesystem, pipes, etc).
Any other language is too verbose for those tasks.
.. i could imagine e.g. a library for a language getting there.
On Mon, 15 Apr 2024 22:12:23 -0000 (UTC) Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:
Especially a language that is particularly versatile and adaptable to
defining DSLs.
*waits for a Forth-head to chime in*
On Mon, 15 Apr 2024 15:29:51 -0700, John Ames wrote:
On Mon, 15 Apr 2024 22:12:23 -0000 (UTC) Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:
Especially a language that is particularly versatile and adaptable to
defining DSLs.
*waits for a Forth-head to chime in*
Forth? Not a chance. That’s only fit for a museum. Whatever interesting features it might have had were carried over to PostScript, which took
things to the next level.
Forth is also the basis for the assembly and code for most stack-based >processors, which are used whenever the smallest die area is needed. In >particular, 4-bit microcontroller programming is dominated by Forth.
You don't normally see such chips, because they are hidden inside
devices and these days only found within other chips (the last >general-purpose easily available 4-bit microcontroller line was
discontinued about a decade ago).
On Tue, 16 Apr 2024 10:14:38 +0200
David Brown <david.brown@hesbynett.no> wrote:
Forth is also the basis for the assembly and code for most stack-based
processors, which are used whenever the smallest die area is needed. In
particular, 4-bit microcontroller programming is dominated by Forth.
You don't normally see such chips, because they are hidden inside
devices and these days only found within other chips (the last
general-purpose easily available 4-bit microcontroller line was
discontinued about a decade ago).
Old style digital watches maybe?
Sometimes, there seem to be some choices how to do something in
Python.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 06:29:05 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,058 |
Messages: | 6,416,635 |