« first day (1772 days earlier)      last day (56 days later) » 

8:30 AM
Added Day 2 to my gist. More APL home-court advantage: gist.github.com/xpqz/d406eb493fd2a875ae463cce009463af
 
yeah i didnt use apl today
although later i did make an apl answer to part one
 
@PyGamer0 What did you use instead?
 
python
 
A fine language. I'm going to use AoC as an excuse to brush up on my very lacking NumPy knowledge.
 
9:19 AM
@Adám Is APL Real programming language or esolang?
 
(¯3) | 4

¯2
does anyone know why 4 mod (-3) => -2 ?
4 = (-1)(-3) +1 => r = 1 too
4 = (-2)(-3) -2 => r = -2
Why Dyalog choose negative number ?
In Division Algorithm, a = q b + r , 0 <= r < |b|, q and r are unique
If r is negative, then it seems to me q and r are not unique
 
9:36 AM
@Fmbalbuena It's 100% a real, general purpose programming language.
 
9:47 AM
@Fmbalbuena APL is A Programming Language, I also like to call it, A Practical Language
 
10:16 AM
 
 
2 hours later…
11:50 AM
Announcement: BAA webinar in 4 hours. Getting time to select a logo for APL. Have your say at the webinar or leave feedback at apl.wiki/APL_logo
 
 
2 hours later…
1:52 PM
BAA is going to be the authority on deciding the logo?
 
@Adám Hi @Adám! Yes, I am very interested in learning APL! I've been watching the videos on the code_report channel and I'm trying to learn it by solving Project Euler problems. I am a Mathematics teacher, with great interest in programming and had a completely wrong idea about APL, now I understand its great beauty!
 
I like yours, it's more apl-y but eval makes it easy
 
2:08 PM
original python and my apl solution for day 2
 
@ViníciusMello Very cool. Welcome to the Orchard – you'll find that we're a very friendly bunch. As you're relatively new to Stack Exchange chat, I suggest having a look at apl.wiki/APL_Orchard#Features. Project Euler problems are good, but if you want some simple tasks that are well geared for APL, check out problems.tryapl.org. You can find additional learning resources at apl.wiki/learning_resources
@Razetime I noticed your comment on the APL display matrix logo and have tried to fix it up a little, but I have a hard time making it both "solid" enough to stand out, while preserving the "look":
Round corners:
 
i like the round corners more
 
Slight gaps:
@RikedyP No, they're just hosting the effort.
Today, I reached out to GNU APL's creator and maintainer (his comment is on the wiki now), APL2000 (APL+), and Log-On (APL2).
 
2:23 PM
@rak1507 was just trying to figure out how yours works...
 
@ViníciusMello hello fellow mathematician :D !
@ViníciusMello there are some books for teaching maths with APL, I believe you can find some here: code.jsoftware.com/wiki/Community/Creative_Commons
Eg:
Iverson, K.E., APL in Exposition, IBM Corporation, 1972-01.
Iverson, K.E., Introducing APL to Teachers, IBM Corporation, 1972-07.
Iverson, K.E., Algebra: An Algorithmic Treatment, Addison-Wesley, 1972.
Iverson, K.E., Algebra as a Language, Appendix A of Algebra: An Algorithmic Treatment, Addison-Wesley, 1972.
Iverson, K.E., An Introduction to APL for Scientists and Engineers, IBM Corporation, 1973-03.
 
@RGS is also a mathematician, and teaches too (but mostly programming, I think).
 
@ViníciusMello also you might find this book a pretty nice intro in abstract algebra using APL : amazon.com/Abstract-algebra-computational-Charles-Sims/dp/…
the APL version used there is dated, but I'm fairly certain that one could use the examples in modern Dyalog APL
 
@milia woah.
that book seems like an interesting read
 
@KamilaSzewczyk yep :)
it's introductory, but covers the most important stuff of abstr. algebra, as you probably agree on that toto
*too
 
2:30 PM
1984...! imagine those kinds of resources revised for modern Dyalog, that would be cool.
 
