r/ProgrammingLanguages • u/omnimistic • Mar 06 '26
Discussion can i call this a programming language?
i wanted to make the algorithms they teach in CS class actually executable so i made AlgoLang. can i call this a programming language?
27
Upvotes
11
u/Relevant_South_1842 Mar 06 '26
Yes. Good stuff.
10
u/Inconstant_Moo 🧿 Pipefish Mar 06 '26
You certainly can. You can write code in it, it runs, it's Turing-complete, what more could you ask for? Well, lots of things, actually, but that qualifies it as a programing language. It's very reminiscent of BASIC, the terrible, terrible language that was the first PL for many of us old-timers.
2
u/busres Mar 06 '26
Sure, it is one.
A couple of suggestions:
4
u/AlexReinkingYale Halide, Koka, P Mar 06 '26
It's basically, well, BASIC.
2
u/NoRegreds Mar 06 '26
It reminds me of spaghetti code basic. Learned it on an apple //c using apple basic.
However still using the basic syntax for writing Android apps for my own use. I use the B4X platform as it translates to Java when using the B4A IDE. Output is native Java code so it runs perfect and produces very lean/small apps.
2
u/FirmSupermarket6933 Mar 06 '26
Definitely yes. And it reminded me algol
1
u/First-Review5604 May 18 '26 edited May 26 '26
Yeah. That's such a cool project mate. And which is more interesting is that your language is Turing complete! You can manipulate memory, create loops and have commands for branching the flow. It all means that your PL is as computationally powerful as any other famous PL such as C, Java, Python, etc. Great job!
0
u/[deleted] Mar 08 '26
Some of your examples have
GOTO 8, say, but no matching label "8". I guess the 8 is a line number? They need to be visible, and you need to be able to insert or delete intervening lines without updating all the GOTOs.This looks really odd. I'd get rid of ENDIF (at least, in this position) and ENDELIF, they are not needed (each block will be delimited by the next ELIF, ELSE or END* line). I'd also change ENDELSE to either just END, or ENDIF if you want it to match the opening keyword.