:: Re: [DNG] Help needed - - running i…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: David Billsbrough
Ημερομηνία:  
Προς: o1bigtenor
Υ/ο: dng
Αντικείμενο: Re: [DNG] Help needed - - running into issues with python and its tools
You wrote:

> I wasn't going to bite but you keep insisting so: 

 
> Why is C/C++ so absolutely wonderful?

 
I think that Hendrik answered it well enough in that in 'embedded' space the 'C' language is it going to reach into
the details of systems programming.
 
To learn embedded systems and to read other programmers code to understand it purpose of various functions, like for
example how to 'talk' to a LCD display, and how it really is working may require at least be able to *read* the 'C' language.
 
For more general programming of applications not having to manage memory and leave at least that detail
to a "gc" (garbage collector) of which python does have. (hint: a gc is never cheap in it usage of resources)

To learn embedded systems you're learning almost three separate pipelines of *new* knowledge :

1. The tool-chain of the host machine: cross-compiler (if used), upload/download utilities, optional debugging utilities.
2. The target machine e.g. the hardware processor and aux subsystems (SPI, I2C, async serial, GPIO, ADC, DAC, Timers, memory)
3. the target "systems" language and (very many) optional libraries

(the original question was category 1)

regards,
 
David  (each tool for its time and place)
--
David - KC4ZVW
Chuluota, FL
https://www.kc4zvw.org/ 
 

Sent: Thursday, August 08, 2024 at 10:35 AM
From: "o1bigtenor via Dng" <dng@???>
To: dng@???
Subject: Re: [DNG] Help needed - - running into issues with python and its tools

  

On Thu, Aug 8, 2024 at 8:52 AM Dan Purgert via Dng <dng@???[mailto:dng@lists.dyne.org]> wrote:On Aug 08, 2024, David Billsbrough wrote:
> Hello Dan and all,
>
> Quoting somebody on this mail list:
>
> > If you're trying to start up a new hobby, and expect to be using these
> > tools every weekend; well, you're going to need that set of $40 tools
> > when the $5 set breaks / ruins something / whatever.  Might as well
> > spend the $40 today instead of $5 today and $40 anyway in 2 months.
>
> [...] Tool prices, etc. comments. [...]
> SO anyways ...
>
> In the virtual (digital) world this **idea** does' NOT also work the
> same way at all.
>
> You can use FREE (beer or speech) software that meets and exceeds some
> or most *TOP* dollar software offerings.  Well because that just the
> way that it is!


You completely misunderstood the analogy I'm making...

Scenario:  OP is fighting with Python a bit in order to use MicroPython
(or a variant thereto) to program a microcontroller.

I'm telling him that *IF* he's trying to do this as more than a
"one-off", he might as well learn C/C++ (via Arduino) now, rather than
waiting on it.

Python = "Cheap tool" (It'll get the job done, if all you need is this
one thing)

C/C++ = "Expensive tool" (It'll "hurt the wallet", but you'll have it
forever).
 
I wasn't going to bite but you keep insisting so: 
 
Why is C/C++ so absolutely wonderful?
 
TIa