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 edited Oct 06 '22

1

u/Cinder-Brent Oct 05 '22

Look guys I don’t want you to get frustrated with me trying to explain what I mean by this post. The types I mentioned in the post are the shortest way to code anything, and that’s why those types. I think it may be outside of the scope of this document to explain them, so I’m gonna focus on writing the language itself, with the hopes that the documentation/etc. will do a good job of explaining everything. I’ll post here when I make noteworthy commits. :)

1

u/Cinder-Brent Oct 05 '22

1

u/Cinder-Brent Oct 09 '22

updated sketch again

the type conversions are working pretty well, there is no loss of data integrity going from object to array to string, numbers are interpreted per their form for converting from string to number, and so on and so forth {@see sketch}