@RichardPark An update about my issues with your Perl Weekly Challenge submissions.. It seems like it may in fact be an issue with Jupyter integration? The code indeed interprets fine on TIO.. But when trying in Jupyter-Lab: imgur.com/a/lB8nPMR
The code in question is from task 1 of week 56 but I have similar issues with each example I try in Jupyter. Here it is on TIO (url shortener used to get around SX message length limits)
Indeed. I'm still very much an APL newbie and didn't know to check for modern vs APL2 differences (it should have occurred to me though). Those keycaps are quite beautifully rendered, I especially like the contrast of displaying the APL glyphs in red. But it's unfortunately targeted towards an audience who is purely interested in the aesthetics of the keys rather than programming APL so I'm not even sure if they would be interested in switching to a modern style.
BTW if anyone is interested in a set of the keycaps used on the Dyalog kb, I was informed that they can be ordered in batches of 10 from their supplier (once things get back to normal that is). That doesn't seem like such a high threshold for a group buy.
I've got all only one ⌸ , leaving my ⌸board to board ratio kind of pitiful at the moment. :)
the existence of the local variable a "pins" that chunk of memory (i.e. makes its refcount=2, or in other words: it claims that it's in use though it really isn't)
@RGS it modifies it in place when the refcount is 1, i.e. when you don't create your variable v. then @ would know that it's the sole user of that piece of memory, and it can do whatever it likes with it.
or the user might want to see v in the debugger - some apl-ers have the habit of debugging as they code, so the next line might not have been written yet :)
@ngn it's obviously pretty bad if you plan on calling functions a lot, but this is APL, where we'd hope array sizes greatly outweigh function call count (though whether that actually happens is a separate question and i run into the slowness of dfns a lot)
Ah, crossed wires. I've ingested a lot of info on both of them in the last 5 or so weeks since I initially fell into "The K Hole That Changed My Life" :)
Ah, it seems to be a mistaken leap in logic that I made from the lack of lexical scoping in K. TIL no lexical scoping ≠ only dynamic scoping.
@ngn i would still call that "no scoping". I would hope every language with imperative functions doesn't randomly hide local variables, and globals aren't really "scoped" either
@ngn Right that's a great point. Dynamic scoping requires explicit implementation, not a side effect of not having lexical scoping like I was mistakenly assuming.
Dynamic scoping can be pretty cool, if unwieldly, but I must admire the K approach of just deciding not to scope. Is K the Bartleby of (non-esolang) programming language design?
@ab5tract it's not like k's author refuses to make changes, though. he rewrites from scratch every few years and actively seeks and eliminates inefficiencies. "bartleby" is more like the k interpreter - doing the absolute minimum to perform a task, ideally nothing.
@dzaima none is doing it for me and I'm 99% sure last time it was the ⎕ that did; if you recall correctly I struggled really hard with using the )load, it didn't even work D
@dzaima i really don't like X11's keyboard/language management stuff.. I have no clue what part of the thing currently makes my caps lock key open xterm (i've deleted/overwritten all occurrences of it and re-called everything i did to get that to happen), but it does..
@Adám I still have all kinds of uncomfortable problems with the Dyalog APL competition website. One hour ago it loaded just fine and I was able to submit my last phase 1 solution and whatnot. Now I wanted to make a partial Phase 2 submission and the website is giving me a 504 Gateway Time-out error
@Adám Alright; feel free to give him my email if he needs to reach out to me. I am not too worried, I already downloaded the 2020 stuff for phase 2 and I'm still solving the problems :P
You can replace every occurrence of "without diagonal" with strict
I opted for the more verbose "without diagonal" because I figured "strict" would be a mathematical standard common programmers are not aware of. FWIW I myself didn't know/remember about it, and I'm (a couple of months away from being) a mathematician