Google-apps
Hoofdmenu

Post a Comment On: C0DE517E

"Small update"

12 Comments -

1 – 12 of 12
Blogger Riccardo said...

Hi Angelo

ok, assume that C++ is dead: alternatives in your opinion? I've always thought that object oriented programming is limited (doh!) and preferred C, but for job reasons (everybody uses C++) I code in C++. Ahhh... I remeber the old good days with Watcom C!!! :)

August 11, 2008 at 1:03 AM

Blogger Unknown said...

Scala is a nice 'scalable' language, though not sure if it is suitable for gamedev..

August 11, 2008 at 2:53 AM

Anonymous Anonymous said...

Nice linking to a completely bogus comparison of x360 vs ps3 power. Provides some laughs.
And again, C++ is bad if you use it in a bad way. Make a small library of useful objects and macros and stick to C-like C++.
Universities and tutorial-sites teach C++ in the worst way possible, and thus you see newbs trying to use all its features, to have their code turn into a disgusting furball. A student, that learnt C beforehand and used it for some time, will be many times more productive and produce clear tight code.
In C++ you can add almost all conveniences of other languages.

August 11, 2008 at 6:02 AM

Blogger DEADC0DE said...

Riccardo: we're still using a dead language exactly because we lack alternatives, I have great hopes on C# as I already said in older posts. We'll see.

Michael: no, I don't think that scala is suitable for game development. Unfortunately the JVM itself is not nice for that purpose too.

Anonymous: I've removed the link to the ps3 vs 360 comparison as it seems it wasn't clear that it was a joke... :D And I wonder which other languages have you tried if you think that in C-like C++ you can have everything...

August 11, 2008 at 7:59 AM

Anonymous Anonymous said...

Angelo: last warning - stop whining about C++ or we gonna call a couple pipe-hittin' niggers, who'll go to work on you with a pair of pliers and a blow torch.
And by the way, we know you are getting paid by Microsoft for this money-oriented language (C#) propaganda.

August 11, 2008 at 12:41 PM

Blogger Goosey said...

Enjoyed the rant as it crystallized some thoughts that have been going through my head recently. I have been fairly complacent with the shortcomings of C++ for a while now, useful given it is my career language for the forseeable future, but lately I have been exploring alternatives.

I might suggest giving the language D a look( http://www.digitalmars.com/d/ ). It strikes me as an elegant next step from C++. Similar look and feel while removing backwards compatibility concerns and horrible syntactic gotchas. Provides high level features (functions as first class objects, closures, garbage collection, functional programming mixed with imperative programming, the best template language I have ever seen, etc etc) while still retaining the ability to do low level systems programming where needed (such as manual memory management, inline assembly, binary compatibility with C libraries to name a few).

I am a big fan of C# and it has become the defacto tools language for me, but I don't expect it to take over systems-level programming like games. While it is easy to wave the magic wand of 'trust the compiler to make things fast' when addressing fears regarding JIT compilation and 'distance from the metal', I prefer the approach D is taking regarding this: You can have your cake and eat it too. There is no reason a language can not have high level elegant features to boost productivity while still allowing you to drop down close to the metal for the instances where you feel you need to (and do it all in the same language, rather than relying on linking to other languages for the 'fast' portions).

Give it a look if you haven't already. I am just starting to learn it and every turn in the language specification has me grinning ear to ear.

August 11, 2008 at 1:28 PM

Blogger DEADC0DE said...

D is nice but I don't see much adoption of it now, while C# is used for tools almost everywere, it used for pc and 360 "indie" games with XNA and there are also a couple of AAA games using it as their main programming language, so it's gaining momentum. Surely it's not perfect yet, my main concern is about the inability of controlling memory locality. But that's not a huge deal if you're writing your own CIL->native code compiler, and we can hope that those issues could be solved in future versions of the language if M$ is serious about its use in videogames...

August 11, 2008 at 2:04 PM

Blogger Mateusz Kula said...

Hi, I won't argue on which language is better, I'd like to ask You for something more informationabout Pentium UV pipe cycle counting. I'm really interested in and I hope that one of following posts on Your blog will tell us something more about it.
Maybe You have some references that is worth reading?

Cheers

August 12, 2008 at 2:26 AM

Blogger DEADC0DE said...

mateusz: Agner Fog has everything you need: http://www.agner.org/optimize/

Basically Pentium I was still a in-order CPU so you could easily predict how instruction did get executed by its two pipelines (U and V). The U one can accept any instruction, the V is a limited one, with a little care you could structure your assembly routines to always or almost always use both (thus executing two instructions per cycle).

August 12, 2008 at 10:17 AM

Blogger Mateusz Kula said...

Thanks, those seem to be great documents :)

August 12, 2008 at 11:17 PM

Anonymous Anonymous said...

You are such a C# fanboy no if's and's or but's about it. Go home and let the big boys do the real man's work.

November 22, 2008 at 4:29 PM

Blogger DEADC0DE said...

Kiddo, I'm not a fanboy of anything, I have a strong interest in computer languages, and I know many, many of them. C# is a fine one, but just one. Anyway your arguments really persuaded me you're an (anonymous) jerk. Kiss my ass.

November 23, 2008 at 4:26 PM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot