ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A logging facility
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Robert Hyatt



Joined: 27 Feb 2006
Posts: 15816
Location: Birmingham, AL

PostPost subject: Re: A logging facility    Posted: Wed Mar 21, 2012 4:36 pm Reply to topic Reply with quote

bhlangonijr wrote:
bob wrote:
And there is less risk of using features that are not exactly conducive to efficiency. Templates come to mind. AKA "code bloat". It's a matter of personal taste.


oh my... don't you guys get tired of this kind of language wars? Smile
This is a very known pattern:

Assembly guys bashing C language -->
C guys bashing C++ (vide Linus Torvalds vs some random c++ dude famous thread in the internet) -->
C++ guys bashing Java -->
Java guys bashing Scala, Python, Erlang, ....

I'd very much prefer get my ass off the couch and try learning something new..

But I'd say this:

Code:
x = std::abs(y);


is definitely much better than

Code:
 
x = labs(y); // or
x = cabs(y); // or
x = labs(y); // whatever ....
...


This is not a matter of "personal taste". I suppose this is the natural evolution of computer languages. Wink


So you like overloaded operators. many do. I personally want more control when speed is critical. I'm not bashing C++ at all, having used it for a LONG time. But I don't use it for chess programming. I have seen several that do, and when you look at their code, you begin to see all the static stuff to avoid creation/destruction overhead and such, and significant parts of the language are bypassed in doing so...

I can quote at least a couple of dozen languages I have used / taught in years past. Each of which had its strong points and weaknesses. And hardly any of which I would have chosen to use for a chess program...
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
A logging facility Marco Costalba Sun Mar 18, 2012 10:23 pm
      Re: A logging facility Gary Sun Mar 18, 2012 11:56 pm
      Re: A logging facility Robert Hyatt Mon Mar 19, 2012 3:50 am
            Re: A logging facility Marco Costalba Mon Mar 19, 2012 7:18 am
                  Re: A logging facility Vincent Diepeveen Mon Mar 19, 2012 7:37 am
                        Re: A logging facility Marco Costalba Mon Mar 19, 2012 7:50 am
                              Re: A logging facility Vincent Diepeveen Mon Mar 19, 2012 8:22 am
                                    Re: A logging facility Jan Brouwer Mon Mar 19, 2012 6:43 pm
                                          Re: A logging facility Robert Hyatt Mon Mar 19, 2012 6:54 pm
                                                Re: A logging facility Jan Brouwer Mon Mar 19, 2012 8:00 pm
                                                      Re: A logging facility Marco Costalba Mon Mar 19, 2012 9:09 pm
                                                            Re: A logging facility Daniel Shawul Mon Mar 19, 2012 9:37 pm
                                                            Re: A logging facility Marco Costalba Tue Mar 20, 2012 8:30 pm
                                                Re: A logging facility Ben-Hur Carlos Langoni Wed Mar 21, 2012 2:16 am
                                                      Re: A logging facility Daniel Shawul Wed Mar 21, 2012 9:20 am
                                                            Re: A logging facility Ben-Hur Carlos Langoni Wed Mar 21, 2012 1:54 pm
                                                                  Re: A logging facility Daniel Shawul Wed Mar 21, 2012 3:38 pm
                                                            Re: A logging facility Marco Costalba Thu Mar 22, 2012 8:01 pm
                                                                  Re: A logging facility Daniel Shawul Thu Mar 22, 2012 10:48 pm
                                                                        Re: A logging facility Rein Halbersma Fri Mar 23, 2012 7:03 am
                                                                              Re: A logging facility Daniel Shawul Fri Mar 23, 2012 10:04 am
                                                                                    Re: A logging facility Rein Halbersma Fri Mar 23, 2012 12:32 pm
                                                                                          Re: A logging facility Martin Sedlak Fri Mar 23, 2012 1:00 pm
                                                                                          Re: A logging facility Daniel Shawul Fri Mar 23, 2012 2:05 pm
                                                      Re: A logging facility Robert Hyatt Wed Mar 21, 2012 4:36 pm
                                                      Re: A logging facility Mark Pearce Wed Mar 28, 2012 12:49 pm
                  Re: A logging facility Rein Halbersma Mon Mar 19, 2012 7:50 am
                        Re: A logging facility Marco Costalba Mon Mar 19, 2012 8:00 am
                              Re: A logging facility Rein Halbersma Mon Mar 19, 2012 8:09 am
                        Re: A logging facility Robert Hyatt Mon Mar 19, 2012 6:56 pm
      Re: A logging facility Daniel Shawul Mon Mar 19, 2012 7:52 pm
            Re: A logging facility Robert Hyatt Wed Mar 21, 2012 1:26 am
                  Re: A logging facility Daniel Shawul Wed Mar 21, 2012 9:00 am
      Re: A logging facility H.G.Muller Wed Mar 21, 2012 7:58 am
            Re: A logging facility Vincent Diepeveen Wed Mar 21, 2012 2:39 pm
                  Re: A logging facility H.G.Muller Wed Mar 21, 2012 5:29 pm
            Re: A logging facility H.G.Muller Thu Mar 22, 2012 8:11 am
                  Re: A logging facility Daniel Shawul Thu Mar 22, 2012 11:18 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads