Java is a disaster on the AS400. And Charles I apology for the response you
got from Kelly Beard. Was inappropriate in my opinion. Have had much help
from the nicer folks on this site. They overall are a great bunch of
programmers with the common goal to help each other. And promote the best
computer system ever built. Personally I could sell the IBM i, AS400, or
whatever the folks who never wrote a line of code in their life that are
running IBM if given the chance.

In 2006 at the Northeast Users conference in Framingham, MA I told the head
of IBM Rochester, MN - in front of the entire dinner they had on Thursday
night - that if God had used the same marketing plan for SEX that IBM was
using for the AS400 we might have three people in the room instead of over
one hundred. Everyone stood and clapped.

On Fri, Jul 10, 2020 at 2:50 PM Charles Wilt <charles.wilt@xxxxxxxxx> wrote:

We've had bad experiences with Java...
30+ MB of memory usage for the JVM doesn't sound so bad until you multiply
it by 10,000 interactive users ;)
(and yes we are familiar with the idea of using Java in a batch program
processing requests off a queue)

Couldn't find any existing C code.

Actually the changes required for the C++ code don't look that bad.

Charles


On Fri, Jul 10, 2020 at 12:55 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:

Have you looked for similar tools in Java or C? Both of those can be
invoked directly.

I'm assuming that modifying the C++ to avoid the syntax issues is too big
a task?



On Jul 10, 2020, at 12:21 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

"You're surprised by this?"

A little yeah, I expected it to be behind...but 9+ years? :o

No, we don't do much C++, none in fact. But I'd really like to have
URI
Templating functionality https://en.wikipedia.org/wiki/URL_Template in
RPG
and since there were some existing C++, I thought it'd be worthwhile to
see
if we could port one over.

Charles


On Fri, Jul 10, 2020 at 7:35 AM Kelly Beard <kenverybigliar@xxxxxxxxx>
wrote:

You're surprised by this? :-) Not to sound rude or condescending,
but
you, like most everyone else in the universe, probably don't do a lot
of
C++ work on the 400. Unfortunately, we do. We're on V7R3 here. IBM
is
not even on C++11, technically, but on C++0x, and you have to, for
some reason, enable a command option to get that going. Only God in
Heaven
knows why they cannot stay current. I suspect that maybe the OS is
written
with whatever C++ was in force at the time and so that is what we're
stuck
with, but that's only my uneducated guess.

How many lines is this utility? Probably originally written on a
Linux
system with g++?

On Thu, Jul 9, 2020 at 5:06 PM Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

So we're trying to port a small C++ utility to ILE...

One of the compile errors is on the following...
for(auto& ele : inVars)

Apparently this the "for each" loop which was added to C++ in
2011...(aka
C++11)

We're on v7.2, but even the v7.4 manual doesn't show it as valid.

Looks like C++ on the IBM i include part of the C+11 standards, but
not
yet
all. And of course C++14 and C++17 are nowhere to be found.

Bit surprised the i is so far behind the times, but I suppose most
don't
use ILE C/C++...

Charles
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries)
(C400-L)
mailing list
To post a message email: C400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

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



--
Kelly Beard
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L)
mailing list
To post a message email: C400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

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

--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L)
mailing list
To post a message email: C400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

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

--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L)
mailing list
To post a message email: C400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

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

--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L)
mailing list
To post a message email: C400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

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


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2020 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].