Re: in-memory editing with EDT or EVE

Liste des GroupesRevenir à co vms 
Sujet : Re: in-memory editing with EDT or EVE
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 25. Nov 2024, 01:27:35
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <6743c477$0$707$14726298@news.sunsite.dk>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 11/23/2024 11:10 PM, Arne Vajhøj wrote:
On 11/23/2024 10:35 PM, Arne Vajhøj wrote:
If somebody have a program that need to allow user to
edit data and the program is VMS specific and the target
editors are EDT and TPU, then maybe doing the edit in
memory makes sense.
>
You can still argue that both subprocess with external editor
and temp file or simple callable editor editor with temp file is
simpler code wise using just the VMS provided API's and
not some wrapper found on the internet.
>
But I like multiple options.
 I just created a JNI wrapper around the callable
editor wrappers.
 So now the Groovy snippets:
 res = Edit.edt("A\nBB\nCCC")
print(res)
 and:
 res = Edit.tpu("A\nBB\nCCC")
print(res)
 work.
And using a normal shareable image and ctypes, then
it also works in Python:
import edit
res = edit.edt('A\nBB\nCCC')
print(res)
and:
import edit
res = edit.tpu('A\nBB\nCCC')
print(res)
https://www.vajhoej.dk/arne/vmsstuff/memedit/ updated
with JVM and Python examples.
Arne

Date Sujet#  Auteur
23 Nov 24 * in-memory editing with EDT or EVE21Arne Vajhøj
23 Nov 24 `* Re: in-memory editing with EDT or EVE20Lawrence D'Oliveiro
23 Nov 24  `* Re: in-memory editing with EDT or EVE19Craig A. Berry
23 Nov 24   +* Re: in-memory editing with EDT or EVE17Dan Cross
23 Nov 24   i`* Re: in-memory editing with EDT or EVE16Craig A. Berry
23 Nov 24   i +* Re: in-memory editing with EDT or EVE14Arne Vajhøj
23 Nov 24   i i+* Re: in-memory editing with EDT or EVE10Craig A. Berry
24 Nov 24   i ii`* Re: in-memory editing with EDT or EVE9Arne Vajhøj
24 Nov 24   i ii +* Re: in-memory editing with EDT or EVE7Craig A. Berry
24 Nov 24   i ii i`* Re: in-memory editing with EDT or EVE6Arne Vajhøj
24 Nov 24   i ii i +* Re: in-memory editing with EDT or EVE4Arne Vajhøj
25 Nov 24   i ii i i`* Re: in-memory editing with EDT or EVE3Arne Vajhøj
25 Nov 24   i ii i i `* Re: in-memory editing with EDT or EVE2Lawrence D'Oliveiro
25 Nov 24   i ii i i  `- Re: in-memory editing with EDT or EVE1Arne Vajhøj
24 Nov 24   i ii i `- Re: in-memory editing with EDT or EVE1Lawrence D'Oliveiro
24 Nov 24   i ii `- Re: in-memory editing with EDT or EVE1Dan Cross
23 Nov 24   i i+- Re: in-memory editing with EDT or EVE1Dan Cross
23 Nov 24   i i`* Re: in-memory editing with EDT or EVE2Lawrence D'Oliveiro
23 Nov 24   i i `- Re: in-memory editing with EDT or EVE1Craig A. Berry
23 Nov 24   i `- Re: in-memory editing with EDT or EVE1Dan Cross
23 Nov 24   `- Re: in-memory editing with EDT or EVE1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal