SPEAKER_02

Welcome to episode 122 of Arraycast. I'm your host, Connor, and today with us we have our for the moment only co-host, or I guess panelist, and therefore co-host Adam. And I guess I totally messed that up. We're supposed to go around and do brief introductions. And so now they know who I am. Now they know who you are. But we will let you briefly introduce yourself and then we'll hop into uh one or two announcements.

SPEAKER_00

Okay, so as Connor said, I'm Adam. But so is my family name. Don't try to pronounce that. I work at Dialog, been working for a decade at Dialog. Now the head of language design. That doesn't mean I do language design all the time, just sometimes. But I sort of have to sign off on language changes. I'm really interested in the whole language design aspect, all the possibilities there are, and especially when it comes to array languages, especially Amazonian languages, always lamenting the lack of array features and non-array languages. Awesome.

SPEAKER_02

And I, as mentioned before, I'm Connor, host of ArrayCast, massive fan of all the array languages, all the existing ones, all the future ones. And today with us, today, we're gonna be chatting about REPLs and IDEs. And we'll get to that in a sec. So I I think we have a couple announcements. Adam, I think you've got one, and then I've got one and a half. So we'll we'll go to you first.

SPEAKER_00

It's a fairly minor thing, but there's the the Dinah, this dialect North America meetup at the 27th of April, I think it is. And there's a the the program for what's going to be presented there is now up on the website dinandodialog.com slash program in British spelling, the MME at the end.

SPEAKER_02

Awesome. Links for that will be in the show notes slash description in the future. Not now, but if you're watching live, as always, well not as always, since the second era of a ray cast has started. We are live on YouTube. And today is Monday, 23rd of March. So I think we haven't settled completely, but I think we're gonna be doing this regularly on Mondays. But TBD. So that's one announcement out of the way. My one and a half announcements are, so Adam doesn't even know about this, although actually maybe you were on the email. So I want to say a year ago, at least, maybe two years ago, around the same time that Bob was working on like the special Ken Iverson interviews, like a blast from the past. Bob Bernecki, local to Toronto, reached out to us at the Arraycast and said that he was sitting on a ton of recordings from the 1991 and 1993 APL conferences. And skipping over some details, at some point I got a thumb drive with the digitized versions of these, because I think they existed on, I don't know, VHS or whatever technology was used in the 90s. And we were supposed to find a way to publish those on YouTube. I think at one point we were going to do it on the Code Report channel, but we didn't end up doing that because I think I was just too busy. And Bob Renecky reached out again and was sort of asking what's the status of this. And we now have this array cast channel. So long story long, my plan is every other week, so we're doing once every two weeks for array cast. In between, I think there's like 15 or 20 of these videos. One of these videos will drop. And that'll be exciting for those that are interested in older footage of array conferences. So I think the first one that we are going to be releasing is the 25-year panel perspective. It's got a couple different names. If you are like the internet sleuth of internet sleuths, I actually, while I was asking for some information to Gemini, it found a recording on someone's channel that had uploaded it. And the title of the video is something something. But, anyways, you can find this on the internet, but uh a polished version will be uploaded a week from today, which I guess is actually a week because there's no post-processing in terms of the time. Anyway, so and there will be some other talks. I think one of them's called Mastering Jay. There's a few different, you know, I one of them that I haven't actually watched yet, but I'm I'm looking forward to watching when I edit it and upload it is Is Jay an APL question mark, which I I think is also the name of a paper. You can you can correct correct me if I'm wrong, Adam. Or there was a name of something like they had maybe maybe this just was, it was just a discussion, and that's what this is.

SPEAKER_00

Or I prefer to say the original name of Jay was APL backslash question mark.

SPEAKER_02

Oh, okay. Because there was a bunch of debate. We've talked about that in the past on the array cast when Jay was first born, whether or not it counted. Anyway, so look forward to future every other week's in between arraycast episodes, at least for you know a couple months, these videos that'll get uploaded. And the half announcement, we'll see if I can share my screen. This is less of a an announcement and more of a teaser, which is why I'm calling it, oh, I see, this kind of ruins the because everyone's seeing the the preview of all the other stuff I have on my computer. All right, so never again. And so this is a I'm working on a I've been working on a YouTube video for like two weeks now. Shout out to Madeline, shout out to the folks on the Weewa Discord, but I I've been wanting to make this video since Pearl Weekly Challenge 285, and we're on 366 this week. So that's close to like a hundred weeks, which means it's almost like just under two years that I've wanted to make this YouTube video. I only started working on it a couple weeks ago. But the the preview that I'll show is I've been I decided I wanted a table, and I've made these kind of tables in the past where I show different primitives or even algorithm names in different languages, and and then you just can kind of compare across languages what the different languages call these things. But the equivalent in an array language is to have you know the different primitives, and the reason I'm choosing Tiny Apple as the baseline is they have the most number of primitives. So, in terms of like you're trying to find one primitive and what they translate to another primitives, the language with the most primitives is uh the best choice. And so if you hit a shortcut, which I won't tell folks yet, but this is live on ArrayBox, it will bring up this beautiful table, which shows the translations across the six languages that are supported. You can see there's a tiny little bug here. This subscript shouldn't be white. And the really cool thing is it's like, well, it's only showing the monadic ones. Well, if you click on the verb or the function, it'll toggle from monadic to dyadic. And then a nice little feature that I'm working on. Oh, I guess you can't click or else it gets rid of it, is if you hit C, it then color codes the ones that are, you know, if it's two primitives, it gets yellow, because two is fine. If it's three primitives, it gets orange. But if it's four or more, it gets red. And uh, anyways, this is uh a cute feature. It's it's very much in beta because the the primitives that you're looking at on scene are on the screen, are and I guess for the audio listener, we're looking at first cell, ooh, except this is a little bit broken now. It should say first, last, first cell, last cell without split and mix. And I actually have to split split into split and major cells. As Madeline pointed out, there's some slight differences. I have I have other things that I want to remark here. Yeah, and this is what I thought is like maybe a little like 10-minute mini episode inside of our REPL. And like technically, this is uh a REPL feature, is it not? So I mean we're technically still on task. Uh and I thought I I really liked the tally behind I don't know what is it, skinny squad? I don't know what that character is. It's called squad. Is it called squad? I thought that was quite nice, and and the comparison to cap. It only only works on quad IO1, though. As Madeline pointed out, sometimes quad IO1 is better. And it's actually my preferred uh index origin, but we'll we'll save that for a whole other episode.

SPEAKER_00

Oh, shots fired. But no, I mean I also work like that. But I would, I mean, if the first column was supposed to be first, right? It should be first, yeah. I don't know when that got changed. That's primitive. Why did why is it not APL's first primitive?

SPEAKER_02

Oh, actually, wait, you know what happened here? This is actually there's no bug here. I've just typed this incorrectly. So at some point, like switching between the languages, they have like the primitive translation. This just got messed up. So this is actually what it should be. And and and uh Madeline asked when I was asking questions about this like what is the relationship between all these? These are the primitives used for solving pro weekly challenge 285. So that's why I'm comparing like what you have access to when trying to solve that challenge. But can you that that last is wrong, right? That's not last. Last for what? We've got six languages here.

SPEAKER_00

No, look, I'm just talking about APL. That's what I know about. We can look at the other ones in a moment.

SPEAKER_02

Okay, so dialogue APL is in the second row, not that that helps the audio listen.

SPEAKER_00

Part of this problem here is like what is the definition here? Last element in REVEL order? And do you need to disclose it, unbox it depending on your language? Right? So the the one you have for currently on APL for last, that's the last cell one, not last. Last would be first of the reverse. Or first of the reverse of the rabble, if you want to be strict about multi-dimensional arrays. Are we talking vectors? Are we talking any dimensional arrays when it comes to first and last? But in in if you want to be really strict, it should be the the first of the reverse of the first of the rabble of the reverse, right? Or something like that. First, well you could easily decide. It should be the you want to rabbel, yeah, so first of the reverse of the rabble. And which is how you would do it, which you can't even do as a three-train, right? So you don't have to start composing. First cell is left tech first axis reduction. And left cell is right tech first axis reduction. That's two characters. Nobody ever writes like this.

SPEAKER_02

So I mean, well, this is this is great uh, what do you call it? Food for thought and ideas for discussion, because you'll you'll the history of this, and this is part of the problem, folks. I'm I'm a big part of the problem here. I tend to think in a small bubble that is a subset of the array language world, which is the rank one plus sometimes rank two uh world, which is a subset. And when I started constructing this, I didn't even have first cell and last cell. I just had first, last, dyadic without split and mix. And then as soon as I went to the Wiwa Discord, because honestly, it's the Weewa is probably I have the biggest gaps in my knowledge. Maybe J you can put up there as well. And so I went to the We.

SPEAKER_00

So it talks about rows and columns, even though it's actually first access, last access type of thing.

SPEAKER_02

Uh yeah, I have not observed that. But I mean, this is part this is why I said I'm part of the problem, and that there's a problem here, is that when you think in like primarily rank one, like a lot of times I'll say like, oh, it's just that, and then you'll go, no, no, no, no, no. Or you know, when Marshall was on the podcast, he'd be saying, Oh no, that's not technically correct. Because there's there's like rank one world, there's like rank two world, then there's just arbitrarily ranked world, so all the ranks, and then there's nested arrays, which like if you're gonna spell this correctly, a lot of the times my brain is like, oh, well, what you're looking at on screen works for rank ones, therefore it's correct. But it's no, it's not, it's like if you're gonna do the strictly correct, you have to consider nested arrays, you need to consider all the different ranked arrays, and and that's it, it causes a problem in terms of like teaching, in that a lot of the times when people are solving small problems, they actually are in a rank one world. And so if you show them the strictly correct for all of the nested and the higher ranked arrays, it's and like so if you have some kind of BQN crate or you know, Apple cart where you go there and you have the strictly correct thing and it shows you know some four or five character ravel with the disclose or whatever, that is strictly correct, but it it should have some like little toggle thing that is like, are you just do you need this just for a rank one array, or are you solving for like a more general broad problem?

SPEAKER_00

Because I just put multiple entries into Apple cards and say f with and then the description says what the restrictions are, and also the syntax specification often has the restriction built into the names, right? So I will call it I can call it the Y if it's a general array, the right argument, and I will call it YS if it's a scalar, ym if it's a matrix, yv if it's a vector. Right. So there are ways that you can sort of add that in there.

SPEAKER_02

You have to think about that though. When you're gen when you're going to you know different places where there's different varying levels of that kind of specificity specificity, you don't end up necessarily getting all that. Anyways, the point being is that I came into this thinking about just in the context of the problem that I was solving, and then I realized, well, technically this is all and like I said, split technically needs to be split into the split from dialogue APL and then Tiny Apple has something called major cells. And anyway, so I will update this for what you say, and but then I also need I uh maybe I should do that. I should add some little toggle that says, like, you know, do you want the strictly correct or do you want the non-nested, non-higher ranks, just rank one?

SPEAKER_00

Yeah, I mean that's that's that's it gets complicated, right? Because even something you will see a lot in APL code, modern APL code, is that people want to to merge say a vector vectors to be a flat vector, often like character vectors. Uh so they'll just run an enlist on it. But that works in that case. It doesn't work in general. You can't just merge things using enlist, right? But that doesn't mean it's not idiot-ematic and normal and so on. So it's hard to do this. How how does a ray box do this? Does it just have a giant lookup table for primitives for in for every language?

SPEAKER_02

I I basically uh yeah, I mean I've I it's been no secret that I I built a ray box entirely using AI tools. And so when I had this idea, you know, the the b the basics of the idea was like, all right, if I have a space separate separated primitives, they don't even really need to be space separated, I guess. Actually, the uh they do in the sense that well, they act they actually don't. Anyways, you know, build a table that's got the languages on the left, the monadic and dyadic at the top that you can toggle, you know, and it didn't look as nice at first, but you just ask it to change. And then I said initially just like reach for primitives if they exist. And I'd say it got like 75% of them correct, but then not have to go in and be like, ah, that's wrong, this is wrong. But I mean 75% is still, and that's the thing, is people say, oh, it's it gets it wrong. But the point being is that's 75% of the work that I didn't have to do, and I just have to go and like review. I'd rather have, you know, an intern that you know made a bunch of mistakes and and did most of the work for me, and then I just have to go clean things up. And then for the the longer ones, you know, like the cap last cell and the weewo ones, I just manually input those. And so it's yeah, there I think there's a table called primitive hyphen compare.js somewhere in the GitHub repo. So if people are more than welcome to go and either submit issues or even better, pull requests. Because like I said, I have not reviewed any of the primitives because I only asked for these ones, but it was just like, well, clearly you're gonna want all of them in the future. I'll go do that for you. But I have not reviewed any of those, so I guarantee, like, so I mean, what's some what's a random primitive that we don't have here? Let's just type in I mean there's some complicated ones that will be. No, no, let's do something let's do something simple, like IOTA and well, let's let's uh let's Iota in reverse, two of my favorite primitives. So let's see what happens. This looks I mean first X's, last X's. Yeah, that's the that's a good point, because Tiny Apple actually doesn't have they only have re reverse first, correct? Reverse first, so you have to do a rank rank one or something. But if we change it to look at that, look at that, lovely that uh and also too, a few people on the Wi Wa Discord said that my coloring of the primitives in Wiwa is cursed because I reversed the blue-green coloring scheme from Kai's site. I made an executive decision for a ray box that I prefer blue because in the ambivalent languages, you just have to color basically all functions and verbs one of the colors. You're not able to disambiguate. And therefore, I chose blue because I think blue is a little less electric, and so it just looks better as like the more common color. And I'm not gonna have Wiwa go against the other five languages. So unfortunately, it will be cursed for some of you. But yes, you can see the color changing on the Wi Wa ones, which is quite nice. But I think this is right, but like also there's so yeah, like as you mentioned, the reverse first versus reverse. Also, two technically, is this accurate if some of them are one indexed versus zero indexed? You know, you gotta put there's always these like nuance. Yeah, a lot of nuance.

SPEAKER_00

Do you give it a single element or a scale uh vector argument or a scalar argument or a multiple element vector argument? Then the definitions are completely different between APL and J, for example.

SPEAKER_02

Well, so here's here's a question. What would be your because there I just had an idea that if you could imagine under every single primitive, there were three columns, one for like rank one, one for all ranks, and one for nested. Is that the correct number of columns in order to capture and then you could you can have enough?

SPEAKER_00

You want like scalar on a scalar vector, higher uh maybe a scalar, vector, matrix, and nested, maybe not all of them are valid in every combination.

SPEAKER_02

But that's that's the point though, so that you'd have the columns, and so for the base one, that's the problem, is though, like you know, I don't actually know what tiny Apple does for if you give it like a two two character array, is that gonna do the I mean I guess we can check right now to that's what you've got the ray box for. All right, so it does it does have like the J behavior. It does the dialog thing. Or the dialogue thing, sorry. But that's the thing, is like when you have behavior that exists in a language that's not tiny apple, then how do you how do you communicate? You know, so it's it is very tricky, but you're saying that potentially it would be it would be four columns scalar, aka, so rank zero, rank one, rank two, and nested.

SPEAKER_00

Those are what I would do first, but that's but that and that's the thing, is as a begin and that's actually that's another thing.

SPEAKER_02

Maybe we should dedicate a whole episode to that at some point. I've had this kind of mental model on the back of my head that I'd love to give like or actually I would love someone else to give a talk on it, but yeah, the problem is is I I throw all these talk ideas out into the world and no one ever does them. So I just end up having to do them. But I have this mental model of like the the the like karate belt system of like array language programming skill level. And so I am definitely not a black belt. I'm not a triple black belt, I'm not a double black belt. I don't know actually what the colors are. I'm not white. I I know there's like purple and brown, so I'm somewhere, you know, probably halfway to black belt. Maybe if you want to be generous, you know, 70% or 75%. You are definitely at least a single, if not triple black belt in dialogue APL, but then even, you know, in BQN and a lot of these other languages, like you might not say that for We WAR, all the array languages. But this this is the reason I bring this up is that the this four column idea is definitely not like a white belt, it's not a white belt like teaching topic. And I feel like if you're gonna teach yourself online, which is what I did and a lot of folks do these days now, because there's a a cornucopia of resources across dialogs docs and BQN docs and wewa docs and the YouTube videos and a ray cast, you can get to like, I don't know what I like. We should actually bring it up. Well, uh, should we do should I do it on a different screen? What is it? The karate belt colors. All right, here we go.

SPEAKER_00

