ATZ

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

The ATZ programming language is an esoteric programming language designed by Arvin Zadeh in 2014. It has yet to be implemented and no interpreters have yet been made. Since its development it has been proven to be Turing-complete due to its wide variety of capabilities. On November 12th, 2014, the ATZ programming language was officially proven to be Turing-complete when programmers created a Minsky machine with ATZ code.

Sample Program #1:
1st Million Prime Numbers:
x#isP.T##in=1000000##i=2#[i<=in|#a=2#[a<=i|[?i%a=0|#isP.F#;|#isP.T##a+1#]][?isP|!i!]#i+1#]
Sample Program #2:
GCD Function:
x#gcdOf.func(#a.I##b.I#|[a%b>0|#b-1#]!b!)#
Sample Program #3:
Minsky Machine:
x
#lineAt=0#
#incr.func(#reg.I##lineNum.I#|#reg+1##lineAt=lineNum-1#!lineAt!)#
#decr.func(#reg.I##lineNum1.I##lineNum2.I#|[?reg=0|#lineAt=lineNum1-1#|#reg-1##lineAt=lineNum2-1#]!lineAt!)#
#i=0##minMac.func(#A.I##B.I##C.I##code.A#|[code!=“halt”|#i=code#])#
!minMac.func(5,5,nil,{decr(B,4,2),decr(A,3,1),incr(B,4),”halt”})! 

Zadeh says he will release the documentation to the public when the language is ready.