|
Thanks for the reply and don't worry I'll upload both C++ and C# code when my article is ready to be published.
|
|
|
|
|
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.
|
|
|
|
|
|
Thanks for your valuable ideas. I'll use them both C++ and C# as it has already been recommended.
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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?
|
|
|
|
|
|
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 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.
|
|
|
|
|
but Hell must be enjoying a cool spell.
I wrote a Singleton this afternoon (Type 4 on Jon Skeet's bestiary of Singletons).
Why? Because the System.Windows.Forms.TreeView.TreeViewNodeSorter Property requires an instance of a class rather than a delegate!
.net is going on twenty years old, and ancient crap like this drives me nuts, time to replace it!
|
|
|
|
|
Which .NET version? 4.5+ have the Comparer<T>.Create(Comparison) method.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
|
I see.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
If you are using an old version, surely that would mean that .NET being 18 years old has no relevance?
|
|
|
|
|
I'd prefer to be using a new version of a newer (better) framework.
|
|
|
|
|
Well, that's your choice but you were implying that despite being 2 decades old .NET still was immature and the example you used to point that out is not relevant in recent versions of .NET. That is what I was referring to.
|
|
|
|
|
|
Brisingr Aerowing responded to you with newer ways of doing what you were trying to do in newer releases of .NET. So if you think about it, what you said is not relevant to modern .NET frameworks.
|
|
|
|
|
The issue is with TreeView not accepting a delegate and therefore having to go out of the way to make a class simply so it can hold a method.
And it's a framework issue; not a language issue.
There may be newer ways to do that, but it shouldn't need to be done.
My way at least works on more versions of the language.
|
|
|
|
|
|
Hear, hear, my experiences with WPF are not good either, maybe I'm growing too old for this line of work ...
|
|
|
|