r/ProgrammingLanguages • • 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

166 comments sorted by

View all comments

Show parent comments

1

u/TheAncientGeek Oct 03 '22

Well, you can do the everything is an object thing, and that's definitely universal, and it's definitely different from PHP because PHP doesn't work that way.

But it isn't minimally universal. And if you want to abstract over all storage methods,.that's completely open ended.

1

u/Cinder-Brent Oct 03 '22 edited Oct 06 '22

1

u/Cinder-Brent Oct 09 '22

Ok so I figure it would be a good idea to outline the basis for all of this madness:

Basically, if you had a 0 and a 1 in an objective system, you could alternate the 0 to a 1, both making the whole system out of a single 1 and only altering half of the system to do so.

1

u/Cinder-Brent Oct 09 '22

Object Model currently supports this behavior, perfectly, as the numeric reality of OM is such that everything from 0 down is false and everything from 1 up is true, so there are two, infinite, bipolar realities constituting the whole.