Of course, I meant to say that perl is a "write only" language. Lua certainly doesn't suffer from the same disease. It's syntax is concise. In fact, it was first designed as a configuration language which is my favorite way to use it. CONFIG DD is a lua script which I load and process in the progit script. I don't have to write a parser because lua does the job.

//PROGIT   JOB CLASS=W,MSGCLASS=T,NOTIFY=&SYSUID
//*
//SHELL    EXEC PGM=COZBATCH,PARM='/ /bin/sh -L'
//STEPLIB  DD  DISP=SHR,DSN=DOC.COZ.LOADLIB
//STDERR   DD  SYSOUT=*
//STDOUT   DD  SYSOUT=*
//STDIN    DD  *
progit init
/*
//CONFIG   DD  *
path = "/u/bamboo/progit/txc120"
git = {
   remote = "ssh://git@intranet:7999/ctp/txc120.git",
   branch = "master",
   commit_message = "Initial commit"
}
environment = "TXC120.DEVT"
libraries = {
  "C",
  "CLINKCTL",
  "CPP",
  "DTL",
  "DTLCOPY",
  "H",
  "HPP",
  "LINKCTL",
  "MACLIB",
  "STXCEXEC",
  "STXCSAMP",
  "STXCSENU",
  "SOURCE"
}
/*

On 2020-02-28 1:48 AM, Seymour J Metz wrote:
Perl is ugly, but the only thing that I might call read only is the regex 
syntax, and Lua seems tom suffer from the same disease. The obvious advantage 
of Perl is the massive collection of packages in CPAN; if I had an equivalrnt 
for a more modern language then I might be tempted to switch.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
David Crayford [dcrayf...@gmail.com]
Sent: Thursday, February 27, 2020 11:48 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx parse using period as placeholder

Why Lua?  Because it can run in TSO/ISPF/CICS which the others cannot.

Rocket has a decent port of Python which runs well in USS and has a
massive runtime library. It nukes Perl!

Perl sucks! t'it a read only language!

Rust hasn't been ported to z/OS. It's the best modern systems
programming language out there by far! Maybe one for the future?

Ruby is ordinary and suffers from the same design deficiencies as Perl.
But you can use JRuby on the JVM on z/OS just fine.


On 2020-02-28 12:27 AM, Seymour J Metz wrote:
Too bad IBM hasn't upgraded to oorexx. I'm a REXX bigot, but I find myself 
using Perl because CPAN and regexen make it more suitable than REXX for the 
task at hand.

Why Lua, as opposed to, e.g., Perl, Python, Ruby, Rust?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
David Crayford [dcrayf...@gmail.com]
Sent: Thursday, February 27, 2020 10:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx parse using period as placeholder

Disclaimer here: I work for Rocket Software who offer lot of ported
tools for free.  My opinions are my own!

REXX is great but it doesn't scale for writing large software solutions.
It doesn't have modules, variable scoping and all those things
we expect from modern languages. it's pervasive so we all use it. I use
it all the time for ISPF edit macros, USS scripts and all sorts
but when it comes to a serious software solution is just doesn't cut it.

Shameful plug: 
http://secure-web.cisco.com/1_SdqptRwW-6u4CBvH6ledsU_zEPPDRyhrcQaLGUxlPI0urXagvXcpFBFCYZ0bq4iTSW0PbiosPij-rpfEZYv7ZSQSeKwi_D-jKaJWmbpyfEjmjT6JUSE0uAkPJIiCITGw-0ZkMDELB-0XyVFkryAWdytxom27mwOusQOPrFM0pB9ze7DU8fw1ljOHXVdpsk31Aa_ngTyub60lCtDw8nGqryvSLBIG9KzqdvtG8pMXgbcmMEV4ubpnFRrsTxawmOJUK-95L4odwPO39YBIFUjJEYgvdCexYyhnuedAGDoXLP0HH7mRQeSE_Jq3gd8wmzdIX7cpL29zCP-gSecNOXDOQTjOxr-cZ2lrOdxdeiwFPAcAav_dfntRR3t45Y3KVSTXPwDD4-2nMj3dPTq5SEph_xXbJEGCKuQyXrh_eItb4D3JbtqpNaTFYYCbS-_wue2/http%3A%2F%2Flua4z.com%2F

On 2020-02-27 11:06 PM, John McKown wrote:
On Thu, Feb 27, 2020 at 8:59 AM David Crayford <dcrayf...@gmail.com> wrote:

You are being pedantic, but that's ok.

I have found (from my co-workers especially) that most mainframe people
of a certain vintage are not willing to learn new stuff.
So regular expressions are off the menu when they can write logic to do
the same thing using their language of choice.
Of course, that's totally fine. Old dogs new tricks! RE does take some
learning but it's a case of "I can't be bothered".

I love regex, especially the PCRE. I also use z/OS Unix facilities in my
"normal" work. OTOH, my boss is one of the "don't want to bother with that"
types. Each to his own. Except that he really doesn't like me to use Unix
facilites in any of our "production" environments. The reason is "so that
the person coming after you can understand it". Which is weird given the
fact that UHG will kill the mainframe soon "come hell or high water". They
have enough money to do it too. Anyway, I end up writing a lot of REXX
instructions to do what I can do in just a couple of lines of awk or sed.
Even the "minimalistic" (anemic) versions of those that IBM distributes.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to