Forum

Why C language?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Why C language?

Postby daemonicky » Sat Jun 04, 2011 1:42 pm

It might sound like a silly question but why are new Quake engines/mods/... programmed in C language*? There are other programming languages, so why use this one?

* when QuakeC is not used, because it is not sufficient for a problem ... :)
Think, touch, movetype, solid, traceline ...
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Postby Spike » Sat Jun 04, 2011 2:22 pm

why not? :)

specifically, why translate it to another language, when its already written in a usable languge?
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby dreadlorde » Sat Jun 04, 2011 9:56 pm

Because C is the universal portable assembler. ;)
Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.

Get off my lawn!
User avatar
dreadlorde
 
Posts: 268
Joined: Tue Nov 24, 2009 2:20 am

Postby frag.machine » Sat Jun 04, 2011 11:11 pm

Most a matter of performance requirements (used to be more critical in the past) and available human resources in the market. The latter may actually force the studios to use other languages for future projects. But alas you can create a good and commercially successful game in practically any language. Minecraft is written in Java, for example. Soldat (another well known indie game) is made in Delphi (Object Pascal).
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby frag.machine » Sat Jun 04, 2011 11:12 pm

Spike wrote:why not? :)

specifically, why translate it to another language, when its already written in a usable languge?


For learning purposes, for example.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest