« first day (693 days earlier)      last day (1951 days later) » 

7:09 AM
@ngn 44 now (went about it from fresh after seeing your challenge pop up in main)
 
 
1 hour later…
ngn
8:30 AM
@Cowsquack the trouble is i can't find mine in the pile of backups...
i'll try to redo it
 
haha, I didn't store my solution that's why I redid it too
 
I've just found a 43 byte solution, still looking for golfs
 
hmm 2 44-byters, now where are the last two bytes
 
The choice of starting with 1s and then going to 2 is slightly infuriating. Mine starts with 1⌈2+≢∘⍸-⍨
 
I use ≢∪∊⍺ where is the matrix
 
8:45 AM
Mine is quite different from yours
41 bytes. :)
 
:D nice
 
Mine contains no @, fwiw
 
9:06 AM
(unrelated) CMC: golf ,⍳∘⍴
 
ngn
@H.PWiz ⍸=⍨
 
Yeah, that's whaat I had
 
ngn
@H.PWiz it assumes the argument is simple though
⍸∊⍨
 
9:40 AM
posted. Can't think of any more ways to golf it
 
ngn
@H.PWiz nice. it makes use of on nested arrays
 
@H.PWiz 1⌈2+≢∘⍸-⍨⍴⍴∘⍋⍸∘~{⍵∪⍺[⊃⍒⌊/+.×⍨¨⍺∘.-⍵]}⍣≡⍸ for 40?
 
Cool, thanks!
 
ngn
10:00 AM
@H.PWiz -⍨ -> - and 2+ -> 2-
 
nice usage of ⍋ and ⍒ btw
 
@ngn Thanks
 
 
5 hours later…
2:52 PM
@Adám @Adám it's office hours now, right?
 
@dzaima Yes.
 
hmm just doing ]box on and then 2⎕NQ'⎕SE' 'FileWrite' makes )off not close RIDE
 
@dzaima Works now.
 
how do i change '⎕SE'⎕WG'File'?
also why '⎕SE'⎕WG'File' instead of ⎕SE.File
 
@dzaima '⎕SE' ⎕WS 'File' 'newname'
 
2:56 PM
doing ⎕SE.File←'...' seems to have worked just fine, and it actually made the file (well after FileWrite)
 
@dzaima So that there should be no reserved names in ⎕SE. However there is an option to built-in expose root names, which will allow both that and all kinds of other things.
@dzaima Huh. I'm surprised that worked.
 
how do I open that session file?
 
@dzaima Use the FileRead method.
 
@Adám how is it used?
 
@dzaima What does 2401⌶2401⌶1 give you?
 
3:00 PM
@Adám 1
 
@dzaima 2⎕NQ'⎕SE' 'FileRead'
 
@Adám so I first set '⎕SE' ⎕WS 'File' and it reads that?
 
@dzaima Ah, that means your root properties, events, methods are exposed. So you should be able to use all these things like normal APL: ⎕SE.File, ⎕SE.FileRead, ⎕SE.FileWrite.
@dzaima Yes, first set File to the name you want to read from or write to. Then call the read or write method.
@dzaima Any success?
 
@Adám just did a test and realized that ⎕SE.FileRead doesn't seem to have done anything
2⎕NQ'⎕SE' 'FileWrite' works though, but ⎕SE.File ← ... works. o.O
 
@dzaima Read vs Write?
 
3:06 PM
⊢⎕SE.FileRead returns 1 & doesn't work, ⊢2⎕NQ'⎕SE' 'FileRead' returns 0 and does
 
@dzaima Good. Now you can modify your APL shell script or your environment etc. to include SESSION_FILE=/home/dzaima/dws/s3.dse
 
@Adám yep, seems to be working :D
 
@dzaima Alternatively, you can save to the default session file, $DYALOG/default.dse I think it is. Not recommended though, as then you can't reset.
 
oh right default probably doesn't work as it's in /opt/ :|
 
@dzaima So read-only, right?
 
3:13 PM
@Adám idk, probably ¯\_(ツ)_/¯
⊢2⎕NQ'⎕SE' 'FileWrite' on it gives 0 while 1 for a custom file
 
@dzaima I really should make a user command ]session such that you can do ]session save /home/me/mysess.dse and then ]session save and eventually ]session load /home/me/mysess.dse.
 
error AC0008: error (SYNTAX ERROR) executing line "Dyalog APL Slash S Minus 64 Version 17.0.33756" I like how your interpreter switches / with Slash and - with Minus
 
