Poundcake - Shop now
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

Practical Statecharts in C/C++: Quantum Programming for Embedded Systems with CDROM


'Downright revolutionary... the title is a major understatement... 'Quantum Programming' may ultimately change the way embedded software is designed.' -- Michael Barr, Editor-in-Chief, Embedded Systems Programming magazine (Click here

Editorial Reviews

Review

...downright revolutionary... The title is a major understatement... "Quantum Programming" may ultimately change the way embedded software is designed. -- Michael Barr, Editor-in-Chief, Embedded Systems Programming magazine, August 2002

Beyond simply talking about concepts, Miro provides complete source code and code walkthroughs. --
Brian Schmidt, Sr. Design Engineer, Plexus Technology Group

About the Author

Dr. Miro Samek is the founder and president of Quantum Leaps, an open source company providing lightweight, state machine-based, event-driven application frameworks for embedded systems. He is the author of Practical Statecharts in C/C++ (CMP Books, 2002), has written numerous articles for magazines, including a column for C/C++ Users Journal, is a regular speaker at the Embedded Systems Conferences, and serves on the editorial review board of the Embedded Systems Design magazine. For a number of years, he worked in various Silicon Valley companies as an embedded software architect and before that he worked as an embedded software engineer at GE Medical Systems (now GE Healthcare). Dr. Samek earned his Ph.D. in nuclear physics at GSI (Darmstadt, Germany).

Product details

About the author

Follow authors to get new release updates, plus improved recommendations.
Miro Samek
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Dr. Miro M. Samek is the creator of the open source QP real-time embedded frameworks and the freeware QM graphical model-based design tool. He is also the founder of Quantum Leaps (state-machine.com) -- the market leading provider of modern embedded software based on active objects and hierarchical state machines as well as tools for visual modeling, automatic code generation, unit testing and prototyping of deeply embedded software.

Miro teaches the popular "Modern Embedded Systems Programming" video course on YouTube (see https://www.youtube.com/c/StateMachineCOM )

Customer reviews

2.9 out of 5 stars
22 global ratings

Review this product

Share your thoughts with other customers

Customers say

Customers find the book's concept useful, with one mentioning it works well for regular applications. The state machine implementation receives positive feedback, with one customer highlighting how it demonstrates the power of state machines.

4 customers mention "Concept"4 positive0 negative

Customers find the book's concept useful, with one mentioning it works wonders for regular applications.

"...The concept is unique and quite interesting. However, it is useless as far as embedded system implementation...." Read more

"...State Machines, if implemented right, can work wonders for regular apps...." Read more

"...I think that this book is really useful and very interesting for each interesting in C++/C. And want write programs with HSM behind as behavior..." Read more

"Great tech..." Read more

4 customers mention "State machine implementation"4 positive0 negative

Customers appreciate the state machine implementation in the book, with one customer highlighting its usefulness and another noting how it demonstrates the power of state machines.

"Well done. This book shows you the power of state machines. He takes the reader way beyond if/else and switch statements...." Read more

"...the Windows Workflow Foundation to be an excellent example of practical implementation of State Machines; it does have its limitations though and is..." Read more

"...State machines are useful and have a place, but there is no need for a whole book on the subject." Read more

"Looks like an excellent method for formalizing and standardizing state machines. This enables highly reactive systems with minimal OS requirements." Read more

Top reviews from the United States

  • Reviewed in the United States on November 22, 2006
    Since I saw quite a few excellent reviews on Amazon as well as on some other websites, I decided to purchase the book hoping it would give me some fresh new ideas in implementing FSM for real-time embedded system. I was quite disappointed when I received the book and had a chance to read it. Here are my own personal comments:

    - The text is too verbose and quite disorganized. Reading this I had the feeling of listening to someone rambling on and on.

    - The concept is unique and quite interesting. However, it is useless as far as embedded system implementation. Think of how you are going to debug this in a real-time environment. It would be a nightmare!

    - Lots of the detailed codings are encapsulated by the house-keeping codes. This is a definitely NO-NO for embedded system application if one must know every single line of executable code. (You have to know if you want to do size and speed optimization.)

    - It would be a nightmare to maintain an application written using this concept. It is just not consistent with the natural flow of thinking. Don't forget that the human element can never be detached from any application.

    - Debugging the state machine written using this concept is extremely difficult. (Believe me! I tried.) The concept of simply returning to the parent state if no special handling is required can be very very misleading during real-time debugging.

    Simply put, if you want to read some new interesting idea, this book is for you. But if you are looking for practical idea to apply to your SW development project, I suggest you look elsewhere. The 5-star rating is very very misleading. If you are still curious, you might want to check it out first at your local Barnes&Nobles or Border before buying.

    (In case anyone wonders about my background, I've been doing software development & architecture since 1988.)
    16 people found this helpful
    Report
  • Reviewed in the United States on March 2, 2013
    Well done.
    This book shows you the power of state machines.
    He takes the reader way beyond if/else and switch statements.
    This book clearly shows how to map the problem space onto the solution space using statemachines
    It also promotes reuse instead of ahoc statemachine design.
    Via the state function pointers, and state objects and class inheritance a web of if/else are reduced and often elimated. My one reservation is usage of C++ macros may be a bit much cumbersome at times

    One ofther quites sweet result is it show you how to make self describing code which is easily related to
    high level state diagrams

    Quite revoltionary.
    If your thinking of employing a statemahine
    I whole heartedly recommend this book.
  • Reviewed in the United States on June 27, 2008
    I bought this book after reading some reviews which hinted that this book would be helpful for software developers of all systems and not just embedded ones. I have to admit I have almost no practical experience with C++, but I have substantial insights into OOD.
    I think this book is singularly targeted towards embedded developers, especially the ones who are into the crux of critical systems. I'm into regular OOD for PC/Web applications, and except for the first 2-3 chapters, I thought the book was impractical in today's age of environments such as .NET and high-performance hardware. This is a highly theoretical book which demands a massive change and learning curve for traditional developers.
    This, however, does not undermine State Machines. State Machines, if implemented right, can work wonders for regular apps. I found the Windows Workflow Foundation to be an excellent example of practical implementation of State Machines; it does have its limitations though and is meant for high-level processes. I am probably just going to stick to State Tables and such for a simplistic model with easy debugging capabilities.
    I found the UML 2 for Dummies much more practical.
    3 people found this helpful
    Report
  • Reviewed in the United States on January 18, 2013
    Completely derivative one trick approach to different problems. State machines are useful and have a place, but there is no need for a whole book on the subject.
  • Reviewed in the United States on December 12, 2012
    Looks like an excellent method for formalizing and standardizing state machines. This enables highly reactive systems with minimal OS requirements.
    One person found this helpful
    Report

Top reviews from other countries

  • isis
    5.0 out of 5 stars 素晴らしい!ステート指向プログラミングの世界
    Reviewed in Japan on May 24, 2003
    UMLの静的な構造からJavaのクラスを自動生成できます、そんな売り文句に飽きた人。この本は新しい世界を切り開いています。それは、動的な振る舞いをあらわすステートチャート図を使い、そこからストレートに実装(プログラミング)にマッピングしようという試みです。ステートチャートに基づいてステートマシンを実装することは、決して新しいことはありませんが、効率よく、かつ、ステートをストレートにプログラミング上表現できるという点で、まったく画期的なものになっています。タイトルには組み込みシステム向けとありますが、イベント指向なフレームワークなどを作られているかたにも役に立つ内容です。