Quote:
Originally Posted by pkt-zer0
Right. There always might be exceptions though, but it's not typical that 16000 functions are called at the same time, unless you did something very wrong. :D
I don't think it's possible to make that bad of a mistake...
Quote:
That's where standards and APIs and drivers come in. They just do the stuff, so you should't have to care about how it's done. It's just done, somehow.
One should worrry, it also goes through the processor like everything else. What if there is a faster way? Plus, i'm curious how they introduce forign things into it. The information could make things possible in the long run. Like calling VB functions from VB's OCX or whatever they are (their dlls i think they are) and using some of those functions. You don't see the point now, but think of it in other ways, such as, calling assembly code or doing things with C++ that directly mess with the hardware? Perhaps you want to make a program in C++ that overclocks or somthing like that. Or how about hardware drivers in C++! I thought that's what the << and >> was for anyway.
Quote:
Get gcc then, it's open source. Meaning that anyone that found anything that was worth improving, did so. Resulting in great speed/stability/reliability/whatever. Also, not all APIs are Visual C++ only. OpenGL and glut (things I used for graphics and input) both work perfectly well under Linux, too. But I agree, there are far too many Win-only stuff.
Well, there are alot of things that are... Plus, i keep trying to get it but i can never find the thing.
Quote:
Yes, ASM is direct processor code. What does that have to do with how large memory blocks are assigned to an individual variable type? Nothing.
Processor processes the program, that means everything in it, therefor it reads what the OS says, therefor, assembly should have the last word even over the OS if the assembly code says so because it's send directly to the processor over the OS. We forget here, the processor is the computer itself and makes all the choices, the OS is just another program the processor calculates.
Quote:
Yeah, optimizing. If something seems slow, code your version of it, to see if it's faster. If it IS, use it, if not, revert. However...
Have you ever checked out Cassini, the "Open Source" Saturn Emulator? Those fools just disassembled the code, and put the ~2MB of assembler into a text file. See if you can improve it in a hundred million years.
Truly, ASM is not pleasant to the eye in the case of larger programs. It is good for making a select few functions smaller/faster, though, but you don't need a disassembler for that.
Yea you do... Unless you know of a program that could convert some other things back to C or C++ so we can optimise it.
Quote:
Object orientation is an approach to programming, a programming method itself, alternative to structured programming, it has nothing to do with the actual datatypes themselves.
In structured programming, you make loops and functions to handle the data.
In object oriented programming, you make objects that are autonomous in some way, and have them go at it. The thing is that here the data is contained in the objects themselves, and is not manipulated from the outside. The objects re-assign their inner variables according to various instructions you may give them, and then behave accordingly. So, you could have a Player object, with a Jump method, that would make it jump, without you having to care about the exact details (collision, velocity, animation).
BTW, the difference between structs and classes in C++ is that structs data fields default to public, whereas classes' default to private. There is no private/public distinction in C, therefore no need for classes.
Exactly, therefor C is also object oriented.... Actually, with a little intellegence (and alot of hard to read code) you could actually use namespaces to as classes to do the same thing as objects. Only, you'd have to copy and paste the namespaces and rename them to make new objects. lol
That also means, you could emulate object orientation in structured language... What scares me is those languages that don't use functions or objects. o.o i think VB's one of them. lol