I would never expect it to go so easily with a C++ project. Even though I normally just fire up my Linux machine every time I need to compile anything because I'm so used to it being impossible to do on Windows, for some reason I gave it a try on my Windows machine and it was just a matter of downloading the Go installer, running it, and then typing "go build". I was really surprised the first time I needed to build some Go code. So my thought is that perhaps Go will become my tool of choice for when I have a project that's a bit more than a big script. I know Python is used for some very serious stuff, but I don't really use it in that manner. But I've been doing some more significant Python programs lately and feeling like it's not really my tool of choice for going beyond my "bash++" requirements. So I'm really not making an apples to apples comparison between C++ and Go.Ĭurrently, my "go to" for quick and dirty simple programs for my PC is Bash, then Python when I reach the limits of what is reasonable to do with Bash. I'm probably not able to make a real judgement on this because my C++ experience is in embedded systems. I'm not really crazy about the system of the capitalization of names determining their visibility, but it's not the end of the world. #GOSERIAL DOWNLOAD CODE#On the other hand, my projects in other languages have ended up being way too much code crammed into only a couple files, so maybe it's a good thing. The way to get namespaces is through packages, so I end up with a lot of files and folders in my projects. Unfortunately, I find that I very much miss some of the features that were left out in order to make it simplified, such as const and enum classes. It feels to me like somewhat of a simplified C++. The workaround for that is calling it golang, but that doesn't always happen. A significant problem with Go is that it makes a horrible search keyword, which is ironic since it was created by Google. I remember a similar comment on there from, I believe, Massimo Banzi, specifically addressing a question about why Arduino chose Golang for either arduino-builder or Arduino CLI, but I can't find it now. Maybe you want to give a try to golang that can easily cross-compile forĪlmost all OS and produce a single executable binary with almost-zero So in order for me to participate in the development of the Arduino tools, or even to document them, I need to know Go.īut I know that the real question now becomes: "Why did Arduino choose Go?" Perhaps this comment from Cristian Maglie on the Arduino Developer's Mailing List provides a clue: #GOSERIAL DOWNLOAD PRO#The TypeScript-based Arduino Pro IDE is a major exception to this, but that's a result of the eclipse-theia framework it's based on. The easy answer to "why" is because this is the primary language used to write official Arduino tools now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |