« first day (1395 days earlier)      last day (1264 days later) » 

7:43 AM
@Adám Dear Adám, do you have this 1974 book at Dyalog's library ? "My Electronic Psychiatrist – Eight Authentic Talks with a Computer" The author would have written an ELIZA-like program in APL and used it for computational literature purpose (from the wikipedia page on ELIZA ). I wonder if a digital copy of book could be put in softwarepreservation.org/projects/apl/APLSoftware ?
To all APLers fond of APL history. Are there any other examples of chatterbots written in APL ?
 
@brgal I don't remember seeing it there, but I'll forward your question to someone that actually goes to the office these days. (I'm holed up in London.)
 
@Adám Thanks a lot !
 
@brgal I wrote one about 20 years ago. And yes, inspired by ELIZA. It was apparently good enough to convince multiple people for several minutes each.
 
@Adám Do you plan to archive it on aplwiki.com ?
 
I doubt I can find the code.
 
7:50 AM
@Adám haha maybe a future problem for the APL competition !
 
:-D Hard to judge, though.
 
8:06 AM
> My Electronic Psychiatrist: Eight Authentic Talks with a Computer, E. Levin-Epstein - Modan, 1974; Babel, 2001 [Ha-Psichiyater Ha-Elektroni Sheli: Shmone Sichot Otentiyot Im Machshev] source
 
 
2 hours later…
9:56 AM
@Adám A very hard to find/borrow/buy book. At least cool to know APL was used as early as 1974 for computational literature experiments. In France, APL was also used for the same purpose by the OULIPO (markwolff.name/wp/digital-humanities-2/oulipian-code). One day, I will try to create an aplwiki entry for APL in computational literature.
 
@brgal My father may even have been involved. He left IBM development labs in '72, with a psychology research grant from IBM to study the use of computers in modelling human behaviour. He ended up teaching APL at the Hebrew University of Jerusalem.
 
@Adám so your father may have met the poet David Avidan for discussion about APL !
 
Yup.
 
10:17 AM
@Adám TryAPL - nice. No ]box?
 
@xpqz Always on.
 
Really? Not for me, or maybe it's that I'm always using the excessive styles..
      ↑(1 2 3)(2 2 2)
1 2 3
2 2 2
      +/↑(1 2 3)(2 2 2)
6 6
      +⌿↑(1 2 3)(2 2 2)
3 4 5
      ⍴0
 
needs enclosing right
 
@xpqz Yeah, it is fixed at -style=min, but you can use ]display
 
 
5 hours later…
2:53 PM
Do I need to use ⎕NS when using ]Link? I'm trying to save stuff in a file for the first time and I'm not quite sure what the best way to go about it is
 
@rak1507 What kind of thing are you trying to save?
 
I'd like to be able to store some large arrays in a file
Well, 512 elements, I guess that's medium ish
 
And the arrays currently live where?
 
In a python script
 
Oh, wait, you want to import arrays from the Python script to APL?
 
3:02 PM
Nah, just copy paste them into a separate file, that and some helper functions I'll write as well (in APL)
 
So they'll be JSON, no?
 
That would work
 
myarray←0⎕JSON⊃⎕NGET'path/to/file.json'
 
Is there not an .apla file type or something for storing arrays?
 
Yes, but first you have to get the data into APL.
Then you can use Link:
 
3:06 PM
Ah right yeah, thanks
 
]create myns /path/to/repo
]add myarray
This should create /path/to/repo/myarray.apla
However, if you modify the array on the APL side, Link won't write changes back to the file until you do ]add again
If you want to do this under program control, use ⎕SE.Link.Create and ⎕SE.Link.Add
 
Thanks :)
I'm getting a deadlock error when I try and do ]add
 
Ugh, yes, that bug has since been fixed. You can update from GitHub.
Link's array support is still experimental.
You're currently using Link 2.0, but if you dare, you can try the new 2.1 which will be default with 19.0.
Alternatively, if you don't need all of Link, you can manually write such a file with (⊂↓⎕SE.Link.Serialise myarray)⎕NPUT'/path/to/file.apla'
The reverse is myarray←⎕SE.Link.Deserialise⊃⎕NGET'/tmp/file.apla'1
 
3:33 PM
OK, sun is setting soon. See y'all next week!
 
Cya
 

« first day (1395 days earlier)      last day (1264 days later) »