Liste des Groupes | Revenir à col advocacy |
On Sat, 08 Jun 2024 17:32:14 -0400, Joel <joelcrump@gmail.com> wrote init's me it's me
<2ej96j1mbvgiok4q5c57vdlo94itpfu5dt@4ax.com>:
rbowman <bowman@montana.com> wrote:My go-to language has always been perl, but I use
>>>>Free hint: don't use something you're not into using. What little>
I've seen of Python seemed like a child's toy, but guess what, I
didn't explore further. Relax, smoke a doobie, dude.
You should dig a little deeper.
To do what?
I have no idea what you want to do with a computer. Do you do data
analysis? Python with pandas, numpy, and related modules is overtaking R
in that field. The python implementations are usually faster than R which
says something about R's lack of performance.
>
Machine learning? PyTorch and TensorFlow offer two approaches. Create a
desktop GUI applcation? I prefer Pyside6, which is a Qt binding, but there
are other alternatives including Tkinter. Web application? Django, Flask,
and FastAPI offer different approaches and degrees of opinionation. Work
with microcontrollers using the RP2040 chip. MicroPython and CircuitPython
make rapid development possible. Like comics? I have a script that gets
the ones I'm interested in from gocomics. Music? I've got one that
queries the itunes data base for artist or song information. Databases?
Pick your poison.
>
So, what do you want to do? Of course you can do all of the above with C,
C++, or another language but you may be writing more code and doing more
debugging. If the Python prototype is too slow you can rewrite it. For
example I did the itunes thing in both Python and C#.NET to test the .NET
SDK on Linux.
>
I can't imagine I'd need anything beyond C.
C when I need performance...or very strict security,
like with a setuid wrapper.
Python is filling the niche that perl had before it
kind of stagnated[*]. If I want to slurp in a huge json
file and analyze it, I'd probably write that in perl (and
I have, in one case).
[*] Or rather, took off into the weeds...
I asked chatGPT to write a "quine" in python recently,
and found it extremely easy to improve on the answer it
gave me:
$ cat quine.py
#!/usr/bin/python3
with open(__file__, 'r') as file:
print(file.read())
- -%<- -
Les messages affichés proviennent d'usenet.