Page 2 of 2 FirstFirst 12
Results 14 to 26 of 26

Thread: Prob in C++ with !=

  1. #14
    Senior Member Bodarc's Avatar
    Join Date
    Aug 2013
    Location
    136 miles North of West
    Posts
    1,949


    Did you find this post helpful? Yes | No
    Ok...thanks guys
    Play within your bankroll, pick your games with care and learn everything you can about the game. The winning will come. It has to. It's in the cards. -- Bryce Carlson

  2. #15


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Gronbog View Post
    BINGO! At least in the case of gaming simulators.

    Even with C++, if performance is a priority, one needs to be conscious of what the compiler is doing with your code. That applies to any language, compiled or interpreted really, but with object oriented languages in particular, a lot gets done for you under the covers and you need to be aware if it, if performance matters to you.

    No disagreement, but, is the 5-10% of extra performance you may gain worth the headache of dealing with garbage collection, PITA debugging, etc?
    Hmm, this is starting to sound like a Hi-Lo vs level 2+ count debate
    Making sure that the compiler is correctly optimizing your code is Ace and 7 side count territory...
    I assume that we're talking about Bodarc's first programming language. Would you recommend that someone start with C++? Even CS majors usually start with something more accessible.

    I like that some of the managed languages like VB let you break into a running program, change variable values or even code, and then resume the program. Makes learning and debugging way easier.

  3. #16
    Senior Member Bodarc's Avatar
    Join Date
    Aug 2013
    Location
    136 miles North of West
    Posts
    1,949


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Marvin View Post
    I assume that we're talking about Bodarc's first programming language.
    Well not really Marvin. In college I learned Fortran back in the day when it was all done with punch cards, and was pretty good at it but never had reason to use it after that so I forgot it. Then I decided I'd learn Basic so I bought a book and learned that but never had any reason to use it so I forgot it. Then just for something to do, I decided I'd learn Assembly. I think I got far enough along that I could print my name on a screen or something with that one. In my business I didn't have much use for any of those but I thought Foxfire might be useful so I bought that and learned it. Never had much reason to use it so I forgot that one too. Last night I spent a few hours downloading Ruby and Python and looking those over and still haven't decided what I might wind up doing.

    I probably should just do some sort of Basic. Visual Basic or Free Basic etc.
    Last edited by Bodarc; 07-21-2015 at 08:23 AM.
    Play within your bankroll, pick your games with care and learn everything you can about the game. The winning will come. It has to. It's in the cards. -- Bryce Carlson

  4. #17


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Marvin View Post
    No disagreement, but, is the 5-10% of extra performance you may gain worth the headache of dealing with garbage collection, PITA debugging, etc?
    Of course, the answer will always be "it depends". For simple CA analysis, perhaps not, but when you start getting into things which require the simulation of billions of iterations (things like like index generation, or analysis of tournament situations), which can take days or weeks, then absolutely, every little bit of performance matters. I don't find debugging C++ to be a problem, even with old-school tools. Same with garbage collection. If your program is well designed, then this is easily handled.
    Quote Originally Posted by Marvin View Post
    Hmm, this is starting to sound like a Hi-Lo vs level 2+ count debate
    Making sure that the compiler is correctly optimizing your code is Ace and 7 side count territory...
    Point taken. Choice of implementation language can be the subject of fanatical debate with no resolution. Heck, around here, even the choice of editor spawns fierce debates
    Quote Originally Posted by Marvin View Post
    I assume that we're talking about Bodarc's first programming language. Would you recommend that someone start with C++? Even CS majors usually start with something more accessible.
    I would recommend a procedural language that is strongly type checked as a first language. Probably not C, since it assumes you know what you're doing and will "just do it", which can be a problem for new programmers. I've been out of the academic loop for many years (decades) now, but when I first started out, PASCAL was a decent language with these properties. Object oriented languages (C++, Java, Python, etc) require a different way of thinking in order to make full use of their capabilities and should be approached separately after a strong base of experience has been established.
    Quote Originally Posted by Marvin View Post
    I like that some of the managed languages like VB let you break into a running program, change variable values or even code, and then resume the program. Makes learning and debugging way easier.
    This is nothing specific to managed languages. Debuggers with these capabilities have been around for decades for both compiled and interpreted languages.

  5. #18


    Did you find this post helpful? Yes | No
    On the topic of performance. There is a chapter in Norm's Modern Blackjack II which describes some of the techniques he used to squeeze maximum performance out of his software. It goes beyond choice of implementation language (not even mentioned, if I recall correctly) all the way down to things that are an issue for the hardware. A very interesting read, if you are a programmer.

  6. #19
    Random number herder Norm's Avatar
    Join Date
    Dec 2011
    Location
    The mote in God's eye
    Posts
    12,476
    Blog Entries
    59


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Gronbog View Post
    Of course, the answer will always be "it depends". For simple CA analysis, perhaps not, but when you start getting into things which require the simulation of billions of iterations (things like like index generation, or analysis of tournament situations), which can take days or weeks, then absolutely, every little bit of performance matters.
    Note: Visual C++ and Visual Basic use the same optimizing compiler.
    "I don't think outside the box; I think of what I can do with the box." - Henri Matisse

  7. #20
    Senior Member Bodarc's Avatar
    Join Date
    Aug 2013
    Location
    136 miles North of West
    Posts
    1,949


    Did you find this post helpful? Yes | No
    What would be your vote Norm?
    Play within your bankroll, pick your games with care and learn everything you can about the game. The winning will come. It has to. It's in the cards. -- Bryce Carlson

  8. #21
    Random number herder Norm's Avatar
    Join Date
    Dec 2011
    Location
    The mote in God's eye
    Posts
    12,476
    Blog Entries
    59


    Did you find this post helpful? Yes | No
    I despise newer C-like languages for a few reasons: Use of semicolons and brackets, case sensitivity, poor handling of mixed data types, poor readability. So, I use Visual Basic where possible. But, you'll find most people using C or php these days. This forum is written in php and there is no question that web apps are easier in that language.

    Now for something unusual, my bj mobile apps are written in a visual basic like language, and then translated to JScript and HTML5 using a translator written in Python. The translation is slower than the line at the DMV.
    "I don't think outside the box; I think of what I can do with the box." - Henri Matisse

  9. #22


    Did you find this post helpful? Yes | No
    Made me chuckle a bit to see C-like languages described as "newer". I may be an old-timer in the software development world but, Norm, it seems that you may pre-date me a bit! What the software world was like when each of us started could be an interesting thread for the "stuff" forum or perhaps this one.

  10. #23
    Random number herder Norm's Avatar
    Join Date
    Dec 2011
    Location
    The mote in God's eye
    Posts
    12,476
    Blog Entries
    59


    Did you find this post helpful? Yes | No
    When I was 16, I lived in the Univ. of Penn. dorms for a while taking computer and math classes. We coded in machine language. That was in the mid-60s.
    "I don't think outside the box; I think of what I can do with the box." - Henri Matisse

  11. #24
    Senior Member Bodarc's Avatar
    Join Date
    Aug 2013
    Location
    136 miles North of West
    Posts
    1,949


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Gronbog View Post
    What the software world was like when each of us started could be an interesting thread for the "stuff" forum or perhaps this one.
    Have at it Gronbog!
    Play within your bankroll, pick your games with care and learn everything you can about the game. The winning will come. It has to. It's in the cards. -- Bryce Carlson

  12. #25


    Did you find this post helpful? Yes | No
    Quote Originally Posted by Norm View Post
    Now for something unusual, my bj mobile apps are written in a visual basic like language, and then translated to JScript and HTML5 using a translator written in Python. The translation is slower than the line at the DMV.
    Norm,

    What translator tool did you use to create the mobile apps?
    Even if slow, for many apps it seems like a better solution than learning both Objective C and Java for IOS and Android.

    MM

  13. #26
    Random number herder Norm's Avatar
    Join Date
    Dec 2011
    Location
    The mote in God's eye
    Posts
    12,476
    Blog Entries
    59


    Did you find this post helpful? Yes | No
    NSB/Appstudio. Unfortunately, it had a huge number of bugs in it that I had to get around. It was designed for much simpler apps.
    "I don't think outside the box; I think of what I can do with the box." - Henri Matisse

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Prob with indices
    By Bodarc in forum Software
    Replies: 39
    Last Post: 09-18-2014, 07:00 AM
  2. Replies: 0
    Last Post: 02-07-2003, 02:32 PM
  3. DanM: Don's Domain access prob.
    By DanM in forum Blackjack Main
    Replies: 3
    Last Post: 03-25-2002, 09:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About Blackjack: The Forum

BJTF is an advantage player site based on the principles of comity. That is, civil and considerate behavior for the mutual benefit of all involved. The goal of advantage play is the legal extraction of funds from gaming establishments by gaining a mathematic advantage and developing the skills required to use that advantage. To maximize our success, it is important to understand that we are all on the same side. Personal conflicts simply get in the way of our goals.