Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Coding Stuff  (Read 2140 times)

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Coding Stuff
« Reply #15 on: October 05, 2009, 06:24:37 am »

As I said, there is no best language, different languages are good for different things, my argument was for a hypothetical situation IF there was a best language.
And I know it updates, but there are some fundamental things you simply can't fix without making it into a completely new language, for example features like platform independence, real time interpretation and eval type functions, more intuitive core syntax, etc. And C++ shuldn't get some of those even if it could, because they are tradeofs, and would might it less good a the things it curently does do well.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Coding Stuff
« Reply #16 on: October 05, 2009, 07:18:52 am »

The reason C and C++ are still popular is speed.

They are highly optimized at compile time, so most games use them to get a better framerate.
Starcraft 2 in python: <1 FPS.
Logged
Eh?
Eh!

IndonesiaWarMinister

  • Bay Watcher
    • View Profile
Re: Coding Stuff
« Reply #17 on: October 05, 2009, 07:30:47 am »

The reason C and C++ are still popular is speed.

They are highly optimized at compile time, so most games use them to get a better framerate.
Starcraft 2 in python: <1 FPS.
I thought pure Python was fast?

Also, I thought it was pyGame who got MANY problem with 3D?
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Coding Stuff
« Reply #18 on: October 05, 2009, 10:12:24 am »

The reason C and C++ are still popular is speed.

They are highly optimized at compile time, so most games use them to get a better framerate.
Starcraft 2 in python: <1 FPS.
Assembler is faster.

And there is, in fact, at least one (Linoleum) assembler that don't have all the compatibility problems and programmer headache usually associated with assembler.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

eerr

  • Bay Watcher
    • View Profile
Re: Coding Stuff
« Reply #19 on: October 05, 2009, 10:29:27 am »

The reason C and C++ are still popular is speed.

They are highly optimized at compile time, so most games use them to get a better framerate.
Starcraft 2 in python: <1 FPS.
Assembler is faster.

And there is, in fact, at least one (Linoleum) assembler that don't have all the compatibility problems and programmer headache usually associated with assembler.
Yea... assembler might be 50% faster, but 1/100 the speed to code.

so thats really not feasible for a videogame of any size at all.

assuming the game programming devs can even write assembly.

Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Coding Stuff
« Reply #20 on: October 05, 2009, 11:14:06 am »

Assembler is hardly even a programming language; it's virtually as low-level as you can get. It's basically just intended as an easier way to write out what amounts to machine code, and is good for tweaking programs that have already been compiled.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Alexhans

  • Bay Watcher
  • This is toodamn shortto write something meaningful
    • View Profile
    • Osteopatia y Neurotonia
Re: Coding Stuff
« Reply #21 on: October 05, 2009, 11:27:22 am »

As I keep saying:

The RIGHT tool for the RIGHT Job!!

Argh!!

PS: I'd like to see you write an RTS like Starcraft in Assembler.   :D
Logged
“Eight years was awesome and I was famous and I was powerful" - George W. Bush.

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Coding Stuff
« Reply #22 on: October 05, 2009, 12:49:15 pm »

As I keep saying:

The RIGHT tool for the RIGHT Job!!

Argh!!

PS: I'd like to see you write an RTS like Starcraft in Assembler.   :D
Just you wait! If I ever do get the motivation to make a game, it actually WILL be in linoleum, wich is an assembler. And if you know it, and have the right kind of assembler (for example linoleum) it can be almost as fast to write as C, or faster depending on what exactly you want to do, remember that the that a good amount of time in any programming productive is spent optimizing, and also an assembler tend to be more limited in it's complexity meaning you spend lots less time shuffling through manuals or figuring out how to apply good programming practice, because there is only one thing to do it.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

G-Flex

  • Bay Watcher
    • View Profile
Re: Coding Stuff
« Reply #23 on: October 05, 2009, 02:42:17 pm »

That's kind of like saying it's easier to build a house out of individual atoms one-by-one because you don't have to deal with things like "types of wood".
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Coding Stuff
« Reply #24 on: October 05, 2009, 03:06:55 pm »

It IS easier building a house out of individual atoms, if you have nanotechnology. It is also easier to build the nanotechnology out of individual atoms than out of different kinds of wood.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Alexhans

  • Bay Watcher
  • This is toodamn shortto write something meaningful
    • View Profile
    • Osteopatia y Neurotonia
Re: Coding Stuff
« Reply #25 on: October 05, 2009, 03:24:12 pm »

Logged
“Eight years was awesome and I was famous and I was powerful" - George W. Bush.

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Coding Stuff
« Reply #26 on: October 05, 2009, 03:43:08 pm »

Heh, I guess that's supposed to be sarcasm? That image comes pretty close to my actual philosophy... I do indeed strive to be able to do that, and will never quite consider myself a real programmer until I can. 8)

Thou, I guess hex is a reasonable middle ground. ;)
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Jakkarra

  • Bay Watcher
  • The Chairman.
    • View Profile
Re: Coding Stuff
« Reply #27 on: October 05, 2009, 04:12:00 pm »

Can we have a comprehensive list of the advantages of each language?

Going from Java, python, The C's and assembler.

Also, LOLcode look fun to write.

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Coding Stuff
« Reply #28 on: October 05, 2009, 06:09:19 pm »

The issue with pure assembly is that the C/C++ compiler is WAY smarter than you when it comes to finding the fastest way to do something. Multiplying by 9? Will most likely turn n*9 into n<<2+n, and anytime someone improves the compiler, you can recompile for marginal speed gains. Plus, converting between processor archetectures is possible. 32-bit assembly is not compatible with 64-bit, at least not as compatible as C code.

Yes, linoleum is close to being cross-platform assembly, BUT, it is only faster in the hands of a skilled professional who understands how to find the most optimal method. With C you have over 30 years of assembly language experts behind your optimization, though most of it is general solutions, so you don't get the *best* code in one situation, you get *very good* code in most situations.

Plus, C and C++ can support inline assembly(might vary with the compiler), and you can half-compile and "optimize" it yourself in assembly form.
Logged
Eh?
Eh!
Pages: 1 [2]