You want to choose in the interface what's your level, and then we'll do like do it simplified. Yeah. Well, I just like started doing a a simplified APL in you know the the APL challenge that we have running all the time. Uh yeah. So there we teach everything you need to know as you go along. But I've taken to simplifying the language. So I I never sh or very rarely, I think never actually, teach the monetic and dadic form of the same primitive. So it's sort of pretended to fix APL. Right? That there's only I just have to choose one of the two primitives in this round. In a different round, I could have something else. I I often avoid completely discussing operators, I just say they're special syntax or avoid them altogether, often avoiding nested arrays, definitely avoiding all sort of overloads of things and and the syntax is simplified and all of this to ease teaching. Then you can always learn the spases and warts and everything later. So that's basically that white belt, like the the the very first level you come in.

SPEAKER_02

Well, so I realized I only shared a single window, so you can't see this, but I'm showing a very, or if you go to the YouTube stream, you might be able to see it. Uh, but it's a white belt, yellow belt, orange belt, green belt, blue belt, purple belt, brown belt, red belt, and black belt. So I would I would say I'm a blue belt or a purple belt, I don't know, somewhere in there. But I there's still a bunch of stuff, like, and this is a uh a perfect example of one of those things. It's the I don't want to say perfect knowledge of scalar vector matrix nested, but like I my default is not thinking in that mode at all. Like I think primarily in like rank one when I use an outer product, sometimes rank two, or if the problem calls for it, you know, rank two. But like I'm rarely ever thinking in rank three. And I know like I've seen Marshall do some like triple outer products or double outer products where like he goes up to rank three or four, and that's just like that's just a tool in his tool belt that he does for some kind of problem. And I'm like, whoa, whoa, whoa, whoa, whoa. Like, what point do you get to learn that? Like, in what dungeon do I have to go to in order to pick up the like the brown belt or red belt skill of like a double outer product or a triple outer product? And I think it would be amazing if there was like a course that existed out there that literally used these, like it you don't need to use the karate belt colors, but that just has some kind of, you know, you progressively scale up, and you know, the white belt you're showing the one plus two or one, two, three plus four. Five, six, like all that stuff. But I think that like the purple belt, brown belt, red belt, and black belt topics, we don't touch those as much. And I would love to like have a series of array cast episodes where we talk about the like, you know, you have to go to some special dungeon to put some tool or skill in your tool belt. Because I I I don't actually know how to acquire those. Like I, you know, I arguably you could say that the tacit programming stuff is up there, but that's just because I haven't you can do simple tacit programming.

SPEAKER_00

You can do advanced, completely explicit programming too, I would say. But there is actually a video series that Richard and I did on the rank and the rank operator and dyadic transpose. Those are like the that pair, I call them the keys to the array kingdom. Because everything else is just specific manipulation. You're doing things. But dyadic transpose is what you need, generalized transpose, you want to call it that. You need that to put things into the right position so that you can chop your arrays using the rank operator in the way that you want. And then you need to manipulate things back again to where they came from. So we have this series of videos where we like build it up. And and I'm actually, I want to boast a little bit and and a shout out to a customer of ours that I that I help. Maybe I don't know if I should mention his name, so I'll not do that. But we have a customer that I help every um quite often with with various language-related things, usually, sometimes some technical things. And lately I've managed to get him to really use the rank operator like properly. So now he's wielding double ranks, you know, function, rank specification, rank specification to do things. And that's that's black belt rank usage.

SPEAKER_02

Uh see, this is what this is what we need to do. We need to de should we just abolish this episode of diving into repls and just to talk about this? We can come back to this another time. Yeah, we'll come well, we'll we'll we'll table this and start talking about repls and IDs like we agreed to. Uh, but we should have an episode where you know how they have those videos on YouTube where they classify like Pokemon as S tier, A tier, B tier, C tier? We should do the same thing, but like with these, uh I'll I'll build a little app and we can drag and drop. And the thing is, is the usage of these primitives like fall into different categories, right? Like what you're saying here, like double rank, you know, like that's a black belt skill, but like just using rank itself is probably not black belt. It's it's probably not white belt, but it's somewhere in between. And so that's the thing, is you know, that there's you can you can learn a uh an operator or a function in its like canonical, like the way it's used most of the times. But then like if for instance, like the not equal scan, you know, like that is a use of the scan operator that like is above the just like learning scan. And so I think it would be like fantastic if we could go through a bunch of primitives and like the different uses of the primitives, create some little like tiered thing, and then over time create episodes like, all right, we're gonna do a black belt episode today on double rank, or you know, a red belt episode today on on some other topic. I think that would be fantastic because I I I I'm not that I'm uh what do you call it, uh a barometer for our listeners, but I know I would love to have a bunch of brown, red, and black belt episodes talking talking about these advanced topics the same way that we're gonna have like the primitive talk episodes, but the usage of this stuff there should be like a color mode on Apple Cart where like it colors the entries in Apple cart, but the the built color of using this expression, this function.

SPEAKER_00

It's like this is advanced. It's funny you mentioned the dungeon thing. Did I ever tell you about I think it was called uh Runemaster? Ever told you about that?

SPEAKER_02

Yes, I it has come up on the podcast, and I also stumbled into it at one point during my APL deep diving. It's it's a little like game online that you can play, right? Yeah, dungeon crawler game. Yeah, yeah.

SPEAKER_00

And it's not done yet. It's I'm stuck in some technicalities of JavaScript that it's written in. These days I should probably just start over and by code the whole thing. But that basically is that kind of feeling is what I wanted, right? Where you you you're fenced in by the level that you're at. And as you acquire skills you're acqu that you can show through trials in this dungeon, that you you know how to wield these these runes, right? The field glyphs, then that opens doors to you to access other problems in the in the dungeon that requires those kind of skills.

SPEAKER_02

Oh yeah. I mean, there's a ton of great ideas here. Like I don't I'm not a huge video game person, but I know that like skill trees are like a big thing. Like there's uh what's that really popular video game where it's like shadow something? Anyways, I know people that have played it like 10 times in a row because it's got so much like replayability, no one game of the year, and it's it's like a I don't know, 2D.

SPEAKER_00

Anyway, someone someone you need to acquire the monetic application to go to dadic rank application, then you need dadic rank application to progress to multi-rank application.

SPEAKER_02

But I I would go if you had one of those with like a skill tree, I would go down the tacit route as quickly as possible because there's nothing that irritates me more is when I'm doing an APL challenge and they're like, no, no, no, you can't use you gotta wear it where you're missing the braces, and I'm like, I don't need frankly, I don't need the braces.

SPEAKER_00

Yeah, these are not do that in the APL challenge. Once you progress to answering with a function, you can do anything you want. Right, yeah. It's only the early early days we had to do it exactly the way we we tell you to do it because otherwise you don't acquire those skills to progress. Yeah.

SPEAKER_02

But this is I'm glad we had this little mini episode. It turned into kind of a uh less of a mini and more of a medium episode within an episode. We will uh maybe that's what we'll do next. We'll do our primitive and primitive usage classification and then we'll we'll set up a bunch of topics. Max in the chat, or meme god, I should say, says, which belt would code funds be? Probably black. I mean the question is, what is what does code funds mean? You can read and understand the code funds, you know, project, or you can- That's very different from just uh compiling your code usage. Exactly, exactly. It's probably well, I but that's the thing, is it's not even an APL, you know, thing to get codifunds compiling. It's uh it's just like a build system.

SPEAKER_00

Yeah, that's that's not it. But reading it, I mean, uh I should say a different way. And and code funds isn't as tacit as it used to be. It's not very tacit anymore. The the code base, there was a time when it was very tacit, but I think there's a whole different thing, there's a different dimension on that entirely than the notation. So one is your style, you're writing explicit, writing tacit. Another thing is that that dream that Aaron Sue has that people will use their array languages for uh those kind of problems where they that people haven't even dreamt of being able to apply them, and and having benefits of simplicity, of of conciseness in doing things that people have otherwise made very verbose by using array languages, using techniques that people didn't even imagine you could do. So the the point of uh of uh codifens, I think actually we're supposed to say cod fins these days. Yeah, it's yeah as in like the fins on a codfish on a cod cod fins because it's not defense anymore because it can do transfens too. So anyway, uh the you could you could misunderstand uh codifens as being uh Aaron just wants to show off his his tacit skills, which he doesn't really do anymore, or his coding skills. But really, what Aaron wants to show is that it is possible to compile, even difficult to compile uh programming languages as a sort of single pass parallel uh thing. Normally we you you go through code in a sort of linear fashion, and he wants to show that you don't have to do that. You can take an array-based approach of the whole bag of potatoes rather than one potato, two potatoes, to compiling a language, a language that requires context, like APL. That's that's really what he wants to show. And then there are some other things that you could do in the same sort of style, and and his uh apprentice, Brandon, uh, has tried to do something similar with parsing YAML using APL. So definitely a black belt thing is being able to take a subject that is not traditionally considered an array approachable subject, and applying successfully, of course, the array approach to it. And notice this is a completely different dimension than the notation itself.

SPEAKER_02

Yeah, yeah. There's a I mean, there could be a whole world. We'd start with the primitive black belt arena, and and then there's the there's like probably functions.

SPEAKER_00

Yeah, and yeah, array structures. I there's also how do you structure your data so that it's amenable to good application of the tools you've got in your array toolbox. That's that's also outside of the language itself.

SPEAKER_02

Yeah.

SPEAKER_00

And you can get better at that. There are all kinds of optimization techniques, right? Never mind the primitives themselves, but like how do you run things fast by being sympathetic to the machine that you're running on? Like be having a mental model of the memory layout of your data and the internal representation of the data allows you to predict what the performance is going to be like.

SPEAKER_01

Right.

SPEAKER_00

And that's like you can also get better belts in that subject. I mean, there are all kinds of techniques that you could get belts in. So, and and really everything to do with computing, you could involve in this. But that's this is a way of tangent.

SPEAKER_02

Yeah, yeah. All right, so we will listener. Look forward to a future episode where we, you know, S tier or karate belt rank primitives, and we'll start there and then we'll see where we get to. I'm gonna close the karate belt. I'm gonna stop uh sharing my screen.

SPEAKER_00

By the way, kinda, do you know that the Apple card is loosely ordered by uh belt on the on the entries? I had no idea. No, I thought I I don't think I've ever thought because I mean this is aesthetic ordering, right? It never you might think that it's like sorting things somehow, but it's not. It doesn't sort by relevance or anything like that. There's no smart features. There's literally a table of entries, and it literally just does a search for all your search to search space separated search terms, unless you use slashes for regex, whatever. And then it just filters away rows that are not matching. That's how it works. So the ordering that you get, individual things, if you get the two same lines in two different queries, they will always be in the same order, namely the original order in the table, the grand table of everything that Apple card contains. And that table is ordered loosely by difficulty or in inverse simplicity, which is why if you look at the entire table, the first thing it has is just zilda, the the constant empty numeric vector. That's like the simplest thing you could possibly have. And then it goes to monetic right tech, which is just a monetic identity function, and it's uses. And then it does the left tech, which is also an identity function, but the one that's slightly more complicated because it does a funny thing about the right side becomes the left side, that kind of thing. And then it goes to plus, which is like the simplest arithmetic function, and then minus and then times, and so on.

SPEAKER_02

I think for our for our the cut like the the tricky part there is that uh it sounds like they're contained both definitions in the glyph. Where I would say for our for our ranking operation or ranking execution, you want to split it to like because for me, you know, like I would say that well, what is the simplest? It's all it's all philosophical, but you know, for me, like iota is like the very first thing I ever typed into try APL. So I consider iota like you know what a sequence of numbers, you learn how to do that like very quickly, but diadic iota, you know, oh that's a different thing. You know, yes, it's the same primitive, but that is an offense.

SPEAKER_00

That's also not so obvious. Right. Oh, and do you even know I was gonna say, let me know. Do you know? Sorry? What is iota iota zero?

unknown

Iota zero.

SPEAKER_00

Nothing? Well, it can be nothing. It has to be something, right?

SPEAKER_02

I mean I just did it in uh in in Tiny Apple, which I'm not sharing anymore. It's an enclosed, empty, it's got you know the the the angle brackets, and then it's enclosed in a box. Try APL. It's the same thing, it's just formatted differently because it's nothing for the inner thing. And that's that's kind of what I meant by nothing.

SPEAKER_00

Well, it's something which contains nothing. Yeah, but those kind of things, right? A primitive that might be superficially simple, but can but explaining why this is the result you get is not maybe not so obvious. So anyway, there's a question in the chat also can you reverse the sort you reverse sort the the Apple card results? No, not in the not in the web interface, but yeah, you can you can extract things yourself, but you can also just you know scroll to the bottom if you want to read it in reverse. So why would you want to do that? You want the most complicated thing first?

SPEAKER_02

It's yeah, Max is trying to do things on uh hard mode. Anyways, we we definitely should. I have a hard stop at uh 11:30, which is in 42 minutes. So we definitely uh should well before we get to the halfway mark, switch to our subject. Yeah, yeah, switch to our topic for today. I mean, tech like I said, technically, we were inside a REPL array box. Oh, we were so we weren't entirely off topic, we just took a couple tangents. So today, yeah, we're talking about. I mean, we I think Adam, you were the one that had this idea because I had announced as an announcement on one of the previous array cast episodes. It might have been the first one where we came back. I I had this YouTube video ranking repls where I was on a number of criteria saying, you know, TriAPL is better than, you know, or I guess I didn't say that, but you know, WeWAPAD is better than Tri-APL is better than, you know, the cap REPL based on these criteria. And then you said, Adam, I would love to do an episode where we just deep dive on the different REPLs and we just share our thoughts on like what's good, what's bad, you know, or what's missing that we wish was there. And and also, too, this is a way to like demo and show folks maybe some features that they're not aware of. I might not even be aware of them because you know I I spend most of my time now in ArrayBox. And before then, I spent most of my time on the online REPLs. Every once in a while I would open Ride for dialogue, and I would always have CAP because the CAP GUI is so much better than the online REPL. But it that's the thing, is if the online REPL is good enough, I tend to not want to go to like an application because I'm usually programming in the small when it comes to this stuff. I'm not building, I'm not launching a workspace with you know 50 different or 100 different functions and state. I'm solving small problems, if not small to medium problems that can be done in an online REPL. Anyway, so I'm not sure if you want to share your screen and where we want to start.

SPEAKER_00

I can share my screen. You might get a bit like overwhelmed by my screen. I I tried arranging the windows on my screen and uh completely failed at doing so. So so we'll we'll see what happens here. And I'm not even doing all of them, so I'm just doing like a little subset that I well this might this might end up being part one, or uh some of them might we get dropped on the floor. We'll see. So so what do you what do you say to this? So okay, so just I mean we're just getting through what I've got on my screen, which is just some repls, right? This is dialogue ride. That's the that's the um uh remote and also non-Windows REPL that we have. There's one that I haven't put up here, which I guess I should.

SPEAKER_02

And for for the audio listener, we're looking at one, two, three, four, five, six, seven different windows, or at least that I can count.

SPEAKER_00

Yeah, I'll bring up the next one in a moment. Um over here is that's the Windows dialogue REPL. This is the NARS 2000 REPL, or or I mean session, whatever you want to call it, IDE. This is triapil down here. This is the JEQT going on here. This is the online trignu APL, which this actually has two sections, two different ways to run that over there. And this is the APL64, which is the new APL Plus, and then with tiny little font size, I'll try to make that bigger in a moment. This is the dialogue terminal interface, so it's like it's a text-based thing that they can run as well. Look at that here. Yeah, they they all work, they all have their upsides and their downsides, and they have their their fans and their detractors, and and then what we don't have here is BQN, Tiny APL, Wii Wire, and we've got nothing QK related at all. There's right, there are so many array languages these days that we haven't even touched on. There's Nell and yeah, there are many, many. And and some of them have online REPLs, some of them have offline ones, some of them can only or and and we say I say REPL here loosely for like everything. I I use the word REPL about some of these things, but often the strict meaning of REPL is just what you basically got in a command line interface on your OS, like where you you input the line of text, possibly like multiple lines because it's reps, and then you press enter and you get a result back, and you can do that again. You might have some fancy features like recalling previous statements, things like that, but that's basically it. So very simple. But then there is also the possibility of more interactive user interface elements. So even this that runs in the in the terminal, I can I can open. See, we've got a status bar that shows various things here, and and I can open a window. So it's got a windowing interface. Dialogue's terminal thing does not have mouse support. So um you have to do everything with the keyboard shortcuts that you have to memorize. But it's definitely it definitely can do things, it can open things, you can do full tracing and things like that. So uh, but everything text-based. And and the other ones have the same features basically, but plus more. Try APL is very limited, it's still not just a REPL, it's sort of have a REPL bar where you can enter things to make it more familiar to some people. But the normal thing for APLs and APL family languages is to have a what we call a session, which is sort of like a log, like what scrolls up like in your in a OS command line, but you can go up to the previous statements and interact with them. That hasn't always been an APL because APL started back when there was typewriter terminals on paper, and but you were able to recall previous statements and then edit them, so that did exist. And then as soon as it became screens, people started taking advantage of that, drawing, editing windows and so on. So so IDEs and with windows and trace windows and so and all that stuff has always been there in in APL land. And even back when it wasn't, even if it was just typewriter, you could still suspend in the middle of execution, like due to an error or or even an explicit stop that you said stop bit, and then you could change your functions that are on the stack and then continue. So this interactivity has very much been there. And uh the development of that has been in parallel to what the rest of the world went with. I don't think there were any uh early IDEs that had the sort of interactivities that the APL had even back in the in the typewriter days. It's and then the way that APLs work, especially like core APL and APL dialects, is then become very different from how our other program writers work. A lot of people that come to APL, they go like, oh right, I edit my text files and then I run it, and if it I look at the error message, and then I change my code and I start over again. But that's not how APLs work. They will often do a single run of their function that's a typical work day. They've got some some top-level function, and they'll run that once at the beginning of the day. And then they just have that stack and they they they go in and out of various levels of subfunctions that they're calling the whole day, and and they get they hit errors and they edit the edit the functions and fix the problems and continue execution. Only at the end of the day they could shut down the system. That's very different than people that start over and over and over and over every time there's an error. So we've got facilities to inspect what's going on on the stack, and and there's super tight, especially in APL. I think of all the array languages, the one that has the most of this, and it's not just I like it, all the APLs have super tight integration between the language and the development environment. So it's like really an underscore on the I and IDE. Other languages might have something they call an IDE, integrated development environment, but but it's so integrated that you cannot separate them. You can the people have been talking about, oh, we should make have like a language engine where other tools can like call into an APL executor core that then uh crunches the data and sends the results back. But you cannot cut with a knife the language, the array crunching parts away from the IDE parts. They are sort of intricately connected in dialogue and think and also other APLs, commercial APLs, they do have special interpreters that are runtime interpreters for actual delivery of end user applications. And those you can't access necessarily the the IDE parts, although although they might actually be there hidden inside, just sort of prohibited. But other than that, they it's very much the same thing. You can't really You you can't really separate and just give you an example of that. So let's say I want to open an edit window. So in many languages and IDs and so on, you might use menu bars, and in some APL IDs, you can do that as well. You go up and like, okay, create a new module function, whatever it might be, and then it creates that. But you can also always do it with a function or command. So I want to create a function foo, and it opens up here. Now, syntactically speaking, this is a function and this is an array. I just applied a function to an array and it had a side effect of opening up an editor that I can that I can then use to manipulate the function foo that doesn't quite exist yet. But because this is just a normal APL function, this is just a normal APL array, if I insert the reverse glyph here, I'm now editing oof instead. This is just normal APL. And if I insert an each over here, then I'll be editing F and O, and they are they're all here. You can't necessarily see that they're all here, but if I go we've got window. So we can see here, it might be a little smaller. We can see the editor currently has open foo and oof and o and f. We actually tried opening O twice, but this it knows that it's the same thing, so it opened it only once. These are this is just APL code. I can take this and I can embed that into my normal code. So this sort of breaks the whole mold you have of what even is an IDE. Is this just the language? And the language has in self-editing features.

SPEAKER_02

Well, I guess the well is it the more important question is is is does it matter? I mean, I don't actually spend a ton of time thinking about REPL versus IDE. I went and asked Gemini, is there an umbrella term for REPL and IDE? And it gave a really long explanation, but the summary is the summary is no. There's not a word. It it it's suggested programming environment, but let's be honest. On here on the array cast, we're not about to introduce something into the the wider vernacular at large, and it's not going to get picked up. So I think we are just stuck calling them REPLs and IDEs. But I mean it it begs, I was thinking while you were explaining all this, like what do you call you know, we want typically when I see folks doing WiWAP programming and they're not in the WiWAMP, you know, Kai uses I think it's VS Code, which is a code editor in my mind, but it uses a plugin. So like what is a code editor plus a plugin? Does that equal yeah? Does that equal an an IDE? Because it's it's clearly not a replica.

SPEAKER_00

Yeah, VS Code, it can it can take it can take advantage of language engines. So it can have like okay, VS Code itself doesn't really know about the programming language, but you have a plugin, and the plugin contacts some other thing that's outside that doesn't know about the language and can query things. And and sometimes I say like that ride, which is used to at least stand for remote IDE, is not an IDE at all. I like to say that it's pretty dumb, it's just it's just an HTM renderer, because in fact, behind this remote IDE is actually another, a real IDE, either one of these, the command line ones, or or one of these, the the Windows one, where the interpreter itself has has the graphic facilities. So if I type something here, you might think, oh right, it looks like it's the whole integrated thing, but I believe with a little bit of cleverness, you can't actually see what I'm doing here, but and I'm clicking in my in my task bar, and I think I will be able to find the window behind it. There you go. So what's going on here is actually I did not type this IOTA 2.3. I can make this a little bit bigger. You can see it. But anything I type over here happens over here. So what's actually happening here is that is that this IDE, this language engine, which is the same thing, is in charge completely. And this ride here is just a front end that renders a user interface for this language engine. So this is a whole different concept of IDE than again something else here. The the thing like VS Code, as you say, is a code editor. When I open something up here and I edit that, it might look like the source is actually here in ride in this window, but it's not. All that happens here is that ride sends this information back to the interpreter that lives over here and it kept keeps track of the source code. Source code lives inside here, it has loaded in here, and ride has no idea. Now that there are no windows that are open, ride does not even know that foo exists or has a specific definition or anything. Everything lives over here. So what is ride even?

SPEAKER_02

Yeah, I think it's I think it's a fool's errand in 2026 to try and uh taxonomize this stuff because it's just we used to live in a world that was simpler, and now in between REPLs and IDEs and code editors and plugins and language engines or language servers, it's it's like honestly, there should be a new term. Like uh Gemini's suggestion programming environment, it seems like a decent one, right?

SPEAKER_00

It's just an environment which you're programming and I don't think that it's something you have to invent the new term for. Yes, a programming environment, even if it isn't a technical term, that it everybody will understand. That's an environment where you can do the programming. Whether the actual code execution happens there in that environment, like it does in the Windows IDE here, or it does in the TGY version we have, or it does in any of the online repls that are running like WASM or a or a JavaScript implementation of the programming language, or whether the actual execution happens somewhere else in a language engine, or whether it's just a front end that's a graphical rendering, but the whole logic of which windows are open and so on is actually somewhere else. That doesn't really matter, right? Right. It really doesn't, unless you lose your internet connection, in which case it doesn't matter. But yeah, so so I think with that out of the way, just that just this is just the introduction, basically, so we know what are we even talking about. So we're talking about programming environments where you have some sort of text field, either single line or multi-line, where you can enter some array language code, and ideally there's some additional features that makes your life nicer, right? And the very bare minimum being able to recall at previous entered expressions and edit uh expressions. And it wasn't always like that, you know, in back in the in the typewriter terminal days on paper, you type a letter, that letter basically stays there forever. You can't, there's no back backspace did that. It went back, moved the cursor backwards, but it didn't remove the letter that you just typed. And uh there's a little bit of like as a fun thing, there's a little bit of a remnant of that still in in dialogue. So if if I type, say a circle, um, and so in and I go back to the circle and I type a vertical bar, I get the reverse symbol. The point is like the circle doesn't go away, it doesn't get overwritten by um by the new character. It's actually false. It says down here in the corner, it's in the replace mode, right? I can I can switch that between insert mode and replace mode. It's not if replace mode, it's over type mode, over strike mode. And and dialogue has a little remnant of that left. I'm not sure if other APLs have any remnant of that left. It used to be even more in the really old days. It used to be that like let's say you typed an L and it was a mistake and you wanted to type an E, then you could actually type an E or an F even on top. So like you imagine you type an F on top of an L, it becomes an E, right? Because you get top and the middle bars and the bottom bar, things like that. Uh, you could do if it looks right, then it would be right. It would do all the math for that. So even if non-APL symbols, you like type an S and then type a vertical bar on top, and you get a dollar sign, even though that's not syntactically valid APL, but hey, it looks like a dollar sign, better be. So so then from there, we build up more and more features and hand holding and niceties and helps and so on. You've got syntax coloring in some of them, uh, we've got autocomplete uh in uh in some of them, multi-line entry of of things depending on whether the language supports that kind of thing. Um language bars, as you can see, that helps you to enter the the Unicode glyphs. And yeah, that keyboard shortcuts for doing various actions, even macros, you can set your own keyboard shortcuts to do things, output formats like we've already seen when you do uh an IO2 2.3, not this right, it's just following along over here, just mirroring everything. It's the same thing. But there's different ways that we could show this, right? So we got facilities. So in the early days, we would have like functions that would draw arrays in certain ways, and then it became built-in and it just showed an example of a user command. Well, actually, let's pause here.

SPEAKER_02

So this is the default in I believe cap and tiny Apple. I could be wrong about that, but uh, I'm almost positive it's the default in cap. What's the I didn't actually know this was configurable, and I just thought this was like artistic choices, and it kind of confused me because when you use this Mac style, if you just do IOTA 5, it boxes it with some arrows. And I've always noticed that they have like depending on the implementation, there's like different symbols. Sometimes you get the little enclosed torch shoe. I'm seeing the tilde at the bottom here. Sometimes they got arrows. What the heck's all this stuff? I mean, what are we talking about here?

SPEAKER_00

There is documentation for this, but I can just briefly say this is a very old function in the APL the APL world. It's not specific to dialogue. There's an old function called display, which you could look at, and it takes a it with the advent of nested arrays, then the this the this default clean display form, which we can we can look see what that looks like, became sort of harder to read, right? You can sort of see because of the double spacing that these are like six small vectors of vectors, but there are also limitations to this because if we if we try to do if you do like three, four reshape enclose two, two reshape iota four. So this is pretty horrible, right? You can't really tell right the difference between this and whether they would just be like notice this the these two are two separate vectors, but but down here we've got a like a two by two matrix, and you can't you can't tell.

SPEAKER_01

Right, yeah.

SPEAKER_00

So then somebody wrote or some people worked on made made a function that that drew this instead. Actually, originally it it was drawn not with with these nice line drawing characters that this that make this up, they would because they weren't available, so they would use like minuses and pluses in the corners, the arrows were there, and and they all of this has significance. So what's happening here is that every arrow indicates an axis. So there's a trailing axis over here that has length two in this case. There's a leading axis going down. There's an outer, so this is nested arrays. There's the outer array is also a matrix, you can see that. And the bottom left has a type indicator. The the tilde means let me change the front here and make it a little bit clearer. I think the tilde means it's numeric. Uh, the epsilon means it's nested. The there are other possibilities. If it's just a straight out line, like here, that means it's text. It's undecorated basically, it's text. So if we if we go in like format each of these, now you can see that the only thing that that visibly changed was the decorator and the bottom, bottom left. Instead of being the tilde for numbers, it means it means this. If we if we try to write like ABC1, two three, it's it says it's nested. If we if we do this, so it's it's a four-element vector, that the first element is character and the remaining elements are numbers, it says plus, it means more than one type, which means it's actually lossy, right? You can't tell what's what. If I write these two arrays, um where so they they look the same. So this the format isn't perfect, but it gives you a pretty good image of what's going on with some hints to to what's going on. And there are other decorators, there are other some other other things. If you if you try to do a uh uh a many-dimensional array, so we can see how it it sort of tries to stack up leading X's. This is the this is it's basically decoration on the old format. So this is how it would look without any decoration, and then we just add boxes and add indicators to show that we've got X's, but it's not very clear where exactly the X's are. The spacing sort of shows it as well. These are these are layers, and these, and then you've got a Q a cube here, and then it's it's a hypercube. So that's what's going on. But there are other other ways you can do that.

SPEAKER_02

What was the first expression that you tested? It was because I'm doing this in a ray box. I'm testing, so cap seems to be doing what you're showing here. Tiny Apple does something slightly different. I don't know exactly. Yeah, what was this? So this uh one more up? This one was so you're basically making a matrix and then enclosing it and then doing another reshape on it.

SPEAKER_01

Yeah, uh so tiny apple for if we do two, three, and so if we enclose that and then we go three, four.

SPEAKER_02

So yeah, tiny apple does something different, it doesn't look like they use the you know type indicators, they just use the arrows everywhere.

SPEAKER_00

Although I do some variations on this as well, and and this is just the built-in one, so to say, the one we can enable with this boxing user command, it's just one of the many variations on this that exist.

SPEAKER_02

I discovered that in J when I was implementing the boxing that by default they use the terrible ASCII things, but then there was, I want to say it was Joshua My aka Oracle. If it wasn't that individual, it was someone else. They pointed me towards the fact that you can set, like, yeah, like you're showing here, the settings of these. Yeah, and uh it was some horrible incantation that I had to put into whatever the the execution, but then it looks a lot nicer.

SPEAKER_00

So it actually looks like from what I can tell that this this is the REPL, right? So the the the GUI thing, and it has menu items for some of those horrible incantations you would otherwise have to enter to switch this. Right. So it does it. This REPL is sort of bare bones, but it has it, it has the basic stuff and it has some niceties and and some help. The the configuration as well, like is very bare bones. So here so you can configure it, but all it does is it opens up this equivalent of the JSON file or some kind of YAML file back there. Yeah, it's like an in the any file thing. Dialogue has has a proper GUI for configuration where you with lots of tabs and then and settings. Not everything you can configure like this. Sometimes you have to like go and configure it in configuration files, or otherwise, but at least it's got it's got some some GUI, like capturing keystrokes and things for which for setting up shortcut keys. Same thing goes for for the for ride. It's got this nice looking GUI for that comes up on a different screen, of course. You can modify the keyboard even, right? Set multiple keys here. That's got lots of lots of things you can configure. Again, it's not everything, but so some things you need to configure otherwise, but uh but the most common things you can set.

SPEAKER_02

And so is there just to wrap up the the pretty printing of arrays? Like so uh because I guess this this came about due to the introduction of nested arrays. Yeah, at that point it became necessary to to and so the the difference between this pretty printing, like when you're looking at a nested array in the like what what do we call these modes? Are they the minimax like display?

SPEAKER_00

But there are actually a lot, there's I mean, I could show you the help for it. There's a lot of a lot of settings here. So there's this is the style, it's called officially the style. So there's there's none, which is like just plain, like you saw before, with no decorations. Then there's the the min style. So if we go up and take our example, well, maybe we should do a little bit more interesting example than this. We can do something like this. And okay, so so here's the min style. You can't really tell the types, right? You can't if a was a was an and numeric character. No, sorry, if a with a here was a character one, you can't really tell what it is. And so this looks like it's just numbers, but it's not, it's actually a character. But it's a very clean, it's very compact. Then there's a there's a mid-level, which is exactly the same thing as a min level, but with decorator characters on. So you can see the X's here, and now you get an indication that this one one actually we should rewrite over here. One one, which you can see. You can see these two are not the same. Right? This one has a plus in the corner, and this one has a tilde. So that means this one is mixed type and this is numeric, even though they look the same. But it it basically puts the indicators on the borders, like sharing border lines, but it says tries to be really compact, but that means it's it's also lossy. There are things it cannot really show. If we if we do further enclosures, then it starts it starts padding around and you can start seeing a bit more. And then we can turn on the style to max, and at that point it blows totally blows up, it becomes giant. You see, compare the the sizes of these two. This is the same array shown in two different styles, but this one is way more informative, you can see exactly what's going on. Whereas this one is somewhat limited in what you can see, but it's very robust. I personally prefer the min most of the time, and now in dialect 20, I have to plug that a little bit. There's a new thing we can do, which is the array notation. So I like this. It's maybe not as pretty as this, but it tells me exactly what I have. I mean, there's no ambiguity here at all. And not only that, the best thing with this is this is executable notation. So I can just go in here and say, you know, reverse each, and that's just valid. I can I can reformat it. I can do and then it's got syntax coloring and so on. But this is the output value. Output values are input values, which I think I think is a really nice thing to have. Very interesting. Going back to the the chat, just so I haven't been catching uh following along there while I've been speaking, saying the APL session is like a debuggable shell. Yeah. Smalltalk even allows users to modify things like menu bar and color theme and write as a front end to the interpreter. Yeah, just to mention that. Look at the the can you see that? It's tiny, but you can see the the help menu item up here. So again, I can do SCE is the is the session object. So I can there's a a menu bar, and the menu bar has an item called help that has a caption, and I'm going to just set that caption to hello arraycast. And now the menu item up here is hello array cast. We can change change that back again. So yeah, we can to a certain degree we can uh we can manipulate the IDE itself, and I can I can hide the menu bar, I can add my own menu items and and buttons and so on. And then also mentioned in the chat, instead of using the boxing, there I made a user command called wrapper, and which creates an APL expression similar to what we do with the array notation, but it just like gives you a one-liner expression for things. So if I write, well, we can take the example from up here, actually you see what it does with that here. Oh, boxing is still on. That's a bit awkward. But so notice that it it returned the same thing because that's this is basically the the minimum or somewhat minimal representation of it, but it it gives you an APL expression for something. So if I don't know what something is, I can find out. Remember, I said earlier iota iota zero? Let's say we don't have boxing on at all. Nothing. This is what we sh we get. So this is a nice example. Like you get something like this. Uh, what am I gonna do with this? Uh it's nothing. Well, it's something, I can select it, it's represented by two spaces. So we can turn boxing on. Box on, uh style minimal. Oh, we get this. Not very useful, right? We can turn we can turn them in the medium level. This helps a little bit. It says this tells us, oh, it's it has one empty axis, that's what this means, and it's numeric. So, but actually, it's not the full truth. You might think this is the same thing as as just the empty empty vector, but it's not. We can go to the max level, and now we can see that okay, this is you can see there are no there are no this looks like we're we're joining some kind of dark religion or something like that. We've got to worship the so what this is saying is that there are no X's, that meaning the outer the outer frame here is a scalar, it's nested, it has a single element inside, which is has a single axis. There's the instead of an error, there's this symbol meaning it's an empty axis, so it's a length zero vector that is has the prototype of zero because it's numeric. So for this you can discern what it is, but you have to really think and and know things in array notation. You do the same thing, it it gives you this, right? It just says it's enclosed delta, which is nice, you can understand that. And I think the wrapper is going to give you the same thing. Yeah, okay, our boxing is still on, so it looks a bit funny. Yeah, it says it's just this in close delta again. But you can have weird things that are that are sort of hard to understand, like zero, six, one, eight, reshape, enclose a null zero. Notice that we got nothing, right? Literally it printed nothing. So what is this array? Let's turn turn boxing on again. Yeah, we can use a box style min.

SPEAKER_02

This is where if I was doing serious editing, I would cut in the F1 box box, box box. Yeah, yeah.

SPEAKER_00

Well, so so if I turn it even to mid, we get like a lot of white space, right? It's useless. If you turn it to max, we get this. Okay, now we can begin to see that this is actually a giant empty array, right? With lots of we see the Outer level here is this it's it's a empty axis followed by a non-empty axis with a non-empty axis and a non-empty axis. So a rank four array, that's the that's this, right? Every element is this. Maybe we should make the numbers here a bit smaller so we just see what it's easier to see what's going on. And uh and array notation will give us give us this, right? So this is also a nice thing. So we can see the square brackets represent uh rank basically, and we can see that the the leading axis is is compressed to length zero zero, right? So so it has a leading empty axis followed by two axes that are uh that are non-empty, and then the innermost axis, the trailing one, which is a vector axis, then right. So that's that's in here, and then we we it the content, actual content, is a space, the prototypical character, a null, and and the zero. So this is a very nice way to see it as well.

SPEAKER_01

That's wild. This is definitely like at least brown belt level stuff.

SPEAKER_00

Yes, there are a lot of options for this kind of thing, and various IDEs will have various ways of showing it. There are some of the newer things that use both like uh both thick and thin and then and double struck line drawing characters to show things. Bqn has its own thing with like dotted lines to show things, and there are lots of different ways you can you can get to these things. You don't have to print it into the session. Dialogue also has things like it's called show? Show view. I don't even use this anymore. Oh, not show view.

SPEAKER_02

I mean someone in the chat just mentioned display.

SPEAKER_00

Yeah, yes, there's display as well. Display is just it's just a temporary display.

SPEAKER_02

That's what I thought actually reper was gonna be, because I was thinking I probably still prefer min as well, but in certain cases you might want to see all the information. Like honestly, there's an analogy to for the Haskell programmers out there, they have the I think it's colon i and t, but is like for type information of an expression, and i is like all the information, so it's type plus some other stuff, and uh this is like kind of the uh equivalent, right? You've baked in the type information to like a legend that is completely invisible, but now I understand.

SPEAKER_00

Um so yeah, so here here we we uh I mean it's all the information is available, right? But so here we as mentioned in the chat, you've used the display user command that's like temporarily having the boxing set to the maximum just for single one single expression, and if this sets it to min just for a single single expression, there's no setting for no, not to min, sorry, to mid for for single expression. There's no corresponding thing for min. But there are actually a lot of in the defense workspace, there are a lot of extra functions for showing things in various ways. So if we we can copy, I think it's called DSP. So this is yet another minimalist way to show things, yeah. So it it like dispenses with the outer borders and just draws the bare minimum to separate things from each other. And there's one called this display R, and I think this display S. So we can see. So this one this one gives you numeric information. It's saying this instead of drawing little arrow, it says this is an axis of length two, and axis of length. So this is it gives us the the the shapes everywhere, and this gives you the depth. So this instead of saying it's nested, it says it has depth too, and this axis length two, length three, two, and then this is numeric, so it gives you all that information. Display S gives you the axis plus the shape information written there, right? So we can see that this is a two by three with the decorators and so on. So there are lots of variations of things, and some of them even take left arguments where you can further customize exactly what you want. Do you want the text centered or do you want it right adjusted and vertically centered? And they're sorry, lots and lots of options for things, and then yeah, some repls have this built in in various forms, and we have only talked about display of arrays, it's also display of functions. That's interesting.

SPEAKER_02

Oh, yeah. I mean, we could spend some time on that. I mean, I've been trying to bake that stuff. The tree train, the train tree view is there in uh in dialogue and so BQN has explain. Uh cap has a thing called structure viewing, but I've played around with it. It breaks frequently for the examples that I was testing, and then J has something called I actually can't remember what it's called, but it is the equivalent. It's horizontal instead of vertical. And I think uh I mean it's it's kind of uh by you know, it's personal opinion, right? But I think by far the dialogue tree train is by far the best BQM.

SPEAKER_00

So you can that's a nice thing you have in in the dialogue the uh sorry in the with JD is you can actually choose the display forms from the menu instead of having to write like weird incantations to enable them for for discoverability. I really like that. I would I'm going to add this if everything goes according to my plans. I'm going to add this kind of thing to to dialogue. So I want to overhaul the whole way you do.

SPEAKER_02

I also noticed that in the dialog editor, all of the expressions now are syntax highlighted, which is something I complained about at some point. Is that oh yeah, that's it used to be something you can configure.

SPEAKER_00

Or it was configured. You can choose whether yeah, you can choose whether it's only the current input light or or all them their history as well. There you go. So yeah, that's an it's a nice thing to have. I definitely like having syntax coloring like that. And of course, you get syntax colored output when you do a ray notation output, which is really awesome. So this is the default display form. We can see that as well over here in in J. It does much the same thing, just basically tokenization things. But if you turn boxing on, then the default style for Tessit things is is boxing. So we get this. So this tries to show you the structure of this average idiom where the we plus and the and the slash bar are bound more tightly together, and then you have outer level of a three train, this is the three boxes like this, and then we can we can switch it to a uh uh to the three mode, as you get this, which is what you prefer. But there are other options, but there's also the parens, which might be useful for like white belt. So it just fully parenthesizes whatever you give it. So you can see that you can see how things bind together. And that that's pretty nice, especially for weird things that you might not might not be so obvious how things bind together.

SPEAKER_02

Are those the three modes?

SPEAKER_00

Parens, tree, uh the thing I think there's there's one as well, which is I think def. And that one that one tries to minimize the number of parentheses instead. Okay, so the anti-parens. Uh yeah, but it will result to parens when necessary. So, like if we write something like this, so it will it will preserve the parentheses because you have to have them there. The only the reason I didn't want to pull that up at first is because I think it has a bug in it. So if you take this function, like the decrement just as just an example, decrement increment type thing, that's a mistake. It it should have parenthesized at least one of them, because this is not the same function because of stranding.

SPEAKER_01

Right, right, right.

SPEAKER_00

