Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

SDK • Re: troubletrouble defining a macro to replace a zero argument fn call: micros()

$
0
0
LOL. I was trying to remove all IDE lib fns so I can free this code of IDE, and this had already been done. However, the code still introduces and extra fn call. If I was able to use a macro as I intended , it would avoid some stack shuffling.
'Inline' is just an optimization for speed (at a cost of size).
Sure. Which makes it more like a macro substituion than a non inline fn. That's exactly what I want in this case since it's inside a tight ISR.

Replacing arduino-pico with an inline would fit what I'm doing although it's not actually needed for the reason I originally thought I needed to do it.

This #undef BS with the incorrect comment following is a classic example of how Chat-GPT is capable of producing credible sounding solutions which are complete fiction. This make it look more believable unless you really know the subject, in which case you would not be asking.
(hint, I asked Chat GPT, so don't think I know anything, but it seems to make sense to me)
Exactly.

It is reminiscent of the NY attorney who use it prepare a court submission. It created case law citations to argue its case complete with properly formed case references but when the judge was curious about the decisions he was unaware of it turned out the whole thing was complete fabrication. Credible looking and well formated but total BS. It was actually contrary to existing law and would have led to an incorrect judgement had the judge not checked the citation.
I agree, but it does seem to know the rules of the C Progrmming language.
This is the trap. It does not "know" anything. It is probabilistic next word prediction. Because of the misnomer "intelligence" people incorrectly infer that it uses logic and factual deduction to arrive at its answers. It doesn't. That is how it produces six finger hands because it has no knowledge of anatomy and is not constructing an image of a human from first principals.

The danger of AI is that we impart it god-like properties instead of realising it is just a very convincing BSitter.

Statistics: Posted by pie_face — Sat Oct 05, 2024 8:26 am



Viewing all articles
Browse latest Browse all 3923

Trending Articles