Talk:Andrew's Programming Language

From Esolang
Jump to navigation Jump to search

Please help me think of a name for this language! Also, please leave any comments, constructive criticism, or misunderstandings here. Thanks! -Afarnen

My idea for a name is: "Quassi activity" --Dmilka 13:05, 4 July 2020 (UTC)

"andrew's programming langauge", Dream Language, or DL for short. --MizardX 01:47, 9 November 2008 (UTC)
"andrew's programming language", Rewming Language, or RL for short. --"If you don't like it, then don't use it." -- fishHDR; A (talk) 02:16, 3 August 2019 (UTC) 08:15, 3 August 2019 (UTC)
i would call it Update cuz…well the variables update…idk Gggfr (talk) 18:04, 12 October 2024 (UTC)

I might as well add my two cents: Vunc variable and function combined.

JonoCode9374 (Talk)

03:32, 20 January 2020 (UTC)

Use of AND and OR

I noticed this when going though your spec: let c = > 5 and < -5. Mathematically (being [from what I understand] the basis of your language) there is no such number where 5<c and c<-5 (and meaning intersection). Similar mathematical errors occur with or. I propose that you utilise "and" and "or" in their mathematical application, that is, c=(-inf.;-5)A(5;inf) means c=Undefined (or error) and c=(-inf.;-5)U(5;inf) means c=-inf..+inf excluding -5..5. In their place, I recommend the addition of the "as well as" and "optionally" operators to fulfill the rest of the specification's needs. I understand that perhaps this was not your intention, but it will most certainly add another dimension to the flexibility of APL. {Possibly, use only interval notation to denote the mathematical implications of and and or using A and U}. Keep working on this one, it looks really nice - Hiato 13:07, 9 November 2008 (UTC)

From what I can make of it, it seems that c is simultaneously equal to all values < -5 and > 5. So, treating a variable's value as a set as you're doing,
let c = > 5 and < -5
means that c = (−∞, −5) ∪ (5, ∞). However, the following statement seems to contradict this:
let c = > 5 or < -5
should by this logic mean c ∈ {(−∞, −5), (5, ∞)}.
You could well ask what was actually meant.... -- Smjg 17:17, 9 November 2008 (UTC)
I actually wrote the specs quickly without checking for contradictions like this. I should re-write the specs. I also found another problem that my friend pointed out.. forget what exactly.Afarnen 21:02, 10 November 2008 (UTC)

Rewrote

I rewrote the spec/tut/doc. Afarnen 05:10, 23 November 2008 (UTC)

Functions with 2+ Arrays and Programs

Is there a general way that arrays are gone through? For example:

f(x,y) = x+y
a = (1,2,3)
b = (10,20,30)

Does f(a,b) = 11,12,13,21,22,23,31,32,33 or 11,21,31,12,22,32,13,23,33?

Also some example programs:

 Natural Numbers:
n(x) = x,n(x+1)
n2(x) = x
n2((x,(y,z))) = x,y,n2(z)
N = n2(n(0))
 Truth Machine:
a(x) = x,a(x)
tm(x) = x
tm((x,(y,z))) = x,y,tm(z)
tm(1) = tm(a(1))
 tm(x) = Truth Machine for input x

Suggested Name

ANDREWLANG

Some name idea

Andrew's Programming Language(or Andrel)

User:Ractangle (Discord:belarusianflag)