[raspberry-vi] Re: Deadlock bug fix

  • From: Mike Ray <mike@xxxxxxxxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Sat, 19 Aug 2017 23:26:56 +0100


The next issue is figuring out the architecture of speech-dispatcher.

It has the plugin modules prefixed 'sd_', like sd_expeak etc, and it has
audio sub-system source files like alsa and pulse etc.

Figuring out how they go together and which I need to extend upon is
going to be tricky.

I figure I probably need `sd_piespeak_ng` and probably an audio
sub-system too.  But it could really all be done in the plugin, but that
would kind of  negate from the usual architecture.

I might have to put some of the ring buffer code back in, but I hope not.

Mike



On 19/08/2017 22:40, Rill wrote:

figuring out what to throw away in many endeavors is the hardest but most 
important thing to do.

Rill -- Sent from my iPhone

On Aug 19, 2017, at 4:14 PM, Mike Ray <mike@xxxxxxxxxxxxxxx> wrote:

Rich,

In all my 27 years as a programmer, I never came across an individual
piece of code, or a whole project, green-field or otherwise, which I
didn't want to totally throw away and start again by the time I'd
'finished' it.

Sadly in the field that is rarely possible.  Programming, like other
jobs, would be great, if it wasn't for customers.

Mike



On 19/08/2017 22:01, Rich Morin wrote:
On Aug 19, 2017, at 13:30, Mike Ray <mike@xxxxxxxxxxxxxxx> wrote:

... Today I have ripped a lot of it out. ...

"One of my most productive days was throwing away 1,000 lines of code."
-- Ken Thompson
  https://www.brainyquote.com/quotes/authors/k/ken_thompson.html

In any case, congratulations and best wishes!

-r

-- 
http://www.cfcl.com/rdm           Rich Morin           rdm@xxxxxxxx
http://www.cfcl.com/rdm/resume San Bruno, CA, USA   +1 650-873-7841

Software system design, development, and documentation


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013





-- 
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

Disclaimer: It wasn't me, you didn't see me, you can't prove a thing.

https://cromarty.github.io/
http://eyesfreelinux.ninja/
http://www.raspberryvi.org/


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: