Re:Consider Rexx for Scripting (2022)
by woodruffw on Wednesday December 11, 2024 @02:40PM
(#42391907)
Are the open source implementations of Rexx widely adopted? This article highlights them, but I don't think I've ever run across them. It would be interesting to hear about where these have been adopted, relative to other scripting languages that fill a similar niche (presumably mostly Python, Perl, and sh)?
(Apropos of nothing else, it seems worth noting that Rexx is a product within IBM's suite and that this website appears to be owned by Red Hat, now an IBM subsidiary.)
Re:Consider Rexx for Scripting (2022)
by nocman on Friday December 13, 2024 @12:00PM
(#42410232)
Yes, sadly I was not rich enough as a kid to own an Amiga. By the time I could have afforded one, it would have been more for the novelty of having one than something practical for me to spend money on.
Re:Consider Rexx for Scripting (2022)
by nocman on Friday December 13, 2024 @11:58AM
(#42410208)
Yeah, the main references I found to IVR systems and REXX were from IBM articles discussing IVR, and some open-source Asterisk-based systems using ooRexx that appear to have been created as an open-source alternative to IBM OS/2 IVR solutions that used REXX.
OS/2 is the primary environment where I had experience reading and writing REXX a long time ago. I was also aware of it being used in IBM mainframe systems, but I had no direct experience there.
Re:Consider Rexx for Scripting (2022)
by tssva on Friday December 13, 2024 @12:48PM
(#42410662)
My last experience with IVR and REXX was setting up a system in the mid-2000s to do identity verification for loan applicants. I can't remember the name of the software. It ran on Windows server and wasn't an IBM product.
I also used REXX on OS/2 systems including doing some development using Watcom VX-REXX which you can basically think of as Visual Basic but with REXX. I released a GUI FTP program I developed with it to the OS/2 BBS but last I looked couldn't find it in the OS/2 BBS archives.
Re:Consider Rexx for Scripting (2022)
by ericyd on Wednesday December 11, 2024 @02:51PM
(#42392036)
> All variables contain strings. If the strings represent valid numbers, one can perform arithmetic operations with them. This simple concept of dynamic typing makes all data visible and simplifies tracing and debugging.
Interesting to see duck typing advertised as a feature. I feel like the programming world is going strongly in the opposite direction.
Re:Consider Rexx for Scripting (2022)
by akira2501 on Wednesday December 11, 2024 @05:45PM
(#42393885)
> Interesting to see duck typing advertised as a feature.
Speed of development is a legitimate factor to consider when making a choice of language for a project.
> I feel like the programming world is going strongly in the opposite direction.
There's a concerted corporate effort to push the programming world in that direction. It's not born out of a particularly strong rationale and not backed by the kind of organic efforts that would actually ensure it's long term success.
Meanwhile we have the technology to fully isolate every process on a machine from everything else on the machine. Do we use this? No. Instead we harass programmers to use languages based upon corporate tastes instead of actual engineering acumen. The desktop doesn't get any more secure and opening a random text message can destroy your life regardless of what language the messaging application was coded in.
Re:Consider Rexx for Scripting (2022)
by J_McQuade on Wednesday December 11, 2024 @02:52PM
(#42392052)
I only ever used ARexx on the Amiga back when I was a kid and it was amazingly powerful, though I'm not sure how much I'd consider this a function of the language itself rather than the ecosystem you got when all of your favourite software was built with it in mind.
Unfortunately, an ecosystem like that doesn't really exist on the desktop any more, so a lot of the utility is missing. Every now and then I feel an urge to try to mimic the sort of thing that you could do in ARexx easily, only on a modern desktop, and end up having to cobble together some D-Bus monstrosity that is not nearly as fun.
Re:Consider Rexx for Scripting (2022)
by wslh on Wednesday December 11, 2024 @03:02PM
(#42392193)
Yes, ARexx was also something different that is more akin to scripting AND having Microsoft COMs for interoperability. Really revolutionary at that time for automation and process interactions.
Re:Consider Rexx for Scripting (2022)
by YZF on Wednesday December 11, 2024 @02:54PM
(#42392091)
I love Rexx and have used it extensively on IBM mainframes and PC's way back. That said it seems like the ecosystem has moved away from the the types of integrations where Rexx was strong. On IBM mainframes it was always the tight integration with things like CMS and XEDIT that made it great.
If you're using Rexx today on e.g. MacOS or Linux I'd be interested in hearing how that's working for you... My goto for scripting these days would be Python in those environments (or bash).
Re:Consider Rexx for Scripting (2022)
by dhosek on Wednesday December 11, 2024 @03:09PM
(#42392296)
Oh man, I remember using an XEDIT+Rexx email client back in the day on VM/CMS that was mind blowing for its time. The stuff available for Unix and VMS paled in comparison.
But it definitely was the tight integration with XEDIT and the OS that made Rexx so perfect. I don’t think it would work so well for my modern use cases.
Re:Consider Rexx for Scripting (2022)
by xarope on Wednesday December 11, 2024 @10:56PM
(#42396068)
I'd echo what you said, without that ecosystem and integration, perl and python are far better. Personal history: I went from perl in college to REXX because of IBM. However, once I left IBM, I went back to perl and python.
Re:Consider Rexx for Scripting (2022)
by kstrauser on Wednesday December 11, 2024 @02:55PM
(#42392110)
No.
I don't hate REXX. In fact, I had an absolutely grand time using AREXX to script up all kinds of bizarre things on my Amiga, like using the progress percent of an FTP client as the parameter to some image program or another (ImageFX maybe?) to generate a bolt of lightning that grew from one corner of the screen to the opposite as my modem chugged away. It was neat and I love playing with it.
But, outside an environment like that where it was integrated into practically every major program running on the system, I wouldn't want to have to rely on it again. Programming languages that get rid of all the rules impose their own kind of mental overhead, and I'm not smart enough to be 100% detail-oriented 100% of the time.
It was still awfully cool. AppleScript is probably the closest modern, widely available similar language I can think of.
Re:Consider Rexx for Scripting (2022)
by Jtsummers on Wednesday December 11, 2024 @04:45PM
(#42393328)
> I don't know why, but a search on either Bing or Google for "posix shell" points to the older version.
Probably because it's only been out for a few months. I've found Google is fantastic at returning Python 2.6 and Python 3.7 or 3.8 documentation without jumping through hoops in my search terms (if it lists the official documentation at all rather than blogs and random tutorials), but lousy at getting anything current. I imagine they have the same problem with other new material.
Re:Consider Rexx for Scripting (2022)
by somat on Wednesday December 11, 2024 @10:21PM
(#42395890)
Had to look it up but apparently rexx was first released in 1979. My first thought for a contender was the Bourne shell for unix but it too was released in 1979. The earlier Thompson shell(1971) apparently was not really designed for scripting. csh was released with 2bsd in 1978.
But then I got off the unix kick and looked at the xerox alto which had a smalltalk environment and smalltalk was first released in 1972 and I would say that due to it's interactive nature smalltalk is defiantly a scripting language.
But then I looked at lisp, and it is hard to say if lisp is a scripting language, it could have been, however it was invented and implemented before there were really environments to script. but I am still going to give the award to lisp. and from the wikipedia page, I thought this was pretty great.
"According to McCarthy
Steve Russell said, look, why don't I program this eval ...
and I said to him, ho, ho, you're confusing theory with practice,
this eval is intended for reading, not for computing.
But he went ahead and did it.
That is, he compiled the eval in my paper into IBM 704 machine code,
fixing bugs, and then advertised this as a Lisp interpreter, which it certainly was.
So at that point Lisp had essentially the form that it has today ...
"
Re:Consider Rexx for Scripting (2022)
by skissane on Friday December 13, 2024 @05:49AM
(#42407521)
> Had to look it up but apparently rexx was first released in 1979
REXX was designed as successor to two earlier, more cumbersome scripting languages for the IBM VM/CMS operating system, EXEC and its successor EXEC 2. So arguing REXX is the “first” scripting language requires ignoring REXX’s direct ancestors
Re:Consider Rexx for Scripting (2022)
by talideon on Wednesday December 11, 2024 @04:21PM
(#42393107)
These days, Lua is a better alternative. Rexx isn't a bad language, but it's very dated. It's better than recommending BASIC, but only marginally. We have better alternatives these days.
Also, are there any decent embeddable Rexx interpreters around?
Re:Consider Rexx for Scripting (2022)
by graycat on Wednesday December 11, 2024 @07:37PM
(#42394838)
On Windows with .NET, ASP.NET, etc. my 100% scripting language is OORexx (Object Oriented Rexx). It has a good PDF, some advanced object features (often optional, that is, can still just have procedures with arguments, call and return, and scope for variables), claims to run on both Linux and Windows, has some extentions for numerical versions of standard mathematical functions, TCP/IP, etc., and is just awash in functions and objects for working with Windows (can move screen windows, work with file system trees, etc.).
Sure, I can believe that Python is more powerful, and when Rexx and .NET fail me I'll take a look at Python.
I'm programming for my startup which, for one, means that I use tools as useful for my startup -- the main interest, focus, consideration is not the programming tools but the BUSINESS of the startup.
Yes, early in my career, rushed to learn everything could about any programming techniques, tools. While had a good math education, also rushed to learn everything could about details of applications of applied math (statistics, optimization, algorithms, numerical analysis, digital filtering, Monte Carlo simulation, etc.), really soaking up tools ASAP. That DID get a good career going, but eventually concluded that I had to OWN a business, concentrate on the BUSINESS, use the tools as the BUSINESS needed, and maybe even do some original applied math to help the, mentioned, the BUSINESS?
So, Python? Sure, when the business says so.
Rexx? NICE tool for the business.
Favorite editor, indeed, most heavily used tool, Kedit. Once the tight integration between Rexx and Kedit was dropped, Kedit got its own macro language called Kexx -- it doesn't have as much as OORexx but has about all of Rexx that Kedit used.
Re:Consider Rexx for Scripting (2022)
by usr1106 on Thursday December 12, 2024 @03:43AM
(#42397411)
I had now idea REXX still exists. I played a lot with REXX while being a trainee at IBM in 1987/88. I have not used it since and remeber very little. Would there be any reason to prefer it over let's say Python?
Re:Consider Rexx for Scripting (2022)
by yellowapple on Thursday December 12, 2024 @04:34PM
(#42403609)
Articles recommending that I consider a programming language tend to be more compelling for me if they include, you know, an actual example or two of code in that language.
Yes, I can go look at the Rexx Wikipedia page or something, but I shouldn't have to.
(Apropos of nothing else, it seems worth noting that Rexx is a product within IBM's suite and that this website appears to be owned by Red Hat, now an IBM subsidiary.)
But I should check it out, I had Rexx with DOS a long time ago but never looked at it.
OS/2 is the primary environment where I had experience reading and writing REXX a long time ago. I was also aware of it being used in IBM mainframe systems, but I had no direct experience there.
I also used REXX on OS/2 systems including doing some development using Watcom VX-REXX which you can basically think of as Visual Basic but with REXX. I released a GUI FTP program I developed with it to the OS/2 BBS but last I looked couldn't find it in the OS/2 BBS archives.
Interesting to see duck typing advertised as a feature. I feel like the programming world is going strongly in the opposite direction.
Speed of development is a legitimate factor to consider when making a choice of language for a project.
> I feel like the programming world is going strongly in the opposite direction.
There's a concerted corporate effort to push the programming world in that direction. It's not born out of a particularly strong rationale and not backed by the kind of organic efforts that would actually ensure it's long term success.
Meanwhile we have the technology to fully isolate every process on a machine from everything else on the machine. Do we use this? No. Instead we harass programmers to use languages based upon corporate tastes instead of actual engineering acumen. The desktop doesn't get any more secure and opening a random text message can destroy your life regardless of what language the messaging application was coded in.
What are we doing?
Unfortunately, an ecosystem like that doesn't really exist on the desktop any more, so a lot of the utility is missing. Every now and then I feel an urge to try to mimic the sort of thing that you could do in ARexx easily, only on a modern desktop, and end up having to cobble together some D-Bus monstrosity that is not nearly as fun.
If you're using Rexx today on e.g. MacOS or Linux I'd be interested in hearing how that's working for you... My goto for scripting these days would be Python in those environments (or bash).
But it definitely was the tight integration with XEDIT and the OS that made Rexx so perfect. I don’t think it would work so well for my modern use cases.
I don't hate REXX. In fact, I had an absolutely grand time using AREXX to script up all kinds of bizarre things on my Amiga, like using the progress percent of an FTP client as the parameter to some image program or another (ImageFX maybe?) to generate a bolt of lightning that grew from one corner of the screen to the opposite as my modem chugged away. It was neat and I love playing with it.
But, outside an environment like that where it was integrated into practically every major program running on the system, I wouldn't want to have to rely on it again. Programming languages that get rid of all the rules impose their own kind of mental overhead, and I'm not smart enough to be 100% detail-oriented 100% of the time.
It was still awfully cool. AppleScript is probably the closest modern, widely available similar language I can think of.
I'd credit the language for sending me down the rabbit holes of programming language design, self-documenting code, and literate programming. :)
Hopefully the language grammar can be expressed with lex and yacc. Not being so is a problem.
Here is a way to see what is in POSIX.2:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/
To navigate to that same section: Click on "Shell & Utilities" in the top left, then "3. Utilities" in the bottom left.
That's the one that I use.
I also prefer the plain Apache directory list for all the POSIX.2 utilities, so I am definitely sticking with Bing & Google's recommendations.
Probably because it's only been out for a few months. I've found Google is fantastic at returning Python 2.6 and Python 3.7 or 3.8 documentation without jumping through hoops in my search terms (if it lists the official documentation at all rather than blogs and random tutorials), but lousy at getting anything current. I imagine they have the same problem with other new material.
But if you want the current documentation and the Apache listing format: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/
Interesting that the old URL only differs by one character; changing the first 6 to a 7 gets the later list.
"Arguably" sounds mean; who wants to argue?!?!
I would say there are compelling uses. Being a "first general purpose" one? Large claim that is up for a conversation. :)
But then I got off the unix kick and looked at the xerox alto which had a smalltalk environment and smalltalk was first released in 1972 and I would say that due to it's interactive nature smalltalk is defiantly a scripting language.
But then I looked at lisp, and it is hard to say if lisp is a scripting language, it could have been, however it was invented and implemented before there were really environments to script. but I am still going to give the award to lisp. and from the wikipedia page, I thought this was pretty great.
REXX was designed as successor to two earlier, more cumbersome scripting languages for the IBM VM/CMS operating system, EXEC and its successor EXEC 2. So arguing REXX is the “first” scripting language requires ignoring REXX’s direct ancestors
Also, are there any decent embeddable Rexx interpreters around?
What do you recommend in the same conceptual space?
Sure, I can believe that Python is more powerful, and when Rexx and .NET fail me I'll take a look at Python.
I'm programming for my startup which, for one, means that I use tools as useful for my startup -- the main interest, focus, consideration is not the programming tools but the BUSINESS of the startup.
Yes, early in my career, rushed to learn everything could about any programming techniques, tools. While had a good math education, also rushed to learn everything could about details of applications of applied math (statistics, optimization, algorithms, numerical analysis, digital filtering, Monte Carlo simulation, etc.), really soaking up tools ASAP. That DID get a good career going, but eventually concluded that I had to OWN a business, concentrate on the BUSINESS, use the tools as the BUSINESS needed, and maybe even do some original applied math to help the, mentioned, the BUSINESS?
So, Python? Sure, when the business says so.
Rexx? NICE tool for the business.
Favorite editor, indeed, most heavily used tool, Kedit. Once the tight integration between Rexx and Kedit was dropped, Kedit got its own macro language called Kexx -- it doesn't have as much as OORexx but has about all of Rexx that Kedit used.
Yes, I can go look at the Rexx Wikipedia page or something, but I shouldn't have to.