The answer is historically there were good reasons, but not today. Today if
you know C and don't want to make a really big investment retraining, Write
in Zig. If you are willing to make the investment, use Rust.
On Fri, Aug 9, 2024, 18:10 Dan Purgert via Dng <dng@???> wrote:
> On Aug 10, 2024, onefang wrote:
> > On 2024-08-09 07:59:51, Dan Purgert via Dng wrote:
> > > On Aug 09, 2024, Didier Kryn wrote:
> > > > Le 09/08/2024 à 00:10, karl@??? a écrit :
> > > > > Hendrik Boom:
> > > > > > On Thu, Aug 08, 2024 at 09:35:50AM -0500, o1bigtenor via Dng
> wrote:
> > > > > ...
> > > > > > > Why is C/C++ so absolutely wonderful?
> > > > > C is a really nice language compared to assembler.
> > > > > Though at the time, the assembler of e.g. MC68000 was
> > > > > a little high level lang. inspired with mult. adressing
> > > > > modes. [...]
> > > > >
> > > >
> > > > Fully agree about C. [...]
> > > >
> > > > The problem of C is that it is much more subtle than it looks,
> and it
> > > > contains a lot of pitfalls. There is a new, more secure language,
> > > > which has the distinctive feature of having been accepted into the
> > > > Linux kernel: Rust, but it is not yet stable.
> > >
> > > Nor does it work on microcontrollers ;)
> > >
> > > (...yet)
> >
> > Um, C works fine for microcontrollers. When I programmed that tiny (RAM
> > less than a kilobyte) microcontroller in assembler to create a USB
> > keyboard (plus some extras that the client needed) last decade, there was
> > indeed an example written in C already.
> >
> > Or did you mean Rust and Linux don't work on microcontrollers?
>
> Rust; though admittedly I may have missed news that someone made it work.
>
> C/C++ is /the/ language for microcontrollers -- least they're the only
> languages I really see anyone in the IRC channels I hang out in talking
> about -- some of us will talk assembly, but it's niche.
>
> "Arduino" too (but that's somewhat more restricted specifically to the
> "#arduino" channel).
>
> --
> |_|O|_|
> |_|_|O| Github: https://github.com/dpurgert
> |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>