« first day (1197 days earlier)      last day (1754 days later) » 

RGS
RGS
07:03
@Adám I have some breaking news: Morten wrote me saying you were interested in working with me but not because I was particularly smart, only because I knew how to code
Thankfully that was just a dream 🙃
:-D
 
4 hours later…
RGS
RGS
10:49
@Adám just to let you know that in the 2020's competition website it looks like I already submitted all the problems; probably because of some cookie or cache:
@RGS Oops. I'll see what we can do.
RGS
RGS
Don't worry, it doesn't bother me. I just wanted to let you know
@RGS Yeah, but it'll probably affect everyone who has done the previous one.
RGS
RGS
Yes. Also, I entered my email and hit "Register". I already received my single use pwd but the website is still showing the "Please wait" circular progress bar :)
Uh oh.
RGS
RGS
10:53
Maybe it's the aftermath of everything going offline yesterday
(did you take it temporarily down? because now I can't open the site; getting a 504 gateway time-out)
@RGS No, it works for me.
RGS
RGS
@Adám weird, not for me on my usual browser. changing browser fixes it
cleared recent cache; didn't work
@RGS Blame cacheing?
RGS
RGS
is it possible in any way that the server thinks its still displaying that "please wait" msg and me closing that tab and opening a new one confused everyone?
@RGS I'm not sure, but the team is on it.
RGS
RGS
11:07
D: sorry
11:18
Question re: javascript, peripherally related to APL: Assume that I have a variable defined as a string, which may or may not have blanks, tabs, newlines, etc., embedded it it, but the source defining it doesn't appear to have any explicit 'escapes' like \n in it. What I want to do is take that variable, and be able to write it out to a file on disk, then read it back into the program and assign what I've read back to the variable, and have the variable be identical before and after.
How can I do this?
(APL connection: I want to be able to save the disk images from norbert's 5110 emulator and load them back; this will let me "change diskettes" and preserve any APL workspaces I create with that emulator!)
@RGS This has now been fixed. (Though it isn't live yet ― we're fixing the other issues as well.)
RGS
RGS
@Adám alright, thanks!
@JeffZeitlin So you just need a mapping between arbitrary strings and valid APL names?
@Adám - Not even - the question is pure javascript code; basically, I ultimately want to put a pair of buttons on the HTML page for each emulated diskette, marked SAVE and LOAD, and when I click SAVE, it saves the current state of the specified emulated diskette as a file on disk, and when I click LOAD, it reads the file from disk and puts it into the js variable that "is" the emulated diskette.
I just need to know how to do the js to guarantee that the round trip leave the variable contents identical.
@JeffZeitlin wait, so is it full ASCII (or alternatively, with all byte values <= 255)?
11:27
@JeffZeitlin Maybe use JSON.stringify("abc\n\t ")?
If I had a real 5110, I could )SAVE libnum WS, take out the disk, and put it away, then the next day, put the disk back in. I want to effectively do that with the emulated diskettes.
The code does appear to be single-byte and all textual, at first glance.
Source in question can be found at members.aon.at/~nkehrer/ibm_5110/emu5110.js
hm, seems what I did in Canvas unnecessarily used JQuery..
@dzaima probably the first thing that popped up in google. here's that in pure JS
11:48
> Result should have been (2 5⍴'Hi Earth') with ('Hi' 'Earth') as right argument
@Adám problem with phase 1, q10?
@H.PWiz Yes, seems spaces collapse. Will fix.
12:02
@H.PWiz Thanks for spotting that. Should be fixed now (and site should be updated in a min or so).
12:48
> ≡/{⍵[⍵]} ̈nums (∊parts) ⍝(∊parts)and nums have the same elements
@Adám Problem 8 is missing a
13:00
@H.PWiz I see that. Will fix.
RGS
RGS
13:37
@Adám is the site fixed now? I still have trouble with the logging in part. I don't know if I'm doing something wrong -.-
@RGS MBaas will be with you shortly. He's the one actually writing that part.
RGS
RGS
@Adám ok sure, maybe I'm doing something really dumb
@RGS No you're not!
@RGS as @Adám promised, here I am. I fixed a problem - registration should work now!
RGS
RGS
@MBaas I confirm that my previous problems are now gone!
Thanks for the help!
13:52
Cool - thanks for bearing with us ;-)
@user406097 Hi William. If you want to participate here, please email me: adam@ with the same domain as www.dyalog.com
Is there a way to tell if an element in a vector is a namespace?
@xpqz If it is a simple scalar and has data representation type 326.
Maybe I should add this to APLcart.
That would be awesome. Out of interest, is this in the docs somewhere? I've not been able to find it there.
Hmm, quite a few of this year's phase 1 questions allow for nice tacit solutions. I don't think it was the case in 2019
14:17
One thing I noticed is that, if the input is a vector, they don't also require you to handle a scalar as if it was a 1-element vector. I remember in previous years having to always ravel the input
@H.PWiz That was to highlight the new function.
I also remember having to use ⊆⍵ in 2019
9 gold trophies on my phone :D the last one will need some experiments...
14:32
@xpqz It kind of is, but as always, you have to know what to look for. Hence APLcart.
... and 10 golds, with a wild guess on what does. (I didn't know it preserves rank.)
 
2 hours later…
16:11
@Adám There is a ! in the example output for phase 1 q10 where there shouldn't be
16:48
decided to finally make a replacement of my constant Canvas TIO links. currently very barebones but probably better anyway ¯\_(ツ)_/¯
17:11
@dzaima Ooh, a dedicated APL pasting site. Nice.
@Adám it's not only APL - the JS tab allows entering arbitrary preprocessing JS, currently allowing for JS, Java & C too (and of course, just plain text)
on my TODO list are J, k (though for those i don't have any reference color schemes), light & black themes (though currently the colors are hard-coded in the parsers of the languages), something for fancy REPL display; feature requests welcome
@H.PWiz Thanks, fixed!
@dzaima Why the separation between view and edit?
RGS
RGS
@dzaima looking cool!
@Adám is there any reference on how APL parses expressions? Or an APL grammar somewhere? I'm struggling with deriving the grammar on my own and I could really use some hints
17:27
@Adám editing highlighed text would require something more fancy than a single textarea (especially as the JS can do arbitrary changes to the generated text)
@RGS this could be helpful, it's pretty much equivalent for APL
@dzaima Right, we have the same concern with TryAPL 3.0. There's CodeMirror though.
RGS
RGS
Thanks dzaima and Adám;
I did look in the docs but I guess I looked the wrong terms up
@Adám that's an option of course, but what if I added a markdown "language" that renders the actual markdown in the view mode?
@dzaima True. A balance between usability and generality.
@dzaima another concern would be speed - 90kb of JS takes ~1s to generate, and that's very much unacceptable to do on every change
18:30
@Adám is there a good reason why {⍺ ⍺⍺/ ⍵} gives a length error if ⍺>1+≢⍵?
@Adám I would have expected to receive an empty array whenever ⍺>≢⍵
@VladimirSotirov No, we actually have an internal proposal for exactly that.
@VladimirSotirov I've added a note that you also expected this.
thanks! I got bit by this while doing some of the phase I problems :-)
I did too :)
19:05
Regarding the console interface of Dyalog on Linux. As I already use the super key for other purposes I disabled the keyboard shortcuts. Is there a prefix I can use to input the characters? I know in ride I can use backtick for that purpose. How do I configure the console interface to behave similarly?
@PuercoPop I don't think there's an easy way to get backtick input in the terminal, however, you can fairly easily switch shifting key from Super to something else, e.g. AltGr (right-side Alt).
@PuercoPop edit cat /opt/mdyalog/*/64/unicode/aplkeys.sh
(changing grp:win_switch to grp:switch to use AltGr; getting the console Dyalog to recognize backticks would require that happening in the interpreter itself, unlike this)
@dzazime I'm using altGr as well. I use super for my window manager and altgr for the accents that spanish (my native tongue) uses
I guess I'll just put up with ride, thanks anyway!
19:20
@PuercoPop hm, i'm kind of in a similar situation, with AltGr being used for Latvian. The best solution I could find was to just to manually switch between the Latvian layout and US+APL (setxkbmap -layout lv -variant '' -option -option 'compose:rwin,ctrl:nocaps and setxkbmap -layout lv,dapl -variant '' -option -option 'compose:rwin,grp:switch,ctrl:nocaps'). the keyboard management of linux wasn't made for this..
ngn
ngn
@PuercoPop do you use right ctrl for anything, eg virtualbox?
@dzaima actually, now that i kind of maybe understand the layout files i could maybe make a singular APL layout so I could just have the 2 natively switchable (also that witches rwin to compose which is not what you'd want but trivially removable)
@ngn I use right ctrl as a control, I use emacs. Although I think I could remap my model01 to use both control keys as ctrl and fn+ctrl to right control
@PuercoPop Is there anything in particular about RIDE that bothers you? Maybe we could fix that instead?
ngn
ngn
@PuercoPop here's a useful list of other options
@PuercoPop proud owner of a kinesis advantage here :)
19:34
@Adám mostly that I have to switch windows to switch from editing to trying things out in the repl. Once I know the code works I'm copying and pasting them to a file using Emacs. Other than that it has been a great using it so far tbh.
19:50
@PuercoPop Don't you have to switch between Emacs and the terminal too?
@Adám I haven't been able to use the terminal version, but no. Emacs can open a terminal buffer so the terminal would be inside Emacs
And writing glue code that sends the text in a file to the process terminal is something I know how to do.
also to note is that RIDE can edit actual files - )ed file:///path/to/file. It has an extremely annoying popup for saving though..
Somebody could probably make some decent money if they could make a new version of the Symbolics LISP keyboard with ... six buckybits?
D: it interprets )ed /path/file as relative not absolute. Damn windows (or the multifunctionality of )ed, or whatever)..
)ed //path/file works though. Still don't see any way to counteract the popup though (RIDE doesn't have the "Save this response for all files with ".___" extension" option)
20:17
@dzaima It should be easy to implement. Please log an issue on RIDE's GitHub repo.
IIRC, RIDE can also use emacs (or any editor for that sake) as its editor.
ngn
ngn
the popup is controlled by the interpreter. ride is just following orders.
@Adám Phase 2, problem 5: r[n]←amounts[n]+rates[n]×r[n-1] I believe there should be (1+rates[n])
20:40
@H.PWiz Updated. Thanks from Brian and the rest of the team.
RGS
RGS
21:00
The amount of time I spent in prob 1.8 is ridiculous ⍥
 
2 hours later…
RGS
RGS
22:36
@Adám there's a webinar tomorrow by you, isn't there?
Unfortunately I have to work...
On a scale from 1 to 73, how interesting will the webinar be?
@RGS Yes.
It'll be recorded too.
@RGS You're aware of APL Wiki, no?
RGS
RGS
@Adám yes
Oh I thought tomorrow's webinar was on the new 18.0 features
No, that's next week. Tomorrow, I'll just show a few pages and features of APL Wiki.
RGS
RGS
Ok I had those mixed up in my head
I could've gone fishing but I felt like chatting a tad bit
I'll drop by literally just to check what you sound like
And I'll try to keep my schedule free for next Thursday!
You've not heard my voice?
RGS
RGS
22:41
@Adám I did in a previous webinar recording on aplcart
But hearing it live is different :-P
Right, thought so. I've made quite a few webinars and presentations.
RGS
RGS
I mean, you probably sound the same but the experience for me is going to be different because I don't know you personally
So this'll be closer to the "real experience", if that makes any sense
23:31
@Adám In Phase 2, the last line of code on page 8 (bioinformatics task 1) seems wrong - it is using the same file twice.
@Adám The expected output on page 13 has info@@contest.com, which I believe should be [email protected].
@VladimirSotirov thanks for the tip - in the end i found this video made trains much clearer youtube.com/watch?v=A2LqqBosvY0 . i still don't feel super comfortable with them but managed to convert one of my answers which made me happy!

« first day (1197 days earlier)      last day (1754 days later) »