Great! As I expand my APL vocabulary I hope I can learn to simplify in this way. The language does really encourage thinking about data operations in parallel and arrays/matrices. I'm definitely not strong at math but I find it fascinating.
It will, sure. I will study that -- looks like, as you said, in large part I need to understand where I can remove the redundant args and braces when composing the solution ?
at first I made ({}.{×/⍎¨⍕⍵})⍨ 1234, and then I thought that I have to put the same splitting code to the other side of the dot product so in the end it doesn't save me any bytes
@ngn I export 64-bit float as it is but I also want to be able to export 64-bit integer. With 64-bit float the maximum is about 2^53 but with 64-bit integer it’s about 2^64.
@kimmolinna but dyalog doesn't support 64bit integers. if ⎕fr was not 1287 when your data was recorded, there simply isn't enough information in its bits to restore the 64bit values.
questions (from him) in the mean time: 'how do i turn off the input method editor, because the use of the Super (windows) key conflicts with my WM bindings'
'how come dyalog --help does nothing, how do I find out command line arguments (ubuntu 20.04 LTS, dyalog 18)'
@rak1507 Because it wasn't designed to be a CLI program :-( Configuration is done with env vars which can also be given as command line parameters, i.e. dyalog VAR1=value1 VAR2=value2 See docs.
@dzaima i wish i also had a list of all linux users who have first installed Dyalog while here so i would have backing evidence for an otherwise unbased claim that 100% of new linux users hate the eating of the super key :)
@Adám do you think it's worth adding? it's definitely the best solution apart from the fact that it needs to be redone on every update
@Adám that to me sounds very much like my reason, or that noone at dyalog uses Linux (and I'm somewhat sure the latter isn't true). It's kind of impossible to use linux and not be annoyed by it.
Hence my asking everyone to complain to support. With luck, the guy manning support (a Windows guy) will forward the complaint to management enough times that management decides that something actually needs to be done about it ― in this decade.
@dzaima There are mainly two at Dyalog who would experience this. One (who doesn't work on such matters) keeps swearing about how annoying it is, and the other (who would be the one to make the change) never installs things, but rather rolls his own custom solutions…
@Adám so, assuming that noone outside of dyalog uses it (because, obviously, people prefer having a working OS to a Dyalog keyboard), there's noone using it.
Many older people might not have discovered the Super key combos either. It is a fairly new key, relatively speaking. I certainly see many people unaware of the Windows key combos.
@Adám I think the best option would for me would be a dedicated URL (#chat or something) that I could bookmark, but a button on the page that doesn't save the setting would also be enough.
@dzaima What kind of benefits would a bigger community have? Presumably no one's going to hop on Matrix and say "okay, which esoteric programming language community will I join today?" but I guess people would more readily join and be more active if they already have an account on the site?
@Marshall not much (I just mentioned it because i could, not because it's significant). Still, if one wanted to know what this APL thing is, there's a slightly higher chance of looking at Matrix before TopAnswers.
also with the current TopAnswers system, you're kind of forced to a single APL room and no more. (there are per-question chatrooms you could abuse, but i don't know how preferable that'd be)
@Marshall That's important. Are Matrix rooms findable with web search?
TA at least allows creating additional rooms while keeping them associated with their site, although I'm not sure how one would find the perpetually active rooms among the many "just for a question" rooms.
@Adám The APL Wiki seems to be our best weapon in terms of SEO usually. I think if it links to the forum of choice in the right places then it becomes findable.
@Adám I suppose you'd ask a question called "BQN chat" (or another inferior topic)?
@Adám hm, they don't even really exist on the internet as-is. Viewing one requires registering somewhere afaik, but there probably are ways to set up a view-only room somewhere
@Marshall No, TA has the concept of post types. You'd post a Blog post about BQN, and that'd bee the BQN chat.
@dzaima Yikes, that doesn't sound like a very low barrier to entry. At least here, anyone can read along. The only thing we need is either ROs being able to grant people access or a dedicated mod. Maybe I should have run…?
@dzaima (it is a bit more complicated as matrix has proper replies so i'd have to keep a database mapping messages on one side to the other, but that still should be possible; it'll also look as ugly as IRC on the SE side, but the matrix side would be able to see each user as a separate user)
@dzaima kind of annoying that that's the way it is, as there's really not any reason for it to not be viewable without an account (besides spam i guess)
@Marshall Does rank fourth when Googling "APL chat" though. Maybe I should add "language" to the room description. First result is the APL Wiki entry for the room.
@dzaima Wait, if you run your own server, then you're like an owner?
@Adám you can either make rooms in the public matrix-hosted server, or have a self-hosted local instance that's completely separate from it, where you have absolute control over everything
@dzaima ok now i like matrix significantly less. Requiring a temporary account (that appears to not ever be deleted or even deletable) per guest room visit is just utterly broken
@dzaima wait this does work without an account. wat
@dzaima for some reason my local homeserver room just doesn't want to be previewed despite being set to do so. :/
@rak1507 Yup. Congrats. You may be able to salvage stuff with )copy path/to/aplcore but I highly recommend keeping source in text files (if you don't already do so) to prevent losses due to such errors.
@dzaima i'm guessing it's because the localhost:8008 in #testroom:localhost:8008 is not enough to tell that the server for the room is at http://localhost:8008, and this should magically be fixed by federation which would be a mandatory step for an actual room. ¯\_(ツ)_/¯
@dzaima Re: eating the super key on Linux, I don't mind it so much because I use an input mode switcher that can put me back in normal input mode with a few keystrokes, but it's not a good UX for people unused to that
What's really annoying is that afaik to go through the history in Dyalog you need Dyalog's super bindings to be on, if I switch away and then run a standard Linux APL input mode switch command, I can't move through history in Dyalog, I have to stop and start Dyalog to get that ability back
@phantomics i also have keybinds for switching layouts, but I still use my super key way too often mid-writing-APL so would have no option but either have an actual manual switch to an APL layout, or restarting dyalog quite often for zero reason
@rak1507 Under RIDE, you can make pretty much any such edit commands be whatever key combo you want. Under the Windows IDE you can only bind "macros" to F-keys, unfortunately, I can't seem to make the word-selection work, and the documentation seems to say it is only supported on Classic. Odd. I'll ask for Ctrl+Backspace to be Delete word, as I now realise that is a standard binding.
@phantomics oh so there are shortcuts for that, they're just incredibly stupid
this is the sad thing about linux being a disconnected mess - there's no general document that says that all apps should never ever by default touch the super keys
@Adám last I installed dyalog on windows, I could uncheck the layout installation, or at least switch away from it and it would stay away
on linux you just get no warning and your OS becomes unusable.
at least without ctrl you can restart your OS safely (to be fair, I can on linux too, but on my windows system, restarting without the super key would take using the commandline iirc)
@dzaima But it was checked by default. How would an unknowing use realise that leaving that checked amounts to messing up all your most used shortcuts. And while you and I are used to switching input languages, due to coming from countries with languages that are not widely used, most English speakers have never heard about keyboard layout switching, and don't know what that "ENG" in the taskbar does.