« first day (2205 days earlier)      last day (433 days later) » 

1:35 AM
@LdBeth Patch what kernel? The cause is just that CLI is in raw mode and doesn't do anything special with ctrl-z.
 
2:03 AM
the APL kernel, of cause.
I don't think mapl has any hidden feature that would allow you to config its key bindings.
 
2:42 AM
@LdBeth Hrm. I'd initially guess it's more of a CLI frontend patch. It's my understanding that the CLI isn't getting a lot of attention these days, anyway.
 
 
5 hours later…
8:07 AM
@Adám Got it, thanks @Adám @B.Wilson!
 
 
7 hours later…
3:07 PM
@Adám I have a very close one ⎕←{1=≡⍵:⍸⍵ ⋄ (⍳⍴⍵){(⊂⍺),⍵}¨(∇¨⍵)}2 2⍴(0 0 0)(1 0 0)(0 1 0)(0 1 0)
┌───────┬───────┐
│┌───┐  │┌───┬─┐│
││1 1│  ││1 2│1││
│└───┘  │└───┴─┘│
├───────┼───────┤
│┌───┬─┐│┌───┬─┐│
││2 1│2│││2 2│2││
│└───┴─┘│└───┴─┘│
└───────┴───────┘
Haven't tested for deeply nested masks yet, but the principle should work
like, change {(⊂⍺),⍵}¨ to a more conditional operation
 
 
2 hours later…
4:47 PM
Does anyone have any cool solutions to FizzBuzz? I was trying to come up with something as terse as I could, but didn't manage to get it under the 50 chars mark
 
 
5 hours later…
10:15 PM
@Adám How do you run a multifile program with the -script option? Do you do that, or does that not make sense?
 
10:50 PM
@FredrikNiemelä You shouldn't really use -script any more. With the 18.2, you can simply use dyascript. Simply concatenating them together should work, although you'll have to remove any intermediate #! lines.
 
What is dyascript?
 
A new executable for scripts :-)
@vcoutasso Depends a bit on your exact spect, but {∨/d←4/0=3 5|⍵:d/'FizzBuzz'⋄⍵}¨⍳ generates the first n terms while keeping the unchanged numbers numeric.
 
@Adám Where can I find it?
 
Next to your normal dyalog executable.
 
.... ok .... we (@JoelNiemelä) are trying to find it...
 
"dyalogscript" got it!
 
Sorry.
 
How is it different from running dyalog with -script?
 
-script was an undocumented hack, and this works way better in many ways.
 
Thanks for the pointers. Much appreciated!
 
11:04 PM
Does this mean there's hope for getting APL on Kattis?
 
I put my son on it, so there is hope :)
 
11:34 PM
@Adám input limits might make it impossible
 
Huh?
 
iirc ⎕ and ⍞ have a limit on how much they can read?
 
I don't think so when scripting. That's an IDE limit.
 
huh, ok, cool
nope, there's definitely a limit, make a large file and run dyalogscript <file containing ⎕←≢⍞> < large.txt
there's a limit of 4096
 
11:50 PM
uh oh. we should fix that
 
4096 lines?
 
chars per line
 
@Adám agreed ;)
(this is an example from the other day of APL 'rough corners')
 

« first day (2205 days earlier)      last day (433 days later) »