What programming language ANSI C, C++ or C#.NET to use for AI genetic algorithms implementation ?
-
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. :)
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!
-
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. :)
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 onuints
. My choice would be to use C# but converting from one value type to another, for example,int
touint
, is relatively slow and is best avoided in repetitive algorithms. -
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. :)
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
-
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
Nerd war averted... hopefully :-)
-
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 onuints
. My choice would be to use C# but converting from one value type to another, for example,int
touint
, is relatively slow and is best avoided in repetitive algorithms.***speechless***
-
Nerd war averted... hopefully :-)
Pleased to see that you were not speechless for long -you had me worried.
-
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 onuints
. My choice would be to use C# but converting from one value type to another, for example,int
touint
, is relatively slow and is best avoided in repetitive algorithms.Thanks for your valuable ideas. I'll use them both C++ and C# as it has already been recommended. :)
-
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!
Thanks for the reply and don't worry I'll upload both C++ and C# code when my article is ready to be published. :)
-
Pleased to see that you were not speechless for long -you had me worried.
Nor does that happen very often, even as shy and timid as I am. :-)
-
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
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.
-
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.
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?
-
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?
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
-
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. :)
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
-
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
And yes, to provide a diversity of choice I will contribute both C++ and C# sources. :)