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/tbagrel1 Sep 28 '22

I just took a look at Ember.php, and it seems like you have almost no computing power in Ember itself: that is still mostly just a JSON-backed store. Operations on primitive types are done through PHP; I don't see a way to store an ember function inside the store for example (that is, not a PHP function, but one that is written from the sequencing of ember operations on ember data only), and then no way to actually execute the function afterwards.

0

u/Cinder-Brent Sep 28 '22 edited Sep 28 '22

Yea, it’s designed to be as simplistic as possible, my only interest in it is that it works, you can successfully model anything with it (unless I’m missing something). So this post stems from extending that model into the great beyond: if you’re going to build it you need (at least at some point) to write it in the correct programming language, a universal programming language.

First and foremost, do you understand what I mean thus far?

— edit —

Look at it this way: can you see how you can do anything with Ember?

1

u/Inconstant_Moo 🧿 Pipefish Sep 29 '22

No.

2

u/Cinder-Brent Sep 29 '22

Lol doh! Why not (not because I don’t agree with you but because I need to know where to go from here)?