Um, so so that I tend to not and that's really what the point is either. It's just trying to rec reconstruct. Here we'll you'll do it right. And if we turn on the tree view instead, which is also what I prefer, by the way, in general. And and I think that looks very nice. You can see these are the two operands that are bound to the to this operator, and these are the two operator operands that are bound there, and then these bind together to a two true two tree. It also means that like a fork really looks like a fork, like a trident. Yeah, yeah, yeah. It's quite quite nice. And this is just display form, right? That's a that's a there's a lot, there's a lot of stuff that is that can be added to an IDE. BQN has like by default, recognizing that certain arrays look like sound definitions or like image definitions or video definitions, even, and then we'll create a little media player and show those those things. That's also something I would like to do to add. It's not really that hard to recognize things. Arrays are too big to display, really. But sometimes sometimes we do that. You can make uh fun patterns. So and then uh yeah, sometimes we we uh make the font size really small so you can to to sort of draw pictures in the IDE you're using character art, which I think is is is cute. Right. I've done that before with the game of life-ish kind of thing. Yeah, exactly. So that's another feature that you can have when you have this interactivity with the editor windows that if if we make an array, so here's here's the alphabet, and I can I can edit that again. Notice I'm just applying a function to oh, where did it go? In here. Where did they go? I don't know. That's funny. Oh hang on a second. I think it's just popped, might have popped up another another window. Let me let me clear everything here. Even I don't know what I've done. Oh, I think I know what it is. I'm actually running in this thing that has that's ride. Okay, let's switch over to ride, it's the same thing. Okay, so so here is is a character array, and and if I if I make changes to the array, then they get updated in real time inside the editor. Um, so there are lots of fun things you can do without playing around. Then there are features like you you probably don't want to even think about should be there, but have to be there. Like in the menu bar for on the dialogue IDE, you can uh you can export to a an exafile. Like you can create a standalone application that nobody can even tell is written in dialogue APL that's just completely packaged with icon and everything, right? Choose an icon file, and we can make a console application, those things, and choose the settings for Windows when we're when we're running it, version information, all that stuff you get when you when you look at the properties. Those things need to be there because it's all fun and games playing around with uh with a with array languages, but there are actually people out there that use this you know for real work, actual applications that get shipped to users that have to boot up and and they use them and then and they make money on it. So you have to be able to package your whole thing. That's also part of the IDE. There's access to help in various ways. Again, this is of course, every IDE has its its ways to do this. One thing I would like to do is that we haven't done yet, but sort of working on that as a as a quiet project in the background, is that the first time you start, wouldn't it? Would be nice if the IDE would, I think so at least, would we say, you know, welcome. It knows whether it's the first time you start. Or it could give you the option to not show this again or show this again, that kind of thing, where it's like, hey, let me give you an intro tour. Up here is the language bar. This is the session, this is where you type things, uh, so that people can can get going a bit a bit faster.

SPEAKER_02

Yeah, I feel like we're gonna have to do one of these for all the different because we've only scratched the surface, and this is just basically APL, and we've only got a couple minutes left.

SPEAKER_00

Yeah, there's a just to a preview of some things that exist here. This is APL64. I don't use this normally. I have a license for it. This is Dialux, I think, most serious competitor in the commercial space. They have completely rewritten the IDE, right? Dialux has has is is a continuous evolution from the early 80s. This dialogue's uh APL64, which is the language is basically the same thing as as APL Plus, has a ton of features. I haven't even looked at everything, it's both language features, not in primitives, but in system functions. They've got loads and and control structures and things, but also the IDE has a lot of features. I'm not sure how much of it I would actually want, but they do have some some cool things. Like you can you can go into to the idiom manager and and we we've got a whole it's like basically like Apple cart thing, but uh structured with an i with a with an interface and you can add your own user idioms and it has got yeah, well you can see got lots of stuff and you can search the session itself, like the REPL part, has has some settings, so you have this history format, and I'm I'm not even really sure how this works. Now it's set to classic, which means that that things are this I don't think this works. Oh it does, okay. Things are as you expect, but I think you can switch to like a different mode, and now you've got like an input bar like you've seen on on uh on Triapia. And and now you now we're typing in here instead. And it copies it up here. And I think there are things you can like select and and redo and so on. There are I'm not really sure how this works. It's got a ton of stuff you can do you can do and settings for this group. Right here you can see which outputs belong with which inputs, and and uh it it sort of remembers where things belong. I think you can you can choose separate input and output. So an input pane and output pane, which might be more familiar to some people. I know browsers have like a mode you can do this, and and we've got our input bar down here. There are yeah, we can't even go into all of it. We haven't looked at dialogue things either, but we can but scratch the surface just looking at the at the possibilities that are here. So I I grew up with a good old style, basically like computer enhanced paper. So I'm used to do it to doing doing things the old style, but uh there are new cool things that you could do. I've actually written a library myself to do cool output stuff, just as an experimental thing. I think I think I have it available here. Let's see.

SPEAKER_02

And as as Adam's typing this and we're winding down, uh if you're either watching this live or in the future, uh or if you're listening to the audio and you have a favorite you know feature of an IEDE or REPL or programming environment, find the uh YouTube video, leave a comment, and whenever we do a follow-up where we explore uh this again, we will make sure to highlight the greatest, latest features from the different programming environments. Yeah. Because I'm sure that there's stuff that I definitely don't know, and probably even Adam in in the other you know, programming environments and languages that we don't use as often.

SPEAKER_00

Yeah, we we should maybe we should have guests. I know about the dialogue one fairly well. I know some of the APL ones, a little bit of the J things, and then the things get really progressively worse and worse as you get further away from that. We should have it's not fair that I should show these things. Now I'm not even going to run it, but I just want to show a little tool that I made. Can you open this picture? So so this is where similar to what you saw in APL in the APL64, where input remains over here in the in the session, in the normal session, but all output goes into a separate window, which is like a rich window uh for output. And you can you can get type information and and timing information and so on about when these various outputs happen and what they are, right? So and errors are like treated separately and and so on, and you can collapse and then remove pieces and so on. So there are possibilities you can so again, what this is saying is or hinting at is that you can catch the events that happen when things are printed and when various things happened, and when windows are closed, the editor window closes, you can catch that event, you can intercept it, you can write your own code that manipulates the flow of things. We even have some tools that that's how they work. It also means it's an open system. You can go and look at what is the code that actually does the the output. It's it's right there for you. There I don't know how we should treat this. There are so many ways we can go into this and so many dimensions and so many, so much more.

SPEAKER_02

We just have a recurring uh recurring series where uh I mean yeah, we're gonna we're gonna grow the the panel in the future. So I mean we'll have l like more expertise on different different IDs in the future. And yeah, when we bring folks on, it can be just one of our questions we ask folks are the things that that you know about that you can share with our our listeners. So doesn't we don't need to cover clearly we don't need to cover it all in one episode because we have tried and failed.

SPEAKER_00

But we knew that that that's the anyways.

SPEAKER_02

We will uh make sure to link all of these in the in the show notes so that if you want to go check them out. I think most of these except for APL64 are freely available uh either online or via download. So that is the nice thing about this. I even forgot the one, I forgot APLX. I actually was thinking that when you were showing all the windows, and I was like, actually, there is one that I have personally used. Not I don't have it on my computer right now, but at one point I did at one point have the APLX, and they have great docs. At one point, they were nicer than dialogs, but dialogue says revamped theirs and I'd say docs better now.

SPEAKER_00

So I do have it here, but yes, that's a it doesn't the ID isn't doesn't do very much interesting things, but yeah, it does.

SPEAKER_02

It's still nice, it's it's still minimal APL, nice for getting started. Yeah.

SPEAKER_00

Absolutely. The documentation is is awesome, and the ID does have features that dialogue doesn't have either.

SPEAKER_02

Um so Max says a last comment is saying, My favorite is hint-based jumps in Avi, Easy Motion, and hop.nvim on the other side. I think different like tools. Um and I mentioned head over to the YouTube comments, but I also forgot that the main way you can reach us, as always, is contact at array cost man, I was so close. I was so close. I was about to say array cost contact at arraycast.com. We'll get it. It's uh, you know, Bob was doing it for a hundred plus episodes. And so uh you have to give us time to be able to say a simple email address correctly. But yeah, if you've got tips, tricks, features, or you want to, you know, message us about anything else, you can reach us there and consider this part one of an ongoing series of you know, editor REPL IDE programming environment features. I learned a bunch of stuff. I didn't know about the min-max mode stuff, and that is very useful for understanding what the difference is. And also, two, it's nice to know that you can get type information in like the encoding of the box. So hopefully other listeners learned something today as well. With that, I guess we will say happy array proming. Happy array proming.

SPEAKER_00

Oh man, that that didn't work.

SPEAKER_02

It did, it worked on my end. It worked on my end. Really?

SPEAKER_00

Yeah, okay, it's all right until next time. See ya.