Steve Richter wrote: >Phil, > >By a modern language, I mean one that allows modern techniques. > >Strings are defined as a class. All string functions, including "copy" >execute as calls to methods of the string class. In RPG the copy of a >string executes as a single MI CPYBLAP instruction. In C++ the same copy >will execute as a function call, memory alloc, byte by byte copy. Much more >cpu is needed. > I'd sure advocate faster processors, but I seem to disagree with your logic here. I don't think a faster processor is the only solution to a poor compiler. I'd prefer that the software guys tie the C++ string copy to the MI instruction used by RPG. >In a modern language data members of a data structure are "Set" and "Get" >using class methods. In RPG, the data members are accessed directly. > >If you follow this methodology in the design of your appl, you wind up >encapsulating and abstracting all over the place. > >Much more cpu is needed. > I think there is a difference between "consumed" and "needed" and it might not be that it is all needed here. Maybe standard C++ and Java libraries should rely on MI instructions. Otherwise it seems like you are saying, "See, when I used it like a PC server it isn't as good as a PC server." >Steve Richter > -- Chris Rehm firstname.lastname@example.org Beloved, let us love one another: for love is of God; and every one that loveth is born of God, and knoweth God. 1 John 4:7
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.