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.
@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.
@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!
@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.
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.
@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.
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.