home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!UCLAMVS.BITNET!CSYSMAS
- Message-ID: <IBM-MAIN%92122814293609@RICEVM1.RICE.EDU>
- Newsgroups: bit.listserv.ibm-main
- Date: Mon, 28 Dec 1992 12:26:00 PST
- Sender: IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
- From: Michael Stein <CSYSMAS@UCLAMVS.BITNET>
- Subject: Re: Is PL/S a dead language?
- Lines: 51
-
- > In article <IBM-MAIN%92122809414050@RICEVM1.RICE.EDU> "John A. Pershing Jr."
- > <PERSHNG@YKTVMH.BITNET> writes:
- > >good stuff in it -- we really should market this *excellent* systems
- > >programming language! (sigh...)
-
- I don't know if we could afford it, but I'd like to see it marketed.
-
- > Alasdair Grant <ag129@CUS.CAM.AC.UK> writes:
- > From what I've seen of PL/S, it combines all the disadvantages of high-level
- > languages (inability to get down to the bare machine instructions and
- > system macros) with the disadvantages of assembler (inability to do global
- > register allocation and inter-procedural optimisation).
-
- Ha! Exactly backwards. PL/S allows writing a structure which
- you *know* the mapping of, while C doesn't (the C mapping depends
- on the machine and the compiler implementation). The C run time
- environment isn't really well defined (try running C code system
- key, supervisor, SRB mode).
-
- PL/S allows bare machine instructions (in addition to inline
- assembly), ie: MVCL(R2,R4);
-
- PL/S probably does do register optimization (minus the registers
- which the programmer has restricted).
-
- > Most pieces of PL/S I've seen are full of RESPECIFY and
- > references to real registers and real instructions.
-
- I'd agree with that -- most programmers using PL/S don't know
- how to program! Nor how to use PL/S to best effect.
-
- > It even requires you to go to the machine instruction level to
- > do compare-and-swap.
-
- No, I've heard that at least one level of PL/S accepts
- declarations of fields as needing CS and will generate the
- required code. I've never seen any code which uses this though.
- (Again, the programmers probably don't know how to use it...)
-
- > A language that had built-in facilities for queue and counter
- > management in a multitasking environment would be excellent,
- > but PL/S isn't it.
-
- IMNSHO it's a mistake to sprinkle CS/CDS all over a program and
- indicates a poor design. Some CS and CDS usage is required,
- however from what I've seen coded it seems easy to go overboard
- -- CS and CDS use should be minimized by avoiding the updates
- from asynchronous processes first. (Anyway, CS/CDS force a
- pipeline drain and are slooooow compared to normal instructions).
-
- <disclaimer: I've never seen a PL/S manual nor a compiler for it>
-