Shared Variables between 2 APL WS

General APL language issues

Shared Variables between 2 APL WS

Postby PGilbert on Sat Nov 26, 2016 1:56 pm

Is it possible for 2 APL applications running on the same Windows computer to have shared variables that will be common to both applications (like a common namespace) ? If not how to have 2 APL applications talk to each other ?

Thanks in advance,
User avatar
PGilbert
 
Posts: 401
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: Shared Variables between 2 APL WS

Postby Morten|Dyalog on Mon Nov 28, 2016 10:27 am

Hi Pierre!

I believe DDE-based shared variables still work, but I would not recommend DDE at this point in time. Depending on what kind of "talking" you need to do, I think you should look at memory-mapped files (⎕MAP) or CONGA to send TCP messages between APL processes.

Depending on your application architecture you could also use isolates; if one process starts an isolate it appears as a namespace in the parent process, and you can optionally set things up so the isolate can refer to the parent workspace as ##.

Morten
User avatar
Morten|Dyalog
 
Posts: 394
Joined: Tue Sep 09, 2008 3:52 pm

Re: Shared Variables between 2 APL WS

Postby PGilbert on Mon Nov 28, 2016 1:49 pm

Thanks Morten, this is answering my question.
User avatar
PGilbert
 
Posts: 401
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest