Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 4th, 2006, 2:49 PM   #11
Harakim
Hobbyist Programmer
 
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3 Harakim is on a distinguished road
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.
Harakim is offline   Reply With Quote
Old Jun 6th, 2006, 3:00 AM   #12
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
Quote:
Originally Posted by Narue
I develop for a popular commercial compiler. Even if I'm never going to use a library function that I write, I write it to the best of my ability. Anything less would be an insult to end-users, such as yourself. Your argument is that I'm willfully ignorant of performance considerations because I think hardware will keep up the slack, which couldn't be further from the truth. Performance is second only to correctness when I'm writing code for you. All false modesty aside, I'm probably a much better programmer than you are, with significantly more experience. Saying that you don't trust your libraries (and your reasoning for saying that) is tantamount to saying that you think I'm incompetent.
If I really thaught people are incompetent, I would not have made this thread in the first place. I never said you are incompetent lol. You seemed too happy and confident to be incompetent. 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. I am not even a programmer. Well, I do program a little in my idle times but the sort of programming I do is different from at least 95% of programmers out there. And my situation in this thread is different. Its part of a fun programming challenge to produce the most efficient and fastest algorithm to stay synced with a particular hardware. I heard today that our programs will be run in a machine with no o/s. Guess I cant use those librarys anyway. Not only me, everyone will be counting clock cycles. There is no reason for you to get offended with that "smiley" face of yours.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Old Jun 6th, 2006, 7:37 AM   #13
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
>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.
Narue is offline   Reply With Quote
Old Jun 6th, 2006, 10:15 AM   #14
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
Quote:
Originally Posted by Narue
>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.
This is really getting spammy.

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!
rsnd is offline   Reply With Quote
Old Jun 6th, 2006, 11:54 AM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 6th, 2006, 2:08 PM   #16
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
yeah! whatever you say! I said what I saw.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Old Jun 6th, 2006, 2:09 PM   #17
Harakim
Hobbyist Programmer
 
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3 Harakim is on a distinguished road
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.
Harakim is offline   Reply With Quote
Old Jun 6th, 2006, 2:21 PM   #18
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
>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.
Narue is offline   Reply With Quote
Old Jun 6th, 2006, 2:36 PM   #19
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Originally Posted by re use of 'spammy'
yeah! whatever you say! I said what I saw.
It appears your understanding of terminology is about on par with your understanding of machine programming.
__________________
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
DaWei is offline   Reply With Quote
Old Jun 6th, 2006, 2:51 PM   #20
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
>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:
Originally Posted by DaWei
Quote:
Originally Posted by re use of 'spammy'
It appears your understanding of terminology is about on par with your understanding of machine programming.
Bad example DaWei. Thats the language I work most with. Well, we don't look at it as a language from our side...just ones and zeros to make things easier. And its not "programming" at that level.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC