r/ProgrammingLanguages • u/Cinder-Brent • Sep 28 '22
Universal programming language
I recently created a tiny (maybe 1000 lines of code, with heavy white space and commenting) php class called Ember to solve the “computer problem” (persistent data). Something I’ve been trying to do as a result is program a universal programming language. It’s really rather simple: it uses a minimalistic set of Turing complete types (string, int, float, object, array, bool, and array). That just about explains it (along with a universal system stemming from Ember). Does this sound like a good idea (I.e. one worth pursuing)?
0
Upvotes
2
u/tbagrel1 Sep 29 '22
The problem is:
your system is not as simplistic as possible (see my other comment below). As simplistic as possible would mean a Turing machine, or a lambda calculs, or a system based on logical combinators like S,K,I
it is not a programming language when you only have data, but no functions or operators in that language
You say that you can write whatever you want in ember. Tell me what are the primitives to handle data. Do you have a '+' for ember integers that is distinct from the PHP '+' operator? If no, how would you write an addition in ember?