Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Cogito ergo I'm right and you're wrong." -- Blair Houghton


computers / comp.os.vms / Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

SubjectAuthor
* First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
+* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|`* Re: First ship poll: When will the first native x86-64 compilers shipBill Gunshannon
| +- Re: First ship poll: When will the first native x86-64 compilers ship ?Rich Alderson
| +- Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
| `- Re: First ship poll: When will the first native x86-64 compilersJoukj
+* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|`* Re: First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
| `* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|  +- Re: First ship poll: When will the first native x86-64 compilerschris
|  `* Re: First ship poll: When will the first native x86-64 compilers ship ?John Reagan
|   +* Re: First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
|   |`- Re: First ship poll: When will the first native x86-64 compilers ship ?John Reagan
|   +* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |`* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   | `* Re: First ship poll: When will the first native x86-64Galen
|   |  +* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   |  |`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  | `* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   |  |  `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   +* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   |+* Re: First ship poll: When will the first native x86-64 compilers shipBill Gunshannon
|   |  |   ||+* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   |||`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||| `* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   |||  +* Re: First ship poll: When will the first native x86-64 compilers shipCraig A. Berry
|   |  |   |||  |`* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   |||  | +* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   |  |   |||  | |+- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   |||  | |`- Living with history, was: Re: First ship poll: When will the first native x86-64Simon Clubley
|   |  |   |||  | +- Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   |||  | +- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   |||  | `* Secure data transmission, was: Re: First ship poll: When will the first native xSimon Clubley
|   |  |   |||  |  `- Re: Secure data transmission, was: Re: First ship poll: When will theDave Froble
|   |  |   |||  +* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   |||  |`* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   |||  | `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   |||  |  `- Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   |||  `- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   || `* Re: First ship poll: When will the first native x86-64 compilers shipBill Gunshannon
|   |  |   ||  `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||   +* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   ||   |`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||   | +- Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   |  |   ||   | `* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   ||   |  `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||   |   `* Re: First ship poll: When will the first native x86-64 compilers shipJan-Erik Söderholm
|   |  |   ||   |    +- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||   |    `- Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   |  |   ||   `* Re: First ship poll: When will the first native x86-64 compilers shipBill Gunshannon
|   |  |   ||    `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||     `* Re: First ship poll: When will the first native x86-64 compilers shipBill Gunshannon
|   |  |   ||      +- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   ||      `- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   |`- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
|   |  |   `* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
|   |  |    `* JSON, was: Re: First ship poll: When will the first native x86-64 compilers shipSimon Clubley
|   |  |     `* Re: JSON, was: Re: First ship poll: When will the first native x86-64Arne Vajhøj
|   |  |      `* Re: JSON, was: Re: First ship poll: When will the first native x86-64Jan-Erik Söderholm
|   |  |       `* Re: JSON, was: Re: First ship poll: When will the first native x86-64Arne Vajhøj
|   |  |        +* Re: JSON, was: Re: First ship poll: When will the first native x86-64Richard Maher
|   |  |        |`* Re: JSON, was: Re: First ship poll: When will the first native x86-64Arne Vajhøj
|   |  |        | `* Re: JSON, was: Re: First ship poll: When will the first native x86-64Richard Maher
|   |  |        |  `- Re: JSON, was: Re: First ship poll: When will the first native x86-64Arne Vajhøj
|   |  |        `- Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers Simon Clubley
|   |  `- Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
|   `- Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 +- Re: First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
 +* Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 |+* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 ||`* Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 || `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 ||  `* Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 ||   `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 ||    `- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 |+* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
 ||+- Re: First ship poll: When will the first native x86-64 compilers ship ?John Reagan
 ||`* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 || `* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
 ||  +* Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
 ||  |`* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
 ||  | `* Re: First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
 ||  |  +- Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
 ||  |  `* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble
 ||  |   `* Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 ||  |    `- Re: First ship poll: When will the first native x86-64 compilers shipRichard Maher
 ||  +- Re: First ship poll: When will the first native x86-64 compilers ship ?plugh
 ||  `- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 |+* Re: First ship poll: When will the first native x86-64 compilers ship ?John Reagan
 ||`- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 |+* Re: First ship poll: When will the first native x86-64 compilers ship ?Simon Clubley
 ||+* Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 |||`* Re: First ship poll: When will the first native x86-64 compilers ship ?Rich Alderson
 ||| `* Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 |||  `* Re: First ship poll: When will the first native x86-64 compilers ship ?Rich Alderson
 |||   `- Re: First ship poll: When will the first native x86-64 compilersSingle Stage to Orbit
 ||`- Re: First ship poll: When will the first native x86-64 compilers shipArne Vajhøj
 |+- Re: First ship poll: When will the first native x86-64 compilers ship ?Andreas Eder
 |`* Re: First ship poll: When will the first native x86-64Galen
 `* Re: First ship poll: When will the first native x86-64 compilers shipDave Froble

Pages:12345
Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3j7sd$9rd$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22166&group=comp.os.vms#22166

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Date: Mon, 18 Apr 2022 10:35:25 +0200
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <t3j7sd$9rd$2@dont-email.me>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Apr 2022 08:35:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2e5edf1da9495376842a6b31a29e9697";
logging-data="10093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VtL+UIWJffVsEQw2zhs/B"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:7gGKLbbyjA6aUA5YaxFUK3RQvFY=
In-Reply-To: <625ca24c$0$699$14726298@news.sunsite.dk>
Content-Language: sv
 by: Jan-Erik Söderholm - Mon, 18 Apr 2022 08:35 UTC

Den 2022-04-18 kl. 01:27, skrev Arne Vajhøj:
> On 4/17/2022 6:55 PM, Simon Clubley wrote:
>> On 2022-04-16, Richard Maher <maher_rjSPAMLESS@hotmail.com> wrote:
>>> I work every year with wankers that don't understand relational DBs and
>>> SQL and insist on some shit like Entity Framework to try to turn a table
>>> into a class(es) and other wankers that demand a "model" because they're
>>> upset JSON is just a String :-(
>>
>> But JSON isn't a string. That would be like calling a database just
>> a stream of bytes.
> >
>> The string is just the backing store for the data held within and you
>> certainly do need a parser, and maybe some object model that you can
>> iterate through, to assign meaning to the contents of that string.
>
> Yep.
>
>> Having said that, I do think that sometimes people do go overboard in
>> using whatever is the fashion of the month instead of just a nice simple
>> parser that maybe just builds an object tree that you can iterate through
>> to extract the data you need.
>
> If you use JSON then you do not need to write that parser but can
> just pick one and use it - for almost all languages - and for
> the more popular languages there are multiple parsers to choose from.
>
> Arne
>

We have some Cobol cases where the data sent to "the other side"
was defined as JSON. The structure was fixed and the data parts
all had known and fixed sizes (or could be blank filled), so it
was easy enough to define the JSON structure as a Cobol record
with variables for the data parts and just "fill-in-the-blanks".

I guess that you could call that "a astring". With a special format
but still a (kind of) string.

For some cases (the recevier requested UUID version 4 while VMS
only supports Version 1), so we used Python and the JSON support
it has. On the communication channel (an MQ queue) it is still
a string of characters.

And in another case we got an XML structure, but it had a very
well known format so the data we needed could just be fetched
from well know positions in that "XML string".

So you can very well use JSON or XML *in specific cases*
without the fancy parsers.

I'm not against parsers, of course. In another case we receive
a large and very dynamic XML structure and there the parsing
and looping constructs in Python was very handy to read it.

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<625d5431$0$701$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22167&group=comp.os.vms#22167

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 18 Apr 2022 08:06:04 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
<t3j7sd$9rd$2@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t3j7sd$9rd$2@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 56
Message-ID: <625d5431$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 3b11e638.news.sunsite.dk
X-Trace: 1650283569 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:51519
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 18 Apr 2022 12:06 UTC

On 4/18/2022 4:35 AM, Jan-Erik Söderholm wrote:
> Den 2022-04-18 kl. 01:27, skrev Arne Vajhøj:
>> On 4/17/2022 6:55 PM, Simon Clubley wrote:
>>> Having said that, I do think that sometimes people do go overboard in
>>> using whatever is the fashion of the month instead of just a nice simple
>>> parser that maybe just builds an object tree that you can iterate
>>> through
>>> to extract the data you need.
>>
>> If you use JSON then you do not need to write that parser but can
>> just pick one and use it - for almost all languages - and for
>> the more popular languages there are multiple parsers to choose from.
>
> We have some Cobol cases where the data sent to "the other side"
> was defined as JSON. The structure was fixed and the data parts
> all had known and fixed sizes (or could be blank filled), so it
> was easy enough to define the JSON structure as a Cobol record
> with variables for the data parts and just "fill-in-the-blanks".
>
> I guess that you could call that "a astring". With a special format
> but still a (kind of) string.
>
> For some cases (the recevier requested UUID version 4 while VMS
> only supports Version 1), so we used Python and the JSON support
> it has. On the communication channel (an MQ queue) it is still
> a string of characters.
>
> And in another case we got an XML structure, but it had a very
> well known format so the data we needed could just be fetched
> from well know positions in that "XML string".
>
> So you can very well use JSON or XML *in specific cases*
> without the fancy parsers.
>
> I'm not against parsers, of course. In another case we receive
> a large and very dynamic XML structure and there the parsing
> and looping constructs in Python was very handy to read it.

A parser that actually understand the rules of JSON/XML is
way more robust than a hack.

But obviously one need to do what one need to do. There are
no free JSON parser/generator for Cobol listed at json.org (one
commercial though).

Especially XML can be tricky.

3 years ago for another thread I created this monstrosity:

<a xmlns:df='http://df2'><b
xmlns='http://df1'><x><![CDATA[ABC<x></x>]]></x></b><c
xmlns='http://df2'><x><![CDATA[DEF<x></x>]]></x></c><c
xmlns='http://df3'><x><![CDATA[GHI<x></x>]]></x></c><df:c><df:x><![CDATA[JKL<x></x>]]></df:x></df:c></a>

Arne

Re: First ship poll: When will the first native x86-64 compilers ship ?

<625d56d2$0$696$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22168&group=comp.os.vms#22168

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 18 Apr 2022 08:17:17 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Subject: Re: First ship poll: When will the first native x86-64 compilers ship
?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3d8j7$oko$1@dont-email.me>
<jbvnjoFl7e1U1@mid.individual.net> <625b3e8a$0$697$14726298@news.sunsite.dk>
<jc0vpmFsmpoU1@mid.individual.net> <625b5ed3$0$703$14726298@news.sunsite.dk>
<t3gk45$c9f$1@dont-email.me> <625c47ae$0$701$14726298@news.sunsite.dk>
<t3j755$9rd$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t3j755$9rd$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 92
Message-ID: <625d56d2$0$696$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 3b11e638.news.sunsite.dk
X-Trace: 1650284242 news.sunsite.dk 696 arne@vajhoej.dk/68.9.63.232:51804
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 18 Apr 2022 12:17 UTC

On 4/18/2022 4:23 AM, Jan-Erik Söderholm wrote:
> Den 2022-04-17 kl. 19:00, skrev Arne Vajhøj:
>> On 4/17/2022 4:45 AM, Jan-Erik Söderholm wrote:
>>> Den 2022-04-17 kl. 02:26, skrev Arne Vajhøj:
>>>> On 4/16/2022 6:54 PM, Bill Gunshannon wrote:
>>>>> On 4/16/22 18:09, Arne Vajhøj wrote:
>>>>>> On 4/16/2022 7:28 AM, Bill Gunshannon wrote:
>>>>>>> Like maybe, IBM zSystem running COBOL with CICS and a DB2 backend.
>>>>>>
>>>>>> I don't see that combo as special.
>>>>>>
>>>>>> CGI scripts in Cobol or PL/I would require the developers
>>>>>> to write maybe 10 times as much code and the result would
>>>>>> perform really bad.
>>>>>>
>>>>>> Java or Python frontend calling C wrapper calling Cobol
>>>>>> or PL/I code may be doable, but comes with a lot of risks
>>>>>> due to potentially incompatible threading/transactional/whatever
>>>>>> models.
>>>>>
>>>>> Why would you need all of that?  COBOL does CICS and CICS does
>>>>> the web.  No extra code required.
>>>>
>>>> That sounds pretty easy.
>>>>
>>>> But if we assume RESTful web services which are by far the
>>>> most common today.
>>>>
>>>> 1) How does CICS know the right URL to assign to a resource?
>>>> 2) How does CICS know whether to use path or query URL?
>>>> 3) How does CICS know whether to do XML or JSON or both?
>>>> 4) How does CICS know whether to do CORS?
>>>>
>>>
>>> You use CWS. Google "cics web service". CWS gives access
>>> to the usual tools used in web services programming.
>>>
>>> I did CICS/Cobol/DB2 development including CWS approx.
>>> 20 years ago. At that time to build common web pages but
>>> it seems to have evolved to include other functionallity.
>>
>> I get that there is a web server.
>>
>> I get that there are some Cobol code doing something.
>>
>> What I don't get is how the web server end up exposing the
>> right API.
>>
>> I know how ones does it in Java and C# - using annotations/attributes
>> in the application code to define it.
>
> A lot of that is done outside of the application code. It is
> configurations in the web parts in CWS. I'm not really sure there,
> someone else did the web related parts and we (the Cobol guys) was
> given some functions to call for the web releated parts. Or descriptions
> on how our code was going to be called by the CWS for the "web services".

My point is that somehow the application code need to describe the
web service to be exposed.

For a RESTful web service the mapping of URL's to methods/functions,
whether to consume/produce XML or JSON or both, mapping of data
structure to specific XML/JSON formats. If supporting browsers
also the CORS handling.

A SOAP contract first web service will also require mapping.

A SOAP code first web service may require relative little mapping. But
a language without reflection support will need the source code to
be present.

>> I have seen examples of how it is done in PHP and Python - setting up
>> callbacks.
>>
>> I cannot see how that CICS web server can figure that out with
>> no code changes.
>
> No code changes in what code? There was no code to change. This
> was new web-enabled code. What do you mean with a "code change"?
>
> Well, the Cobol code calls the APis that CWS provides, of course.

I was referring to this by Bill:

"COBOL does CICS and CICS does the web. No extra code required."

If the Cobol code make calls that hook it into the web server then
it is a totally different story.

Arne

Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3jmav$p9u$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22169&group=comp.os.vms#22169

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: First ship poll: When will the first native x86-64 compilers ship
?
Date: Mon, 18 Apr 2022 14:42:07 +0200
Organization: A noiseless patient Spider
Lines: 107
Message-ID: <t3jmav$p9u$1@dont-email.me>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3d8j7$oko$1@dont-email.me>
<jbvnjoFl7e1U1@mid.individual.net> <625b3e8a$0$697$14726298@news.sunsite.dk>
<jc0vpmFsmpoU1@mid.individual.net> <625b5ed3$0$703$14726298@news.sunsite.dk>
<t3gk45$c9f$1@dont-email.me> <625c47ae$0$701$14726298@news.sunsite.dk>
<t3j755$9rd$1@dont-email.me> <625d56d2$0$696$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Apr 2022 12:42:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2e5edf1da9495376842a6b31a29e9697";
logging-data="25918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0/ehZZRVk6aHS2CKwDeut"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:W3US+rbJ+xl1RguirFm3FtxsyWY=
In-Reply-To: <625d56d2$0$696$14726298@news.sunsite.dk>
Content-Language: sv
 by: Jan-Erik Söderholm - Mon, 18 Apr 2022 12:42 UTC

Den 2022-04-18 kl. 14:17, skrev Arne Vajhøj:
> On 4/18/2022 4:23 AM, Jan-Erik Söderholm wrote:
>> Den 2022-04-17 kl. 19:00, skrev Arne Vajhøj:
>>> On 4/17/2022 4:45 AM, Jan-Erik Söderholm wrote:
>>>> Den 2022-04-17 kl. 02:26, skrev Arne Vajhøj:
>>>>> On 4/16/2022 6:54 PM, Bill Gunshannon wrote:
>>>>>> On 4/16/22 18:09, Arne Vajhøj wrote:
>>>>>>> On 4/16/2022 7:28 AM, Bill Gunshannon wrote:
>>>>>>>> Like maybe, IBM zSystem running COBOL with CICS and a DB2 backend.
>>>>>>>
>>>>>>> I don't see that combo as special.
>>>>>>>
>>>>>>> CGI scripts in Cobol or PL/I would require the developers
>>>>>>> to write maybe 10 times as much code and the result would
>>>>>>> perform really bad.
>>>>>>>
>>>>>>> Java or Python frontend calling C wrapper calling Cobol
>>>>>>> or PL/I code may be doable, but comes with a lot of risks
>>>>>>> due to potentially incompatible threading/transactional/whatever
>>>>>>> models.
>>>>>>
>>>>>> Why would you need all of that?  COBOL does CICS and CICS does
>>>>>> the web.  No extra code required.
>>>>>
>>>>> That sounds pretty easy.
>>>>>
>>>>> But if we assume RESTful web services which are by far the
>>>>> most common today.
>>>>>
>>>>> 1) How does CICS know the right URL to assign to a resource?
>>>>> 2) How does CICS know whether to use path or query URL?
>>>>> 3) How does CICS know whether to do XML or JSON or both?
>>>>> 4) How does CICS know whether to do CORS?
>>>>>
>>>>
>>>> You use CWS. Google "cics web service". CWS gives access
>>>> to the usual tools used in web services programming.
>>>>
>>>> I did CICS/Cobol/DB2 development including CWS approx.
>>>> 20 years ago. At that time to build common web pages but
>>>> it seems to have evolved to include other functionallity.
>>>
>>> I get that there is a web server.
>>>
>>> I get that there are some Cobol code doing something.
>>>
>>> What I don't get is how the web server end up exposing the
>>> right API.
>>>
>>> I know how ones does it in Java and C# - using annotations/attributes
>>> in the application code to define it.
>>
>> A lot of that is done outside of the application code. It is
>> configurations in the web parts in CWS. I'm not really sure there,
>> someone else did the web related parts and we (the Cobol guys) was
>> given some functions to call for the web releated parts. Or descriptions
>> on how our code was going to be called by the CWS for the "web services".
>
> My point is that somehow the application code need to describe the
> web service to be exposed.
>
> For a RESTful web service the mapping of URL's to methods/functions,
> whether to consume/produce XML or JSON or both, mapping of data
> structure to specific XML/JSON formats. If supporting browsers
> also the CORS handling.
>
> A SOAP contract first web service will also require mapping.
>
> A SOAP code first web service may require relative little mapping. But
> a language without reflection support will need the source code to
> be present.
>
>>> I have seen examples of how it is done in PHP and Python - setting up
>>> callbacks.
>>>
>>> I cannot see how that CICS web server can figure that out with
>>> no code changes.
>>
>> No code changes in what code? There was no code to change. This
>> was new web-enabled code. What do you mean with a "code change"?
> >
>> Well, the Cobol code calls the APis that CWS provides, of course.
>
> I was referring to this by Bill:
>
> "COBOL does CICS and CICS does the web.  No extra code required."
>
> If the Cobol code make calls that hook it into the web server then
> it is a totally different story.
>
> Arne
>

No idea what Bill wrote about. We used CWS, which is not a full blown
"web server", as I understand. It just gives the services needed for
CICS applications to respond to requests comming "from the web".

I might wery well be that Bill used CWS without knowing it.

And note this didn't use SOAP/XML/JSON or such, just usual GET/POST
HTTP calls from browsers. And CWS presented the CGI data to the
Cobol applications. Worked just fine. But it was 15-20 years ago.

>

Re: First ship poll: When will the first native x86-64 compilers ship ?

<625d5fbf$0$703$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22170&group=comp.os.vms#22170

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.samoylyk.net!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 18 Apr 2022 08:55:22 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Subject: Re: First ship poll: When will the first native x86-64 compilers ship
?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3d8j7$oko$1@dont-email.me>
<jbvnjoFl7e1U1@mid.individual.net> <625b3e8a$0$697$14726298@news.sunsite.dk>
<jc0vpmFsmpoU1@mid.individual.net> <625b5ed3$0$703$14726298@news.sunsite.dk>
<t3gk45$c9f$1@dont-email.me> <625c47ae$0$701$14726298@news.sunsite.dk>
<t3j755$9rd$1@dont-email.me> <625d56d2$0$696$14726298@news.sunsite.dk>
<t3jmav$p9u$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t3jmav$p9u$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 36
Message-ID: <625d5fbf$0$703$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 3b11e638.news.sunsite.dk
X-Trace: 1650286527 news.sunsite.dk 703 arne@vajhoej.dk/68.9.63.232:54171
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 18 Apr 2022 12:55 UTC

On 4/18/2022 8:42 AM, Jan-Erik Söderholm wrote:
> Den 2022-04-18 kl. 14:17, skrev Arne Vajhøj:
>> On 4/18/2022 4:23 AM, Jan-Erik Söderholm wrote:
>>> Den 2022-04-17 kl. 19:00, skrev Arne Vajhøj:
>>>> I cannot see how that CICS web server can figure that out with
>>>> no code changes.
>>>
>>> No code changes in what code? There was no code to change. This
>>> was new web-enabled code. What do you mean with a "code change"?
>>  >
>>> Well, the Cobol code calls the APis that CWS provides, of course.
>>
>> I was referring to this by Bill:
>>
>> "COBOL does CICS and CICS does the web.  No extra code required."
>>
>> If the Cobol code make calls that hook it into the web server then
>> it is a totally different story.
>
> No idea what Bill wrote about. We used CWS, which is not a full blown
> "web server", as I understand. It just gives the services needed for
> CICS applications to respond to requests comming "from the web".
>
> I might wery well be that Bill used CWS without knowing it.
>
> And note this didn't use SOAP/XML/JSON or such, just usual GET/POST
> HTTP calls from browsers. And CWS presented the CGI data to the
> Cobol applications. Worked just fine. But it was 15-20 years ago.

application/x-www-form-urlencoded is usually associated with web
pages but it can be used by web services, but definitely old
fashioned in 2022.

Arne

Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3kq61$c6n$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22181&group=comp.os.vms#22181

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!Z2wJcTGr7+4uJc/ppON/rA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: First ship poll: When will the first native x86-64 compilers ship
?
Date: Tue, 19 Apr 2022 06:53:56 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t3kq61$c6n$1@gioia.aioe.org>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3d8j7$oko$1@dont-email.me>
<jbvnjoFl7e1U1@mid.individual.net> <625b3e8a$0$697$14726298@news.sunsite.dk>
<jc0vpmFsmpoU1@mid.individual.net> <625b5ed3$0$703$14726298@news.sunsite.dk>
<t3gk45$c9f$1@dont-email.me> <625c47ae$0$701$14726298@news.sunsite.dk>
<t3j755$9rd$1@dont-email.me> <625d56d2$0$696$14726298@news.sunsite.dk>
<t3jmav$p9u$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12503"; posting-host="Z2wJcTGr7+4uJc/ppON/rA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Richard Maher - Mon, 18 Apr 2022 22:53 UTC

> No idea what Bill wrote about. We used CWS, which is not a full
> blown "web server", as I understand. It just gives the services
> needed for CICS applications to respond to requests comming "from the
> web".
>

Luxury! How long have VMS 3GLs waited for such succor/manna?

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3kqb7$c6n$2@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22182&group=comp.os.vms#22182

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!Z2wJcTGr7+4uJc/ppON/rA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Date: Tue, 19 Apr 2022 06:56:42 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t3kqb7$c6n$2@gioia.aioe.org>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
<t3j7sd$9rd$2@dont-email.me> <625d5431$0$701$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="12503"; posting-host="Z2wJcTGr7+4uJc/ppON/rA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Mon, 18 Apr 2022 22:56 UTC

On 18/04/2022 8:06 pm, Arne Vajhøj wrote:
> On 4/18/2022 4:35 AM, Jan-Erik Söderholm wrote:
>> Den 2022-04-18 kl. 01:27, skrev Arne Vajhøj:
>>> On 4/17/2022 6:55 PM, Simon Clubley wrote:
>>>> Having said that, I do think that sometimes people do go overboard in
>>>> using whatever is the fashion of the month instead of just a nice
>>>> simple
>>>> parser that maybe just builds an object tree that you can iterate
>>>> through
>>>> to extract the data you need.
>>>
>>> If you use JSON then you do not need to write that parser but can
>>> just pick one and use it - for almost all languages - and for
>>> the more popular languages there are multiple parsers to choose from.
>>
>> We have some Cobol cases where the data sent to "the other side"
>> was defined as JSON. The structure was fixed and the data parts
>> all had known and fixed sizes (or could be blank filled), so it
>> was easy enough to define the JSON structure as a Cobol record
>> with variables for the data parts and just "fill-in-the-blanks".
>>
>> I guess that you could call that "a astring". With a special format
>> but still a (kind of) string.
>>
>> For some cases (the recevier requested UUID version 4 while VMS
>> only supports Version 1), so we used Python and the JSON support
>> it has. On the communication channel (an MQ queue) it is still
>> a string of characters.
>>
>> And in another case we got an XML structure, but it had a very
>> well known format so the data we needed could just be fetched
>> from well know positions in that "XML string".
>>
>> So you can very well use JSON or XML *in specific cases*
>> without the fancy parsers.
>>
>> I'm not against parsers, of course. In another case we receive
>> a large and very dynamic XML structure and there the parsing
>> and looping constructs in Python was very handy to read it.
>
> A parser that actually understand the rules of JSON/XML is
> way more robust than a hack.
>
> But obviously one need to do what one need to do. There are
> no free JSON parser/generator for Cobol listed at json.org (one
> commercial though).
>
> Especially XML can be tricky.
>
> 3 years ago for another thread I created this monstrosity:
>
> <a xmlns:df='http://df2'><b
> xmlns='http://df1'><x><![CDATA[ABC<x></x>]]></x></b><c
> xmlns='http://df2'><x><![CDATA[DEF<x></x>]]></x></c><c
> xmlns='http://df3'><x><![CDATA[GHI<x></x>]]></x></c><df:c><df:x><![CDATA[JKL<x></x>]]></df:x></df:c></a>
>
>
> Arne
>

What percentage of web services pass data via XML?

A: Bugger all!

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<625df597$0$693$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22184&group=comp.os.vms#22184

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 18 Apr 2022 19:34:43 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
<t3j7sd$9rd$2@dont-email.me> <625d5431$0$701$14726298@news.sunsite.dk>
<t3kqb7$c6n$2@gioia.aioe.org>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t3kqb7$c6n$2@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 55
Message-ID: <625df597$0$693$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 77c15f96.news.sunsite.dk
X-Trace: 1650324887 news.sunsite.dk 693 arne@vajhoej.dk/68.9.63.232:52394
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 18 Apr 2022 23:34 UTC

On 4/18/2022 6:56 PM, Richard Maher wrote:
> On 18/04/2022 8:06 pm, Arne Vajhøj wrote:
>> On 4/18/2022 4:35 AM, Jan-Erik Söderholm wrote:
>>> Den 2022-04-18 kl. 01:27, skrev Arne Vajhøj:
>>>> If you use JSON then you do not need to write that parser but can
>>>> just pick one and use it - for almost all languages - and for
>>>> the more popular languages there are multiple parsers to choose from.
>>>
>>> We have some Cobol cases where the data sent to "the other side"
>>> was defined as JSON. The structure was fixed and the data parts
>>> all had known and fixed sizes (or could be blank filled), so it
>>> was easy enough to define the JSON structure as a Cobol record
>>> with variables for the data parts and just "fill-in-the-blanks".

>>> And in another case we got an XML structure, but it had a very
>>> well known format so the data we needed could just be fetched
>>> from well know positions in that "XML string".
>>>
>>> So you can very well use JSON or XML *in specific cases*
>>> without the fancy parsers.
>>>
>>> I'm not against parsers, of course. In another case we receive
>>> a large and very dynamic XML structure and there the parsing
>>> and looping constructs in Python was very handy to read it.
>>
>> A parser that actually understand the rules of JSON/XML is
>> way more robust than a hack.
>>
>> But obviously one need to do what one need to do. There are
>> no free JSON parser/generator for Cobol listed at json.org (one
>> commercial though).
>>
>> Especially XML can be tricky.
>>
>> 3 years ago for another thread I created this monstrosity:
>>
>> <a xmlns:df='http://df2'><b
>> xmlns='http://df1'><x><![CDATA[ABC<x></x>]]></x></b><c
>> xmlns='http://df2'><x><![CDATA[DEF<x></x>]]></x></c><c
>> xmlns='http://df3'><x><![CDATA[GHI<x></x>]]></x></c><df:c><df:x><![CDATA[JKL<x></x>]]></df:x></df:c></a>
>
> What percentage of web services pass data via XML?
>
> A: Bugger all!

JSON is by far most common today.

But XML still happens.

And relative easy to support both with most frameworks (declarative).

Arne

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3ktq1$nt2$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22185&group=comp.os.vms#22185

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?
Date: Mon, 18 Apr 2022 23:55:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <t3ktq1$nt2$1@dont-email.me>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org> <t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org> <9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com> <t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org> <t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org> <625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org> <6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org> <t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk> <t3j7sd$9rd$2@dont-email.me> <625d5431$0$701$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Apr 2022 23:55:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="91df21774bcde50926cd078eef53e84e";
logging-data="24482"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uiv0QGS+ZmL7xslxBZjWEI9NuqZYp4Sc="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:YUJ/vkh72ObpsaYTNTw4tBGkORE=
 by: Simon Clubley - Mon, 18 Apr 2022 23:55 UTC

On 2022-04-18, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> 3 years ago for another thread I created this monstrosity:
>
><a xmlns:df='http://df2'><b
> xmlns='http://df1'><x><![CDATA[ABC<x></x>]]></x></b><c
> xmlns='http://df2'><x><![CDATA[DEF<x></x>]]></x></c><c
> xmlns='http://df3'><x><![CDATA[GHI<x></x>]]></x></c><df:c><df:x><![CDATA[JKL<x></x>]]></df:x></df:c></a>
>

I fully agree with you Arne.

That example above is indeed a monstrosity. :-)

I don't suppose you happen to remember what you were on when you
wrote it ? :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<t3l2a5$l8t$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22190&group=comp.os.vms#22190

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!Z2wJcTGr7+4uJc/ppON/rA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Date: Tue, 19 Apr 2022 09:12:39 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t3l2a5$l8t$1@gioia.aioe.org>
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
<t3j7sd$9rd$2@dont-email.me> <625d5431$0$701$14726298@news.sunsite.dk>
<t3kqb7$c6n$2@gioia.aioe.org> <625df597$0$693$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="21789"; posting-host="Z2wJcTGr7+4uJc/ppON/rA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Tue, 19 Apr 2022 01:12 UTC

On 19/04/2022 7:34 am, Arne Vajhøj wrote:
> On 4/18/2022 6:56 PM, Richard Maher wrote:
>> On 18/04/2022 8:06 pm, Arne Vajhøj wrote:
>>> On 4/18/2022 4:35 AM, Jan-Erik Söderholm wrote:
>>>> Den 2022-04-18 kl. 01:27, skrev Arne Vajhøj:
>>>>> If you use JSON then you do not need to write that parser but
>>>>> can just pick one and use it - for almost all languages - and
>>>>> for the more popular languages there are multiple parsers to
>>>>> choose from.
>>>>
>>>> We have some Cobol cases where the data sent to "the other
>>>> side" was defined as JSON. The structure was fixed and the data
>>>> parts all had known and fixed sizes (or could be blank filled),
>>>> so it was easy enough to define the JSON structure as a Cobol
>>>> record with variables for the data parts and just
>>>> "fill-in-the-blanks".
>
>>>> And in another case we got an XML structure, but it had a very
>>>> well known format so the data we needed could just be fetched
>>>> from well know positions in that "XML string".
>>>>
>>>> So you can very well use JSON or XML *in specific cases*
>>>> without the fancy parsers.
>>>>
>>>> I'm not against parsers, of course. In another case we receive
>>>> a large and very dynamic XML structure and there the parsing
>>>> and looping constructs in Python was very handy to read it.
>>>
>>> A parser that actually understand the rules of JSON/XML is way
>>> more robust than a hack.
>>>
>>> But obviously one need to do what one need to do. There are no
>>> free JSON parser/generator for Cobol listed at json.org (one
>>> commercial though).
>>>
>>> Especially XML can be tricky.
>>>
>>> 3 years ago for another thread I created this monstrosity:
>>>
>>> <a xmlns:df='http://df2'><b
>>> xmlns='http://df1'><x><![CDATA[ABC<x></x>]]></x></b><c
>>> xmlns='http://df2'><x><![CDATA[DEF<x></x>]]></x></c><c
>>> xmlns='http://df3'><x><![CDATA[GHI<x></x>]]></x></c><df:c><df:x><![CDATA[JKL<x></x>]]></df:x></df:c></a>
>>>
>>
>>
>> What percentage of web services pass data via XML?
>>
>> A: Bugger all!
>
> JSON is by far most common today.
>
> But XML still happens.
>
> And relative easy to support both with most frameworks
> (declarative).
>
> Arne

Easy "relative" to what??? 2 nights in a Turkish prison?

SOAP is dead!! WS-Trans is dead! Ws-Auth is DEAD!
>
>
>

Re: JSON, was: Re: First ship poll: When will the first native x86-64 compilers ship ?

<625e0fa9$0$701$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=22191&group=comp.os.vms#22191

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 18 Apr 2022 21:26:02 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Subject: Re: JSON, was: Re: First ship poll: When will the first native x86-64
compilers ship ?
Content-Language: en-US
Newsgroups: comp.os.vms
References: <t2slrj$lli$3@dont-email.me> <t2vsh4$tvo$2@gioia.aioe.org>
<t318at$92b$2@dont-email.me> <t356ku$1vpp$1@gioia.aioe.org>
<9688fb78-27ee-45e7-94a7-ed9d2d201a78n@googlegroups.com>
<t37qam$ng5$1@dont-email.me> <t37u3r$c10$1@gioia.aioe.org>
<t3alpj$afh$1@gioia.aioe.org> <t3b794$1fjo$1@gioia.aioe.org>
<625968ac$0$696$14726298@news.sunsite.dk> <t3cudv$rur$1@gioia.aioe.org>
<6259ff0c$0$707$14726298@news.sunsite.dk> <t3flgt$1rht$1@gioia.aioe.org>
<t3i5tg$ccb$1@dont-email.me> <625ca24c$0$699$14726298@news.sunsite.dk>
<t3j7sd$9rd$2@dont-email.me> <625d5431$0$701$14726298@news.sunsite.dk>
<t3kqb7$c6n$2@gioia.aioe.org> <625df597$0$693$14726298@news.sunsite.dk>
<t3l2a5$l8t$1@gioia.aioe.org>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <t3l2a5$l8t$1@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 26
Message-ID: <625e0fa9$0$701$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 06223e9d.news.sunsite.dk
X-Trace: 1650331562 news.sunsite.dk 701 arne@vajhoej.dk/68.9.63.232:58730
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Tue, 19 Apr 2022 01:26 UTC

On 4/18/2022 9:12 PM, Richard Maher wrote:
> On 19/04/2022 7:34 am, Arne Vajhøj wrote:
>> On 4/18/2022 6:56 PM, Richard Maher wrote:
>>> What percentage of web services pass data via XML?
>>>
>>> A: Bugger all!
>>
>> JSON is by far most common today.
>>
>> But XML still happens.
>>
>> And relative easy to support both with most frameworks
>> (declarative).
>
> Easy "relative" to what??? 2 nights in a Turkish prison?
>
> SOAP is dead!! WS-Trans is dead! Ws-Auth is DEAD!

Some SOAP services still exist.

A lot of RESTful services support both XML and JSON.

There may even be some XML-RPC out there still.

Arne

Pages:12345
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor