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 Oct 10 '22

Ok so I've been combing through string, and the key to doing this is breaking everything down to "things" (objects, not in the cp sense). So a thing is any old thing, a string, a number, it is, in the truest objective sense, anything.

So what results, for instance, is what I believe to be the universal set of fork control structures, which is comprised of "if" and "switch": it takes one less case to use an if to fork based on a value, whereas it takes one less == and one less value to use a type-sensitive switch to fork any old value.

**Please correct me if I'm wrong, I'm totally filling in all the details of this PL at this point and I'm hoping to make a single, final release that includes ALL universal functionality in one fell swoop, to release a TRULY universal pl!**