@J.Sallé that's its way of modifying primitives
 
@J.Sallé Wait, you put in garble, right?
 
@Adám that's my TIO of \o/
 
3:15 PM
^ that
 
@dzaima @J.Sallé What? You guys lost me.
 
9 mins ago, by dzaima
 
@Adám it's the debugger output on TIO for that link
 
@J.Sallé Oh, because you used TIO as a paste bin. Got it.
 
TIO is a great pastebin :p
 
3:17 PM
Hm, I don't know of "pasting" services that just encode the content in the url like TIO does. Maybe we should ask Dennis for a no-op "language".
 
@Adám probably making that a language would only confuse people. Having a special pastebin-ish thing in TIO would be interesting though
 
I think he uses the same algorithm as Jelly's string compression
 
@J.Sallé That can't be. I think TIO just uses base-64.
 
@J.Sallé jellys compression is pretty bad at dealing with repetitive text, so that wouldn't be feasible :p
@Adám it does use some compression beyond that though
 
I see
 
3:21 PM
@dzaima Makes sense. Still, a TIO-paste would be awesome.
 
 
2 hours later…
4:52 PM
#AdventOfCode day 18 in Dyalog APL! I'm leaving day 17 behind. you can pretend I did it in vim like @bblum0 (https://twitter.com/bblum0/status/1074707032517865472)
 
@Feeds FWIW this is what I had for day 18
 
 
4 hours later…
8:33 PM
generating random test input data is hard. ?10⍴32 2 2 1 2 2 2 2 2 2 ಠ_ಠ
 
@dzaima Looks random to me. Maybe ∊?⍨¨3⍴3 next time?
 
oh apparently that has a whole 0.01% chance of happening. Still trying to do AoC D17 in apl :|
 
ngn
@dzaima how did you calculate that probability?
 
@ngn 100÷3÷⍨3*9, assuming I'd also be wowed if the 2s were all 1s or 0s
 
@dzaima Isn't it more like 5% chance that one of three won't be present in a set of ten? 3×10*⍨2÷3
 
8:45 PM
@Adám yeah but also the fact that it's almost all 2s
 
Pareidolia ( parr-i-DOH-lee-ə) is a psychological phenomenon in which the mind responds to a stimulus, usually an image or a sound, by perceiving a familiar pattern where none exists. Common examples are perceived images of animals, faces, or objects in cloud formations, the Man in the Moon, the Moon rabbit, hidden messages in recorded music played in reverse or at higher- or lower-than-normal speeds, and hearing indistinct voices in random noise such as that produced by air conditioners or fans. == Etymology == The word derives from the Greek words para (παρά, "beside, alongside, instead [of]...
 
ngn
19
Q: Hand patterns in a card game

ngnA deck of cards is the Cartesian product of S suits and R ranks. Many, though not all, card games use S=4 and R∊{6,8,13}. A hand of H cards is dealt from the deck. Its distribution, a.k.a. "hand pattern", is an array that describes how many cards you got from each suit, ignoring suit order (so, i...

^ might be of help
 
i wonder how hard would it be to make a random sequence generator that feels random for a human :P
 
@dzaima About as hard as it would be to define feels random for a human.
 
ngn
i got 0.1% with the following reasoning: the more populous digit can be any of 3. the singleton digit can be any of the other 2. the position of the singleton can be any of the 10. there are 3*10 (* as in apl) possibilities. so the probability is: (3×2×10)÷3*10 = 0.001016105269... = 0.1%
0.1% events happen all the time :)
 
8:53 PM
@dzaima I couple of years ago I worked as a secretary for someone who was beginng to suffer from dementia. I gained the ability to predict when a phone or house number would be problematic due to embedded "patterns".
 
@ngn yeah i realized that my answer should be ×10 as i didn't consider that the singleton could be in any of the 10 positions
 
9:48 PM
that's one layer of D17 done i think :D no idea how slow mad is though
 
@dzaima AoC?
 
@Zacharý yeah
 
I'm probably going to spam all of the days at once near Christmas.
 
mad is basically replace 1s encased in 2s (/21*2/) with 8s, but it uses partitions probably making it horribly slow/memory inefficient
 
So doing it that way was MAD?
 
9:52 PM
@Zacharý i was mad while making it :p
 
:)
 
@dzaima oh and it also replaces the starting 2 with an 8 because reasons and doing 1↓¨ would feel horrible
 

« first day (693 days earlier)      last day (1951 days later) »