Programming language
-
Ahoi,
Atm we’re using C# but try to keep it as much C’ish as possible (no linq and stuff) to maintain the possibilty to “easily” port it to C++.
Things would be much more comfortable if we would choose the final programming language as soon as possible.
The possible choices I can think off atm are:
1.) Everything in C#
2.) Main Code in C# with C++ DLLs for critical stuff
3.) Port the current code to C++I’d prefer 1. which would keep the possibility to switch to 2. if we would like to.
-
I like 1) because C# is elegant and powerful all while being compatible with multiple platforms. Coding C/C++ for both Linux and Windows is a major, major pain.
I think we could want to offload the more demanding libraries (collision detection especially) to a fast C/C++ library and link to it, but otherwise I think C# is suitable.
-
I think the farther we get, the more troublesome will be porting and since there is already quite a chunk of code, #1 with #2 seems to be the most reasonable solution.
That being said, Im scared of the garbage collector
We’ll have to see how to tune our code so that the collector works in the most efficient way.