Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #572618 > unrolled thread

design rigor: electronics vs. software

Started byomnilobe@gmail.com
First post2020-01-10 21:46 -0800
Last post2020-01-15 05:58 -0800
Articles 20 on this page of 133 — 24 participants

Back to article view | Back to sci.electronics.design


Contents

  design rigor: electronics vs. software omnilobe@gmail.com - 2020-01-10 21:46 -0800
    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-10 22:10 -0800
      Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 05:57 -0800
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 06:57 -0800
          Re: design rigor: electronics vs. software upsidedown@downunder.com - 2020-01-11 17:32 +0200
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 07:49 -0800
              Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 16:09 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:54 +0000
          Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 08:52 -0800
            Re: design rigor: electronics vs. software John S <Sophi.2@invalid.org> - 2020-01-11 11:07 -0600
              Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 09:16 -0800
                Re: design rigor: electronics vs. software John S <Sophi.2@invalid.org> - 2020-01-11 15:24 -0600
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 17:59 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 18:08 +0000
              Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-11 14:03 -0800
                Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 15:58 -0800
                  Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 17:50 -0800
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 19:09 -0800
                    Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-11 21:42 -0800
                      Re: design rigor: electronics vs. software George Herold <ggherold@gmail.com> - 2020-01-12 15:10 -0800
                        Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-12 17:04 -0800
                        Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 09:58 -0800
          Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-12 16:58 +0000
            Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-12 18:25 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-12 18:32 +0000
            Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 15:20 -0500
              Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-12 20:31 +0000
                Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 14:38 -0800
                  Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 17:55 -0500
                    Re: design rigor: electronics vs. software Klaus Kragelund <klauskvik@hotmail.com> - 2020-01-12 15:34 -0800
                    Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-13 10:47 +1100
                    Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 16:13 -0800
                      Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 19:33 -0500
                        Re: design rigor: electronics vs. software three_jeeps <jjhudak@gmail.com> - 2020-01-14 11:43 -0800
                    Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 16:23 -0800
                  Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-12 15:38 -0800
              Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-14 08:34 +0000
            Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-12 17:07 -0800
              Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 09:04 +0000
                Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-13 09:27 +0000
                Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 09:01 -0500
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:22 +0000
                    Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 20:35 -0500
                Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 07:45 -0800
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:35 +0000
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 09:49 -0800
                Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 07:58 -0800
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:40 +0000
                    Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 09:41 -0800
                      Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 10:14 -0800
                      Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 19:26 +0000
                        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:43 -0800
                          Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 08:19 +0000
                            Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-14 09:34 +0000
                            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:39 -0800
                              Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 17:27 +0000
                              Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-14 12:35 -0500
                                Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 09:49 -0800
                                Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 17:53 +0000
                                  Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:45 -0800
                                    Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 21:55 +0000
                                Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-15 08:17 +0000
                                  Blood glucose (was: design rigor: electronics vs. software) Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 07:28 -0500
                                    Re: Blood glucose (was: design rigor: electronics vs. software) Steve Wilson <9fe142ac@gmail.com> - 2020-01-15 05:41 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 10:15 -0500
                                        Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 11:47 -0500
                                          Re: Blood glucose jlarkin@highlandsniptechnology.com - 2020-01-15 09:15 -0800
                                        Re: Blood glucose Steve Wilson <no@spam.com> - 2020-01-15 18:06 +0000
                                    Re: Blood glucose (was: design rigor: electronics vs. software) jlarkin@highlandsniptechnology.com - 2020-01-15 07:46 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 11:00 -0500
                                      Re: Blood glucose (was: design rigor: electronics vs. software) George Herold <ggherold@gmail.com> - 2020-01-15 10:59 -0800
                                    Re: Blood glucose (was: design rigor: electronics vs. software) George Herold <ggherold@gmail.com> - 2020-01-15 10:43 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 14:29 -0500
                                        Re: Blood glucose George Herold <ggherold@gmail.com> - 2020-01-15 12:45 -0800
                                          Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 16:01 -0500
                                            Re: Blood glucose DecadentLinuxUserNumeroUno@decadence.org - 2020-01-16 02:52 +0000
                                    Re: Blood glucose (was: design rigor: electronics vs. software) RBlack <news@rblack01.plus.com> - 2020-01-16 11:18 +0000
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-16 09:39 -0500
                                        Re: Blood glucose omnilobe@gmail.com - 2020-01-16 16:03 -0800
                                          Re: Blood glucose Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-16 16:38 -0800
                                          Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-16 20:32 -0500
                                          Re: Blood glucose Bill Sloman <bill.sloman@ieee.org> - 2020-01-16 19:01 -0800
                  Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-15 09:01 +0000
                    Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 09:46 +0000
                    Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 09:48 +0000
                    Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-15 07:49 -0800
        Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:01 +0000
          Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 07:27 -0800
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:44 +0000
              Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 08:06 -0800
                Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-13 16:39 -0800
              Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:50 -0800
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:46 -0800
              Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 17:11 +1100
                Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 22:23 -0800
                  Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 20:28 +1100
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 01:44 -0800
                      Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 21:06 +1100
                        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 02:17 -0800
                          Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 23:04 +1100
                        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:42 -0800
                Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-14 13:03 +0000
                Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:48 -0800
              Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 22:14 -0800
      Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-13 16:35 -0800
        Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 20:43 -0500
        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 21:53 -0800
          Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-14 18:04 -0800
            Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 18:23 -0800
          Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 02:41 +0000
    Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 06:47 -0800
      Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 08:47 -0800
      Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-11 17:31 -0500
        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 16:00 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-12 03:04 -0500
        Re: design rigor: electronics vs. software John Robertson <spam@flippers.com> - 2020-01-11 16:53 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-12 03:01 -0500
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:51 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-14 16:31 -0500
            Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-14 16:43 -0500
              Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-15 18:33 -0500
                Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-15 18:38 -0500
        Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 08:23 +0000
      Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-13 09:27 +0000
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:56 -0800
          Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-14 09:15 +0000
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:28 -0800
              Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 16:43 +0000
                Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:52 -0800
                  Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 22:21 +0000
                    Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 16:00 -0800
              Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 16:49 +0000
      Re: design rigor: electronics vs. software Bill Sloman <bill.sloman@ieee.org> - 2020-01-15 05:58 -0800

Page 6 of 7 — ← Prev page 1 2 3 4 5 [6] 7  Next page →


#573030

Fromjlarkin@highlandsniptechnology.com
Date2020-01-14 08:42 -0800
Message-ID<mqrr1flpr8ojh1g1rrv10kbhqhrrppr9dq@4ax.com>
In reply to#573009
On Tue, 14 Jan 2020 21:06:33 +1100, Clifford Heath
<no.spam@please.net> wrote:

>On 14/1/20 8:44 pm, Rick C wrote:
>> On Tuesday, January 14, 2020 at 4:28:12 AM UTC-5, Clifford Heath wrote:
>>> On 14/1/20 5:23 pm, Rick C wrote:
>>>> On Tuesday, January 14, 2020 at 1:11:15 AM UTC-5, Clifford Heath wrote:
>>>>>
>>>>> Your comments lack nuance.
>>>>>
>>>>> The definition of "all-correct" can only be made with reference to a
>>>>> Turing machine that implements it.
>>>
>>>
>>> ^^^^^ This. You fail to understand this. It invalidates the rest of your
>>> ignorant complaints.
>> 
>> I expect you have no real familiarity with the process of developing code using requirements.
>
>You'd be an idiot then.
>
>Literally thousands of projects. Hell I have an archive here of over 
>three hundred projects' documents (several from each project, starting 
>with requirements) on which I participated or led the engineering teams, 
>and those are just from the 1990s (one of my four decades in the 
>software industry).
>
>Much of that code is still running on tens of millions of machines 
>around the globe, coordinating systems management for mission-critical 
>functions in the world's largest enterprises.
>
>Naah, I know nothing about software dev. Nothing you could learn anyhow.


Hey, you said that you wouldn't waste more time on him.



-- 

John Larkin         Highland Technology, Inc

The cork popped merrily, and Lord Peter rose to his feet. 
"Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"


[toc] | [prev] | [next] | [standalone]


#573018

FromDecadentLinuxUserNumeroUno@decadence.org
Date2020-01-14 13:03 +0000
Message-ID<qvke6l$65i$1@gioia.aioe.org>
In reply to#572992
Clifford Heath <no.spam@please.net> wrote in news:3YcTF.32875$Mc.7726
@fx35.iad:

> Collorary: If a specification is all-correct and all-inclusive, a 
> compiler can be written that implements it precisely.
> 

FPGA (as one example)programming is the programmer telling the 
hardware what switches he wants it to use in what order, etc.  So 
just like a hardware built device like a clock the signals on the 
hour but is 100% hardware driven, electronics can be built with or 
without 'processors' and still have events get 'processed'.

  Programming (and the electronics behind it) is just our refinement 
of Frankenstein's big double blade throw switch on the wall.

  Programming against a fault condition in a mission critical setting 
is rife with problems.

  Like the attitude indictaor.  Why would one even freeze up?  Pretty 
cold up there in that airstream.  So built a unit that has built in 
mechanical function protections in it to ensure it never stops 
working and never gives a false reading based on a failed mechanical 
aspect of its operation.  Easy to say.

  I suggested maybe heating the thing internally (the part that is 
inside the aircraft skin) and placing a mechanism in there that 
allows it to be 'swung' through it entire range of motion as a test 
of freedom of movement, and then released for use again.  Could have 
sensors and a computer watching the test run and looking at bearing 
temps, etc..  Then it would decide the unit is good and can be relied 
on for an accurate reaing, If there is not a bird hanging off the 
thing outside or if it got sheared off clean yet still was able to be 
rotated in the test, the two most extreme failure modes.

[toc] | [prev] | [next] | [standalone]


#573052

FromJohn Larkin <jlarkin@highland_atwork_technology.com>
Date2020-01-14 11:48 -0800
Message-ID<4m6s1ftp2sufnk24mk0dlg4esp912jb94m@4ax.com>
In reply to#572992
On Tue, 14 Jan 2020 17:11:09 +1100, Clifford Heath
<no.spam@please.net> wrote:

>On 14/1/20 1:46 pm, jlarkin@highlandsniptechnology.com wrote:
>> On 11 Jan 2020 07:27:05 -0800, Winfield Hill <winfieldhill@yahoo.com>
>> wrote:
>> 
>>> DecadentLinuxUserNumeroUno@decadence.org wrote...
>>>>
>>>> Winfield Hill wrote:
>>>>
>>>>> Rick C wrote...
>>>>>>
>>>>>> Then your very example of the Boeing plane is wrong
>>>>>> because no one has said the cause of the accident
>>>>>> was improperly coded software.
>>>>>
>>>>>   Yes, it was an improper spec, with dangerous reliance
>>>>>   on poor hardware.
>>>>
>>>> Thanks Win.  That guy is nuts.  Boeing most certainly
>>>> did announce just a few months ago, that it was a
>>>> software fault.
>>>
>>> That's the opposite of my position.  I'm sure the coders
>>> made the software do exactly what they were told to make
>>> it do.
>> 
>> But nobody ever writes a requirement document at the level of detail
>> that the programmers will work to. And few requirement docs are
>> all-correct and all-inclusive.
>
>Your comments lack nuance.

Absolutely. Sometimes common sense is safer than nuance.

(Not to start a political branch.)


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#572993

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-13 22:14 -0800
Message-ID<ca07cb70-7ff8-47ab-96bc-0322d1ee1c05@googlegroups.com>
In reply to#572978
On Monday, January 13, 2020 at 9:46:30 PM UTC-5, jla...@highlandsniptechnology.com wrote:
> 
> But nobody ever writes a requirement document at the level of detail
> that the programmers will work to. And few requirement docs are
> all-correct and all-inclusive.
> 
> It sure helps if the programmers understand, and take responsibility
> for, the actual system.

What Larkman doesn't understand is that the sort of formal requirements documents he is talking about are written for large, complex systems that he knows literally nothing about.  Having never participated in such a design process he doesn't even understand that the programmers can't always know much about the things they are writing code for, because they can't be expert in all parts of the system they are writing code for.  

So instead of expecting the coders to sanity check systems they don't and literally can't understand, just as no one in the company understands the entire airplane, they use the documents they are provided to define the software they are writing and then test according to the requirements that apply to that software.  They don't try to analyze the requirements in the context of the rest of the system because that has already been done.  

Larkman also doesn't understand that the requirements documents are written at every level of decomposition so that each requirement can be traced to the modules that are responsible for implementing it.  It's a large process, but is essential to making sure the airplane does what you want it to.  Can the process fail, yes, it's a human process after all.  But it's a whole lot better than the Larkman method of having one guy in charge of everything and he does the hard part for everyone and lets them finish the work that he started.  I guess we could design bicycles that way, but not airplanes. 

I remember dealing with a layout guy who was pretty good, but was used to thinking in terms of absolute rules without always understanding them.  He had a big power pour area running across the board to reach a resistor in a part of the circuit that was only to measure the voltage on the power plane.  I told him he didn't need to make that run so fat, it could just be a thin trace like any other signal and explained what it was for.  He refused to change it saying that was how you route power planes.  Rather than fight that idea, I had him move the resistor to the area of the power plane and run a thin trace over to the rest of the circuit.  He didn't like the idea, but couldn't argue, so did it my way.  

This shows why programmers don't get to change low level requirements on their own.  They either go through the process of pushing back on the high level requirements while they are being defined, or they code what needs to be coded as the requirements state.  If the decision makers say the MCAS needs to work this way, the coders are not in a position to make changes once the requirements have been decomposed to the module level.  It's not like the people doing the design work didn't give it a lot of thought.  Having coders change the requirements would be like cops changing the laws they have to enforce. 

I guess it's a good thing Larkman isn't a cop either.  

-- 

  Rick C.

  +-- Get 1,000 miles of free Supercharging
  +-- Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#572968

Frommpm <mpmillard@aol.com>
Date2020-01-13 16:35 -0800
Message-ID<a9906897-c1dd-4a17-b2bc-839c18b5a26d@googlegroups.com>
In reply to#572626
On Saturday, January 11, 2020 at 1:10:56 AM UTC-5, Rick C wrote:
> I think that is a load.  Hardware often fouls up.  The two space shuttle disasters were both hardware problems and both were preventable, but there was a clear lack of rigor in the design and execution.  The Apollo 13 accident was hardware.  The list goes on and on.  
> 
> Then your very example of the Boeing plane is wrong because no one has said the cause of the accident was improperly coded software. 

Technically, one of those shuttle disasters was due to management not listening to their engineers, including those at Morton-Thiokol, that the booster rocket O-Rings were unsafe to launch at cold temperature.  

I don't consider that to be a "hardware problem" so much as an arrogantly stupid decision to launch under known, unsafe conditions. 

As for the tiles (2nd shuttle loss), I am weirdly reminded of the Siegfried & Roy Vegas act with the white lions and tigers.  They insured against every conceivable possibility (including the performance animals jumping into the crowd and causing a panic!).   Everything that is, except the tiger viciously attacking Roy Horn on-stage.

You think you could see that coming..., or at least have a plan (however remote the possibility)?

With the shuttle heat tiles, NASA had to replace a lot of those after every flight.  Did they never see the tiger?

[toc] | [prev] | [next] | [standalone]


#572972

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-13 20:43 -0500
Message-ID<ff0643f2-df94-26f8-2dd9-e33609388ff9@electrooptical.net>
In reply to#572968
On 2020-01-13 19:35, mpm wrote:
> On Saturday, January 11, 2020 at 1:10:56 AM UTC-5, Rick C wrote:
>> I think that is a load.  Hardware often fouls up.  The two space shuttle disasters were both hardware problems and both were preventable, but there was a clear lack of rigor in the design and execution.  The Apollo 13 accident was hardware.  The list goes on and on.
>>
>> Then your very example of the Boeing plane is wrong because no one has said the cause of the accident was improperly coded software.
> 
> Technically, one of those shuttle disasters was due to management not listening to their engineers, including those at Morton-Thiokol, that the booster rocket O-Rings were unsafe to launch at cold temperature.
> 
> I don't consider that to be a "hardware problem" so much as an arrogantly stupid decision to launch under known, unsafe conditions.

Diane Vaughan's "The Challenger Launch Decision" is an amazingly good 
read on how they got to that point.  She's a sociologist, of course, but 
she took great pains to understand the culture and the issues, which led 
her to completely re-evaluate her initial cultural-Marxist take on it.

She has my complete respect for her willingness to follow where the 
facts led--a rare and valuable trait in our diminished, ideology-driven 
days.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#572991

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-13 21:53 -0800
Message-ID<eee13c61-8845-4962-9cc4-b8059253bd0f@googlegroups.com>
In reply to#572968
On Monday, January 13, 2020 at 7:35:20 PM UTC-5, mpm wrote:
> On Saturday, January 11, 2020 at 1:10:56 AM UTC-5, Rick C wrote:
> > I think that is a load.  Hardware often fouls up.  The two space shuttle disasters were both hardware problems and both were preventable, but there was a clear lack of rigor in the design and execution.  The Apollo 13 accident was hardware.  The list goes on and on.  
> > 
> > Then your very example of the Boeing plane is wrong because no one has said the cause of the accident was improperly coded software. 
> 
> Technically, one of those shuttle disasters was due to management not listening to their engineers, including those at Morton-Thiokol, that the booster rocket O-Rings were unsafe to launch at cold temperature.  
> 
> I don't consider that to be a "hardware problem" so much as an arrogantly stupid decision to launch under known, unsafe conditions. 

I can't believe you are nit-picking this.  Even if it isn't your definition of a hardware problem, it certainly isn't a software problem and that was the issue being discussed, software vs. hardware.  There's no reason to discuss wetware issues other than how they impact software and hardware and in this case it was hardware that failed from the abuse by the wetware. 

I guess what I'm really saying is, so what? 


> As for the tiles (2nd shuttle loss), I am weirdly reminded of the Siegfried & Roy Vegas act with the white lions and tigers.  They insured against every conceivable possibility (including the performance animals jumping into the crowd and causing a panic!).   Everything that is, except the tiger viciously attacking Roy Horn on-stage.

Except that's not what happened.  Go read about it.  I get tired of educating you. 


> You think you could see that coming..., or at least have a plan (however remote the possibility)?
> 
> With the shuttle heat tiles, NASA had to replace a lot of those after every flight.  Did they never see the tiger?

I think either, you again don't understand what happened, or you have simplified your understanding of the accident to "tiles fell off".  I'll discuss this further with you if you want, but only after you educate yourself with the facts. 

-- 

  Rick C.

  -++ Get 1,000 miles of free Supercharging
  -++ Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#573101

Frommpm <mpmillard@aol.com>
Date2020-01-14 18:04 -0800
Message-ID<0a4e07a5-bde5-4142-8f8c-343a23e9ffee@googlegroups.com>
In reply to#572991
On Tuesday, January 14, 2020 at 12:53:12 AM UTC-5, Rick C wrote:
> Except that's not what happened.  Go read about it.  I get tired of educating you. 

It's exactly what happened.

https://www.theglobeandmail.com/report-on-business/flying-in-from-left-field-the-black-swan/article689202/

> I think either, you again don't understand what happened, or you have simplified your understanding of the accident to "tiles fell off".  I'll discuss this further with you if you want, but only after you educate yourself with the facts. 

I'll pass.  

And not what I said at all.
You are letting your lack of reading comprehension skills show again.

[toc] | [prev] | [next] | [standalone]


#573108

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-14 18:23 -0800
Message-ID<61a04461-8a3f-47c6-ad1c-a77012859e0e@googlegroups.com>
In reply to#573101
On Tuesday, January 14, 2020 at 9:04:18 PM UTC-5, mpm wrote:
> On Tuesday, January 14, 2020 at 12:53:12 AM UTC-5, Rick C wrote:
> > Except that's not what happened.  Go read about it.  I get tired of educating you. 
> 
> It's exactly what happened.
> 
> https://www.theglobeandmail.com/report-on-business/flying-in-from-left-field-the-black-swan/article689202/
> 
> > I think either, you again don't understand what happened, or you have simplified your understanding of the accident to "tiles fell off".  I'll discuss this further with you if you want, but only after you educate yourself with the facts. 
> 
> I'll pass.  
> 
> And not what I said at all.
> You are letting your lack of reading comprehension skills show again.

You are not at all interesting to talk to.  You distort facts, you believe facts that aren't true and you deny everything that shows this happening.  Then on top you resort to crude insults. 

If you just deny everything that doesn't fit your preconceptions, you aren't living in reality. 

I have no interest in bantering words with you if there is no reality in the mix.  In that regard you are like a lot of the dim wits here.  I don't converse with them much either.  

Bye

-- 

  Rick C.

  ---- Get 1,000 miles of free Supercharging
  ---- Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#573117

FromDecadentLinuxUserNumeroUno@decadence.org
Date2020-01-15 02:41 +0000
Message-ID<qvlu4t$1glu$1@gioia.aioe.org>
In reply to#572991
Rick C <gnuarm.deletethisbit@gmail.com> wrote in
news:eee13c61-8845-4962-9cc4-b8059253bd0f@googlegroups.com: 

> I think either, you again don't understand what happened, or you
> have simplified your understanding of the accident to "tiles fell
> off". 

  "tiles" were KNOCKED off by hard frozen foam main tank jacket.

  That tank insulation, at supersonic velocities of the craft, break 
free and slow and impact hard.  The shuttle didn't fail, per se, the 
kid gloves we should have donned to lift it into space were never 
created.  It was being tossed up there by a drunken uncle.

  NONE "fell off".  They were impacted. Then they broke away by 
atmosphereic forces at that point  In that case, they are fragile, 
and there is no second layer beneath.  The true failure was in the 
tank design.  If pieces had no come free from it, no tile would have 
been impacted and broken free.

[toc] | [prev] | [next] | [standalone]


#572637

Fromjlarkin@highlandsniptechnology.com
Date2020-01-11 06:47 -0800
Message-ID<d0nj1f50mabot5tnfooihn6o50up57n22b@4ax.com>
In reply to#572618
On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:

>Hardware designs are more rigorously done than
>software designs. A large company had problems with a 737
>and a rocket to the space station...
>
>https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
>
>I know programmers who do not care for rigor at home at work.
>I did hardware design with rigor and featuring reviews by caring 
>electronics design engineers and marketing engineers.
>
>Software gets sloppy with OOPs.
>Object Oriented Programming.
>Windows 10 on a rocket to ISS space station.
>C++ mud.

The easier it is to change things, the less careful people are about
doing them. Software, which includes FPGA code, seldom works the first
time. Almost never. The average hunk of fresh code has a mistake
roughly every 10 lines. Or was that three?

FPGAs are usually better than procedural code, but are still mostly
done as hack-and-fix cycles, with software test benches. When we did
OTP (fuse based) FPGAs without test benching, we often got them right
first try. If compiles took longer, people would be more careful.

PCBs usually work the first time, because they are checked and
reviewed, and that is because mistakes are slow and expensive to fix,
and very visible to everyone. Bridges and buildings are almost always
right the first time. They are even more expensive and slow and
visible.

Besides, electronics and structures have established theory, but
software doesn't. Various people just sort of do it.

My Spice sims are often wrong initially, precisely because there are
basically no consequences to running the first try without much
checking. That is of course dangerous; we don't want to base a
hardware design on a sim that runs and makes pretty graphs but is
fundamentally wrong.





-- 

John Larkin         Highland Technology, Inc

The cork popped merrily, and Lord Peter rose to his feet. 

"Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"


[toc] | [prev] | [next] | [standalone]


#572655

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-11 08:47 -0800
Message-ID<b3430ef1-7dfe-4133-a947-29f4172aac97@googlegroups.com>
In reply to#572637
On Saturday, January 11, 2020 at 9:47:19 AM UTC-5, jla...@highlandsniptechnology.com wrote:
> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
> 
> >Hardware designs are more rigorously done than
> >software designs. A large company had problems with a 737
> >and a rocket to the space station...
> >
> >https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
> >
> >I know programmers who do not care for rigor at home at work.
> >I did hardware design with rigor and featuring reviews by caring 
> >electronics design engineers and marketing engineers.
> >
> >Software gets sloppy with OOPs.
> >Object Oriented Programming.
> >Windows 10 on a rocket to ISS space station.
> >C++ mud.
> 
> The easier it is to change things, the less careful people are about
> doing them. Software, which includes FPGA code, seldom works the first
> time. Almost never. The average hunk of fresh code has a mistake
> roughly every 10 lines. Or was that three?

There is a very well known rule about software (assuming you include FPGA HDL as software) that says it is much, much easier to find bugs early rather than late.  I write code that is tested in simulation, thoroughly, and seldom has bugs when run in an FPGA.  Yes, even "seldom" does not preclude bugs, but they are the exception, not the rule as you indicate.  

I suggest you have your HDL designers spend more time working on their code and less time debugging it in the chip or worse system, the hardest place to find bugs. 

Usually the large number of bugs found in software compared to hardware is due to the fact the software has much, much more to do than the hardware.  I would expect that to be pretty obvious to even a casual observer. 


> FPGAs are usually better than procedural code, but are still mostly
> done as hack-and-fix cycles, with software test benches. When we did
> OTP (fuse based) FPGAs without test benching, we often got them right
> first try. If compiles took longer, people would be more careful.

When a description of development refers to people working "carefully" it sounds like a very undisciplined effort.  I've worked in Mil spec environments where the process was formalized.  Then the level and processes of "care" are standardized and consistent. 


> PCBs usually work the first time, because they are checked and
> reviewed, and that is because mistakes are slow and expensive to fix,
> and very visible to everyone. Bridges and buildings are almost always
> right the first time. They are even more expensive and slow and
> visible.

PCBs typically work the first time because they are simple, easy to review and simple to specify and analyze.  PCBs are the poster child of easy to get right the first time by applying requirements and evaluating to those requirements.  


> Besides, electronics and structures have established theory, but
> software doesn't. Various people just sort of do it.

In your organization. 


> My Spice sims are often wrong initially, precisely because there are
> basically no consequences to running the first try without much
> checking. That is of course dangerous; we don't want to base a
> hardware design on a sim that runs and makes pretty graphs but is
> fundamentally wrong.

And yet you don't bother to apply rigorous design techniques to any part of your design process preferring to work by massive amounts of inspection and testing.  Ok, but that won't work on projects of any real size or complexity.  All of your products are fairly simple, single boxes.  

Go design a missile some time.  Or even a bridge over the Tacoma Narrows. 

-- 

  Rick C.

  + Get 1,000 miles of free Supercharging
  + Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#572705

Frombitrex <user@example.net>
Date2020-01-11 17:31 -0500
Message-ID<31sSF.17785$zI7.11918@fx37.iad>
In reply to#572637
On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
> 
>> Hardware designs are more rigorously done than
>> software designs. A large company had problems with a 737
>> and a rocket to the space station...
>>
>> https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
>>
>> I know programmers who do not care for rigor at home at work.
>> I did hardware design with rigor and featuring reviews by caring
>> electronics design engineers and marketing engineers.
>>
>> Software gets sloppy with OOPs.
>> Object Oriented Programming.
>> Windows 10 on a rocket to ISS space station.
>> C++ mud.
> 
> The easier it is to change things, the less careful people are about
> doing them. Software, which includes FPGA code, seldom works the first
> time. Almost never. The average hunk of fresh code has a mistake
> roughly every 10 lines. Or was that three?
> 
> FPGAs are usually better than procedural code, but are still mostly
> done as hack-and-fix cycles, with software test benches. When we did
> OTP (fuse based) FPGAs without test benching, we often got them right
> first try. If compiles took longer, people would be more careful.
> 
> PCBs usually work the first time, because they are checked and
> reviewed, and that is because mistakes are slow and expensive to fix,
> and very visible to everyone. Bridges and buildings are almost always
> right the first time. They are even more expensive and slow and
> visible.
> 
> Besides, electronics and structures have established theory, but
> software doesn't. Various people just sort of do it.
> 
> My Spice sims are often wrong initially, precisely because there are
> basically no consequences to running the first try without much
> checking. That is of course dangerous; we don't want to base a
> hardware design on a sim that runs and makes pretty graphs but is
> fundamentally wrong.
> 

Don't know why C++ is getting the rap here. Modern C++ design is 
rigorous, there are books about what to do and what not to do, and the 
language has built-in facilities to ensure that e.g. memory is never 
leaked, pointers always refer to an object that exists, and the user 
can't ever add feet to meters if they're not supposed to.

If the developer chooses to ignore it all like they always know better 
than the people who wrote the books on it, well, God bless...

Embedded software is likely more reliable than ever, believe it or not. 
The infotainment system in my Chevy has crashed once in three years, 
99.999% reliable. There's probably a million lines of C++ behind the 
scenes of that thing. Does Chevy employ the best coders in the world? 
Probably not.


[toc] | [prev] | [next] | [standalone]


#572710

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-11 16:00 -0800
Message-ID<4ec8128f-2ac5-41da-9057-ba96a35def16@googlegroups.com>
In reply to#572705
On Saturday, January 11, 2020 at 5:31:33 PM UTC-5, bitrex wrote:
> The infotainment system in my Chevy has crashed once in three years, 
> 99.999% reliable. There's probably a million lines of C++ behind the 
> scenes of that thing. Does Chevy employ the best coders in the world? 
> Probably not.

Maybe the best in India...   I'm just sayin'... 

-- 

  Rick C.

  ++ Get 1,000 miles of free Supercharging
  ++ Tesla referral code - https://ts.la/richard11209

[toc] | [prev] | [next] | [standalone]


#572750

Frombitrex <user@example.net>
Date2020-01-12 03:04 -0500
Message-ID<7qASF.14203$Mc.7101@fx35.iad>
In reply to#572710
On 1/11/20 7:00 PM, Rick C wrote:
> On Saturday, January 11, 2020 at 5:31:33 PM UTC-5, bitrex wrote:
>> The infotainment system in my Chevy has crashed once in three years,
>> 99.999% reliable. There's probably a million lines of C++ behind the
>> scenes of that thing. Does Chevy employ the best coders in the world?
>> Probably not.
> 
> Maybe the best in India...   I'm just sayin'...
> 

 >

Liked article is from June of last year. Zero evidence that "outsourced 
coders" had anything to do with the 737 Max's fatal problems.

Nope, despite numerous attempts to pin the blame on the backwards 
foreigners all the evidence points to the shitheads in question being 
the best lily-White American-know-how engineers and managers money could 
buy employed at the top levels of Boeing.

[toc] | [prev] | [next] | [standalone]


#572714

FromJohn Robertson <spam@flippers.com>
Date2020-01-11 16:53 -0800
Message-ID<tIGdnbPPa9mc84fDnZ2dnUU7-VmdnZ2d@giganews.com>
In reply to#572705
On 2020/01/11 2:31 p.m., bitrex wrote:
> On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
>> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
>>
>>> Hardware designs are more rigorously done than
>>> software designs. A large company had problems with a 737
>>> and a rocket to the space station...
>>>...
> 
> Embedded software is likely more reliable than ever, believe it or not. 
> The infotainment system in my Chevy has crashed once in three years, 
> 99.999% reliable. There's probably a million lines of C++ behind the 
> scenes of that thing. Does Chevy employ the best coders in the world? 
> Probably not.
> 
> 
> 

If your car crashed once every three years due to software glitches I 
don't think you would be as impressed...

John :-#(#

[toc] | [prev] | [next] | [standalone]


#572749

Frombitrex <user@example.net>
Date2020-01-12 03:01 -0500
Message-ID<bnASF.6857$K87.6053@fx46.iad>
In reply to#572714
On 1/11/20 7:53 PM, John Robertson wrote:
> On 2020/01/11 2:31 p.m., bitrex wrote:
>> On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
>>> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
>>>
>>>> Hardware designs are more rigorously done than
>>>> software designs. A large company had problems with a 737
>>>> and a rocket to the space station...
>>>> ...
>>
>> Embedded software is likely more reliable than ever, believe it or 
>> not. The infotainment system in my Chevy has crashed once in three 
>> years, 99.999% reliable. There's probably a million lines of C++ 
>> behind the scenes of that thing. Does Chevy employ the best coders in 
>> the world? Probably not.
>>
>>
>>
> 
> If your car crashed once every three years due to software glitches I 
> don't think you would be as impressed...
> 
> John :-#(#

Article is from June of last year. Zero evidence that "outsourced 
coders" had anything to do with the 737 Max's fatal problems.

Nope, despite numerous attempts to pin the blame on the backwards 
foreigners all the evidence points to the shitheads in question being 
the best lily-White American-know-how engineers and managers money could 
buy employed at the top levels of the Boeing.

[toc] | [prev] | [next] | [standalone]


#572980

Fromjlarkin@highlandsniptechnology.com
Date2020-01-13 18:51 -0800
Message-ID<c5bq1f1c4ofoho4uolb5chrkqt2mret1uc@4ax.com>
In reply to#572705
On Sat, 11 Jan 2020 17:31:26 -0500, bitrex <user@example.net> wrote:

>On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
>> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
>> 
>>> Hardware designs are more rigorously done than
>>> software designs. A large company had problems with a 737
>>> and a rocket to the space station...
>>>
>>> https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
>>>
>>> I know programmers who do not care for rigor at home at work.
>>> I did hardware design with rigor and featuring reviews by caring
>>> electronics design engineers and marketing engineers.
>>>
>>> Software gets sloppy with OOPs.
>>> Object Oriented Programming.
>>> Windows 10 on a rocket to ISS space station.
>>> C++ mud.
>> 
>> The easier it is to change things, the less careful people are about
>> doing them. Software, which includes FPGA code, seldom works the first
>> time. Almost never. The average hunk of fresh code has a mistake
>> roughly every 10 lines. Or was that three?
>> 
>> FPGAs are usually better than procedural code, but are still mostly
>> done as hack-and-fix cycles, with software test benches. When we did
>> OTP (fuse based) FPGAs without test benching, we often got them right
>> first try. If compiles took longer, people would be more careful.
>> 
>> PCBs usually work the first time, because they are checked and
>> reviewed, and that is because mistakes are slow and expensive to fix,
>> and very visible to everyone. Bridges and buildings are almost always
>> right the first time. They are even more expensive and slow and
>> visible.
>> 
>> Besides, electronics and structures have established theory, but
>> software doesn't. Various people just sort of do it.
>> 
>> My Spice sims are often wrong initially, precisely because there are
>> basically no consequences to running the first try without much
>> checking. That is of course dangerous; we don't want to base a
>> hardware design on a sim that runs and makes pretty graphs but is
>> fundamentally wrong.
>> 
>
>Don't know why C++ is getting the rap here. Modern C++ design is 
>rigorous, there are books about what to do and what not to do, and the 
>language has built-in facilities to ensure that e.g. memory is never 
>leaked, pointers always refer to an object that exists, and the user 
>can't ever add feet to meters if they're not supposed to.

Pointers are evil.



-- 

John Larkin         Highland Technology, Inc

The cork popped merrily, and Lord Peter rose to his feet. 
"Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"


[toc] | [prev] | [next] | [standalone]


#573060

Frombitrex <user@example.net>
Date2020-01-14 16:31 -0500
Message-ID<1rqTF.120013$eK6.58826@fx16.iad>
In reply to#572980
On 1/13/20 9:51 PM, jlarkin@highlandsniptechnology.com wrote:
> On Sat, 11 Jan 2020 17:31:26 -0500, bitrex <user@example.net> wrote:
> 
>> On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
>>> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com wrote:
>>>
>>>> Hardware designs are more rigorously done than
>>>> software designs. A large company had problems with a 737
>>>> and a rocket to the space station...
>>>>
>>>> https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
>>>>
>>>> I know programmers who do not care for rigor at home at work.
>>>> I did hardware design with rigor and featuring reviews by caring
>>>> electronics design engineers and marketing engineers.
>>>>
>>>> Software gets sloppy with OOPs.
>>>> Object Oriented Programming.
>>>> Windows 10 on a rocket to ISS space station.
>>>> C++ mud.
>>>
>>> The easier it is to change things, the less careful people are about
>>> doing them. Software, which includes FPGA code, seldom works the first
>>> time. Almost never. The average hunk of fresh code has a mistake
>>> roughly every 10 lines. Or was that three?
>>>
>>> FPGAs are usually better than procedural code, but are still mostly
>>> done as hack-and-fix cycles, with software test benches. When we did
>>> OTP (fuse based) FPGAs without test benching, we often got them right
>>> first try. If compiles took longer, people would be more careful.
>>>
>>> PCBs usually work the first time, because they are checked and
>>> reviewed, and that is because mistakes are slow and expensive to fix,
>>> and very visible to everyone. Bridges and buildings are almost always
>>> right the first time. They are even more expensive and slow and
>>> visible.
>>>
>>> Besides, electronics and structures have established theory, but
>>> software doesn't. Various people just sort of do it.
>>>
>>> My Spice sims are often wrong initially, precisely because there are
>>> basically no consequences to running the first try without much
>>> checking. That is of course dangerous; we don't want to base a
>>> hardware design on a sim that runs and makes pretty graphs but is
>>> fundamentally wrong.
>>>
>>
>> Don't know why C++ is getting the rap here. Modern C++ design is
>> rigorous, there are books about what to do and what not to do, and the
>> language has built-in facilities to ensure that e.g. memory is never
>> leaked, pointers always refer to an object that exists, and the user
>> can't ever add feet to meters if they're not supposed to.
> 
> Pointers are evil.
> 
> 

That's why in modern times you avoid working with "naked" ones at all 
costs. In architectures with managed memory like x86 and ARM with an 
operating system there's pretty much no good reason to use naked 
pointers at all unless you are yourself writing a memory manager or 
allocator. There are test suites to find all potential memory leaks! 
There's no good excuse to have programs that leak resources anymore...


[toc] | [prev] | [next] | [standalone]


#573063

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-14 16:43 -0500
Message-ID<c918e52c-7289-7be3-1082-588962407e16@electrooptical.net>
In reply to#573060
On 2020-01-14 16:31, bitrex wrote:
> On 1/13/20 9:51 PM, jlarkin@highlandsniptechnology.com wrote:
>> On Sat, 11 Jan 2020 17:31:26 -0500, bitrex <user@example.net> 
>> wrote:
>> 
>>> On 1/11/20 9:47 AM, jlarkin@highlandsniptechnology.com wrote:
>>>> On Fri, 10 Jan 2020 21:46:19 -0800 (PST), omnilobe@gmail.com 
>>>> wrote:
>>>> 
>>>>> Hardware designs are more rigorously done than software 
>>>>> designs. A large company had problems with a 737 and a
>>>>> rocket to the space station...
>>>>> 
>>>>> https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-737-max-software-outsourced-to-9-an-hour-engineers
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>> 
>>>>> I know programmers who do not care for rigor at home at work.
>>>>> I did hardware design with rigor and featuring reviews by
>>>>> caring electronics design engineers and marketing engineers.
>>>>> 
>>>>> Software gets sloppy with OOPs. Object Oriented Programming.
>>>>>  Windows 10 on a rocket to ISS space station. C++ mud.
>>>> 
>>>> The easier it is to change things, the less careful people are 
>>>> about doing them. Software, which includes FPGA code, seldom 
>>>> works the first time. Almost never. The average hunk of fresh 
>>>> code has a mistake roughly every 10 lines. Or was that three?
>>>> 
>>>> FPGAs are usually better than procedural code, but are still 
>>>> mostly done as hack-and-fix cycles, with software test
>>>> benches. When we did OTP (fuse based) FPGAs without test
>>>> benching, we often got them right first try. If compiles took
>>>> longer, people would be more careful.
>>>> 
>>>> PCBs usually work the first time, because they are checked and
>>>>  reviewed, and that is because mistakes are slow and expensive
>>>>  to fix, and very visible to everyone. Bridges and buildings
>>>> are almost always right the first time. They are even more 
>>>> expensive and slow and visible.
>>>> 
>>>> Besides, electronics and structures have established theory, 
>>>> but software doesn't. Various people just sort of do it.
>>>> 
>>>> My Spice sims are often wrong initially, precisely because 
>>>> there are basically no consequences to running the first try 
>>>> without much checking. That is of course dangerous; we don't 
>>>> want to base a hardware design on a sim that runs and makes 
>>>> pretty graphs but is fundamentally wrong.
>>>> 
>>> 
>>> Don't know why C++ is getting the rap here. Modern C++ design is
>>>  rigorous, there are books about what to do and what not to do, 
>>> and the language has built-in facilities to ensure that e.g. 
>>> memory is never leaked, pointers always refer to an object that 
>>> exists, and the user can't ever add feet to meters if they're
>>> not supposed to.
>> 
>> Pointers are evil.

> That's why in modern times you avoid working with "naked" ones at
> all costs. In architectures with managed memory like x86 and ARM with
> an operating system there's pretty much no good reason to use naked 
> pointers at all unless you are yourself writing a memory manager or 
> allocator.

That's a bit strong. It's still reasonable to use void* deep in the
implementation of templates for performance-critical stuff.  My
clusterized EM simulator uses bare pointers in structs, because they
vectorize dramatically better, but again that's optimized innermost-loop
stuff.

For other things, std::shared_ptr, std::unique_ptr, std::weak_ptr, and
the standard containers are the bomb.

> There are test suites to find all potential memory leaks! There's no
> good excuse to have programs that leak resources anymore...

RAII is really good medicine.  I used to like mudflap a lot, but it got 
rolled up into GCC's sanitizers, which are super useful too.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


Page 6 of 7 — ← Prev page 1 2 3 4 5 [6] 7  Next page →

Back to top | Article view | sci.electronics.design


csiph-web