Go to advanced search

by Heater
Mon Nov 29, 2021 5:28 pm
Forum: General discussion
Topic: RPT IPO ?
Replies: 4
Views: 223

Re: RPT IPO ?

Already under discussion here: viewtopic.php?t=324914
by Heater
Mon Nov 29, 2021 10:27 am
Forum: General discussion
Topic: Dead Pi 3b post mortem
Replies: 2
Views: 150

Re: Dead Pi 3b post mortem

Hmm... bracing sea air, salt spray, corrosion...dead electronics. Unboxed in what I guess is a space used by others, who could know what happens to it. Connected by long wires to device outdoors, invites lightning strike or at least death from static build up in the air. I suspect you will never fin...
by Heater
Mon Nov 29, 2021 10:16 am
Forum: General programming discussion
Topic: Which language has the widest RP support?
Replies: 5
Views: 228

Re: Which language has the widest RP support?

Which language has the widest API/ease of using hardware support? IE motors, LED, GPS locators, Touch Screens, button pads, so forth. Traditionally we would being doing such things in C or C++. I find Javascript running under node.js very capable. Especially the event driven model of JS makes juggl...
by Heater
Sat Nov 27, 2021 8:00 pm
Forum: General discussion
Topic: Environmental monitoring and regulation - Which Pi to buy?
Replies: 9
Views: 377

Re: Environmental monitoring and regulation - Which Pi to buy?

The smallest, cheapest Pi will do what you have described.

In fact I'd say A Pi is total overkill and something much less would do fine.

However a Pi is much easier to use and better supported than many other options.
by Heater
Thu Nov 25, 2021 7:59 pm
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

Its just occurred to me that you could place a check for any flags set right at the end of the program before the exit(). Then you know if at some point during the programs run there was underflow, overflow, divide by zero, an invalid operation (like storing 1e100 into an int), or loss of precision...
by Heater
Wed Nov 24, 2021 2:14 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

I just realized that the Linux/Windows issue is mostly irrelevant. For that application it will be mostly HTML/CCS/JS running in browsers. There is probably a whole generation of coders who would not even know or care what OS the server will be running their code on. The Browser has become the OS? ...
by Heater
Wed Nov 24, 2021 1:55 am
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

C++ was always intended to just add a layer of OO on top of C. Ditching C support would actually stop C++ being used by many who like to mix and match. Similarly for Objective-C. Yes. I think we can be pretty sure that C++ owes a lot of it's success to starting out as an extension to C. "C wit...
by Heater
Wed Nov 24, 2021 1:20 am
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

Most floating point multiplication results in rounding. Yes indeed. That is normal and expected for floating point math. That is not what we are discussing here. The issue, for me at least, is silent conversion of integers to floats and the potential inaccuracies introduced. Worse still the result ...
by Heater
Wed Nov 24, 2021 1:05 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Ha! So many time I have found myself typing "man something" into google and got just the information I need, in a man page! Obviously things like man pages are reference works. They are not really intended to teach things to raw beginners. Rather like a dictionary for human languages, you ...
by Heater
Tue Nov 23, 2021 5:57 pm
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

Multiplying a floating point numbers by an integer is reasonable in numerical code. Is it? Over some range multiplying a float by an int gives an inexact result. Maybe that is what is desired. Maybe it is not. Surely the programmer should make that clear. More importantly code which is difficult to...
by Heater
Tue Nov 23, 2021 3:14 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Perhaps these days WSL2 comes with some useful stuff, I don't know. (but perhaps that doesn't count as it is Linux :) ) Odd that. People have been joking about waiting for the "Year of Linux on the Desktop" for a decade or two. With WSL Linux has been on the desktop for a few years. Put t...
by Heater
Tue Nov 23, 2021 8:20 am
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

All the above is very true. To my mind though the question is not about the values of variables at runtime and whether they can be correctly moved from one type into another when they have suitable values. Which, as you point out, is not something the compiler can know (in general). That would requi...
by Heater
Mon Nov 22, 2021 9:14 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

