« first day (1297 days earlier)      last day (1340 days later) » 

RGS
6:45 AM
For a regular array Y what is the difference between Y and []Y ?
 
7:07 AM
@RGS You mean ⌷Y?
 
RGS
@Bubbler Yes, materialise ⌷
 
It is identity for regular arrays.
 
RGS
@Bubbler ty
 
With the depth operator, one could "unpack" all objects with ⌷⍥0⍣≡
 
RGS
7:37 AM
@Adám I don't understand what is going on. Is that supposed to be a train? ⌷⍥0⍣≡ ..?
 
7:51 AM
@RGS Nah, it is a derived function. Applied monadically to an array that possibly contains objects with default properties which in turn may also have objects with default properties, the function will traverse the whole structure and materialise all such objects into arrays.
Mind you, ⍥k isn't implemented (yet) in Dyalog APL.
 
RGS
8:14 AM
@Adám AH
I was not being able to understand what the 0 was doing to the right of ⍥
 
RGS
8:46 AM
why is my bottom status bar truncated and how can I fix it? vertically expanding the window doesn't fix it, nor does maximizing the interpreter window
 
9:27 AM
@RGS You can try to manually resize and/or move it by adjusting ⎕SE.cbbot.Size[1] and ⎕SE.cbbot.Posn[1] or )load buildse and rebuild your session.
 
RGS
@Adám I could tweak ⎕SE.cbbot.Size appropriately, thanks
@Adám I find it amusing that I can use APL to fiddle with the APL interpreter
 
@RGS Yeah, it is both good an bad. It makes it easy to do a lot of fancy stuff in the Windows IDE, but also makes it very hard for RIDE to do the same things.
 
RGS
9:56 AM
Referring to user-defined functions as "programs" is somewhat archaic, isn't it?
Isn't "functions" (or "user-defined functions") the current standard nomenclature?
 
Yeah, I think so.
 
10:15 AM
@RGS - For APL, I think calling them 'functions' was always the convention...
 
RGS
10:43 AM
@JeffZeitlin maybe I misunderstood the text I read and that is why my question looks weird
 
 
4 hours later…
2:38 PM
Given ⎕IO←0, ?X⍴2 will get me a vector of length X where each item is either 0 or 1, correct?
 
RGS
@JeffZeitlin yes
⋄?10⍴2
 
@JeffZeitlin Yes. Btw, a trick is to do 1=?X⍴0 which works independently of ⎕IO.
 
@RGS 2 1 2 1 1 1 1 2 1 2
 
@RGS Doesn't pick up edits yet.
 
RGS
woops, I meant ⋄⎕IO←0⋄?10⍴2
 
2:40 PM
@RGS 1 0 0 0 0 0 0 1 1 1
 
RGS
@Adám ?X⍴0 returns X floating point numbers, so using 1=?X⍴0 doesn't feel like it is going to return 0 or 1 with 50%/50% chance
 
whoops, I meant 1=?X⍴2
 
RGS
Maybe ⋄0.5>?10⍴0
 
@RGS 0 1 0 1 1 0 0 0 1 1
 
OK, I see why both of those (0.5>?X⍴0 and 1=?X⍴2) work; I was a little puzzled about 1=?X⍴0...
 
2:43 PM
⋄ X←10 ⋄ 1=?X⍴2 ⋄ ⎕IO←0 ⋄ 1?X⍴2
 
@Adám
1 0 1 0 0 1 0 0 1 0

LENGTH ERROR
 
⋄ X←10 ⋄ 1=?X⍴2 ⋄ ⎕IO←0 ⋄ 1=?X⍴2
 
@Adám
0 1 1 0 0 0 1 0 0 0

0 0 1 1 1 0 1 0 0 0
 
@Moonchild no-result expressions cause empty lines.
 
RGS
(I wonder where @DyalogAPL got that 32 reputation from :P )
 
2:48 PM
3
A: How many days in a month?

Dyalog APLAPL (Dyalog), 32 bytes* Tacit prefix function. Assumes ⎕IO (Index Origin) 0, which is default on many systems. 31 28 30⊃⍨∘⊃'.p|un|no|f'⎕S 1⍠1 Try it online! ⍠1 case insensitively 1 return the length of the ⎕S PCRE Search for '.p|un|no|f' any-char,"p" or "un" or "no" or "f" ⊃⍨∘⊃ and use...

 
RGS
@Adám nice
 
ngn
3:01 PM
@Adám 1 shorter: 31⌊32-∘⊃'.p|un|no|febr'⎕S 1⍠1
 
@ngn You're telling *me*‽
 
ngn
@Adám come on, i know it's you :)
 
Also, it could now be updated to use SBCS instead of ⎕OPT
 
ngn
nobody else defends ⎕io=0 as being "the default on many systems" :)
 
Guilty as charged ;-)
 
RGS
3:05 PM
> Also have a look at the workspaces delivered with Dyalog. They are described in the User Guide, and contain some utility functions that may be useful to you.
 
ngn
@Adám with the new squiggles, didn't sbcs hit the limit of 256?
 
RGS
While I know this exists, where is this documented? Only thing I know is dfns.dyalog.com
 
@ngn No, no, far from it, even with all the additions of my Extended.
@RGS What?
 
RGS
@Adám the workspaces that come with Dyalog APL
I know they exist but I don't know/can't find where to go for an index or something of the sorts
 
@RGS Maybe this?
 
RGS
3:08 PM
@Adám "Version 16.0" is a bad way to start the document :P
 
@RGS Well, if we've not changed anything…
 
RGS
@Adám but opening such a doc I cannot know for sure. If you "just" searched & replaced all 16.0 occurrences with 18.0 at least I'd know it still works
 
ngn
-2: 32-1⌈∘⊃'.p|un|no|feb'⎕S 1⍠1 (challenge say february can be 29)
 
RGS
as it stands I can't know if that is the case or this document is just outdated
 
@RGS Good point. Maybe tell Fiona that?
 
RGS
3:10 PM
@Adám is the email easy to guess?
 
Yeah.
 
is Dyalog's backwards compatibility so bad you'd expect things from v16 not to work in v18, RGS?
 
RGS
@Adám so fionaandshrek4ever@ ?
 
:-)
 
RGS
@TessellatingHeckler nope; but I can't expect a v16.0 doc to cover things introduced meanwhile
 
3:12 PM
True
I mean, 1
 
New things are delivered as GitHub repos, not workspaces.
 
4:01 PM
@dzaima Bug report in BQN Replicate: (73⥊1) / 73↑2‿62/0‿1
 
@Marshall that's what i get for completely rewriting /. should dig up my dzaima/APL bitarr fuzzing tests
so is this mess actually broken? D:
@dzaima (if so, then all bitarr stuff should be pretty much completely broken; i did somewhat change it after dzaima/APL, but it also passed my tests)
 
RGS
4:24 PM
@Adám did you install Dyalog APL in your WSL?
 
@RGS Yes.
 
RGS
@Adám I curl'ed the .deb; shouldn't I be able to just install it afterwards with dpkg? It gave me an error
 
@RGS Hm, I remember having some issues, but I have a tool installed that just resolves issues under Linux.
 
RGS
@Adám hehe nvm, I fixed it
 
@RGS Afterwards, I created this batch file:
@START "WSL" /MIN /D "%HOMEPATH%\Documents\Dyalog APL Files" /B wsl.exe dyalog RIDE_INIT=SERVE:*:4502 APLCORENAME=/mnt/c/tmp/aplcore
@SET RIDE_CONNECT=localhost:4502
@START "RIDE" /D "%HOMEPATH%\Documents\Dyalog APL Files" "C:\Program Files\RIDE\Ride-4.3.exe"
 
RGS
4:35 PM
@Adám what is this supposed to do?
 
@RGS Run the batch file and it'll start WSL, launch Dyalog inside, launch RIDE under Windows, and connect the two.
 
RGS
@Adám and why would I want that...?
 
One-click access from Windows to a full Linux APL. Simples.
 
@RGS what else would you want to do with Dyalog under ±linux?
 
what else would you want to do with Dyalog under WSL?
 
RGS
4:39 PM
@dzaima @Adám that is my concern; I wonder why you (Adám) wanted to connect to a full Linux APL.
@Adám nice PT usage there, threw me off for a second
But I am trying to use a tool that is well tested under Linux and not so much under Windows, but the usage I'll give to that tool is related to APL and so to take that tool for a spin I also need APL under WSL
 
@RGS Unrelated: Where did you curl from?
 
RGS
@Adám the ubuntu terminal
 
@RGS The code I write needs to be tested cross-platform.
@RGS No, I mean the URL.
 
RGS
@Adám went to the download zone and copied the link location to the .deb package there, i.e. dyalog.com/uploads/php/download.dyalog.com/…
 
Thanks.
 
RGS
4:46 PM
@Adám was there another way..?
 
@RGS No, but someone literally just asked me the question now, so I simply relayed it :-)
 
RGS
ah I see
 
The time stamp on the chat log says I was asked at 17:39. Coincidence?
 
RGS
Dunno; you tell me
 
5:06 PM
@dzaima pushed temporary fix of just replacing that with the lazy one-by-one method while i rewrite the thing..
 
5:43 PM
<kritixilithos> bot is dead?
 
⋄ 'We''ll see…'
@kritixilithos I could see you message, but it doesn't evaluate, it seems.
So it doesn't echo APL expressions across rooms?
 
6:01 PM
The self-hosted BQN REPL is now live! Backslash keyboard; hard refresh for CSS if you've been looking at other BQN pages.
 
Nice.
@Moonchild Bot down?
 
6:19 PM
@Marshall ctrl+enter is what i see often used as the run code shortcut, some reason you didn't use it?
 
RGS
@dzaima shift+enter is also pretty common; e.g. jupyter notebooks
 
@RGS ctrl+enter is on TIO, repl.it, SE chat, godbolt (i.e. all places i checked (that i didn't make)); wherever i ended up on a Dyalog jupyter, ctrl+enter is also accepted
shift+enter is much more often a way to write a newline if enter would otherwise submit
 
RGS
yeah maybe it is...
 
ngn
6:48 PM
@Marshall nice! and +←1 for ctrl+enter
 
7:14 PM
@ngn Let's just go with enter+any modifier whatsoever.
 
 
2 hours later…
9:00 PM
The Windows Terminal[1] disables the Dyalog IME keyboard, but it doesn't disable Adam's keyboard.
[1] the recent one which tries to replace conhost and add Unicode support and VT escape sequences.
 

« first day (1297 days earlier)      last day (1340 days later) »