No single language can satisfy all needs, and what I meant was that any decent language should easily be written in assembly. The design of a language should be computer-based, not human-based. C and C++ are this, they are almost merely macros for assembly, there are other rules of course, like register use, portability, etc., but in the end, there is very little difference between c/c++ and assembly.
One good example of this concept is iteration instead of loops. Many c programmers would like to use loops quite heavily, since they are so handy and easy to use, but they slow down the program, and it's better to use iterations as much as possible. You should also avoid too many nested loops, etc.
Programming should be done on a computer-based level, not human-based, heavy use of loops and nested loops are human-based, while iterations are computer-based. We often like to impose OUR way of thinking onto the computer, which is not always very good.
It's a good thing that there are many languages, there should be, it only enriches the programming environment, and it shouldn't be frowned upon if someone decides to write a new language, even if there are already many languages which could probably just as easily do the job. The more the merrier. The problem is interchangeability.
Bwaa, I'm almost starting to rant ^^ better stop since I already got an answer to my question. And NO!! Irrlicht is not bad, it is good, the problem is not that C++ is not good, but that I prefer to write in C.
Interesting how it all got so serious all of a sudden, lol
c bindings to irrlicht
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
No, because you have to use objects inside your code since Irrlicht is C++. So you can write your application code in C style, but everything coming from Irrlicht library will be C++, hence your code is also C++. What they want is a complete encapsulation of all objects in a wrapper and get a purely C-based interface which can be compiled by C-only compilers. For what ever reason...