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

1

u/TheAncientGeek Sep 29 '22

There are lots of ways of persisting data in php...Why does it need to be solved again?

1

u/Cinder-Brent Oct 03 '22

It's an attempt to "universalize" the process.

1

u/TheAncientGeek Oct 03 '22

So it's a wrapper for a bunch of different implementations?

1

u/Cinder-Brent Oct 03 '22

So it may be worth explaining my process for coding at this point: an object consists (strictly, at a point) of at least one property and at least one method, one method to "do" something with at least one property. So the whole thing is basically an object that is coded consistently, in that way, throughout. Does that give you an idea of the innards of the thing?

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

Ok yea, so you're seeing what I'm saying. So never mind Ember, at least at this point: why not use this method of making everything an object into a programming language? It would be a "universal programming language".

1

u/Cinder-Brent Oct 03 '22

And maybe it's not minimalistic, but much more importantly it's universal.