|
Steve Richter wrote:
As for moving RPG programs into Java, it's certainly possible, but one must consider the benefits. Generally the things RPG is used for are pretty specific and pretty much exactly what RPG as a language targets doing well. If you're not using any native data access and all you're doing is SQL then probably RPG isn't doing much for you that you couldn't do equally well in Java. The true power of RPG, I feel, is that it is very good at doing the thengs it specializes in. RPG cycle programming, if you understand how to do it properly and when it's appropriate, is probably the easiest and fastest way to generate a report, do mass updates, or run a batch cycle which processes lots of large sets of records.On 8/21/05, Kyle Goodwin <goodwink@xxxxxxxxxxxxxx> wrote:Steve Richter wrote:The reason is managed code. Managed code allows the programmer to do two core functions with ease. Return an object from a function call without the necessity of copying all the bytes of the object ( in c# you return a reference to the object. in traditional languages like c++ and rpg you return a copy of the object ). By the same mechanism, managed code allows an object to be added and removed from a collection or list without the performance penalty of having to copy the object.You can easily return a reference to an object in C or C++ via a pointer (*) or in C++ specifically via a reference (&). You can remove a member from a list/collection by unlinking its pointers from the list and returning a pointer to the object if you want to use it or using "delete" on it if you just want to deallocate it. Neither of these require copying the object. None of the things you mention here are properties of "managed code." What managed code does for you, basically, is handle the memory allocation/deallocation dynamically without your having to invoke new, malloc, delete, or free.I dont know Java but in c# you certainly have to "new" each object. In C++ you use smart pointers to do what managed code handlesautomatically. We can argue this if you want but the proof for me is the fact that just about all the windows c++ application programmers have switched to c#. c++ .net handles managed code very well. The ease with which c# exposes the features of managed code trumps all the bells and whistles that c++ provides. Java no doubt is in the same league as c# as a great language. Can I move my rpg sql programming to java? -Steve
-- Kyle S. Goodwin Extensicom LLC
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.