× 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.



For compiled languages like RPG I don't really see a difference. The "standard library" in such languages is typically built in to the language. (EXFMT, READE, etc.) and it is implemented via run time components.

To me it is really pretty simple. If I can run the program without the compiler/intepreter on the box then any "library" routines are part of the run time components supplied with the OS. That is the case with these RPG functions. All the Service Programs that implement the features are delivered as part of the OS

Languages like Python, Java, PHP, node.js etc. have a heritage in the world of interpreted languages and have very different mechanisms for delivering library functions. In those cases one might consider the engine itself to be the run time component,

It really doesn't matter one way or the other.


Jon

On Apr 17, 2021, at 7:38 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:

On Sat, Apr 17, 2021 at 12:55 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

It is a little naive perhaps.

FOR-EACH, %LIST, etc. are easily accomplished by code gen. The underlying code is in place for all of them - they are just syntactic constructs on top of simple conventional operations.

Many features like %DEC use run time procedures - you wouldn't do code gen for that. Same applies to %SPLIT (for example) that is going to be a call to a procedure, no way you would do code gen and duplicate it in each and every program that used it.

So my naivety is that I have a different concept of what "runtime"
entails. But it's also the case that this is an inherently fuzzy term,
with different language implementations putting different kinds of
"stuff" into their respective "runtimes".

In particular, there are functions which in some language
implementations would be considered part of the "standard library" but
in others would be part of the runtime. As far as I know, RPG doesn't
even have a standard library to speak of, so it makes sense that there
would be a whole bunch of "library-ish" functions that go into the
runtime.

John Y.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.