If all programming languages more or less compile down to the same machine code. Have there been attempts at, or is there a "field" around the concept of even more modular programming languages, where it can be built-up based on exactly what is needed? If arrays aren't handled, the language to simplify writing a program that is then compiled into machine code won't need to know what an array is. And, same with loops of different sorts, many languages have both for, and while.
I'm not a computer scientist. As a novice, there are so many different "language", but they're all mostly the same thing, and it seems like there might be a better way to organize the benefits each language gives relative to how much they actually overlap. I just watched Bjarne Stroustrup explain that C++ made managing complex data types easier, and that C should be seen as a subset of C++, but it seems like another way of doing it is to have an even more modular approach, treating the more complex abilities C++ has as modular add-ons, programs that can be imported. Since this is what is being done anyway except in a "one-size-fits-all" way. Basically, to not have a "one-size-fits-all" programming language, but construct what is needed depending on need.
If anyone understands what I'm fishing for, feel free to reply. It also seems such a language would make it easier for noobs to understand "programming languages", even if they could also have the choice to import more one-size-fits-all configuration.