× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, John, for clarifying for me - brain isn't reading things well today!

As to RPG, there is no need to be tied to file IO when working with user spaces. Walking the results of a system API call with a pointer is the simplest thing in the world, and no IO opcodes - just EVALs.

That's just an FYI for any and all - I can't speak to Python, other than I almost misspelled it!

Cheers
Vern

On 2/12/2013 10:18 AM, John Yeung wrote:
On Tue, Feb 12, 2013 at 10:02 AM, Vernon Hamberg
<vhamberg@xxxxxxxxxxxxxxx> wrote:
I'm just curious - which user space APIs are obsolete?
The Python wrappers were ported from an older version of iSeries
Python to the current version of iSeries Python. The old wrappers
still work if you are using the old Python, and indeed I have both
versions installed on my current V5R4 machine at work. The old Python
is not obsolete per se, but the current Python is so much better in so
many respects that I feel it would be a shame to have to tell people
"oh, well, in order to access such-and-such APIs, you have to use the
old Python".

As to difficult, I can't see anything much easier than navigating a user
space with a pointer.
There's some setup involved to access user spaces. What I mean is,
RPG is extremely tightly integrated with physical files and even
provides native opcodes for them in the language; so the setup for
working with files in RPG is much less than for working with user
spaces. True, you can write helpers and wrappers and package them up
in a service program or what have you, so you have to do less setup
after that initial effort.

But you can do the same with Python. Once you have appropriately
wrapped the relevant APIs, it's easy from then on. I would argue that
it is easier to use well-wrapped functionality in Python than
well-wrapped functionality in RPG, and Python's advantage grows the
more complex and dynamic the functionality.

John


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.