Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #494723 > unrolled thread
| Started by | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| First post | 2018-02-11 08:54 -0800 |
| Last post | 2018-02-13 07:37 -0500 |
| Articles | 20 on this page of 69 — 18 participants |
Back to article view | Back to sci.electronics.design
must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-11 08:54 -0800
Re: must-read book Cursitor Doom <curd@notformail.com> - 2018-02-11 17:33 +0000
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-11 11:51 -0800
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-11 16:52 -0500
Re: must-read book Robert Baer <robertbaer@localnet.com> - 2018-02-15 22:58 -0800
Re: must-read book krw@notreal.com - 2018-02-16 04:35 -0500
Re: must-read book Robert Baer <robertbaer@localnet.com> - 2018-02-19 21:58 -0800
Re: must-read book krw@notreal.com - 2018-02-20 16:00 -0500
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-21 16:14 +0000
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-16 08:53 -0800
Re: must-read book Robert Baer <robertbaer@localnet.com> - 2018-02-19 22:00 -0800
Re: must-read book Cursitor Doom <curd@notformail.com> - 2018-02-11 22:44 +0000
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-11 15:36 -0800
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-11 12:30 -0600
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-11 11:54 -0800
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-12 00:17 +0000
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-11 16:45 -0500
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-11 15:47 -0800
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-11 19:01 -0600
Re: must-read book Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-02-12 09:51 +0000
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-12 08:16 -0500
Re: must-read book Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-02-12 13:32 +0000
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-12 08:19 -0800
Re: must-read book Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-02-12 11:42 -0500
Re: must-read book Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-02-12 17:15 +0000
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-12 09:40 -0800
Re: must-read book Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-02-12 19:34 +0000
Re: must-read book John Larkin <jjlarkin@highland_snip_technology.com> - 2018-02-12 12:46 -0800
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-12 18:58 +0000
Re: must-read book Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-02-12 21:14 +0200
Re: must-read book John Larkin <jjlarkin@highland_snip_technology.com> - 2018-02-12 12:50 -0800
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-12 21:12 -0600
Re: must-read book krw@notreal.com - 2018-02-13 18:08 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-13 18:34 -0500
Re: must-read book krw@notreal.com - 2018-02-13 19:11 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-13 19:23 -0500
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-13 20:59 -0600
Re: must-read book krw@notreal.com - 2018-02-13 22:21 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-20 20:31 -0500
Re: must-read book krw@notreal.com - 2018-02-20 20:44 -0500
Re: must-read book Clifford Heath <no.spam@please.net> - 2018-02-21 14:13 +1100
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-21 08:30 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-21 08:17 -0500
Re: must-read book krw@notreal.com - 2018-02-21 08:27 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-21 08:53 -0500
Re: must-read book Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2018-02-21 14:16 +0000
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-21 21:46 -0600
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-22 11:02 -0500
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-22 22:31 +0000
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-23 21:09 -0600
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-22 22:27 +0000
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-22 18:32 -0500
Re: must-read book Chris <c@b.a> - 2018-02-23 14:23 +1100
Re: must-read book Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-23 04:57 +0000
Re: must-read book Jasen Betts <jasen@xnet.co.nz> - 2018-02-21 05:48 +0000
Re: must-read book Reinhardt Behm <rbehm@hushmail.com> - 2018-02-23 13:56 +0800
Re: must-read book Les Cargill <lcargill99@comcast.com> - 2018-02-13 20:56 -0600
Re: must-read book John Larkin <jjlarkin@highland_snip_technology.com> - 2018-02-13 15:37 -0800
Re: must-read book krw@notreal.com - 2018-02-13 19:14 -0500
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-12 00:02 -0500
Re: must-read book Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2018-02-13 14:11 +0000
Re: must-read book tabbypurr@gmail.com - 2018-02-13 06:42 -0800
Re: must-read book John Larkin <jjlarkin@highlandtechnology.com> - 2018-02-13 08:11 -0800
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-13 16:23 -0500
Re: must-read book tabbypurr@gmail.com - 2018-02-13 14:54 -0800
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-13 18:22 -0500
Re: must-read book tabbypurr@gmail.com - 2018-02-13 17:34 -0800
Re: must-read book bloggs.fredbloggs.fred@gmail.com - 2018-02-11 15:37 -0800
Re: must-read book bitrex <bitrex@de.lete.earthlink.net> - 2018-02-13 07:37 -0500
Page 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2018-02-12 08:16 -0500 |
| Message-ID | <JsggC.40802$BX2.14857@fx22.iad> |
| In reply to | #494778 |
On 02/12/2018 04:51 AM, Tom Gardner wrote: > On 12/02/18 01:01, Les Cargill wrote: >> John Larkin wrote: >>> Many of them have no formal, or informal, training in CS or EE or >>> anything. I >>> doubt that many know what a state machine is. >>> >> >> Unsurprising. Software people are very often blind to determinism in >> general. >> >> FSM are not a widely understood technique in software. >> God only knows why. Even the people who know about them >> often think they are always equivalent to regular expressions. > > I'll confirm that from personal experience. They may dimly remember > FSMs as being "something to do with compilers". > > Sigh. I know a fair number of degreed coders under the age of 30, even, and I'd say close to none of them don't know what a FSM is. They have their uses in specific domains, but also major downsides, the big ones are that they're not Turing-complete and don't really allow you to work with "high level" patterns or meta-programming, they scale poorly (number of required states balloons geometrically with linearly increasing problem complexity), they're difficult to synchronize in multi-threaded environments (how do I guarantee FSM #1 and FSM #2 which need to access the same resource without deadlocking will be in the appropriate states to do so, simultaneously?)
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2018-02-12 13:32 +0000 |
| Message-ID | <2IggC.819193$Gr2.558777@fx36.am4> |
| In reply to | #494785 |
On 12/02/18 13:16, bitrex wrote: > On 02/12/2018 04:51 AM, Tom Gardner wrote: >> On 12/02/18 01:01, Les Cargill wrote: >>> John Larkin wrote: >>>> Many of them have no formal, or informal, training in CS or EE or >>>> anything. I doubt that many know what a state machine is. >>>> >>> >>> Unsurprising. Software people are very often blind to determinism in >>> general. >>> >>> FSM are not a widely understood technique in software. God only knows >>> why. Even the people who know about them often think they are always >>> equivalent to regular expressions. >> >> I'll confirm that from personal experience. They may dimly remember FSMs as >> being "something to do with compilers". >> >> Sigh. > > I know a fair number of degreed coders under the age of 30, even, and I'd > say close to none of them don't know what a FSM is. I was surprised when I first came across such ignorance, since before that all programmers I worked with knew FSMs and used them where appropriate. > They have their uses in specific domains, but also major downsides, the big > ones are that they're not Turing-complete and don't really allow you to work > with "high level" patterns or meta-programming, they scale poorly (number of > required states balloons geometrically with linearly increasing problem > complexity), they're difficult to synchronize in multi-threaded environments > (how do I guarantee FSM #1 and FSM #2 which need to access the same resource > without deadlocking will be in the appropriate states to do so, > simultaneously?) System design :) But ignorance is more widespread than FSMs. I was unpleasantly surprised at how many youngsters couldn't give a /simple/ pseudocode explanation of what happens at assembly level when invoking a procedure with arguments. They had never looked to see how the magic worked.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2018-02-12 08:19 -0800 |
| Message-ID | <l4f38dtqeu4bvfqiip99a4vg0punrr2fir@4ax.com> |
| In reply to | #494787 |
On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 12/02/18 13:16, bitrex wrote: >> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>> On 12/02/18 01:01, Les Cargill wrote: >>>> John Larkin wrote: >>>>> Many of them have no formal, or informal, training in CS or EE or >>>>> anything. I doubt that many know what a state machine is. >>>>> >>>> >>>> Unsurprising. Software people are very often blind to determinism in >>>> general. >>>> >>>> FSM are not a widely understood technique in software. God only knows >>>> why. Even the people who know about them often think they are always >>>> equivalent to regular expressions. >>> >>> I'll confirm that from personal experience. They may dimly remember FSMs as >>> being "something to do with compilers". >>> >>> Sigh. >> >> I know a fair number of degreed coders under the age of 30, even, and I'd >> say close to none of them don't know what a FSM is. > >I was surprised when I first came across such ignorance, since >before that all programmers I worked with knew FSMs and used >them where appropriate. > > >> They have their uses in specific domains, but also major downsides, the big >> ones are that they're not Turing-complete and don't really allow you to work >> with "high level" patterns or meta-programming, they scale poorly (number of >> required states balloons geometrically with linearly increasing problem >> complexity), they're difficult to synchronize in multi-threaded environments >> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >> without deadlocking will be in the appropriate states to do so, >> simultaneously?) > >System design :) > >But ignorance is more widespread than FSMs. I was unpleasantly >surprised at how many youngsters couldn't give a /simple/ >pseudocode explanation of what happens at assembly level when >invoking a procedure with arguments. They had never looked to >see how the magic worked. > I've used and even written multitasking RTOS's, but we don't use multitasking in our (non-Linux) products. A main state-machine loop and some interrupt handlers is all we need. My embedded programmer guy is great (and he's an EE) but he is reluctant to make things go fast. We have a power sinewave generator that uses software DDS on an LPC1768 (small ARM) and I want him to run the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope test point to the existing code and see how long it actually runs. Most programmers have no idea, not within 50:1, how long it takes a block of code to run. I've done test point analysis of Linux systems too, to see how big of time slices the OS steals from apps. Measuring that is about the only way to estimate. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2018-02-12 11:42 -0500 |
| Message-ID | <m_2dnYvpl71kXhzHnZ2dnUU7-dWdnZ2d@supernews.com> |
| In reply to | #494797 |
On 02/12/2018 11:19 AM, John Larkin wrote: > On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > >> On 12/02/18 13:16, bitrex wrote: >>> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>>> On 12/02/18 01:01, Les Cargill wrote: >>>>> John Larkin wrote: >>>>>> Many of them have no formal, or informal, training in CS or EE or >>>>>> anything. I doubt that many know what a state machine is. >>>>>> >>>>> >>>>> Unsurprising. Software people are very often blind to determinism in >>>>> general. >>>>> >>>>> FSM are not a widely understood technique in software. God only knows >>>>> why. Even the people who know about them often think they are always >>>>> equivalent to regular expressions. >>>> >>>> I'll confirm that from personal experience. They may dimly remember FSMs as >>>> being "something to do with compilers". >>>> >>>> Sigh. >>> >>> I know a fair number of degreed coders under the age of 30, even, and I'd >>> say close to none of them don't know what a FSM is. >> >> I was surprised when I first came across such ignorance, since >> before that all programmers I worked with knew FSMs and used >> them where appropriate. >> >> >>> They have their uses in specific domains, but also major downsides, the big >>> ones are that they're not Turing-complete and don't really allow you to work >>> with "high level" patterns or meta-programming, they scale poorly (number of >>> required states balloons geometrically with linearly increasing problem >>> complexity), they're difficult to synchronize in multi-threaded environments >>> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >>> without deadlocking will be in the appropriate states to do so, >>> simultaneously?) >> >> System design :) >> >> But ignorance is more widespread than FSMs. I was unpleasantly >> surprised at how many youngsters couldn't give a /simple/ >> pseudocode explanation of what happens at assembly level when >> invoking a procedure with arguments. They had never looked to >> see how the magic worked. >> > > I've used and even written multitasking RTOS's, but we don't use > multitasking in our (non-Linux) products. A main state-machine loop > and some interrupt handlers is all we need. > > My embedded programmer guy is great (and he's an EE) but he is > reluctant to make things go fast. We have a power sinewave generator > that uses software DDS on an LPC1768 (small ARM) and I want him to run > the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope > test point to the existing code and see how long it actually runs. > > Most programmers have no idea, not within 50:1, how long it takes a > block of code to run. > > I've done test point analysis of Linux systems too, to see how big of > time slices the OS steals from apps. Measuring that is about the only > way to estimate. > The Code Red Eclipse tools for the LPC17xx have a fairly nifty profiling view. 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 https://hobbs-eo.com
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2018-02-12 17:15 +0000 |
| Message-ID | <oYjgC.6265$w26.660@fx47.am4> |
| In reply to | #494797 |
On 12/02/18 16:19, John Larkin wrote: > On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > >> On 12/02/18 13:16, bitrex wrote: >>> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>>> On 12/02/18 01:01, Les Cargill wrote: >>>>> John Larkin wrote: >>>>>> Many of them have no formal, or informal, training in CS or EE or >>>>>> anything. I doubt that many know what a state machine is. >>>>>> >>>>> >>>>> Unsurprising. Software people are very often blind to determinism in >>>>> general. >>>>> >>>>> FSM are not a widely understood technique in software. God only knows >>>>> why. Even the people who know about them often think they are always >>>>> equivalent to regular expressions. >>>> >>>> I'll confirm that from personal experience. They may dimly remember FSMs as >>>> being "something to do with compilers". >>>> >>>> Sigh. >>> >>> I know a fair number of degreed coders under the age of 30, even, and I'd >>> say close to none of them don't know what a FSM is. >> >> I was surprised when I first came across such ignorance, since >> before that all programmers I worked with knew FSMs and used >> them where appropriate. >> >> >>> They have their uses in specific domains, but also major downsides, the big >>> ones are that they're not Turing-complete and don't really allow you to work >>> with "high level" patterns or meta-programming, they scale poorly (number of >>> required states balloons geometrically with linearly increasing problem >>> complexity), they're difficult to synchronize in multi-threaded environments >>> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >>> without deadlocking will be in the appropriate states to do so, >>> simultaneously?) >> >> System design :) >> >> But ignorance is more widespread than FSMs. I was unpleasantly >> surprised at how many youngsters couldn't give a /simple/ >> pseudocode explanation of what happens at assembly level when >> invoking a procedure with arguments. They had never looked to >> see how the magic worked. >> > > I've used and even written multitasking RTOS's, but we don't use > multitasking in our (non-Linux) products. A main state-machine loop > and some interrupt handlers is all we need. Ditto, but nowadays I like to stay away from interrupts (and caches) if I can, so as to preserve hard realtime properties. (See my other posts about the many-multicore XMOS xCORE processors and xC/Occam) > My embedded programmer guy is great (and he's an EE) but he is > reluctant to make things go fast. We have a power sinewave generator > that uses software DDS on an LPC1768 (small ARM) and I want him to run > the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope > test point to the existing code and see how long it actually runs. Well, it is better to get it right but slow, rather than fast but wrong. With the XMOS toolchain you don't have to measure: the IDE examines the optimised object code, and states exactly how long each path takes down to a 10ns resolution. The "dedicate a core to each peripheral" approach means that "interrupt" latency (really wakeup latency) is 1 clock cycle (10ns). > Most programmers have no idea, not within 50:1, how long it takes a > block of code to run. With caches, interrupts, and NUMA memory, are you /really/ surprised; I'd just say that was good judgement :) > I've done test point analysis of Linux systems too, to see how big of > time slices the OS steals from apps. Measuring that is about the only > way to estimate. Agreed. And that's unsatisfactory in my eyes, since you are unlikely to observe the worst case - and therefore have to /guess/ how much of a frig factor to add. But I don't want linux near my peripherals; linux is for USB/ethernet/monitors etc. My peripherals deserve an RTOS or FSM, and messaging to/from linux :) OTT? You betcha!
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2018-02-12 09:40 -0800 |
| Message-ID | <utj38dpks3j2dqp33lofe4a3dgir79clvc@4ax.com> |
| In reply to | #494816 |
On Mon, 12 Feb 2018 17:15:00 +0000, Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 12/02/18 16:19, John Larkin wrote: >> On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner >> <spamjunk@blueyonder.co.uk> wrote: >> >>> On 12/02/18 13:16, bitrex wrote: >>>> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>>>> On 12/02/18 01:01, Les Cargill wrote: >>>>>> John Larkin wrote: >>>>>>> Many of them have no formal, or informal, training in CS or EE or >>>>>>> anything. I doubt that many know what a state machine is. >>>>>>> >>>>>> >>>>>> Unsurprising. Software people are very often blind to determinism in >>>>>> general. >>>>>> >>>>>> FSM are not a widely understood technique in software. God only knows >>>>>> why. Even the people who know about them often think they are always >>>>>> equivalent to regular expressions. >>>>> >>>>> I'll confirm that from personal experience. They may dimly remember FSMs as >>>>> being "something to do with compilers". >>>>> >>>>> Sigh. >>>> >>>> I know a fair number of degreed coders under the age of 30, even, and I'd >>>> say close to none of them don't know what a FSM is. >>> >>> I was surprised when I first came across such ignorance, since >>> before that all programmers I worked with knew FSMs and used >>> them where appropriate. >>> >>> >>>> They have their uses in specific domains, but also major downsides, the big >>>> ones are that they're not Turing-complete and don't really allow you to work >>>> with "high level" patterns or meta-programming, they scale poorly (number of >>>> required states balloons geometrically with linearly increasing problem >>>> complexity), they're difficult to synchronize in multi-threaded environments >>>> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >>>> without deadlocking will be in the appropriate states to do so, >>>> simultaneously?) >>> >>> System design :) >>> >>> But ignorance is more widespread than FSMs. I was unpleasantly >>> surprised at how many youngsters couldn't give a /simple/ >>> pseudocode explanation of what happens at assembly level when >>> invoking a procedure with arguments. They had never looked to >>> see how the magic worked. >>> >> >> I've used and even written multitasking RTOS's, but we don't use >> multitasking in our (non-Linux) products. A main state-machine loop >> and some interrupt handlers is all we need. > >Ditto, but nowadays I like to stay away from interrupts >(and caches) if I can, so as to preserve hard realtime >properties. (See my other posts about the many-multicore >XMOS xCORE processors and xC/Occam) > We tend to do the hard realtime stuff inside a periodic IRQ. Caching complicates things, but a lot of embedded apps can fit the entire runtime code in cache! > >> My embedded programmer guy is great (and he's an EE) but he is >> reluctant to make things go fast. We have a power sinewave generator >> that uses software DDS on an LPC1768 (small ARM) and I want him to run >> the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope >> test point to the existing code and see how long it actually runs. > >Well, it is better to get it right but slow, rather >than fast but wrong. I bet we can do the entire IRQ DDS thing in a microsecond. > >With the XMOS toolchain you don't have to measure: >the IDE examines the optimised object code, and >states exactly how long each path takes down to >a 10ns resolution. The "dedicate a core to each >peripheral" approach means that "interrupt" latency >(really wakeup latency) is 1 clock cycle (10ns). A core per task makes a lot of sense these days. > > >> Most programmers have no idea, not within 50:1, how long it takes a >> block of code to run. > >With caches, interrupts, and NUMA memory, are >you /really/ surprised; I'd just say that was >good judgement :) > > >> I've done test point analysis of Linux systems too, to see how big of >> time slices the OS steals from apps. Measuring that is about the only >> way to estimate. > >Agreed. And that's unsatisfactory in my eyes, since >you are unlikely to observe the worst case - and >therefore have to /guess/ how much of a frig factor >to add. Some data is sure better than none. On a Zynq (dual core ARM) running Linux, we didn't see task timeouts over about 25 us, which was impressive. > >But I don't want linux near my peripherals; linux >is for USB/ethernet/monitors etc. My peripherals deserve >an RTOS or FSM, and messaging to/from linux :) > >OTT? You betcha! We could run Linux on one core (good for ethernet and files and UIs and stuff) and bare metal on the other, but that hasn't been necessary so far. Well, we just move the fast algorithms into the FPGA. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2018-02-12 19:34 +0000 |
| Message-ID | <c%lgC.1015$jQ2.343@fx46.am4> |
| In reply to | #494819 |
On 12/02/18 17:40, John Larkin wrote: > On Mon, 12 Feb 2018 17:15:00 +0000, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > >> On 12/02/18 16:19, John Larkin wrote: >>> On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner >>> <spamjunk@blueyonder.co.uk> wrote: >>> >>>> On 12/02/18 13:16, bitrex wrote: >>>>> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>>>>> On 12/02/18 01:01, Les Cargill wrote: >>>>>>> John Larkin wrote: >>>>>>>> Many of them have no formal, or informal, training in CS or EE or >>>>>>>> anything. I doubt that many know what a state machine is. >>>>>>>> >>>>>>> >>>>>>> Unsurprising. Software people are very often blind to determinism in >>>>>>> general. >>>>>>> >>>>>>> FSM are not a widely understood technique in software. God only knows >>>>>>> why. Even the people who know about them often think they are always >>>>>>> equivalent to regular expressions. >>>>>> >>>>>> I'll confirm that from personal experience. They may dimly remember FSMs as >>>>>> being "something to do with compilers". >>>>>> >>>>>> Sigh. >>>>> >>>>> I know a fair number of degreed coders under the age of 30, even, and I'd >>>>> say close to none of them don't know what a FSM is. >>>> >>>> I was surprised when I first came across such ignorance, since >>>> before that all programmers I worked with knew FSMs and used >>>> them where appropriate. >>>> >>>> >>>>> They have their uses in specific domains, but also major downsides, the big >>>>> ones are that they're not Turing-complete and don't really allow you to work >>>>> with "high level" patterns or meta-programming, they scale poorly (number of >>>>> required states balloons geometrically with linearly increasing problem >>>>> complexity), they're difficult to synchronize in multi-threaded environments >>>>> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >>>>> without deadlocking will be in the appropriate states to do so, >>>>> simultaneously?) >>>> >>>> System design :) >>>> >>>> But ignorance is more widespread than FSMs. I was unpleasantly >>>> surprised at how many youngsters couldn't give a /simple/ >>>> pseudocode explanation of what happens at assembly level when >>>> invoking a procedure with arguments. They had never looked to >>>> see how the magic worked. >>>> >>> >>> I've used and even written multitasking RTOS's, but we don't use >>> multitasking in our (non-Linux) products. A main state-machine loop >>> and some interrupt handlers is all we need. >> >> Ditto, but nowadays I like to stay away from interrupts >> (and caches) if I can, so as to preserve hard realtime >> properties. (See my other posts about the many-multicore >> XMOS xCORE processors and xC/Occam) >> > > We tend to do the hard realtime stuff inside a periodic IRQ. Caching > complicates things, but a lot of embedded apps can fit the entire > runtime code in cache! .... usually :( >>> My embedded programmer guy is great (and he's an EE) but he is >>> reluctant to make things go fast. We have a power sinewave generator >>> that uses software DDS on an LPC1768 (small ARM) and I want him to run >>> the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope >>> test point to the existing code and see how long it actually runs. >> >> Well, it is better to get it right but slow, rather >> than fast but wrong. > > I bet we can do the entire IRQ DDS thing in a microsecond. ... except when ... ISTR even the i486 with its tiny cache could get an occasional 5:1? (10:1?) variance from the mean. >> With the XMOS toolchain you don't have to measure: >> the IDE examines the optimised object code, and >> states exactly how long each path takes down to >> a 10ns resolution. The "dedicate a core to each >> peripheral" approach means that "interrupt" latency >> (really wakeup latency) is 1 clock cycle (10ns). > > A core per task makes a lot of sense these days. > > >> >> >>> Most programmers have no idea, not within 50:1, how long it takes a >>> block of code to run. >> >> With caches, interrupts, and NUMA memory, are >> you /really/ surprised; I'd just say that was >> good judgement :) >> >> >>> I've done test point analysis of Linux systems too, to see how big of >>> time slices the OS steals from apps. Measuring that is about the only >>> way to estimate. >> >> Agreed. And that's unsatisfactory in my eyes, since >> you are unlikely to observe the worst case - and >> therefore have to /guess/ how much of a frig factor >> to add. > > Some data is sure better than none. On a Zynq (dual core ARM) running > Linux, we didn't see task timeouts over about 25 us, which was > impressive. Yes, the Zynq is good. >> But I don't want linux near my peripherals; linux >> is for USB/ethernet/monitors etc. My peripherals deserve >> an RTOS or FSM, and messaging to/from linux :) >> >> OTT? You betcha! > > We could run Linux on one core (good for ethernet and files and UIs > and stuff) and bare metal on the other, but that hasn't been necessary > so far. Well, we just move the fast algorithms into the FPGA. Just so. Of course often latency and predictability are more important than raw speed. FPGAs are good like that :)
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2018-02-12 12:46 -0800 |
| Message-ID | <v5v38d5ggcrjr2f5jbqtg9u9kt6f8u604e@4ax.com> |
| In reply to | #494833 |
On Mon, 12 Feb 2018 19:34:32 +0000, Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 12/02/18 17:40, John Larkin wrote: >> On Mon, 12 Feb 2018 17:15:00 +0000, Tom Gardner >> <spamjunk@blueyonder.co.uk> wrote: >> >>> On 12/02/18 16:19, John Larkin wrote: >>>> On Mon, 12 Feb 2018 13:32:46 +0000, Tom Gardner >>>> <spamjunk@blueyonder.co.uk> wrote: >>>> >>>>> On 12/02/18 13:16, bitrex wrote: >>>>>> On 02/12/2018 04:51 AM, Tom Gardner wrote: >>>>>>> On 12/02/18 01:01, Les Cargill wrote: >>>>>>>> John Larkin wrote: >>>>>>>>> Many of them have no formal, or informal, training in CS or EE or >>>>>>>>> anything. I doubt that many know what a state machine is. >>>>>>>>> >>>>>>>> >>>>>>>> Unsurprising. Software people are very often blind to determinism in >>>>>>>> general. >>>>>>>> >>>>>>>> FSM are not a widely understood technique in software. God only knows >>>>>>>> why. Even the people who know about them often think they are always >>>>>>>> equivalent to regular expressions. >>>>>>> >>>>>>> I'll confirm that from personal experience. They may dimly remember FSMs as >>>>>>> being "something to do with compilers". >>>>>>> >>>>>>> Sigh. >>>>>> >>>>>> I know a fair number of degreed coders under the age of 30, even, and I'd >>>>>> say close to none of them don't know what a FSM is. >>>>> >>>>> I was surprised when I first came across such ignorance, since >>>>> before that all programmers I worked with knew FSMs and used >>>>> them where appropriate. >>>>> >>>>> >>>>>> They have their uses in specific domains, but also major downsides, the big >>>>>> ones are that they're not Turing-complete and don't really allow you to work >>>>>> with "high level" patterns or meta-programming, they scale poorly (number of >>>>>> required states balloons geometrically with linearly increasing problem >>>>>> complexity), they're difficult to synchronize in multi-threaded environments >>>>>> (how do I guarantee FSM #1 and FSM #2 which need to access the same resource >>>>>> without deadlocking will be in the appropriate states to do so, >>>>>> simultaneously?) >>>>> >>>>> System design :) >>>>> >>>>> But ignorance is more widespread than FSMs. I was unpleasantly >>>>> surprised at how many youngsters couldn't give a /simple/ >>>>> pseudocode explanation of what happens at assembly level when >>>>> invoking a procedure with arguments. They had never looked to >>>>> see how the magic worked. >>>>> >>>> >>>> I've used and even written multitasking RTOS's, but we don't use >>>> multitasking in our (non-Linux) products. A main state-machine loop >>>> and some interrupt handlers is all we need. >>> >>> Ditto, but nowadays I like to stay away from interrupts >>> (and caches) if I can, so as to preserve hard realtime >>> properties. (See my other posts about the many-multicore >>> XMOS xCORE processors and xC/Occam) >>> >> >> We tend to do the hard realtime stuff inside a periodic IRQ. Caching >> complicates things, but a lot of embedded apps can fit the entire >> runtime code in cache! > >.... usually :( > > >>>> My embedded programmer guy is great (and he's an EE) but he is >>>> reluctant to make things go fast. We have a power sinewave generator >>>> that uses software DDS on an LPC1768 (small ARM) and I want him to run >>>> the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope >>>> test point to the existing code and see how long it actually runs. >>> >>> Well, it is better to get it right but slow, rather >>> than fast but wrong. >> >> I bet we can do the entire IRQ DDS thing in a microsecond. > >... except when ... > >ISTR even the i486 with its tiny cache could get an >occasional 5:1? (10:1?) variance from the mean. But a 486 is a microcoded hairball. > > >>> With the XMOS toolchain you don't have to measure: >>> the IDE examines the optimised object code, and >>> states exactly how long each path takes down to >>> a 10ns resolution. The "dedicate a core to each >>> peripheral" approach means that "interrupt" latency >>> (really wakeup latency) is 1 clock cycle (10ns). >> >> A core per task makes a lot of sense these days. >> >> >>> >>> >>>> Most programmers have no idea, not within 50:1, how long it takes a >>>> block of code to run. >>> >>> With caches, interrupts, and NUMA memory, are >>> you /really/ surprised; I'd just say that was >>> good judgement :) >>> >>> >>>> I've done test point analysis of Linux systems too, to see how big of >>>> time slices the OS steals from apps. Measuring that is about the only >>>> way to estimate. >>> >>> Agreed. And that's unsatisfactory in my eyes, since >>> you are unlikely to observe the worst case - and >>> therefore have to /guess/ how much of a frig factor >>> to add. >> >> Some data is sure better than none. On a Zynq (dual core ARM) running >> Linux, we didn't see task timeouts over about 25 us, which was >> impressive. > >Yes, the Zynq is good. > > >>> But I don't want linux near my peripherals; linux >>> is for USB/ethernet/monitors etc. My peripherals deserve >>> an RTOS or FSM, and messaging to/from linux :) >>> >>> OTT? You betcha! >> >> We could run Linux on one core (good for ethernet and files and UIs >> and stuff) and bare metal on the other, but that hasn't been necessary >> so far. Well, we just move the fast algorithms into the FPGA. > >Just so. Of course often latency and predictability >are more important than raw speed. FPGAs are good >like that :) Umm, yes. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> |
|---|---|
| Date | 2018-02-12 18:58 +0000 |
| Message-ID | <p5so3o$1en8$1@gioia.aioe.org> |
| In reply to | #494816 |
Tom Gardner wrote: >> I've done test point analysis of Linux systems too, to see how big of >> time slices the OS steals from apps. Measuring that is about the only >> way to estimate. > > Agreed. And that's unsatisfactory in my eyes, since > you are unlikely to observe the worst case - and > therefore have to /guess/ how much of a frig factor > to add. > > But I don't want linux near my peripherals; linux > is for USB/ethernet/monitors etc. My peripherals deserve > an RTOS or FSM, and messaging to/from linux :) > > OTT? You betcha! I use Ubuntu Studio, which uses a low latency kernel configuration.
[toc] | [prev] | [next] | [standalone]
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Date | 2018-02-12 21:14 +0200 |
| Message-ID | <p5sp3j$r5d$1@dont-email.me> |
| In reply to | #494797 |
On 12.2.18 18:19, John Larkin wrote: > > My embedded programmer guy is great (and he's an EE) but he is > reluctant to make things go fast. We have a power sinewave generator > that uses software DDS on an LPC1768 (small ARM) and I want him to run > the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope > test point to the existing code and see how long it actually runs. > > Most programmers have no idea, not within 50:1, how long it takes a > block of code to run. > > I've done test point analysis of Linux systems too, to see how big of > time slices the OS steals from apps. Measuring that is about the only > way to estimate. On a 50 MHz Cortex-M3, a well-written interrupt service should run at around 1us. It should be fast enough for your 200 kHz DDS, provided that there are not too many interrupt disables around. On the Cortex-M3, there are instructions to provide race-free access without interrupt disables (ldrex / strex). -- -TV
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2018-02-12 12:50 -0800 |
| Message-ID | <pav38d9chsqugvhae95cjj6nipq9v18gn2@4ax.com> |
| In reply to | #494829 |
On Mon, 12 Feb 2018 21:14:59 +0200, Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote: >On 12.2.18 18:19, John Larkin wrote: >> >> My embedded programmer guy is great (and he's an EE) but he is >> reluctant to make things go fast. We have a power sinewave generator >> that uses software DDS on an LPC1768 (small ARM) and I want him to run >> the IRQ/DDS at 200 KHz, which seems modest to me. We'll add a scope >> test point to the existing code and see how long it actually runs. >> >> Most programmers have no idea, not within 50:1, how long it takes a >> block of code to run. >> >> I've done test point analysis of Linux systems too, to see how big of >> time slices the OS steals from apps. Measuring that is about the only >> way to estimate. > > >On a 50 MHz Cortex-M3, a well-written interrupt service should >run at around 1us. It should be fast enough for your 200 kHz >DDS, provided that there are not too many interrupt disables >around. We could clock the CPU at 100 MHz, but we usually don't go that high, to save power. We can juggle priorities to make sure the timer interrupt always wins. Serial i/o can wait a microsecond. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Les Cargill <lcargill99@comcast.com> |
|---|---|
| Date | 2018-02-12 21:12 -0600 |
| Message-ID | <p5tkp4$ba2$1@dont-email.me> |
| In reply to | #494785 |
bitrex wrote: > On 02/12/2018 04:51 AM, Tom Gardner wrote: >> On 12/02/18 01:01, Les Cargill wrote: >>> John Larkin wrote: >>>> Many of them have no formal, or informal, training in CS or EE or >>>> anything. I >>>> doubt that many know what a state machine is. >>>> >>> >>> Unsurprising. Software people are very often blind to determinism in >>> general. >>> >>> FSM are not a widely understood technique in software. >>> God only knows why. Even the people who know about them >>> often think they are always equivalent to regular expressions. >> >> I'll confirm that from personal experience. They may dimly remember >> FSMs as being "something to do with compilers". >> >> Sigh. > > I know a fair number of degreed coders under the age of 30, even, and > I'd say close to none of them don't know what a FSM is. > I am glad to hear that, assuming I counted all the "nots" right :) > They have their uses in specific domains, but also major downsides, the > big ones are that they're not Turing-complete and don't really allow you > to work with "high level" patterns or meta-programming, Nothing stopping that, really. I've had pretty good luck even generating FSM from description "languages" as metaprogramming. I don't know exactly how you'd productize that, but FSM representations are generally quite linear and that makes at least the tables for them easy to generate. > they scale > poorly (number of required states balloons geometrically with linearly > increasing problem complexity), they're difficult to synchronize in > multi-threaded environments (how do I guarantee FSM #1 and FSM #2 which > need to access the same resource without deadlocking will be in the > appropriate states to do so, simultaneously?) So you can fix that entire list by using Communicating Sequential Process oriented, model-based designs. It's pretty much the way high-reliability stuff is done. If you have good combinators for stimuli and decent logging, you can get pretty close to model-checked status for cheap. There have been CASE tools for this in the past. -- Les Cargill
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-02-13 18:08 -0500 |
| Message-ID | <upr68d1o28v924fddhk8jupgm670h1boh2@4ax.com> |
| In reply to | #494766 |
On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill <lcargill99@comcast.com> wrote: >John Larkin wrote: >> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >> <bitrex@de.lete.earthlink.net> wrote: >> >>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>> >>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>> >>>> >>>> > From the NYT review: >>>> >>>> What happened in the 1960s and 1970s was that the industry was >>>> exploding and was starved for talent. There just weren’t enough >>>> people to do the jobs in computing. So they hired these two >>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>> personality test to screen for good programmers. >>>> >>>> Those men decided, in screening about 1,200 men and 200 women, >>>> that good programmers don’t like people — that they have a >>>> complete disinterest in people. These tests were widely >>>> influential and used at various companies for decades. >>> >>> Most qualities that make a "good programmer" in 2018 have little to >>> do with how ingenious or clever you can make the stuff you type >>> into the box; compilers are very good at this point, CPU horsepower >>> is plentiful and premature optimization is the root of all evil. >>> It's not easy to write high-performance code but it takes concerted >>> effort to write truly poor performing code in most languages. >>> >>> The most valuable skills probably have to do with a) is your >>> software based on solid design principles b) how well you can >>> justify that design/explain your reasoning to others and c) how >>> easily someone can come in fresh and read your documentation and >>> understand the principles of the design. Which if you have no >>> interest in people and little experience interacting with them >>> socially is going to be a tough row to hoe. >>> >>> There will always be a place for the seriously schizoid hotshots, >>> e.g. physics code for games needs to eek out every bit of >>> performance. A physics engine coder might be insulted if you >>> sullied his labor with anything as mundane as _gameplay_. >>> >>> Also the problem with being totally disinterested in people is that >>> you usually end up thinking you're a lot better than you actually >>> are, without any metric to judge your performance how can you >>> semi-objectively judge. >>> >>>> That review also names a recently-me-too-fallen individual that >>>> we once did battle with, but I'm not allowed to make any >>>> disparaging remarks about that. >>>> >>>> I am continually amazed by the aggressive and toxic Silicon >>>> Valley culture... which has spread into the worldwide >>>> semiconductor industry. >>> >>> Software used to be fun and novel but then a lot of the industry >>> got lame and cynical, like hey let's build a grocery store list app >>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>> the app store and hope to get bought out by the Big G for $50 mil >>> in 14 months. >>> >>> I think a lotta women bailed out on that scene because "on average" >>> they don't value the bignum bills as highly vs. not getting your >>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>> most of the "angel" VC funders in the Valley aren't even tech >>> educated people anymore they're like MBAs and pundits and famous >>> bloggers and various Wall Street investment bank weenies after some >>> fast bucks >>> >>> >> >> I'm reading "Coders at Work", which is a bunch of interviews with >> famous programmers. What's impressive is how ad-hoc they are, with >> no obvious systematic approaches, sometimes bottom-up, sometimes >> top-down; they just sort of do it. > > >Most people who have done something noteworthy enough to be >interviewed probably didn't have a lot of examples to work from. > >Top-down/bottom up is a legit thing to mix up, tho. Start >with the risk items. Or the unknowns. >> Many of them have no formal, or >> informal, training in CS or EE or anything. I doubt that many know >> what a state machine is. >> > >Unsurprising. Software people are very often blind to determinism in >general. > >FSM are not a widely understood technique in software. >God only knows why. Even the people who know about them >often think they are always equivalent to regular expressions. I naturally code that way but when I've shown my code to "real programmers", they say "that's neat"! To me, it's the obvious way to get across the street - one step at a time (with some checks along the way). > > >> I've known a few extremely good female programmers. The best three >> or four PCB layout people that I've worked with were women. Anybody >> who thinks women don't have visual-spatial skills should try >> knitting. >> I've known some reasonably good female hardware engineers but they don't tend to stay hardware engineers.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2018-02-13 18:34 -0500 |
| Message-ID | <fCKgC.25045$tK5.7734@fx03.iad> |
| In reply to | #495005 |
On 02/13/2018 06:08 PM, krw@notreal.com wrote: > On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill > <lcargill99@comcast.com> wrote: > >> John Larkin wrote: >>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>> <bitrex@de.lete.earthlink.net> wrote: >>> >>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>> >>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>> >>>>> >>>>> >> From the NYT review: >>>>> >>>>> What happened in the 1960s and 1970s was that the industry was >>>>> exploding and was starved for talent. There just weren’t enough >>>>> people to do the jobs in computing. So they hired these two >>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>> personality test to screen for good programmers. >>>>> >>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>> that good programmers don’t like people — that they have a >>>>> complete disinterest in people. These tests were widely >>>>> influential and used at various companies for decades. >>>> >>>> Most qualities that make a "good programmer" in 2018 have little to >>>> do with how ingenious or clever you can make the stuff you type >>>> into the box; compilers are very good at this point, CPU horsepower >>>> is plentiful and premature optimization is the root of all evil. >>>> It's not easy to write high-performance code but it takes concerted >>>> effort to write truly poor performing code in most languages. >>>> >>>> The most valuable skills probably have to do with a) is your >>>> software based on solid design principles b) how well you can >>>> justify that design/explain your reasoning to others and c) how >>>> easily someone can come in fresh and read your documentation and >>>> understand the principles of the design. Which if you have no >>>> interest in people and little experience interacting with them >>>> socially is going to be a tough row to hoe. >>>> >>>> There will always be a place for the seriously schizoid hotshots, >>>> e.g. physics code for games needs to eek out every bit of >>>> performance. A physics engine coder might be insulted if you >>>> sullied his labor with anything as mundane as _gameplay_. >>>> >>>> Also the problem with being totally disinterested in people is that >>>> you usually end up thinking you're a lot better than you actually >>>> are, without any metric to judge your performance how can you >>>> semi-objectively judge. >>>> >>>>> That review also names a recently-me-too-fallen individual that >>>>> we once did battle with, but I'm not allowed to make any >>>>> disparaging remarks about that. >>>>> >>>>> I am continually amazed by the aggressive and toxic Silicon >>>>> Valley culture... which has spread into the worldwide >>>>> semiconductor industry. >>>> >>>> Software used to be fun and novel but then a lot of the industry >>>> got lame and cynical, like hey let's build a grocery store list app >>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>> the app store and hope to get bought out by the Big G for $50 mil >>>> in 14 months. >>>> >>>> I think a lotta women bailed out on that scene because "on average" >>>> they don't value the bignum bills as highly vs. not getting your >>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>> most of the "angel" VC funders in the Valley aren't even tech >>>> educated people anymore they're like MBAs and pundits and famous >>>> bloggers and various Wall Street investment bank weenies after some >>>> fast bucks >>>> >>>> >>> >>> I'm reading "Coders at Work", which is a bunch of interviews with >>> famous programmers. What's impressive is how ad-hoc they are, with >>> no obvious systematic approaches, sometimes bottom-up, sometimes >>> top-down; they just sort of do it. >> >> >> Most people who have done something noteworthy enough to be >> interviewed probably didn't have a lot of examples to work from. >> >> Top-down/bottom up is a legit thing to mix up, tho. Start >> with the risk items. > > Or the unknowns. > >>> Many of them have no formal, or >>> informal, training in CS or EE or anything. I doubt that many know >>> what a state machine is. >>> >> >> Unsurprising. Software people are very often blind to determinism in >> general. >> >> FSM are not a widely understood technique in software. >> God only knows why. Even the people who know about them >> often think they are always equivalent to regular expressions. > > I naturally code that way but when I've shown my code to "real > programmers", they say "that's neat"! To me, it's the obvious way to > get across the street - one step at a time (with some checks along the > way). It's not that FSMs aren't a useful design pattern for some problems, it's just that the software world has moved on to things like OOP, functional, and generic programming which are more scalable, extensible, and abstract
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-02-13 19:11 -0500 |
| Message-ID | <8lv68d9tjh2liq83ptti129qho4blt3vd9@4ax.com> |
| In reply to | #495019 |
On Tue, 13 Feb 2018 18:34:34 -0500, bitrex <bitrex@de.lete.earthlink.net> wrote: >On 02/13/2018 06:08 PM, krw@notreal.com wrote: >> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >> <lcargill99@comcast.com> wrote: >> >>> John Larkin wrote: >>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>> <bitrex@de.lete.earthlink.net> wrote: >>>> >>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>> >>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>> >>>>>> >>>>>> >>> From the NYT review: >>>>>> >>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>> exploding and was starved for talent. There just weren’t enough >>>>>> people to do the jobs in computing. So they hired these two >>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>> personality test to screen for good programmers. >>>>>> >>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>> that good programmers don’t like people — that they have a >>>>>> complete disinterest in people. These tests were widely >>>>>> influential and used at various companies for decades. >>>>> >>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>> do with how ingenious or clever you can make the stuff you type >>>>> into the box; compilers are very good at this point, CPU horsepower >>>>> is plentiful and premature optimization is the root of all evil. >>>>> It's not easy to write high-performance code but it takes concerted >>>>> effort to write truly poor performing code in most languages. >>>>> >>>>> The most valuable skills probably have to do with a) is your >>>>> software based on solid design principles b) how well you can >>>>> justify that design/explain your reasoning to others and c) how >>>>> easily someone can come in fresh and read your documentation and >>>>> understand the principles of the design. Which if you have no >>>>> interest in people and little experience interacting with them >>>>> socially is going to be a tough row to hoe. >>>>> >>>>> There will always be a place for the seriously schizoid hotshots, >>>>> e.g. physics code for games needs to eek out every bit of >>>>> performance. A physics engine coder might be insulted if you >>>>> sullied his labor with anything as mundane as _gameplay_. >>>>> >>>>> Also the problem with being totally disinterested in people is that >>>>> you usually end up thinking you're a lot better than you actually >>>>> are, without any metric to judge your performance how can you >>>>> semi-objectively judge. >>>>> >>>>>> That review also names a recently-me-too-fallen individual that >>>>>> we once did battle with, but I'm not allowed to make any >>>>>> disparaging remarks about that. >>>>>> >>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>> Valley culture... which has spread into the worldwide >>>>>> semiconductor industry. >>>>> >>>>> Software used to be fun and novel but then a lot of the industry >>>>> got lame and cynical, like hey let's build a grocery store list app >>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>> in 14 months. >>>>> >>>>> I think a lotta women bailed out on that scene because "on average" >>>>> they don't value the bignum bills as highly vs. not getting your >>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>> educated people anymore they're like MBAs and pundits and famous >>>>> bloggers and various Wall Street investment bank weenies after some >>>>> fast bucks >>>>> >>>>> >>>> >>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>> famous programmers. What's impressive is how ad-hoc they are, with >>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>> top-down; they just sort of do it. >>> >>> >>> Most people who have done something noteworthy enough to be >>> interviewed probably didn't have a lot of examples to work from. >>> >>> Top-down/bottom up is a legit thing to mix up, tho. Start >>> with the risk items. >> >> Or the unknowns. >> >>>> Many of them have no formal, or >>>> informal, training in CS or EE or anything. I doubt that many know >>>> what a state machine is. >>>> >>> >>> Unsurprising. Software people are very often blind to determinism in >>> general. >>> >>> FSM are not a widely understood technique in software. >>> God only knows why. Even the people who know about them >>> often think they are always equivalent to regular expressions. >> >> I naturally code that way but when I've shown my code to "real >> programmers", they say "that's neat"! To me, it's the obvious way to >> get across the street - one step at a time (with some checks along the >> way). > >It's not that FSMs aren't a useful design pattern for some problems, >it's just that the software world has moved on to things like OOP, >functional, and generic programming which are more scalable, extensible, >and abstract ...even where not appropriate.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2018-02-13 19:23 -0500 |
| Message-ID | <%jLgC.57972$9X2.29676@fx25.iad> |
| In reply to | #495035 |
On 02/13/2018 07:11 PM, krw@notreal.com wrote: > On Tue, 13 Feb 2018 18:34:34 -0500, bitrex > <bitrex@de.lete.earthlink.net> wrote: > >> On 02/13/2018 06:08 PM, krw@notreal.com wrote: >>> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >>> <lcargill99@comcast.com> wrote: >>> >>>> John Larkin wrote: >>>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>>> <bitrex@de.lete.earthlink.net> wrote: >>>>> >>>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>>> >>>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>>> >>>>>>> >>>>>>> >>>> From the NYT review: >>>>>>> >>>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>>> exploding and was starved for talent. There just weren’t enough >>>>>>> people to do the jobs in computing. So they hired these two >>>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>>> personality test to screen for good programmers. >>>>>>> >>>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>>> that good programmers don’t like people — that they have a >>>>>>> complete disinterest in people. These tests were widely >>>>>>> influential and used at various companies for decades. >>>>>> >>>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>>> do with how ingenious or clever you can make the stuff you type >>>>>> into the box; compilers are very good at this point, CPU horsepower >>>>>> is plentiful and premature optimization is the root of all evil. >>>>>> It's not easy to write high-performance code but it takes concerted >>>>>> effort to write truly poor performing code in most languages. >>>>>> >>>>>> The most valuable skills probably have to do with a) is your >>>>>> software based on solid design principles b) how well you can >>>>>> justify that design/explain your reasoning to others and c) how >>>>>> easily someone can come in fresh and read your documentation and >>>>>> understand the principles of the design. Which if you have no >>>>>> interest in people and little experience interacting with them >>>>>> socially is going to be a tough row to hoe. >>>>>> >>>>>> There will always be a place for the seriously schizoid hotshots, >>>>>> e.g. physics code for games needs to eek out every bit of >>>>>> performance. A physics engine coder might be insulted if you >>>>>> sullied his labor with anything as mundane as _gameplay_. >>>>>> >>>>>> Also the problem with being totally disinterested in people is that >>>>>> you usually end up thinking you're a lot better than you actually >>>>>> are, without any metric to judge your performance how can you >>>>>> semi-objectively judge. >>>>>> >>>>>>> That review also names a recently-me-too-fallen individual that >>>>>>> we once did battle with, but I'm not allowed to make any >>>>>>> disparaging remarks about that. >>>>>>> >>>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>>> Valley culture... which has spread into the worldwide >>>>>>> semiconductor industry. >>>>>> >>>>>> Software used to be fun and novel but then a lot of the industry >>>>>> got lame and cynical, like hey let's build a grocery store list app >>>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>>> in 14 months. >>>>>> >>>>>> I think a lotta women bailed out on that scene because "on average" >>>>>> they don't value the bignum bills as highly vs. not getting your >>>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>>> educated people anymore they're like MBAs and pundits and famous >>>>>> bloggers and various Wall Street investment bank weenies after some >>>>>> fast bucks >>>>>> >>>>>> >>>>> >>>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>>> famous programmers. What's impressive is how ad-hoc they are, with >>>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>>> top-down; they just sort of do it. >>>> >>>> >>>> Most people who have done something noteworthy enough to be >>>> interviewed probably didn't have a lot of examples to work from. >>>> >>>> Top-down/bottom up is a legit thing to mix up, tho. Start >>>> with the risk items. >>> >>> Or the unknowns. >>> >>>>> Many of them have no formal, or >>>>> informal, training in CS or EE or anything. I doubt that many know >>>>> what a state machine is. >>>>> >>>> >>>> Unsurprising. Software people are very often blind to determinism in >>>> general. >>>> >>>> FSM are not a widely understood technique in software. >>>> God only knows why. Even the people who know about them >>>> often think they are always equivalent to regular expressions. >>> >>> I naturally code that way but when I've shown my code to "real >>> programmers", they say "that's neat"! To me, it's the obvious way to >>> get across the street - one step at a time (with some checks along the >>> way). >> >> It's not that FSMs aren't a useful design pattern for some problems, >> it's just that the software world has moved on to things like OOP, >> functional, and generic programming which are more scalable, extensible, >> and abstract > > ...even where not appropriate. > Nowadays on large projects the most "appropriate" design pattern is most often one that generates a codebase 20 or 30 people can work with simultaneously and not influence each other too much. You can't have everyone involved in a project mucking with the state diagrams and making changes that break other people's shit, so you have to run modifications thru some master planner guy, which is a bottleneck and wastes time. It's too "top down." Doesn't scale well.
[toc] | [prev] | [next] | [standalone]
| From | Les Cargill <lcargill99@comcast.com> |
|---|---|
| Date | 2018-02-13 20:59 -0600 |
| Message-ID | <p608d5$8d5$2@dont-email.me> |
| In reply to | #495045 |
bitrex wrote: > On 02/13/2018 07:11 PM, krw@notreal.com wrote: >> On Tue, 13 Feb 2018 18:34:34 -0500, bitrex >> <bitrex@de.lete.earthlink.net> wrote: >> >>> On 02/13/2018 06:08 PM, krw@notreal.com wrote: >>>> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >>>> <lcargill99@comcast.com> wrote: >>>> >>>>> John Larkin wrote: >>>>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>>>> <bitrex@de.lete.earthlink.net> wrote: >>>>>> >>>>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>>>> >>>>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>> From the NYT review: >>>>>>>> >>>>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>>>> exploding and was starved for talent. There just weren’t enough >>>>>>>> people to do the jobs in computing. So they hired these two >>>>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>>>> personality test to screen for good programmers. >>>>>>>> >>>>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>>>> that good programmers don’t like people — that they have a >>>>>>>> complete disinterest in people. These tests were widely >>>>>>>> influential and used at various companies for decades. >>>>>>> >>>>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>>>> do with how ingenious or clever you can make the stuff you type >>>>>>> into the box; compilers are very good at this point, CPU horsepower >>>>>>> is plentiful and premature optimization is the root of all evil. >>>>>>> It's not easy to write high-performance code but it takes concerted >>>>>>> effort to write truly poor performing code in most languages. >>>>>>> >>>>>>> The most valuable skills probably have to do with a) is your >>>>>>> software based on solid design principles b) how well you can >>>>>>> justify that design/explain your reasoning to others and c) how >>>>>>> easily someone can come in fresh and read your documentation and >>>>>>> understand the principles of the design. Which if you have no >>>>>>> interest in people and little experience interacting with them >>>>>>> socially is going to be a tough row to hoe. >>>>>>> >>>>>>> There will always be a place for the seriously schizoid hotshots, >>>>>>> e.g. physics code for games needs to eek out every bit of >>>>>>> performance. A physics engine coder might be insulted if you >>>>>>> sullied his labor with anything as mundane as _gameplay_. >>>>>>> >>>>>>> Also the problem with being totally disinterested in people is that >>>>>>> you usually end up thinking you're a lot better than you actually >>>>>>> are, without any metric to judge your performance how can you >>>>>>> semi-objectively judge. >>>>>>> >>>>>>>> That review also names a recently-me-too-fallen individual that >>>>>>>> we once did battle with, but I'm not allowed to make any >>>>>>>> disparaging remarks about that. >>>>>>>> >>>>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>>>> Valley culture... which has spread into the worldwide >>>>>>>> semiconductor industry. >>>>>>> >>>>>>> Software used to be fun and novel but then a lot of the industry >>>>>>> got lame and cynical, like hey let's build a grocery store list app >>>>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>>>> in 14 months. >>>>>>> >>>>>>> I think a lotta women bailed out on that scene because "on average" >>>>>>> they don't value the bignum bills as highly vs. not getting your >>>>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>>>> educated people anymore they're like MBAs and pundits and famous >>>>>>> bloggers and various Wall Street investment bank weenies after some >>>>>>> fast bucks >>>>>>> >>>>>>> >>>>>> >>>>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>>>> famous programmers. What's impressive is how ad-hoc they are, with >>>>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>>>> top-down; they just sort of do it. >>>>> >>>>> >>>>> Most people who have done something noteworthy enough to be >>>>> interviewed probably didn't have a lot of examples to work from. >>>>> >>>>> Top-down/bottom up is a legit thing to mix up, tho. Start >>>>> with the risk items. >>>> >>>> Or the unknowns. >>>> >>>>>> Many of them have no formal, or >>>>>> informal, training in CS or EE or anything. I doubt that many know >>>>>> what a state machine is. >>>>>> >>>>> >>>>> Unsurprising. Software people are very often blind to determinism in >>>>> general. >>>>> >>>>> FSM are not a widely understood technique in software. >>>>> God only knows why. Even the people who know about them >>>>> often think they are always equivalent to regular expressions. >>>> >>>> I naturally code that way but when I've shown my code to "real >>>> programmers", they say "that's neat"! To me, it's the obvious way to >>>> get across the street - one step at a time (with some checks along the >>>> way). >>> >>> It's not that FSMs aren't a useful design pattern for some problems, >>> it's just that the software world has moved on to things like OOP, >>> functional, and generic programming which are more scalable, extensible, >>> and abstract >> >> ...even where not appropriate. >> > > Nowadays on large projects the most "appropriate" design pattern is most > often one that generates a codebase 20 or 30 people can work with > simultaneously and not influence each other too much. SO you don't think FSM can work like that? See below.... > You can't have > everyone involved in a project mucking with the state diagrams and > making changes that break other people's shit, so you have to run > modifications thru some master planner guy, which is a bottleneck and > wastes time. It's too "top down." Doesn't scale well. It scales *just fine*. You write out message sequence charts, people go code to that, then you integrate. And 20-30 programmers is a lot of cat-herding. Pity the poor management... -- Les Cargill
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-02-13 22:21 -0500 |
| Message-ID | <0ja78dlbor68mivq2n284p4enplfdb23mr@4ax.com> |
| In reply to | #495045 |
On Tue, 13 Feb 2018 19:23:23 -0500, bitrex <bitrex@de.lete.earthlink.net> wrote: >On 02/13/2018 07:11 PM, krw@notreal.com wrote: >> On Tue, 13 Feb 2018 18:34:34 -0500, bitrex >> <bitrex@de.lete.earthlink.net> wrote: >> >>> On 02/13/2018 06:08 PM, krw@notreal.com wrote: >>>> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >>>> <lcargill99@comcast.com> wrote: >>>> >>>>> John Larkin wrote: >>>>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>>>> <bitrex@de.lete.earthlink.net> wrote: >>>>>> >>>>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>>>> >>>>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>>>> >>>>>>>> >>>>>>>> >>>>> From the NYT review: >>>>>>>> >>>>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>>>> exploding and was starved for talent. There just weren’t enough >>>>>>>> people to do the jobs in computing. So they hired these two >>>>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>>>> personality test to screen for good programmers. >>>>>>>> >>>>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>>>> that good programmers don’t like people — that they have a >>>>>>>> complete disinterest in people. These tests were widely >>>>>>>> influential and used at various companies for decades. >>>>>>> >>>>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>>>> do with how ingenious or clever you can make the stuff you type >>>>>>> into the box; compilers are very good at this point, CPU horsepower >>>>>>> is plentiful and premature optimization is the root of all evil. >>>>>>> It's not easy to write high-performance code but it takes concerted >>>>>>> effort to write truly poor performing code in most languages. >>>>>>> >>>>>>> The most valuable skills probably have to do with a) is your >>>>>>> software based on solid design principles b) how well you can >>>>>>> justify that design/explain your reasoning to others and c) how >>>>>>> easily someone can come in fresh and read your documentation and >>>>>>> understand the principles of the design. Which if you have no >>>>>>> interest in people and little experience interacting with them >>>>>>> socially is going to be a tough row to hoe. >>>>>>> >>>>>>> There will always be a place for the seriously schizoid hotshots, >>>>>>> e.g. physics code for games needs to eek out every bit of >>>>>>> performance. A physics engine coder might be insulted if you >>>>>>> sullied his labor with anything as mundane as _gameplay_. >>>>>>> >>>>>>> Also the problem with being totally disinterested in people is that >>>>>>> you usually end up thinking you're a lot better than you actually >>>>>>> are, without any metric to judge your performance how can you >>>>>>> semi-objectively judge. >>>>>>> >>>>>>>> That review also names a recently-me-too-fallen individual that >>>>>>>> we once did battle with, but I'm not allowed to make any >>>>>>>> disparaging remarks about that. >>>>>>>> >>>>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>>>> Valley culture... which has spread into the worldwide >>>>>>>> semiconductor industry. >>>>>>> >>>>>>> Software used to be fun and novel but then a lot of the industry >>>>>>> got lame and cynical, like hey let's build a grocery store list app >>>>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>>>> in 14 months. >>>>>>> >>>>>>> I think a lotta women bailed out on that scene because "on average" >>>>>>> they don't value the bignum bills as highly vs. not getting your >>>>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>>>> educated people anymore they're like MBAs and pundits and famous >>>>>>> bloggers and various Wall Street investment bank weenies after some >>>>>>> fast bucks >>>>>>> >>>>>>> >>>>>> >>>>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>>>> famous programmers. What's impressive is how ad-hoc they are, with >>>>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>>>> top-down; they just sort of do it. >>>>> >>>>> >>>>> Most people who have done something noteworthy enough to be >>>>> interviewed probably didn't have a lot of examples to work from. >>>>> >>>>> Top-down/bottom up is a legit thing to mix up, tho. Start >>>>> with the risk items. >>>> >>>> Or the unknowns. >>>> >>>>>> Many of them have no formal, or >>>>>> informal, training in CS or EE or anything. I doubt that many know >>>>>> what a state machine is. >>>>>> >>>>> >>>>> Unsurprising. Software people are very often blind to determinism in >>>>> general. >>>>> >>>>> FSM are not a widely understood technique in software. >>>>> God only knows why. Even the people who know about them >>>>> often think they are always equivalent to regular expressions. >>>> >>>> I naturally code that way but when I've shown my code to "real >>>> programmers", they say "that's neat"! To me, it's the obvious way to >>>> get across the street - one step at a time (with some checks along the >>>> way). >>> >>> It's not that FSMs aren't a useful design pattern for some problems, >>> it's just that the software world has moved on to things like OOP, >>> functional, and generic programming which are more scalable, extensible, >>> and abstract >> >> ...even where not appropriate. >> > >Nowadays on large projects the most "appropriate" design pattern is most >often one that generates a codebase 20 or 30 people can work with >simultaneously and not influence each other too much. You can't have >everyone involved in a project mucking with the state diagrams and >making changes that break other people's shit, so you have to run >modifications thru some master planner guy, which is a bottleneck and >wastes time. It's too "top down." Doesn't scale well. In a large project like that, programmers shouldn't be making changes to *ANY* state machines. That's the what the architect(s) do. The programmers implement, they don't design. Chip designers don't change the architecture of a processor, either. They implement the architect's design. That's probably why there is so much shit software out there. Too many cooks.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2018-02-20 20:31 -0500 |
| Message-ID | <h_3jC.60812$YR7.9091@fx34.iad> |
| In reply to | #495093 |
On 02/13/2018 10:21 PM, krw@notreal.com wrote: > On Tue, 13 Feb 2018 19:23:23 -0500, bitrex > <bitrex@de.lete.earthlink.net> wrote: > >> On 02/13/2018 07:11 PM, krw@notreal.com wrote: >>> On Tue, 13 Feb 2018 18:34:34 -0500, bitrex >>> <bitrex@de.lete.earthlink.net> wrote: >>> >>>> On 02/13/2018 06:08 PM, krw@notreal.com wrote: >>>>> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >>>>> <lcargill99@comcast.com> wrote: >>>>> >>>>>> John Larkin wrote: >>>>>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>>>>> <bitrex@de.lete.earthlink.net> wrote: >>>>>>> >>>>>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>>>>> >>>>>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>> From the NYT review: >>>>>>>>> >>>>>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>>>>> exploding and was starved for talent. There just weren’t enough >>>>>>>>> people to do the jobs in computing. So they hired these two >>>>>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>>>>> personality test to screen for good programmers. >>>>>>>>> >>>>>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>>>>> that good programmers don’t like people — that they have a >>>>>>>>> complete disinterest in people. These tests were widely >>>>>>>>> influential and used at various companies for decades. >>>>>>>> >>>>>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>>>>> do with how ingenious or clever you can make the stuff you type >>>>>>>> into the box; compilers are very good at this point, CPU horsepower >>>>>>>> is plentiful and premature optimization is the root of all evil. >>>>>>>> It's not easy to write high-performance code but it takes concerted >>>>>>>> effort to write truly poor performing code in most languages. >>>>>>>> >>>>>>>> The most valuable skills probably have to do with a) is your >>>>>>>> software based on solid design principles b) how well you can >>>>>>>> justify that design/explain your reasoning to others and c) how >>>>>>>> easily someone can come in fresh and read your documentation and >>>>>>>> understand the principles of the design. Which if you have no >>>>>>>> interest in people and little experience interacting with them >>>>>>>> socially is going to be a tough row to hoe. >>>>>>>> >>>>>>>> There will always be a place for the seriously schizoid hotshots, >>>>>>>> e.g. physics code for games needs to eek out every bit of >>>>>>>> performance. A physics engine coder might be insulted if you >>>>>>>> sullied his labor with anything as mundane as _gameplay_. >>>>>>>> >>>>>>>> Also the problem with being totally disinterested in people is that >>>>>>>> you usually end up thinking you're a lot better than you actually >>>>>>>> are, without any metric to judge your performance how can you >>>>>>>> semi-objectively judge. >>>>>>>> >>>>>>>>> That review also names a recently-me-too-fallen individual that >>>>>>>>> we once did battle with, but I'm not allowed to make any >>>>>>>>> disparaging remarks about that. >>>>>>>>> >>>>>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>>>>> Valley culture... which has spread into the worldwide >>>>>>>>> semiconductor industry. >>>>>>>> >>>>>>>> Software used to be fun and novel but then a lot of the industry >>>>>>>> got lame and cynical, like hey let's build a grocery store list app >>>>>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>>>>> in 14 months. >>>>>>>> >>>>>>>> I think a lotta women bailed out on that scene because "on average" >>>>>>>> they don't value the bignum bills as highly vs. not getting your >>>>>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>>>>> educated people anymore they're like MBAs and pundits and famous >>>>>>>> bloggers and various Wall Street investment bank weenies after some >>>>>>>> fast bucks >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>>>>> famous programmers. What's impressive is how ad-hoc they are, with >>>>>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>>>>> top-down; they just sort of do it. >>>>>> >>>>>> >>>>>> Most people who have done something noteworthy enough to be >>>>>> interviewed probably didn't have a lot of examples to work from. >>>>>> >>>>>> Top-down/bottom up is a legit thing to mix up, tho. Start >>>>>> with the risk items. >>>>> >>>>> Or the unknowns. >>>>> >>>>>>> Many of them have no formal, or >>>>>>> informal, training in CS or EE or anything. I doubt that many know >>>>>>> what a state machine is. >>>>>>> >>>>>> >>>>>> Unsurprising. Software people are very often blind to determinism in >>>>>> general. >>>>>> >>>>>> FSM are not a widely understood technique in software. >>>>>> God only knows why. Even the people who know about them >>>>>> often think they are always equivalent to regular expressions. >>>>> >>>>> I naturally code that way but when I've shown my code to "real >>>>> programmers", they say "that's neat"! To me, it's the obvious way to >>>>> get across the street - one step at a time (with some checks along the >>>>> way). >>>> >>>> It's not that FSMs aren't a useful design pattern for some problems, >>>> it's just that the software world has moved on to things like OOP, >>>> functional, and generic programming which are more scalable, extensible, >>>> and abstract >>> >>> ...even where not appropriate. >>> >> >> Nowadays on large projects the most "appropriate" design pattern is most >> often one that generates a codebase 20 or 30 people can work with >> simultaneously and not influence each other too much. You can't have >> everyone involved in a project mucking with the state diagrams and >> making changes that break other people's shit, so you have to run >> modifications thru some master planner guy, which is a bottleneck and >> wastes time. It's too "top down." Doesn't scale well. > > In a large project like that, programmers shouldn't be making changes > to *ANY* state machines. That's the what the architect(s) do. The > programmers implement, they don't design. Chip designers don't change > the architecture of a processor, either. They implement the > architect's design. That's probably why there is so much shit > software out there. Too many cooks. > That's called "waterfall design" and has been passe in the software world for I'd guess 30 years or so. It's brittle, inflexible, too "top-down", there is no one "architect" or small group of architects who have a complete God's-eye picture of every single "state" or function or branch of code in a 100 million-line codebase. Processor design is a different animal it takes years and years to bring a new architecture from concept to finalized design, the software world is working under much tighter deadlines and customers _expect_ major changes to be possible for most of the development cycle. Giving a client this "the design is finalized and being implemented according to God's plan by the code monkeys and it cannot be touched" stuff would be a way to find yourself rapidly out of business
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-02-20 20:44 -0500 |
| Message-ID | <2ijp8ddg8r6u9nrf2pnsvlm78scjkj2r67@4ax.com> |
| In reply to | #496149 |
On Tue, 20 Feb 2018 20:31:56 -0500, bitrex <bitrex@de.lete.earthlink.net> wrote: >On 02/13/2018 10:21 PM, krw@notreal.com wrote: >> On Tue, 13 Feb 2018 19:23:23 -0500, bitrex >> <bitrex@de.lete.earthlink.net> wrote: >> >>> On 02/13/2018 07:11 PM, krw@notreal.com wrote: >>>> On Tue, 13 Feb 2018 18:34:34 -0500, bitrex >>>> <bitrex@de.lete.earthlink.net> wrote: >>>> >>>>> On 02/13/2018 06:08 PM, krw@notreal.com wrote: >>>>>> On Sun, 11 Feb 2018 19:01:06 -0600, Les Cargill >>>>>> <lcargill99@comcast.com> wrote: >>>>>> >>>>>>> John Larkin wrote: >>>>>>>> On Sun, 11 Feb 2018 16:45:33 -0500, bitrex >>>>>>>> <bitrex@de.lete.earthlink.net> wrote: >>>>>>>> >>>>>>>>> On 02/11/2018 11:54 AM, John Larkin wrote: >>>>>>>>>> >>>>>>>>>> https://www.amazon.com/Brotopia-Breaking-Boys-Silicon-Valley/dp/0735213534/ref=sr_1_1?ie=UTF8&qid=1518366993&sr=8-1&keywords=brotopia >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>> From the NYT review: >>>>>>>>>> >>>>>>>>>> What happened in the 1960s and 1970s was that the industry was >>>>>>>>>> exploding and was starved for talent. There just weren’t enough >>>>>>>>>> people to do the jobs in computing. So they hired these two >>>>>>>>>> psychologists, William Cannon and Dallis Perry, to come up with a >>>>>>>>>> personality test to screen for good programmers. >>>>>>>>>> >>>>>>>>>> Those men decided, in screening about 1,200 men and 200 women, >>>>>>>>>> that good programmers don’t like people — that they have a >>>>>>>>>> complete disinterest in people. These tests were widely >>>>>>>>>> influential and used at various companies for decades. >>>>>>>>> >>>>>>>>> Most qualities that make a "good programmer" in 2018 have little to >>>>>>>>> do with how ingenious or clever you can make the stuff you type >>>>>>>>> into the box; compilers are very good at this point, CPU horsepower >>>>>>>>> is plentiful and premature optimization is the root of all evil. >>>>>>>>> It's not easy to write high-performance code but it takes concerted >>>>>>>>> effort to write truly poor performing code in most languages. >>>>>>>>> >>>>>>>>> The most valuable skills probably have to do with a) is your >>>>>>>>> software based on solid design principles b) how well you can >>>>>>>>> justify that design/explain your reasoning to others and c) how >>>>>>>>> easily someone can come in fresh and read your documentation and >>>>>>>>> understand the principles of the design. Which if you have no >>>>>>>>> interest in people and little experience interacting with them >>>>>>>>> socially is going to be a tough row to hoe. >>>>>>>>> >>>>>>>>> There will always be a place for the seriously schizoid hotshots, >>>>>>>>> e.g. physics code for games needs to eek out every bit of >>>>>>>>> performance. A physics engine coder might be insulted if you >>>>>>>>> sullied his labor with anything as mundane as _gameplay_. >>>>>>>>> >>>>>>>>> Also the problem with being totally disinterested in people is that >>>>>>>>> you usually end up thinking you're a lot better than you actually >>>>>>>>> are, without any metric to judge your performance how can you >>>>>>>>> semi-objectively judge. >>>>>>>>> >>>>>>>>>> That review also names a recently-me-too-fallen individual that >>>>>>>>>> we once did battle with, but I'm not allowed to make any >>>>>>>>>> disparaging remarks about that. >>>>>>>>>> >>>>>>>>>> I am continually amazed by the aggressive and toxic Silicon >>>>>>>>>> Valley culture... which has spread into the worldwide >>>>>>>>>> semiconductor industry. >>>>>>>>> >>>>>>>>> Software used to be fun and novel but then a lot of the industry >>>>>>>>> got lame and cynical, like hey let's build a grocery store list app >>>>>>>>> for a phone with Bluetooth integration, sell that shit for $2.99 on >>>>>>>>> the app store and hope to get bought out by the Big G for $50 mil >>>>>>>>> in 14 months. >>>>>>>>> >>>>>>>>> I think a lotta women bailed out on that scene because "on average" >>>>>>>>> they don't value the bignum bills as highly vs. not getting your >>>>>>>>> soul crushed to get 'em. Who can blame 'em, I don't. Seems like >>>>>>>>> most of the "angel" VC funders in the Valley aren't even tech >>>>>>>>> educated people anymore they're like MBAs and pundits and famous >>>>>>>>> bloggers and various Wall Street investment bank weenies after some >>>>>>>>> fast bucks >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> I'm reading "Coders at Work", which is a bunch of interviews with >>>>>>>> famous programmers. What's impressive is how ad-hoc they are, with >>>>>>>> no obvious systematic approaches, sometimes bottom-up, sometimes >>>>>>>> top-down; they just sort of do it. >>>>>>> >>>>>>> >>>>>>> Most people who have done something noteworthy enough to be >>>>>>> interviewed probably didn't have a lot of examples to work from. >>>>>>> >>>>>>> Top-down/bottom up is a legit thing to mix up, tho. Start >>>>>>> with the risk items. >>>>>> >>>>>> Or the unknowns. >>>>>> >>>>>>>> Many of them have no formal, or >>>>>>>> informal, training in CS or EE or anything. I doubt that many know >>>>>>>> what a state machine is. >>>>>>>> >>>>>>> >>>>>>> Unsurprising. Software people are very often blind to determinism in >>>>>>> general. >>>>>>> >>>>>>> FSM are not a widely understood technique in software. >>>>>>> God only knows why. Even the people who know about them >>>>>>> often think they are always equivalent to regular expressions. >>>>>> >>>>>> I naturally code that way but when I've shown my code to "real >>>>>> programmers", they say "that's neat"! To me, it's the obvious way to >>>>>> get across the street - one step at a time (with some checks along the >>>>>> way). >>>>> >>>>> It's not that FSMs aren't a useful design pattern for some problems, >>>>> it's just that the software world has moved on to things like OOP, >>>>> functional, and generic programming which are more scalable, extensible, >>>>> and abstract >>>> >>>> ...even where not appropriate. >>>> >>> >>> Nowadays on large projects the most "appropriate" design pattern is most >>> often one that generates a codebase 20 or 30 people can work with >>> simultaneously and not influence each other too much. You can't have >>> everyone involved in a project mucking with the state diagrams and >>> making changes that break other people's shit, so you have to run >>> modifications thru some master planner guy, which is a bottleneck and >>> wastes time. It's too "top down." Doesn't scale well. >> >> In a large project like that, programmers shouldn't be making changes >> to *ANY* state machines. That's the what the architect(s) do. The >> programmers implement, they don't design. Chip designers don't change >> the architecture of a processor, either. They implement the >> architect's design. That's probably why there is so much shit >> software out there. Too many cooks. >> > >That's called "waterfall design" and has been passe in the software >world for I'd guess 30 years or so. It's brittle, inflexible, too >"top-down", there is no one "architect" or small group of architects who >have a complete God's-eye picture of every single "state" or function or >branch of code in a 100 million-line codebase. So has defect-free software. There is a reason Win* is such shit. > >Processor design is a different animal it takes years and years to bring >a new architecture from concept to finalized design, the software world >is working under much tighter deadlines and customers _expect_ major >changes to be possible for most of the development cycle. No, it's exactly the same thing. One group believes in the quality of their work. >Giving a client this "the design is finalized and being implemented >according to God's plan by the code monkeys and it cannot be touched" >stuff would be a way to find yourself rapidly out of business So you think the race to the bottom is a good thing. I could have guessed that.
[toc] | [prev] | [next] | [standalone]
Page 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web