« first day (1305 days earlier)      last day (1368 days later) » 

1:20 AM
@rak1507 relevant StackOverflow stackoverflow.com/questions/62622618/…
 
1:50 AM
@Adám Could I find out also about my score and rank please ? I am a non-student, email username : hsuyueshan. First time attending this really nice competition. Thanks to Dyalog for organizing it ! It really helps in practicing APL. Will try to prepare for the next one !
 
2:37 AM
@TessellatingHeckler aww ya beat me to it
it was a bit too late for me to be golfing at that time
@Adám oh nice
 
 
1 hour later…
3:46 AM
0
Q: Unique mask on nested arrays APL

icicleI am trying to use the new unique mask function added in Dyalog v. 18, but it seems that it doesn't work on nested arrays. ≠¨('aabbcc')('ddeeff') SYNTAX ERROR: The function requires a left argument ≠¨('aabbcc')('ddeeff') ∧ I figured it would return this ┌→──────────┬───────────...

 
4:11 AM
In Python, if i want a string of 7 spaces, I do " "*7.
how does it work in APL?
 
@Razetime You could do 7⍴' ' if it's a single character
if it's multiple characters, that's what I was fighting with "beep" earlier for that codegolf, and all I came up with was ∊7⍴⊂'beep'
enclosing, reshaping, then flattening. There might be a better way
 
4:34 AM
strings are bit hard eh
thanks for the help
 
⋄ 7/'beep'
 
@TessellatingHeckler bbbbbbbeeeeeeeeeeeeeeppppppp
 
but how easily can you do that in Python? :P
ooh
⋄ (,∘'beep'⍣4) ''
 
@TessellatingHeckler beepbeepbeepbeep
 
catenate beep four times. Is that nicer, or is that too much syntax noise.
 
 
3 hours later…
7:46 AM
f←{⍵=0:1⋄⍺×(∇⍵-1)} why does 2 f 2 give me a value error?
` ⋄2{⍵=0:1⋄⍺×(∇⍵-1)}2
⋄2{⍵=0:1⋄⍺×(∇⍵-1)}2
 
@Razetime VALUE ERROR
 
or really, any arguments
⋄3{⍵=0:1⋄⍺×(∇⍵-1)}4
 
@Razetime VALUE ERROR
 
what part of recursion am i doing wrong
 
8:05 AM
@TessellatingHeckler looks way nicer
another question
⋄'hello','world' returns this
 
@Razetime helloworld
 
but ('Hello' 'world')[1],'world' returns Hello world
⋄('Hello' 'world')[1],'world'
 
@Razetime Hello world
 
why?
 
 
2 hours later…
ngn
9:48 AM
@Razetime not to worry. there's no shortage of golfing challenges.
@Razetime you didn't supply a left arg in the recursive call: ⋄3{⍵=0:1⋄⍺×⍺∇⍵-1}4
 
@ngn 81
 
ngn
@Razetime their structure is different. in the first case it's a simple character vector. in the second case the first element is a nested vector. you can see that more clearly if you use ]box on in the repl or the display function from dfns: ⋄⎕cy'dfns'⋄display ('Hello' 'world')[1],'world'
 
@ngn
Illegal code
VALUE ERROR
 
ngn
trouble with the law.. :) anyway, this is the expected output:
┌→──────────────────┐
│ ┌→────┐           │
│ │Hello│ w o r l d │
│ └─────┘ - - - - - │
└∊──────────────────┘
@Razetime note that square-bracket indexing (correctly) returns an enclosed "Hello"
if you want the string "Hello" itself, you could use pick-indexing: (1⊃'Hello' 'world'),'world'
 
@ngn oh my god that was so dumb
@ngn Thank you so much
 
10:52 AM
Hello again, am back with another problem
I have a solution to (this)
Braille question
which accets string input
I need to make it work on tio
 
@Razetime you can't use the ⎕SRC⎕THIS thing with functions taking input with /
 
oh ok
it seems to throw an error when I try to get the alphabet string as well
so how do I make it run?
 
@Razetime also TIO is still on Dyalog 17 so no ⎕C
 
hmm
so I just post as is?
without a URL
 
@Razetime this works, plus it's 1 byte shorter :p
 
10:57 AM
how does that work? xD
 
@Razetime 819⌶ is what was there before ⎕C existed
also, (i←…),'…''…',⍨i←…
 
oh impressive
 
@Razetime also, ¯1∘⎕C could be ¯1⎕C, or just ⎕C
 
@dzaima i need to put that modification in?
 
@Razetime that's a byte golfed
 
11:00 AM
@dzaima I took it from APlcart so I really didn't know whether I should remove them
 
@Razetime APLCart takes pride in making every function be a function, in many cases it has very unnecessary tacit stuff
 
Good. So I'll have to take and golf those into the programs
but with ⎕C would be 2 bytes shorter right
@dzaima
 
@Razetime yeah. you can post with that, but keep 819⌶ in TIO with a mention about it
 
Wonderful
thanks a lot for the help
 
11:27 AM
@dzaima what does your about section mean
 
@Razetime it's SOGL code
 
wwow
it looks pretty confusing ngl
lemme execute it
@dzaima
doesn't print anything
 
@Razetime you sure you copied all 31 chars? any errors in the console?
 
maybe there was a stray space
Ima run it again
ah it links to canvas
 
@Razetime yep.
 
11:36 AM
Ok time to run the same thing in Canvas
probably won't give output this time
 
 
2 hours later…
1:32 PM
Dumb question can I turn ⍳10 into something like (1)(2)(3)(4) etc
like ⍕¨⍳10 but keeping the values as numbers
 
@rak1507 what do you mean by (1)(2)(3)(4) (since it's equal to ⍳4)?
@rak1507 so convert each number to its digits?
 
Yeah, I was going to try and use @ to replace certain numbers with strings, and that didn't work, but I wondered if it'd work in another way
Not really sure
 
what exactly do you want to do?
 
something like ('text'@2) ⍳10
 
@rak1507 for that you probably meant (⊂'text')@2
 
1:36 PM
Ah great that's it thanks
 
@rak1507 if the "yeah" is the answer to "convert each number to its digits", then 10⊥⍣¯1¨ ⍳10
 
The enclosing was what I needed, thank you
 
<kritixilithos> speaking of, what's a good way to enclose certain entries together? like given ⍳10, and i choose indices 4+⍳3, then i expect 1 2 3 4 (5 6 7) 8 9 10
<kritixilithos> i had half-expected @ to be able to do it, but i don't think it does
<kritixilithos> s/does/can
 
what about indices 1 2 4 5? should it be (1 2) 3 (4 5) 6 7 8 9 10 then?
(in that case, with some unwrapping is probably the best bet. for a sequential enclosing, i'd probably go with some ↑↓s)
 
<kritixilithos> good question, i hadn't thought about that, but that could be a good compromise until someone gives a better one
<kritixilithos> this seemed to me to be something that could potentially be solved very concisely, but i guess not
 
1:53 PM
(1,2≠/∊)⊂⊣
⋄(⍳10)((1,2≠/∊)⊂⊣)(4+⍳3)
 
@rak1507 1 2 3 4 5 6 7 8 9 10
 
⋄(⍳10)((1,2≠/∊)⊂⊣)(1 2 4 5)
 
@rak1507 1 2 3 4 5 6 7 8 9 10
 
@rak1507 not quite what the original question was, but probably more useful
 
Oh my bad, what was the original question?
 
1:56 PM
@rak1507 1 2 3 4 (5 6 7) 8 9 10(1 2 3 4) (5 6 7) (8 9 10)
 
Oh right
 
BQN documentation (Join for a random example) now has REPL links! Click one of the corner arrows and magic will happen.
 
2:11 PM
That's really really cool!
@Marshall how long have you been working on this?
 
@Razetime BQN since June, the links since yesterday.
 
Do you accept contibutions?
I can help with website things
 
@Razetime Yes, definitely. The webpages are generated from markdown though (the one I linked to is the fancy version of this file) so you can't work with them directly.
 
oh, it's Jekyll right
mlochbaum.github.io ← this place should probably have a BQN link
 
@Razetime Nope, BQN.
 
2:16 PM
BQN MArkdown?!?!?
 
@Razetime Yeah, that's somewhere on the todo list.
 
that parser is so extra I love it
I suggest adding a title sometime soon
like the title element
 
Yes, title and favicon.
 
what do you plan on using as a favicon/logo?
 
I don't have any better ideas than squishing the characters BQN together.
 
2:23 PM
How about this symbol '⍉'
but made into an n
capital N
 
Kind of a |(\)| thing?
 
yep
exactly
 
##                    ##
####                  ##
##  ##                ##
##    ##    #####     ##
##   ##          ##   ##
##  ##  ########  ##  ##
## ##   #      #   ## ##
## ##   #######    ## ##
## ##   #      #   ## ##
##  ##  ########  ##  ##
##   ##          ##   ##
##     #####    ##    ##
##                ##  ##
##                  ####
##                    ##
Just need to draw it in slightly higher resolution...
 
I'll try making a vector
@Marshall How's this look?
 
2:47 PM
@Razetime the 'B' would be a couple pixels at favicon size (i might or might not also be giving a go)
 
@Razetime Too wobbly. BQN should be super geometric.
 
I just used the APL font
Maybe something sharper would make more sense
 
3:04 PM
 
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="-7.5 -7.5 15 15">
<g stroke-width="1" stroke="black" fill="none">
<path d="M-5.7 5.7V-5.7L-3 -3A4.243 4.243 0 0 0 1.624 3.92"/>
<path d="M5.7 -5.7V5.7L3 3A4.243 4.243 0 0 0 -1.624 -3.92"/>
<path d="M-2 -2H2V-0.6L1.2 0L2 0.6V2H-2ZM-2 0H1.2"/>
</g>
</svg>
 
bit late now, gtg
 
3:18 PM
I'm reading a NSFW story from a NSFW website, and one of the plotlines involves deciphering languages - and the author makes a reference-by-description (it's not explicitly naming) to APL...
"More recently, a programming language that used overstriking — combining two or more characters in a single space – was invented for mathematical problems. The language was interesting, but never gained much popularity."
 
ngn
@JeffZeitlin "recently" :)
 
@ngn - Well, in the story, the main character (who is doing the language deciphering) had just mentioned Hangul; APL is certainly more recent than Hangul... :)
 
I think I'll go with that. It's pretty clean.
 
@Marshall my version updated, but i think i do prefer yours
 
 
5 hours later…
RGS
8:04 PM
@dzaima are you a (uni-level) student or a worker or something else?
(just ignore the question if this is smth you'd rather not answer)
 
looks like boinc logo
 
8:48 PM
@RGS my SE profile page in conjunction with the competitions results and connecting of dots should be able to answer that
 
RGS
9:26 PM
@dzaima that is what I thought, congratulations then ;)
 
9:51 PM
imagine being a competition winner :(
 
 
1 hour later…
10:56 PM
@Razetime thinking about that more, what I want from multiplying 'beep' is like take ↑ ing too many things, but instead of padding with the prototype space, loop around and take from the beginning again. Realised that's what reshape does, sooo
⋄ 4 (⊢⍴⍨×∘≢) 'beep'
 
@TessellatingHeckler beepbeepbeepbeep
 

« first day (1305 days earlier)      last day (1368 days later) »