« first day (2283 days earlier)      last day (377 days later) » 

12:47 AM
Is there a way to run Dyalog user commands like ]display in an automated way? They don't work if I put them inside a :For loop in a tradfn and I can't find other ways. My goal is to put them inside a script that can be loaded using ]load to run many commands in series.
 
1:09 AM
@phantomics ⎕SE.UCMD 'your command here'
 
Thanks, followed by arguments after 'command'?
 
⎕SE.UCMD']display 1 2 3'
┌→────┐
│1 2 3│
└~────┘
I think the whole thing has to be in a single text string
yes.
 
Great, tested and it works
 
I think it looks back at your calling location so you can use variable names in the quotes
 
 
3 hours later…
4:16 AM
@phantomics As PM says, however, try to avoid calling user commands if possible. Use proper API functions instead. E.g. ⎕SE.Dyalog.Utils.display. Also try to get used to using ⎕FIX (or even ]get) instead of ]load as the latter is part of SALT which is slowly on the way out.
 
 
2 hours later…
6:19 AM
@Adám Sounds good
 
 
5 hours later…
11:01 AM
Is there a way to set a maxws for Dyalog APL when running through the DyalogDocker container?
 
@phantomics By whichever means you set envvars in a container, set MAXWS=2G
 
 
2 hours later…
12:33 PM
Tried putting ENV MAXWS 2G and ENV MAXWS=2G in the file github.com/Dyalog/DyalogDocker/blob/master/Dockerfile, neither works
 
 
1 hour later…
1:54 PM
@MortenKromberg do you have an answer to ↑
 
2:08 PM
@user1347704 Hi Finn, if you want to participate here, just email access@apl.chat
 
2:18 PM
@hyper-neutrino Can you give chat.stackexchange.com/users/573517/user1347704 access?
 
@phantomics You want to add it to /entrypoint, not Dockerfile
or use a .dcfg file to set it
 
3:05 PM
@Adám done
 
thx
@user1347704 You should now have access, but may need to reload the page. Since you're new to Stack Exchange chat, I highly recommend familiarising yourself with apl.wiki/APL_Orchard#Features. Welcome!
 
3:23 PM
@Adám thx
 
3:41 PM
@phantomics One thing to note is that you have to set it within the correct build stage. For example adding the line ENV MAXWS=2G directly above ENTRYPOINT ["/entrypoint"] should do the trick (anywhere below line 16 in the Dockerfile should be fine). If you want to use the dyalog/dyalog public image, you can set it within the run command. So docker run -e MAXWS=2G dyalog/dyalog.
 
 
3 hours later…
6:31 PM
How come you can't do ⎕← inside a dfn on tryapl.org? It says "NOT PERMITTED: Illegal token". Does it not present the browser as an I/O stream? I can't read from quad even outside an fn, though writing to it does work there.
 
7:03 PM
@Adám great, thanks
@LdBeth loops?
 
@MarkReed It only handles proper return values, but fakes ⎕← at the beginning of a statement by replacing it with . If you need more than this, use a full system, e.g. on ATO.
 
8:17 PM
Thanks, @Adám. Didn't know about ATO; nice to see some updates to the tio.run idea. Though the APL versions at TIO are honestly new enough for anything I've tried there so far, and it has no problems with i/o from a dfn. I mainly fired up tryapl.org because it groks the Dyalog key sequences, so I can build short snippets right in the browser instead of copying and pasting from RIDE.
 

« first day (2283 days earlier)      last day (377 days later) »