actually I was trying to keep that book a ... secret :$ but it seems that I cannot hold good things inside for too long. As discussed with @Adám earlier, I'll have to request permission from the publisher in order to adapt the code examples into the modern Dyalog APL. Once this is done, I'd love to work on this book project with anyone interested :) I have a github repo ready, I'll make it public when we get the OK from the publisher. Sadly the author had died at 2017.
@xpqz actually there are many math books in old APL written by Ken and others that it'd be great if we could adapt them in modern APL.
also, with the help of Bob and the other nice people from jsoftware we could adapt the math books that Ken and Roger wrote in J, into Dyalog APL.
not sure how easy that would be, since J seems to be ready made for mathy stuff, but...we could look into it.
 
 
1 hour later…
3:46 PM
@Adám i like this
but now we need a designed to square it out for favicons and such, right
 
@Razetime Designer? Also, btw, a favicon can have a non-square icon. Many sites do, including this very page (it is very vertical, which is even more unusual).
 
yeah
ah i see
 
Not sure why, but I think it works ok-ish as a logo, but not at all as an icon.
 
@Adám :( can't make it today either
 
@Razetime Actually, the old version is more square.
 
3:59 PM
i see
 
@xpqz updated my aoc with a complex nums solution github.com/rak1507/Advent-Of-Code-APL/blob/main/2021/…
 
4:46 PM
Nice (altho nfc how that works...)
 
⎕IO←0 ⋄ ⎕←0j1*'fu'⍸'forward' 'up' 'down'
@TryAPL hello
⋄ ⎕IO←0 ⋄ ⎕←0j1*'fu'⍸'forward' 'up' 'down'
 
@rak1507 1 0J1 0J¯1
 
@Adám Thank you!
@milia Thanks for the references!
 
5:02 PM
nice, similar to mine but using vecs instead of complex nums
 
5:14 PM
@rak1507 Yeah, I thought about complex numbers, but then decided against it. :) But I see, it's not bad
@rak1507 Oh, but somehow I get a syntax error on your line #6
Ah, ⎕IO difference. It's weird how you can get a syntax error from that
 
@ViníciusMello you're most welcome.
 
5:41 PM
@klao Well, if ⍎¨@1 will be executing something different that might not be proper APL code.
 
@Adám Ah, of course!
 
6:24 PM
@klao Maybe I thought too much when I decided to be sure that the depth isn't negative...
@rak1507 People are maybe so used to use moving averages during these covid-times.
 
@kimmolinna I thought of that too, but usually AoC is very specific and would have mentioned it.
 
@klao That's good to know. Thanks.
 
7:21 PM
For all :If, :Else... control flow stuff , is it Dyalog thing only or actually APL thing?
I found all those :If, :Else are very "un" nature.. in APL, it is almost like a hack.
 
Dyalog, though a handful of APLs had some form of control structure.
> Control structures, using reserved words, were included in A+ by 1989.[8] In 1994 they were added to both J release 2.0.1,[9] with a dotted syntax such as while., and to APL*PLUS III, using the colon-prefixed syntax :While that has since been widely adopted in APL.[10][11] Dyalog introduced similar structures in version 8.0, in 1996. They also appear in SAX, APLX, and NARS2000.
 
does BQN have those control flow? :If, :Els
 
7:40 PM
@FawnLocke Isn't that "no"?
 
Right, but you can define them, which BQN encourages culturally.
 
@elliptic00 Our CTO sees them as a separate language to control flow.
 
BQN use similar APL code to define Control flow, does Dyalog do the same thing for :If, :Else ?
It seems to me it is more nature in BQN then in Dyalog APL,
it is just a function in BQN,
 
@elliptic00 No. You can do it, and people used to before it became built-in.
 
branch might be interesting
 
7:47 PM
Nice, thx.
BQN wins again:).. I like BQN control flow more..:)
 
I'm curious what you think about BQN, Adám. Why should we continue to use Dyalog if BQN is directly improving problems with APL. Of course Dyalog has a much larger ecosystem relatively, and awesome system functions. But that's bound to change eventually.
 
8:03 PM
When we can see the IDE like RIDE in BQN ?
or Dyalog can make RIDE run BQN, is RIDE a open source ? .. If yes, then it might someone can pull it off to use BQN in RIDE ?
The first step to make BQN popular is to make good IDE support BQN,
 
@elliptic00 RIDE is indeed open source: github.com/Dyalog/ride
 
so I hope someone can make RIDE to run BQN... what do you guys think?
I think BQN is like from C/C++ => Rust
 
 
3 hours later…
11:02 PM
@FawnLocke well if you have a million lines of apl making you money it's probably hard/not worth it to switch
 

« first day (1772 days earlier)      last day (56 days later) »