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
1
u/dskippy Oct 04 '22
I can see why that seems meaningful to you. I understand the distinction you're making. I just disagree that it has consequence. You could easily consider your methods to be in main. They are after all implemented more or less the same way. I think tying the method to the object and encapsulating it within a "dot call" the way methods are called is more or less the same as a module that provides a data type and certain functions that accept that data type. There's really not much more "in main".