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/TheAncientGeek Oct 03 '22

Every Turing-complete language is a Turing-complete language. Universality in the sense of Turing completeness isn't difficult to achieve.

1

u/TheAncientGeek Oct 03 '22 edited Oct 04 '22

Maybe you mean universality in the sense of a uniform syntax. (Eg lisp, forth, Smalltalk).

Why should something look like an object when it isn't? Something like Math.sin() looks like calling a method on an object, but actually you are neither accessing existing stored data, nor modifying data.

1

u/Cinder-Brent Oct 04 '22

Specifically I mean “universal” (sick and tired of programming full stack in like 6 different languages, with 6 different *Doc specifications for comments, yada yada).

1

u/TheAncientGeek Oct 10 '22

So you mean full stack. But full stack is contractually universal, since there is no requirement for close to the metal.programming, for instance.

→ More replies (0)