Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best alternative to C++ for real-time graphics programming? [closed]

C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello std::vector<Thingy>::const_iterator it = lotsOfThingys.begin()), and boring me with long compile times. What's the single best alternative for serious real-time graphics programming? Garbage collection is a must (as is the ability to avoid its use when necessary), and speed must be competitive with C++. A reasonable story for accessing C libs is also a must.

(Full disclosure: I have my own answer to this, but I'm interested to see what others have found to be good alternatives to C++ for real-time graphics work.)

Edit: Thanks everyone for the thoughtful replies. Given that there's really no "right" answer to this question I won't be selecting any particular answer. Besides I'd just pick the language I happen to like as a C++ alternative, which wouldn't really be fair.

like image 353
Baxissimo Avatar asked Sep 16 '08 14:09

Baxissimo


People also ask

What programming language is best for graphics?

C and C++ languages are the most interesting because they are commonly the go-to language for graphics rendering.

Can C be used for graphics?

Graphics programming in C used to drawing various geometrical shapes(rectangle, circle eclipse etc), use of mathematical function in drawing curves, coloring an object with different colors and patterns and simple animation programs like jumping ball and moving cars.


2 Answers

What about D Programming Language?

Some links requested in the comment:

Win32 Api

Derelict (Multimedia lib)

like image 163
scable Avatar answered Oct 19 '22 12:10

scable


I wouldn't discard C++. In fact, I would consider adding Boost to your C++ library, which makes the language much more usable. Your example would become:

BOOST_FOREACH( Thingy& t, lostOfThingys ) {
    // do something with 't'
}

Boost has tons of tools that help make C++ a better language.

like image 18
Martin Cote Avatar answered Oct 19 '22 11:10

Martin Cote