Deutsch English Français Italiano |
<lqfq99F2ek8U1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman <bowman@montana.com> Newsgroups: comp.os.linux.misc Subject: Re: Joy of this, Joy of that Date: 24 Nov 2024 05:01:30 GMT Lines: 30 Message-ID: <lqfq99F2ek8U1@mid.individual.net> References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me> <vhq1f7$16bou$1@dont-email.me> <vhqm4g$1aarf$1@dont-email.me> <vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me> <vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me> <vhs3ji$1kb5c$1@dont-email.me> <vhtht6$1s5d5$5@dont-email.me> <vhtplb$1tioh$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 2CaR05EsgDGz5Rg2BLSxfwEf+1TjOyrWVxGHNdPZVGFaZtAwQS Cancel-Lock: sha1:eKIyn37tuCsNgF0JZ0gIY9/1KdA= sha256:Llu7aPYJg2Vu0HAWLRZzF6dHPaiF15W7Ca8sAduwu34= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 2846 On Sat, 23 Nov 2024 23:48:59 +0000, Pancho wrote: > I'm actually quite unconvinced by Python. For many things it provides a convenient level of abstraction if performance isn't a major concern. It's not so much the language itself as that the language has become very popular and the range of modules has greatly expanded. For example, the Esri Python API makes common GIS manipulations less painful than using C++. Similarly if you're into machine learning while TensorFlow and PyTorch have C++ bindings almost all tutorials will use Python. In data science Python is starting to overtake R and is actually faster for some operations. For REST APIs you have flask, django, and several other frameworks. For embedded work as Arm microprocessors have become the norm and SRAM has greatly increased a Python interpreter, either MicroPython or CircuitPython can be loaded on the device. Again you can work in C++ and get greater speed and control but it comes at a cost. Controlling a servo with PWM is easy in Python. Doing it in C++ means you need to determine the slice and channel for the GPIO pin, decide what to load into the counter to get the desired frequency from the 125 MHz clock,determine if you need to use the divider for lower frequencies, and make other decisions. Using Python means you get uniformity across many disciplines and it's good enough for most things. It could have been Perl if it hadn't gotten stuck in the tar pits, or Ruby, or Go but from whatever twist of fate occurred it was Python.