« first day (1352 days earlier)      last day (1295 days later) » 
04:00 - 21:0021:00 - 22:00

RGS
9:00 PM
@rak1507 yeah :/ I'll stick to less changes per post, so I can make the posts smaller in size and more frequent
 
I'm glad you're doing it again, I learn a lot from reading it
 
RGS
Sorry if you were really waiting for it :P
 
I might steal borrow some of your code to try making my own APL dialect
ah damn it how do you do strikethrough
 
RGS
Thanks @rak1507! I also learn a lot from doing it :P especially when I find mistakes and have to redo portions of the code ahaha
 
@rak1507 ---steal---
 
RGS
9:03 PM
@rak1507 I don't think I added it yet, so let me add a nice open-source license to the code. Feel free to fiddle with ti
 
@dzaima thanks
`shape = getattr(alpha, "shape", None) or omega.shape`
why not
`shape = getattr(alpha, "shape", omega.shape)`
?
test
 
@rak1507 no markdown in multiline messages
 
Right, weird
 
RGS
@rak1507 nice suggestion but if alpha does have a shape, I might want to use omega's shape
e.g. alpha is a scalar and omega is not
 
Aren't the two equivalent?
 
RGS
9:07 PM
@rak1507 the two expressions?
 
yeah
maybe I'm missing something
bit confused
 
RGS
they are not, look:
if alpha.shape = [] and omega.shape = [1], then my code returns
[] or [1]
which is [1]
your suggestion gives []
 
Ahh makes sense, I get it now, thank you
 
RGS
sure o/
may not be as practical, but you might also consider leaving a comment with questions/suggestions at the end ;) to foster future readers' engagement
 
Why would I make a fool of myself in your comments when I could here instead ;)
 
RGS
9:10 PM
@rak1507 xD
 
Might give the exercises a shot tomorrow, hmm what do I have, economics? Perfect
 
@dzaima FYI I just split the block type (f/m/d) and immediacy into separate variables in the compiler instead of adding them up. That seems to be cleaner, so I now weakly recommend struct-of-lists, because it's what the compiler naturally produces.
 
'make a distinction between ⍳5 and ⍳,5 so that ⍳,5 returns 5 1-item vectors instead of 5 scalars -- this also needs , to be implemented;', for me (⍳5)≡(⍳,5)
 
@rak1507 in dyalog, yeah, due to historical reasons. They really shouldn't be equal though
 
Ah
I still am a bit unsure about the difference between 1 item vectors and scalars tbh
 
9:16 PM
@rak1507 a 1-item vector has the shape ,1, but a scalar has shape
historically the two have acted similarly, because something something people were lazy something something didn't exist yet
 
RGS
@rak1507 a scalar is APLArray([], 2) and a 1=item vector is APLArray([1], 2) :)
 
@rak1507 like look at how ugly this is
 
Yeah that does seem inconsistent
 
RGS
@dzaima your point would be even stronger if you included ≡⍳0⍴1
 
04:00 - 21:0021:00 - 22:00

« first day (1352 days earlier)      last day (1295 days later) »