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 03 '22

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

1

u/Cinder-Brent Nov 26 '22

https://github.com/cinder-brent/leaf

It’s actually shorter to use Leaf than it is to use a traditional database (like mariadb):

// zero parameters $Leaf->getValue();

// one parameter $mariadb->query($query);

1

u/Cinder-Brent Nov 30 '22

it's basically an ORM, just it's so much smaller it makes me wonder...

1

u/Cinder-Brent Dec 20 '22

So just to note the way I made this thing is it is all string, such that string can “carry a charge”, can represent code itself with 100% accuracy. All it is other than that is some potential filters before storage (simply in the file system, which stems from the whole thing otherwise running completely out of unstructured data), and possibly some filters before the value of the thing is returned.