« first day (1788 days earlier)      last day (884 days later) » 

1:18 AM
@Adám Not interesed in judaism but i will learn APL.
not now.
 
 
3 hours later…
4:32 AM
@Fmbalbuena i think he does
 
 
12 hours later…
4:13 PM
website of @xpqz book?
 
@Adám I'm going to try to attend tomorrow's meetup
 
 
1 hour later…
5:47 PM
@Adám are you active?
@Adám can you teach me a command in 15:00 UTC (if i can)
 
Announcement: APL ∊ BCN about to start on Zoom.
@Fmbalbuena Yes, now I am.
 
> @Adám Not interesed in judaism but i will learn APL.
Do you understand ^?
 
Yes, I understand, but you asked me why I'd be gone, so I gave you the answer.
@JeromeIbanes That's now!
 
yup, please let me in
 
@Fmbalbuena The is the solution I was looking for.
 
6:00 PM
⋄'aabbccde'{⍺~(⍺~⍵)}'abef'
 
@Fmbalbuena aabbe
 
correct?
 
Yes. But can you see how you can shorten it a little?
 
oh i found something wrong
⋄'aabbccde'{⍺~⍺~⍵}'abef'
 
@Fmbalbuena aabbe
 
6:01 PM
1
Q: How to check if the string is reshaped in APL?

FmbalbuenaHow to check if the string is reshaped? Example: "aab" returns 0 because "a" can't be reshaped to this string nor any other shorter string. Another example is "aabbaab" returns 1 because "aabb" can be reshaped to this string. A lot of examples can found this: Returns 1 101 abba abcab abacedabarab...

^ My first SO question about APL.
 
Congratulations. As (Kamila and) I said, that's a really interesting problem.
 
3 users (Adám, Kamila and caird) said that is a really interesting problem.
ok so another task but first a command.
 
OK.
So let's learn dyadic
It takes a list on the left and either a single element or a list on the right.
 
ok i have already learned monadic ⍳ but not dyadic ⍳
@Adám example?
 
For each element on the right, it returns the index of the first identical element in the list on the left: ⋄ 'hello'⍳'l'
 
6:07 PM
@Adám 3
 
⋄ 'helo'⍳'l'
 
@Fmbalbuena 3
 
⋄ 'hello'⍳'olle'
 
@Adám 5 3 3 2
 
⋄ ⍳⍨'hello'
 
6:08 PM
@Adám 1 2 3 3 5
 
⋄ 'There is no plus sign'⍳'+'
 
@Fmbalbuena 22
 
Ah, great question!
 
Hmmm...
 
If it isn't there, it gives the first index beyond the end.
 
6:09 PM
⋄ 'abc'⍳'+' ⋄ ⍴'abc'
 
@Fmbalbuena
4
3
 
This makes it easy to "translate": ⋄ 'ABCX'['abc'⍳'cat']
 
@Adám CAX
 
Hmmm i haven't learned "[]" yet.
 
Yes you have. That's indexing.
 
6:10 PM
⋄'abc'⍳'cat'
 
@Fmbalbuena 3 1 4
 
But maybe you didn't realise that you can use multiple indices inside the brackets.
 
a task?
 
Yes.
 
a task for me?
 
6:12 PM
Yes: Write a function that takes an element on the left, and a list on the right, and returns 1 if the element exists in the list, and 0 otherwise.
E.g. 'a' F 'abc' gives 1 and 'x' F 'abc' gives 0.
 
6:23 PM
@Adám ^
done
 
@Fmbalbuena Remember that if not found, the result is one MORE than the length.
 
⋄'x'{((⍴⍵)+1)≠⍵⍳⍺}'abcx'
 
⎕←'abc'⍳'x'
 
@Adám 4
@Fmbalbuena 1
 
@Fmbalbuena Now it will work with
 
6:26 PM
ok
learned; but i have to gtg now, but i still remember the dyadic "⍳", one more task for later?
 
You next task is to shorten it down by using a different relationship than
 
⋄'x'{(⍵⍳⍺)≠(⍴⍵)+1}'abcx'
 
@Fmbalbuena 1
 
@Adám i can't but i have to gtg now.
 
Try when you have time.
 
 
2 hours later…
8:43 PM
@Adám I'm going to try to share a folder now
okay lmk if it worked when you're awake please, I'll add more stuff later.
you'll find a png in there to see a working session
I can help you set it up
 
Got it. I'll try it out and let you know.
 
9:12 PM
added a howto.txt
 
That'll come in handy.
 
there are two, one of them is to setup utf-8 support
the other one to just install it
lmk if you run into issues
 
I will.
 
9:46 PM
@Adám i'm thinking about COW (Code of the Week)
can i put to apl.wiki?
 
What is that?
 
> you need to sleep. i'm adding "my code of the week" in my about tomorrow.
 
OK, thanks for your concern for me!
 
Then i should put to "Code of the week" or "Fmbalbuena/Code of the week"?
in apl.wiki
 
@Fmbalbuena I don't know yet what it is, but put in under your user name for now. It can always be moved later if necessary.
 
9:51 PM
under your user name?
 
"Fmbalbuena/Code of the week"
 
ok
oops i typed "ap" and i got "apl.chat", not "apl.wiki"
@Adám how to change the default keyboard, the default keyboard is APL keyboard.
 
WindowsKey+Space
 
@Adám I'm thinking for checking if the number is square.
⋄{⍵=⍵×⍴⍵}9
 
@Fmbalbuena Response looks like a 1-by-0 matrix.
 
10:00 PM
Is there problems?
 
What problems?
 
⋄{⍵=⍵×⍴⍵}9
 
@Fmbalbuena Response looks like a 1-by-0 matrix.
 
@Fmbalbuena You already know enough to check if a number is square.
 
@TryAPL Why?
 
10:02 PM
Because ⍴9 is and 9×⍬ is and 9=⍬ is
 
oh i used "⍴" instead of "⍳"
 
:-)
 
⋄{⍵=⍵×⍳⍵}9
 
@Fmbalbuena 1 0 0 0 0 0 0 0 0
 
i forgot to put something
⋄{+⌿⍵=⍵×⍳⍵}9
 
10:03 PM
@Fmbalbuena 1
 
⋄{+⌿⍵=⍵×⍳⍵}8
 
@Fmbalbuena 1
 
incorrect...
 
⍵=⍵×⍳⍵ is always 1 followed by ⍵-1 zeros.
 
⋄9×⍳9
 
10:04 PM
@Fmbalbuena 9 18 27 36 45 54 63 72 81
 
⋄(⍳9)*2
 
@Fmbalbuena 1 4 9 16 25 36 49 64 81
 
Very good. You're getting there.
 
⋄{+⌿⍵=(⍳⍵)*2}9
 
@Fmbalbuena 1
 
10:06 PM
⋄{+⌿⍵=(⍳⍵)*2}⍳4
 
@Fmbalbuena (1 trailing line)
RANK ERROR
      {+⌿⍵=(⍳⍵)*2}⍳4

␄
 
This doesn't work because it'd include ⍳⍳n
 
List not working
⋄{+⌿⍵=(⍳⍵)*2}⍳2
 
@Fmbalbuena (1 trailing line)
RANK ERROR
      {+⌿⍵=(⍳⍵)*2}⍳2

␄
 
⋄⍳⍳2
 
10:07 PM
@Fmbalbuena
┌───┬───┐
│1 1│1 2│
└───┴───┘
 
There's a better way to check if a number is square.
 
@Adám yeah, but which?
 
Let me give you a couple of small problems.
Define a squareroot function.
 
@Adám ok
you are slow at writing tasks.
 
I'm sorry.
 
10:09 PM
nvm
 
Your squareroot function should be such that F 4 gives 2 and F 0.25 gives 0.5
The other problem is to define a function that checks if the argument is an integer. F 10 should give 1 and F 10.1 should give 0
 
⋄{⍵*0.5}16
 
@Fmbalbuena 4
 
Very good. That solves the first problem.
The second one is a bit trickier, but you can do it!
 
⋄{(1+⍴⍕⍵)≠(⍕⍵)⍳'.'}100.4
 
10:13 PM
@Fmbalbuena 1
 
hmm
 
Try to do it using mathematics.
 
⋄{⍵=1|⍵}100.4
 
@Fmbalbuena 0
 
⋄{⍵=1|⍵}100
 
10:14 PM
Ah, you're getting there!
 
@Fmbalbuena 0
 
⋄1|100
 
@Fmbalbuena 0
 
wait what?
 
Division remainder when 100 is divided by 1
 
10:16 PM
⋄{0=1|⍵}100
 
@Fmbalbuena 1
 
⋄{0=1|⍵}100.4
 
@Fmbalbuena 0
 
Very good. You solved it!
 
⋄{0=1|⍵*0.5}⍳100
 
10:17 PM
@user1118720 Hi Richard. If you want to participate here, please email access@apl.chat
 
@Fmbalbuena 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
 
And now you solved your original problem. I'm very proud of you!
@Fmbalbuena Can I add this to APLcart?
 
@Fmbalbuena Yeah, that's good.
@hyper-neutrino Can you give chat.stackexchange.com/users/534674/user1118720 access?
 
@Adám done
 
10:24 PM
:) Thanks.
Should I give an introduction?
 
You're certainly welcome to, but not obligated to.
Also, since you're new to Stack Exchange chat, I highly recommend having a look at apl.wiki/APL_Orchard#Features
@hyper-neutrino That was incredibly quick. Thanks.
 
@Adám Added?
 
Not yet, working on it.
 
Quiz difficulty: Easy
 
I just started discovering APL. I am not a (profesional) programmer but very interested in mathematical problems. I do have some experience with C and some other languages. But I am mostly attracked by the different view APL gives on solving problems.

I read some of the APL manuals this week and started looking at the Advent of Code 2021. also watched some YouTube videos. Some are to basic and some are to advanced. Best thing to do now is starting solving some problems I think.

I installed Dyalog and RIDE. RIDE is not working however. Have to figure that out. But Dyalog is working fine.
Thanks for letting me join
 
10:34 PM
@Richard do you know the division in APL?
 
@Richard apl.wiki/Learning_resources might be useful and apl.wiki/Advent_of_Code might interest you. I can recommend problems.tryapl.org for simple problems to drill yourself on. We should get your RIDE problem fixed. What OS are you on?
 
Yes. I do know al the basics and the most common functions and operands. (think have to install the APL font to enter it in the chat.
 
@Adám when you add the square checking?
 
RIDE is installed on Windows 8
 
@Richard The font isn't essential for using chat (in fact, it won't help).
@Richard If you're on Windows, you don't need RIDE at all. IMHO the default Windows IDE is better, even if it looks dated.
 
10:37 PM
ah, ok :)
 
I'm asking: what is "∘"?
 
Jot. Inner product?
 
Here, it "curries" or binds an argument to a dyadic function, giving a monadic function.
 
@Adám what does even mean?
 
10:39 PM
So +∘1 is an increment function and -∘1 is a decrement function.
is a dyadic operator, but you've not learned any dyadic operators yet.
 
⋄-∘1
 
@Fmbalbuena
 ∘
┌┴┐
- 1
 
Dyadic operators are similar monadic operator like and which you've learned, but they take two things (one on each side) to produce a new function.
⎕←(-∘1) 42
 
@Adám 41
 
⋄ Square←*∘2 ⋄ Square ⍳5
 
10:42 PM
@Adám 1 4 9 16 25
 
+ is dyadic and Jot making it monadic binded with 1?
 
Correct.
 
Cool
 
You can also bind to either side: ⋄ Double←2∘× ⋄ Double ⍳5
 
@Adám 2 4 6 8 10
 
10:47 PM
Thanks, couldn't follow the explenation in the manuals.
When do yo use it?
in dfns or with tacit programming?
(last one still quite complicated for me)
 
You could use it almost anywhere. But these are examples of tacit programming, because the function never mentions its argument explicitly. The equivalent non-tacit functions would be {⍵-1} and {2×⍵} etc.
Tacit doesn't have to be complicated.
You can make any code unreadable, tacit or not!
 
:)
Started APL last week and watched some tacit examples yesterdayin some youTube videos. So I should be patient. I'm getting addicted...
 
@Richard Are you aware of apl.wiki/Tacit_programming?
 
Yes,. forks and ATOP are ok, but got little bit lost on 4 and 5 trains. ]boxing -trains=tree helps a lot
 
You do realise that a 4-train is simply an atop where the right side is a fork, right? And a 5-train is just a fork where the right side is itself a fork.
 
10:59 PM
This one also gives some help:
https://xpqz.github.io/learnapl/tacit.html
Yes I do. But still find it difficult to interpret and construct. But I just should practice
 
@Richard Thanks. I'll add that to the APL Wiki article.
 
Also did this course but the last few chapters.
I think it;s a little bit out dated but has a good pace for someone new to APL.
 
Which course?
 
Ah yes. Someone is currently working on updating that.
 
11:05 PM
Some of the problems I could not reproduce until I found out I had to change the IBM compatebility
 
Yeah.
 
https://problems.tryapl.org/ is nice, thanks!
But I''l install the alternative APL keyboard. The CTRL keys are not working outside Dyalog.
Thanks for helping us out!!
 
@Richard I personally use the AltGr keyboards from here
 
11:22 PM
Thanks, just installed. Probably have to restart the computer cause it's not working yet
 

« first day (1788 days earlier)      last day (884 days later) »