c bindings to irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
kenna
Posts: 15
Joined: Sun May 27, 2007 1:22 am
Location: Finland

Post by kenna »

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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

How do you distinguish between loops and iteration? When did you last check the latest compiler developments? And how many gotos does an average C program of you contain?
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

I dont see the problem here, you can download irrlicht, and visual studio C++ and right your code in C, and it will work fine.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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...
Post Reply