Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. What programming language ANSI C, C++ or C#.NET to use for AI genetic algorithms implementation ?

What programming language ANSI C, C++ or C#.NET to use for AI genetic algorithms implementation ?

Scheduled Pinned Locked Moved The Lounge
csharpalgorithmstutorialquestionc++
15 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B BillWoodruff

    I find this a very puzzling query. If you are writing articles about AI genetic algorithms, then, I assume, you have experience, and expertise, in that knowledge domain, and, given that assumption ... whom could be better suited than Thee to judge which languages to use for code examples based on the code you've already (uhhh ... hopefully ... ) written. In any case, all the best, and I look forward to your articles. cheers, Bill

    «Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

    C Offline
    C Offline
    CodeWraith
    wrote on last edited by
    #5

    Nerd war averted... hopefully :-)

    G 1 Reply Last reply
    0
    • G George Swan

      My experience is that developers prefer to write AI code in either C or C++ and that C# is rarely used. That’s probably because they like to manipulate pointers directly and favour unsigned integers over signed integers. Although C# supports uint, the .Net framework doesn’t seem to. I’ve found that certain bitwise operations are more easily performed on uints. My choice would be to use C# but converting from one value type to another, for example, int to uint, is relatively slow and is best avoided in repetitive algorithms.

      C Offline
      C Offline
      CodeWraith
      wrote on last edited by
      #6

      ***speechless***

      1 Reply Last reply
      0
      • C CodeWraith

        Nerd war averted... hopefully :-)

        G Offline
        G Offline
        George Swan
        wrote on last edited by
        #7

        Pleased to see that you were not speechless for long -you had me worried.

        C 1 Reply Last reply
        0
        • G George Swan

          My experience is that developers prefer to write AI code in either C or C++ and that C# is rarely used. That’s probably because they like to manipulate pointers directly and favour unsigned integers over signed integers. Although C# supports uint, the .Net framework doesn’t seem to. I’ve found that certain bitwise operations are more easily performed on uints. My choice would be to use C# but converting from one value type to another, for example, int to uint, is relatively slow and is best avoided in repetitive algorithms.

          A Offline
          A Offline
          Arthur V Ratz
          wrote on last edited by
          #8

          Thanks for your valuable ideas. I'll use them both C++ and C# as it has already been recommended. :)

          1 Reply Last reply
          0
          • S Super Lloyd

            Well.. for one I like everything C#. I don't even look at C++ code, unless I really have to.. like when I play with DirectX or C++ UWP at home or need to work on a small C++ utility at work.

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            A Offline
            A Offline
            Arthur V Ratz
            wrote on last edited by
            #9

            Thanks for the reply and don't worry I'll upload both C++ and C# code when my article is ready to be published. :)

            1 Reply Last reply
            0
            • G George Swan

              Pleased to see that you were not speechless for long -you had me worried.

              C Offline
              C Offline
              CodeWraith
              wrote on last edited by
              #10

              Nor does that happen very often, even as shy and timid as I am. :-)

              1 Reply Last reply
              0
              • B BillWoodruff

                I find this a very puzzling query. If you are writing articles about AI genetic algorithms, then, I assume, you have experience, and expertise, in that knowledge domain, and, given that assumption ... whom could be better suited than Thee to judge which languages to use for code examples based on the code you've already (uhhh ... hopefully ... ) written. In any case, all the best, and I look forward to your articles. cheers, Bill

                «Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

                A Offline
                A Offline
                Arthur V Ratz
                wrote on last edited by
                #11

                Thanks for the interest to my question and articles I'm about contribute as soon as I'll be done with these article writing. The most likely, I'll publish all those article but not at once. I will proceed contributing those article upon each article is ready for publishing. :) I have a certain domain of knowledge about AI and genetic algorithms in particular. I'd be very nice to share my knowledge and easily way how to implement those genetic algorithms in the series of my articles upcoming. :) Also, I'm about to use both C++ and C# to demonstrate the code has been developed. :) Thanks again for reading and understanding my reply messages. :) Cheers, Arthur.

                C 1 Reply Last reply
                0
                • A Arthur V Ratz

                  Thanks for the interest to my question and articles I'm about contribute as soon as I'll be done with these article writing. The most likely, I'll publish all those article but not at once. I will proceed contributing those article upon each article is ready for publishing. :) I have a certain domain of knowledge about AI and genetic algorithms in particular. I'd be very nice to share my knowledge and easily way how to implement those genetic algorithms in the series of my articles upcoming. :) Also, I'm about to use both C++ and C# to demonstrate the code has been developed. :) Thanks again for reading and understanding my reply messages. :) Cheers, Arthur.

                  C Offline
                  C Offline
                  CodeWraith
                  wrote on last edited by
                  #12

                  Arthur V. Ratz wrote:

                  Thanks for the interest to my question and articles I'm about contribute as soon as I'll be done with these article writing

                  The expectations are high now. I hope you can produce better genetic algorithm AI Orcs than mine. Shall we duke that out on my court or on yours?

                  A 1 Reply Last reply
                  0
                  • C CodeWraith

                    Arthur V. Ratz wrote:

                    Thanks for the interest to my question and articles I'm about contribute as soon as I'll be done with these article writing

                    The expectations are high now. I hope you can produce better genetic algorithm AI Orcs than mine. Shall we duke that out on my court or on yours?

                    A Offline
                    A Offline
                    Arthur V Ratz
                    wrote on last edited by
                    #13

                    Quote:

                    The expectations are high now. I hope you can produce better genetic algorithm AI Orcs than mine. Shall we duke that out on my court or on yours?

                    You never know that what would actually be better in doubt. :) We'll see that later. :) Thanks. :-D

                    1 Reply Last reply
                    0
                    • A Arthur V Ratz

                      Dear Friends, At this time I'm working on a series of articles about AI genetic algorithms. Actually those articles is a concise tutorial for beginners and intermediate programmers in which I'm about to discuss on how to easily implement and deploy genetic algorithms used to solve various optimization and other functional problems. You'll probably find my question a little bit "odd" Smile | :) , *BUT*, anyway I'm just wondering what particular programming language ANSI C, C++ or the most presently active C#.NET is the most preferable to use for writing the source code demonstrating various examples of genetic algorithm implementation ?? Confused | :confused: Actually, I've already created a code in either C++ and C#.NET and I'd like to know which one is the best to contribute along with my article. Smile | :) I'd kindly appreciate to any ideas that you would post as a reply to this message. Smile | :) Waiting for your reply and opinions. Laugh | :laugh: P.S. I'm sorry for cloning this message in more than one forums, but I'd like so that it will be visible on top. :)

                      M Offline
                      M Offline
                      Marc Clifton
                      wrote on last edited by
                      #14

                      There's a lot of AI work being done with Python as a wrapper to C code. The advantage of that combination is the performance of C and the ease of use of Python and integrating Python code with other libraries. [fast.ai](http://www.fast.ai/) is a good example of this combo (at least I think the actual algorithms are implemented in C or C++) So, while I live in the C# world 95% of the time, I am continually impressed with how little Python code I need write to get something done, leveraging a LOT of Python and 3rd party libraries out there. Marc

                      Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                      A 1 Reply Last reply
                      0
                      • M Marc Clifton

                        There's a lot of AI work being done with Python as a wrapper to C code. The advantage of that combination is the performance of C and the ease of use of Python and integrating Python code with other libraries. [fast.ai](http://www.fast.ai/) is a good example of this combo (at least I think the actual algorithms are implemented in C or C++) So, while I live in the C# world 95% of the time, I am continually impressed with how little Python code I need write to get something done, leveraging a LOT of Python and 3rd party libraries out there. Marc

                        Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        A Offline
                        A Offline
                        Arthur V Ratz
                        wrote on last edited by
                        #15

                        And yes, to provide a diversity of choice I will contribute both C++ and C# sources. :)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups