« first day (916 days earlier)      last day (1755 days later) » 

10:33 AM
Hm maybe printing should be a function rather than through assignment, ⍇←{⎕←⍵} so you could do ⍇¨
 
 
2 hours later…
ngn
12:15 PM
@Adám ⎕∘←¨
 
@ngn 1. Ugly, 2. Unsupported.
 
ngn
0. works :)
 
@ngn 0.5 for now.
 
ngn
@Adám in aplx that's read
"write" is a right arrow
 
@ngn ⎕FREAD, yeah. Hardly worth a symbol.
@ngn … which is a bit jarring, imho.
@ngn I suppose the brevity of your Reaction indicated that you had good fun golfing ;-)
 
ngn
12:24 PM
@Adám looks logical: data←⍇file and data⍈file
@Adám in the dyalog competition? fun as always :)
 
@ngn I still think a file object or syntax would be neater. «file»⌽←1
 
ngn
@Adám or 1⌽ under ⍇file
 
@ngn That should actually become possible when we get and .
 
ngn
12:42 PM
the same squiggle could be used for r&w: ⍇file and file⍇data
 
@ngn Yeah, some quadfns do that, e.g. ⎕CSV. I'd maybe use File←{0=⎕NC'⍺':⊃⎕NGET⍵1⋄(⊂⍺)⎕NPUT⍵1}
 
For what it's worth, I love the squiggle for read and write ops
 
@ngn Another idea I got was to allow you to "dot" into charvecs (or arrays of charvecs) to access the file content: 'myfile'.Text would be the vector of chars, 'myfile'.Lines would be the vector of lines, .Size etc.
You could even run a function stored in a text file: 'myfile'.Text←'{⍺+⍵}' ⋄ 2('myfile'.Code)3 gives 5
 
ngn
@Adám not very apl-esque. reminds me of in ⎕r's ⍵⍵
 
1:00 PM
@ngn Are you going to do a Webinar: "The 2019 APL Problem Solving Competition in 33 lines"?
 
@RichardPark tbf, only 28 actually have code.
 
ngn
1:14 PM
@RichardPark i'm afraid of live presentations
but if i win, i could publish a written explanation of the tricky parts
 
@ngn booooooooo, I want to see some live-action scans!
 
1:33 PM
@ngn I'm afraid you won't; you only use six scans and none are very interesting :-\
 
 
1 hour later…
2:43 PM
@ngn Both Dyalog and Vector.org.uk are interested in APL related articles at any time
 
 
4 hours later…
6:16 PM
Looking at this challenge, I wonder if APL could implement as string composition, as defined by the challenge specs.
Granted, it'd be nearly useless, but I think it'd be neat
 
@J.Sallé I don't quite understand the challenge. It sounds close to to me.
 
6:45 PM
@J.Sallé This little string enhancement tool may interest you.
 
6:56 PM
I can't even begin to comprehend it, but the output looks cool
 
@J.Sallé It is actually very simple. It is just a single call to ⎕R with a function right operand that selects case based on matched pattern, then takes appropriate action. Should I make a verbose explained version?
 
@Adám it would help a lot, yes hahahah
 
7:10 PM
Explanation:
https://tio.run/##jVQ9bxNBEO39K0Zp7iycKHFSWUKIFkGIMF0u6NZ3a9@S9a7ZjyQWhAIkC0VyBEKRaGigoUCiSkPJT7k/Ymb2nMs5uGCL097OzJt5M2@XTeRmPmVSjxaLfjn7@LoFUM5/466c/8TdV2AnWuRwwqTnwI3RBsQQMiYlz@FUuEJ7t7QyY9i0hQAT5hw3yi5RVhdhCiWcYFJYXvs2wjoUd/EuSpP8Xho1wg63j2DAsmMnsmPMLlTOzyAWymlwBa@rGPkxV669DvHwRXp0gxkQd1YQ@dnEcGuFVhCP2RSUdpBp5ZhQtZtdB5wkdaFL4G4FbCWzRR27NtJv4XqTJFtRFbnbjJSc3IGpnNq@4TeIqYKh9gYKZJ@LkXCWmt73A@toggHF0p9w3hGXoVdZ2GzeDA73nGUFjJnLihYV3b1fzq@3Dqrq9v24FzUY3Zne8IYFKD8eYHnItgdecZuxCW@yBdi9i1teXj3qP92PNqIOWZ5QBR38@wcbG9GDCarrldeOWxys9tiG0AqFHjgqB8wCoUGVugX/uygXl6g/0lRcKSkICcXfBhQ5KSN@eP
 
@Adám now that's pretty didatic!
I loved it
 
7:41 PM
@J.Sallé Thanks. Should I add it as $ in Extended?
 
@Adám most definitely
 
@J.Sallé There's one slight complication. It uses which would execute in the place where the cover function is defined. I need to make it execute where the caller is. I think that's pretty easy to solve though.
 
@Adám I'd love to see the final version
 
@J.Sallé I think it is as simple as replacing with (⊃⎕RSI)⍎. This also allows me to use variables inside the definition. The original didn't because I feared they might shadow values the user wanted in backticks.
 
I don't know what that quad does though
 
7:53 PM
@J.Sallé It is a vector of references to spaces where each level of the stack was called from, so the first element is "my caller's space". That's where we want to execute. RSI is Reference-to-Space Indicator
Compare with ⎕NSI which is Name-of-Space Indicator
They correspond to ⎕SI which is the State (or Stack) indicator, i.e. the names of my callers up the stack.
 
Ah, I see
There's a lot of stuff I still need to learn about APL, I see hahahahah
 

« first day (916 days earlier)      last day (1755 days later) »