The opening post just smells SPAMMY.

It's a first post from a new member.
The post says nothing about the poster and asks a question that is hardly Pi specific.
It's a click bait question. Designed to attract views.
by Heater
Mon Nov 22, 2021 2:48 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

That said, companies should really have a selection of toolsets available to them so that they can choose the right tool for the job in hand. There we can totally agree. I have no issue with companies or individuals spending their money however hey like on such things. Luckily, and amazingly, in th...
by Heater
Mon Nov 22, 2021 2:33 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

No way does gcc compete with Clang, Wow. That is indeed a contentious statement. Which I have to challenge. In my experiments, mostly as part of some coding challenge on this forum, it is a toss up between GCC and Clang when it comes to performance. Sometimes one is ahead sometime the other. Never ...
by Heater
Mon Nov 22, 2021 12:34 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Amazing what an interesting discussion a spammer can initiate.
by Heater
Mon Nov 22, 2021 12:05 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

A long time ago MS announced that they would no longer try to keep their compilers up to date with the latest standards. For example, they had no intention of including all the new stuff in C11, or even fully complete C99. I have no idea of the C/C++ situation back in the days when MS declared that...
by Heater
Mon Nov 22, 2021 11:59 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

My experience is that the free tools work rather better. I have never heard on anyone spending lots of money supporting them. Both development time and code produced are better. In my experience development time is not helped by using propriety tools. On occasion it has been hindered. I have no ide...
by Heater
Mon Nov 22, 2021 11:32 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

You only pay MS for VS if you're over 6 employees. But ARM don't offer their system FOC for small companies. There we go. The outfits I worked for were somewhat bigger. Including Nokia back in the day. Of course at that point the cost of tools acquiring tools is hardly a concern. The cost of being ...
by Heater
Mon Nov 22, 2021 9:14 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Hate to disillusion you but we get a development system with a wide range of compilers for Windows PC direct from Microsoft for free as we're less than six people. For Android, Xamarin is a godsend as it means we can avoid the awful Google toolset. I've never tried but Intel Fortran can be download...
by Heater
Mon Nov 22, 2021 9:10 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Hey all, Can you please help me to know whats the Differences between Linux and windows, and which OS is best for programming? I'll repost this, since it was removed and nobody else mentioned it. Windows (as you know it) does not work on a Raspberry Pi, stick with Raspberry Pi OS Sure it was mentio...
by Heater
Mon Nov 22, 2021 4:43 am
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

Ah yes, RISC-OS.

It would never have occurred to me that was an option. Haven't though about it since I lusted after an Archie back in '87 or so. Yes I'm a troglodyte :)
by Heater
Sun Nov 21, 2021 7:28 pm
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

Yes, GCC does too, it looks like an exact copy of the clang one. Cool! Yes. I get the impression that the arrival of Clang/LLVM has cause some healthy competition between them and the GCC guys. Good for all of us. Then the arrival of Rust and it's rules about types, ownership and lifetimes, has at ...
by Heater
Sun Nov 21, 2021 3:34 pm
Forum: General discussion
Topic: Linux vs Windows
Replies: 116
Views: 3738

Re: Linux vs Windows

If you are going to be programming on a Raspberry Pi you are going to be using Linux.

As for the differences or "best" under whatever criteria that is best searched on Google. I'm sure you will find lots of debate about this, dating back over two decades.
by Heater
Sun Nov 21, 2021 3:30 pm
Forum: C/C++
Topic: Why no warning?
Replies: 46
Views: 1884

Re: Why no warning?

But would you not soon get fed up with continual complaints about things that are obviously safe such as converting a short to a long ? Casts everywhere make the code less readable and reduce safety. Type inference, like "auto" in C++ can reduce the need for a lot of casts. I'm not convin...

Go to advanced search