+ 2
Can we create one programming language that could do everything that js,java,css,python,php,ruby,c++,e.t.c does?
lets create a multipurpose programming language that can do whatsoever javascript,java,css,phthon,php,ruby,c++,c,shell,c#,Go, e.t.c does?
6 Réponses
+ 3
Well, it already exists, it's called assembly language. Assembly is a low-level programming language, you can do anything with it. But there is a problem - it would take so much more time to create something compared to other high-level languages. Even a simple program like "Hello World" would take up like 10 lines of code. But assembly has it's uses and can be a very powerful language sometimes
Anyways, if you want an easy language that could do all the things assembly does, I doubt it's gonna happen
+ 2
ok
+ 2
that's gonna take a lot of work..... But when it comes to programming virtually anything can be done
+ 2
Currently, no one language can do everything, and be the best at everything except for the machine code itself. lol
They can mimic each other with their drawbacks, and benefits of course.
The problem is that a low level language like assembly has tons of control and great performance because of it, but it takes forever to program anything complex.
On the other hand, you have a high level language like python3 or ruby that has high levels of abstraction. This makes writing programs extremely quick, efficient, and easy. However, because the language does everything automatically for the programmer, you have less control over specifics, and because of all the above, it comes with a performance cost. Sure, it's not that major, but enough.
The real issue is that these languages only exist for the convenience of Humans. The computer DOES NOT CARE what language you use. The higher level languages make life easier for programmers, and help them focus on the program, not the background stuff. There are plenty of languages that hang around the middle, but that too has it's drawbacks. Anything higher than the machine code itself is just for the convenience of Humans, this is why they all exist. This was actually a major problem in the 70s and 80s, and solved using ADTs.
If it's a question of which language can do 'everything', and have the best performance, the answer would be the machine code itself. But I doubt you'd wanna take a crack at programming complex software with it. x.x