![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
Ya, I used to want to do everything in assembly. But with functions like mcpy and strcpy, these are functions that have been used millions and millions of times. If they were slow, they would have been fixed by now. Also, they are almost the same function which means individually they are highly-optimized.
I would save assembler for a time when the library method to do the job either doesn't exist or is really generic. In other cases your code will be the same or slower. You may introduce problems into your program if you're new to assembly. If you want to have some fun or get some practice then you can do it, but be prepared to scrap it if it ends up being slower. |
|
|
|
|
|
#12 | |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
Quote:
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
|
#13 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 3
![]() |
>I never said you are incompetent lol.
Not me directly, but it was strongly implied that you didn't trust the library's authors to write code to your satisfaction. In other words, incompetent. And since you could be using my compiler (you never mentioned which one you're using), you could very well be talking about me. ![]() >And you dont have to tell me you are a better programmer than me because >that gives me an impression that you think people are incompetent. Nice try, but objectively stating a likely possibility of being a better programmer is not the same as using an irrational argument to claim that you don't have faith in other people's code. >Its part of a fun programming challenge to produce the most efficient and >fastest algorithm to stay synced with a particular hardware. That's funny, you never mentioned that before, even though it strongly affects the answers. Maybe if you asked a smart question, you wouldn't get smartass answers. >There is no reason for you to get offended with that "smiley" face of yours. You'd have a hard time offending me, I'm very mellow. However, that doesn't stop me from informing you, sometimes harshly, that your statements can easily be construed as offensive.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#14 | |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
Quote:
From what I see since your first post in this thread, you have...pre-amplified fighting potential. Reminds me of myself in past. Brings back bad memories of me doing it to my professor. I always wonder about how immature it was. But now, its just not my style. Hope you realize it the easy way. Anyways, soz for ignoring your first post. "Good judgement comes from experience...and experience comes from bad judgement." I still make bad judgements. Thats an essencial part of my learning process. Only when I figure out my judgement was wrong...my horizons expand...I am sure its the same with most people and you dont need violence.
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Spammy seems a poor choice of words. What you have been doing is making comments out of ignorance. Recalcitrant ignorance, at that. The person you have been butting heads with is about 400%, minimum, ahead of you in the knowledge department. If bad judgement is a part of your learning process, you are on a hell of a learning roll, right now. I don't know where your reference to violence comes from -- perhaps your own signature????
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#16 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
yeah! whatever you say! I said what I saw.
__________________
Spread your wings and fly! Chicken! |
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
If you're competing cycle for cycle, you will probably want to use some assembly. I would suggest writing it first using those library functions and if they turn out to be a slow piece of code, go back and change them. I think there will be other problems that will come up that will slow the code down much more. You would be better off spending your time on those than on the standard library functions.
|
|
|
|
|
|
#18 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 3
![]() |
>You would be better off spending your time on those than on the standard library functions.
It seems like everyone is hell bent on doing things the hard way though. With any luck, rsnd will walk away remembering at least our advice on analyzing performance. A wise programmer profiles her code and optimizes where optimizations can do the most good. But I've said it before and I'm sure I'll say it again: Wisdom comes from doing silly things so many times that you finally understand why they're silly. ![]()
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#19 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#20 | ||
|
Hobbyist Programmer
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4
![]() |
>Wisdom comes from doing silly things so many times that you finally understand why they're silly.
![]() I totally agree ^_^ Wish DaWei understood that...then he would not have said "you are on a hell of a learning roll." I found it difficult to perceive that as a joke. Quote:
__________________
Spread your wings and fly! Chicken! |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|