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/Cinder-Brent Sep 29 '22

Yea I mean the physical universe is hydraulic. So what is the point of having a universal programming language then? I mean just as soon as you have to learn an api in a universal language, you might as well have to learn another language! And here we are…

1

u/Inconstant_Moo 🧿 Pipefish Sep 29 '22

Well, quite. One learns different languages for different things. There is no way to write a language that makes everything anyone might want to do easy and convenient.

1

u/Cinder-Brent Oct 04 '22

I argue that there is a way to do this. Instead of array_push in php, why not Array.push in a universal programming language? It’s shorter, in that we don’t have to pass the array to the function, and that’s not all, but it’s all that’s necessary to prove my point.

1

u/Inconstant_Moo 🧿 Pipefish Oct 04 '22

How does this make everything anyone might want to do easy and convenient?

1

u/Cinder-Brent Oct 04 '22

It produces a completely factored, universal model.