Questions can be constructive, though they don’t lead to a certain answer. For example, somebody may question why the Earth has water and oxygen, unlike the other known planets?
Probably, this question doesn’t have a certain and proven answer, but it can lead scientists to begin research in this field to reach a trustworthy and acceptable theory to disclose this historical astronomic mystery.
Well, this question arose in my mind: can C# in Grasshopper be replaced (wholly) with Python? Is it possible?
Is there a probability that Rhino developers will replace C# with Python in Grasshopper coding in the future? Can this revolution improve coding in Grasshopper, since Python is rising to the top of the list of programming languages and is easier to use?
I pose this question because if the probability of such a replacement is high, I will migrate from learning other languages to Python.
Every programming language is different with different advantages and disadvantages. Ultimately each language exists to let a programmer express intent. The right tool for the right job. I have used Prolog before for specific coding tasks because what I want to express is MUCH harder in C# or python. I have a project now I’m considering and I think F# will likely be a great option for that one, so I’ll learn it a bit.
C# will likely never be replaced for Rhino plugins because so many plugins are made in C# and increasingly more of Rhino is written in it. (Especially the UI).
Learning multiple languages is very good and will inform how you use other ones. Rust taught me a lot about C# programming. C# taught me a lot about python.
Have fun, enjoy making things and use whatever you want. Python, C++, C#, it’s all good and you won’t find yourself hung out to dry with any of these choices
but why? both languages are supported so why would you want to get rid of the one language that is far more powerful in favour of one that chows down all your processing resources. the only reason Python it is on top is because of convenience, it sucks in all other regards.
I just wanted to know, does Python have such power and ability (by advancing in the future) to take the place of C# in some Grasshopper components that are for writing C# code inside them by the user? (not creating the components themselves).
I think you are thinking of languages in not quite the way they exist imo. They are only a communication medium, the languages themselves do not really have a power or abilities. Largely this comes from the libraries available! Python has some incredible data and science libraries, if you want to communicate with those, you would use python.
The languages are not competing to be the best and ultimately there will not be a “winner” that everyone will use and all other languages will become defunct leaving everyone who learnt to have wasted their time.
If you want to write scripting components in GH, I do not think it is that important Some operations will be faster in some languages, some faster in others. Again, largely down to libraries and your ability to explain to the computer what you want
Not to confuse you any further, but here’s a quickie flow chart of my mental process every time I start writing something (specifically in Grasshopper, but the questions apply to general Rhino scripting now too):
I’m an unknown but capable poet in my first language (I wish to remain unknown), and this time I wrote this poem as thanks to all the seniors who guided me on these two topics.
Thank you for showing the way
That is what I want to say
Enlightening others is a dignity
It is luminous like a ray
These days, I mostly am eager to write somethings instead of exercise in modeling.
Of course, my questions about programming languages were a requirement to choose a suitable one that is according to my needs, especially connected to Rhino.