The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Mon 09:38
@PaulMansour I think it's fine to see bracket axis as "syntactic sugar" over using the rank operator with dyadic transpose, but using rank and transpose is a good way of understanding what enclose-with-axies ⊂[] and merge axes ,[] are really like
Nov 10, 2024 13:07
      ⊂⍤2⊢1 3 2⍉2 3 4⍴⎕A
┌───┬───┐
│AEI│MQU│
│BFJ│NRV│
│CGK│OSW│
│DHL│PTX│
└───┴───┘
Nov 10, 2024 13:06
      ⊂[3 2]2 3 4⍴⎕A
┌───┬───┐
│AEI│MQU│
│BFJ│NRV│
│CGK│OSW│
│DHL│PTX│
└───┴───┘
Nov 10, 2024 13:06
Oh so to answer your question, f¨⊂[1]M - but remember ⊂[k] does a sneaky transpose under the hood, hence why I call it syntactic sugar. See, for example,
Nov 10, 2024 13:04
The preference of rank operator is also because it can apply to any function, including user-defined functions, directly without this splitting. Also it's ⎕IO-independent unlike enclose-axes. Enclose-axes is also rank-dependent, like F⍤2⊢a always acts on 2-cells (matrices) of a, but ⊂[1]a could act on columns of a matrix, or down the planes of a 3D array.
Nov 10, 2024 13:00
these days I think of ⊂[k] as syntactic sugar over (F⍤x)y⍉a (or should it be F⍤k⊢y⍉a?)
Nov 10, 2024 12:58
in theory there could be performance gains in many cases because the interpreter doesn't have to chase pointers as in a nested array, but in practice it's more like - those who learned APL in the past prefer (axes / enclose / each) and those who learn more recently prefer (rank operator / transpose)
Nov 10, 2024 12:57
no because rank operator is leading-axis oriented - the rank operator and dyadic transpose are the flat array / leading axis / more general sisters of each and and enclose-axes ⊂[k] for some vector k
Oct 29, 2024 11:34
@RubenVerg 3 4⌷⍠'IO' 0⊢⎕A ⍝ lovely
Aug 27, 2024 16:24
is it "return all the ones" as in result length is shorter, or can we have 0s in places of those that occur twice?
Jul 11, 2024 21:56
Oops ofc not
Jul 11, 2024 21:56
Is it {⍵⊆⍨1+(10×⍳≢⍵)⍸+\⍵}?
Jul 9, 2024 14:03
I think there's a workspace in there you can use
Jul 9, 2024 14:02
You'll want to download from the GitHub releases: github.com/Dyalog/MiServer/releases
Feb 2, 2024 13:45
Has anyone managed to get apl-form = 'enable' to work when compiling Iosevka font? github.com/be5invis/Iosevka/blob/main/doc/custom-build.md
Dec 21, 2023 14:35
Announcement: We're doing a live stream on 18 January. I'll be hosting some APLers, including Aaron Hsu, and we'll be looking at solutions to Advent of Code 2023 in Dyalog APL. Reply here or email rpark at dyalog if you'd like to be part of the panel discussing solutions, otherwise we'll be responding to comments and questions from YouTube live chat on the day. youtube.com/live/sx7LU3oicFY
Dec 7, 2023 08:21
@B.Wilson It is listed on this page dyalog.com/tools/tools-and-code-libraries.htm, in general trying to improve the visibility of tools, so please let me know if there's anything not on there you think ought to be (notwithstanding that the page itself is not very visible)
Dec 4, 2023 12:07
Dec 4, 2023 12:07
Dec 4, 2023 12:06
]box on
Sep 29, 2023 09:10
There is a server issue with the APL Wiki that I am unable to do anything about. Sorry for the inconvenience. It is unclear when it will be back up, current estimate perhaps a few hours.
Sep 26, 2023 13:36
@Adám Yeah just talked with Fi - her new project has @font-face but the current one doesn't right now
Sep 26, 2023 13:32
@Jonah Got any errors in the browser developer console (F12 on chrome/firefox)?
Aug 14, 2023 19:54
and what it should be is still kind of up for debate
Aug 14, 2023 19:54
but yeah there's not really one that a lot of people point to and go "if you want to adhere to a standard, try that one"
Aug 14, 2023 19:53
well some organisations have code styles
Aug 14, 2023 19:51
or is the point to have a DSL for your app, where the underlying code can be understood by any APLer?
Aug 14, 2023 19:50
should people lean on the shared core notation? or are we all making DSLs?
Aug 14, 2023 19:50
of course soon you'll be getting into the notation debate once you start abstracting in this way
Aug 14, 2023 19:49
Adám sometimes speaks of his father defining where←⌿⍨so you can do items where condition
Aug 14, 2023 19:48
of course you get a nested result, but you'd need that for multiple anyway
Aug 14, 2023 19:48
more so if you do like a {⍵[⍵⍵⍳⊆⍺⍺]}, then you can select 1 or several columns
Aug 14, 2023 19:47
no that's not an uncommon way of going about things
May 26, 2023 16:01
Next week will be 2019-10: Odds & Evens
May 26, 2023 16:01
anyway thanks for your contributions today - see you around !
May 26, 2023 16:01
maybe our poetry is not as good ;)
May 26, 2023 16:00
Yeah it's just called "variation" in English I think
May 26, 2023 16:00
it says "opposed to repetition", but I'm guessing the idea is you want to say the same thing again (for effect) but not literally use the same phrase again
May 26, 2023 15:59
yeah not sure we have that in English as a single word
May 26, 2023 15:58
Oh so it includes several rhetorical concepts in the one word "variatio"
May 26, 2023 15:55
@RubenVerg yes please let's see before I go
May 26, 2023 15:55
@Richard Thanks as always @Richard
May 26, 2023 15:54
like in music too? if you have a theme
May 26, 2023 15:54
I think "variation" as @Richard said is maybe closest
May 26, 2023 15:53
@RubenVerg yeah that's also a term with a few meanings in English, but I think I get the gist
May 26, 2023 15:53
you'd say "a variation" as the thing that is different, whereas variety is just the quality of having differences
May 26, 2023 15:52
but how broad is "constructs" in that definition?
May 26, 2023 15:52
@RubenVerg oh probably synonyms then?
May 26, 2023 15:51
right any last Qs before I dip out?