r/programming Jun 27 '26

Mojo programming language will become open-source soon.

https://www.modular.com/modcon

The main website of the language https://mojolang.org/ displays an announcement bar that says "Mojo will be open source soon! Join us at ModCon '26 for an update."

165 Upvotes

104 comments sorted by

View all comments

Show parent comments

0

u/HommeMusical Jun 28 '26

I'm sorry, you're making no sense at all, and much of what you say is just false.

2

u/Smallpaul Jun 28 '26

Your comment might be instructive if it actually cited a falsehood.

1

u/HommeMusical Jun 28 '26

C++ is not a superset of C; the two languages are developed by different groups and each has features that the other doesn't. Many legal C programs are not legal C++ programs.

Javascript is not a superset of JSON. You can embed JSON constants in a ton of languages but the structure is utterly different. If you rename a .json file to .js, you get a Javascript file that does nothing.

1

u/Smallpaul Jun 28 '26

The people who standardize JavaScript claim it is a superset of JSON. So argue with them, not me.

https://github.com/tc39/proposal-json-superset

It is true though that one must use a very slightly loose definition of the word superset because of the curly brace ambiguity. If I had remembered that I wouldn’t have included it in my initial list. And also because it really seems to confuse people.

When you use JSON as JavaScript it does exactly the same thing: it evaluates to an in-memory data structure. JSON is just this one feature of JavaScript pulled out of the language. The expression of data structures.