Close
  • Latest News
  • Artificial Intelligence
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Logo
  • Latest News
  • Artificial Intelligence
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Home Development
    • Development

    High-Level System Models Reduce Errors

    By
    Peter Coffee
    -
    July 18, 2005
    Share
    Facebook
    Twitter
    Linkedin

      At the apogee of software challenges are the rigorous demands of robotic deep-space missions. NASAs July 4 success in hitting a bullet with a bullet—specifically, hitting a comet nucleus with a probe about the size of a coffee table at a relative speed of 23,000 mph—updates the archive of these high-profile tests.

      Ironically, such missions during the last few years have been used to argue both sides in the religious debate over use of higher-level programming languages and tools. Personally, I gravitate to the high end—but Ed Posts canonical essay, “Real Programmers Dont Use Pascal,” took the other side with its anecdotes of missions to outer planets.

      “Allegedly, one Real Programmer managed to tuck a pattern-matching program into a few hundred bytes of unused memory in a Voyager spacecraft that searched for, located, and photographed a new moon of Jupiter,” Post wrote in his semiserious commentary in Datamation magazine in July 1983. Speaking of the then-prospective Galileo mission, Post described its planned gravity-assist maneuver and said, “This trajectory passes within 80 +/- 3 kilometers of the surface of Mars. Nobody is going to trust a Pascal program (or Pascal programmer) for navigation to these tolerances.”

      The hazards of such low-level programming were spectacularly revealed, though, in 1999 when the Mars Climate Orbiter crashed into that planet because of confusion between English and metric units of force. My first thought, on learning the cause of the crash, was: “Thats the kind of thing that Ada can prevent”—Ada being, of course, quite Pascal-like. A properly written Ada program strongly associates explicit data types, such as force_newtons or force_pounds, with any numeric values. An Ada compiler refuses to use one type where another is specified. Errors are detected, moreover, when a program is compiled, rather than surfacing at run-time.

      Java can be used in the same way, and Ada source code can even be compiled to Java bytecode to run in any Java virtual machine environment—although some purists would say that neither Java nor Ada is strongly typed because both languages enable forms of type conversion within a program. Personally, as long as all conversions are explicit, Im OK with that.

      Arguably even better than a strongly typed language, though, is a high-level system model that lets designers and users reason about desired behaviors—and generate the code that actually runs the system as a side effect only after the model behaves satisfactorily. Thats what NASA did when preparing its Deep Impact comet probe for its brief burst of glory.

      “You compose a block diagram to represent the system,” said Jason Ghidella, a product manager at The MathWorks. Ghidella described NASAs use of The MathWorks Stateflow, a tool that has been favorably mentioned in numerous NASA research papers during the last several years. Stateflows not without quirks: Researcher John Rushby, at SRI International, described Stateflow as having “ghastly semantics” in his presentation to a NASA workshop in June 2003, and a research team at Carnegie Mellon has compiled a Web page to share its “firsthand trial and error” discoveries as to Stateflows specific behaviors. Stateflow nonetheless enjoys a growing reputation for at least elevating trial and error to higher levels of abstraction.

      Because of the long delays for radio commands to reach the Deep Impact probe, more than 7 light minutes from Earth, it had to have a fair amount of autonomous fault-handling capability. “Youre able to describe that in a more natural form using finite state machines in a graphical form. You can simulate all the scenarios,” said Ghidella during our conversation a week before the July 4 climax of the Deep Impact mission. “They did a lot of testing upfront, they verified the design at the model level [and] then they were able to generate the C code directly without introducing errors by hand.”

      Handcrafted charm enhances antique furniture, but it has no place in modern systems. Development teams should always be looking for higher-level tools, or the debris of their failure may someday be studied just like the debris of Deep Impacts success.

      Technology Editor Peter Coffee can be reached at peter_coffee@ziffdavis.com.

      To read more Peter Coffee, subscribe to eWEEK magazine.

      Check out eWEEK.coms for the latest news, reviews and analysis in programming environments and developer tools.

      Peter Coffee
      Peter Coffee is Director of Platform Research at salesforce.com, where he serves as a liaison with the developer community to define the opportunity and clarify developers' technical requirements on the company's evolving Apex Platform. Peter previously spent 18 years with eWEEK (formerly PC Week), the national news magazine of enterprise technology practice, where he reviewed software development tools and methods and wrote regular columns on emerging technologies and professional community issues.Before he began writing full-time in 1989, Peter spent eleven years in technical and management positions at Exxon and The Aerospace Corporation, including management of the latter company's first desktop computing planning team and applied research in applications of artificial intelligence techniques. He holds an engineering degree from MIT and an MBA from Pepperdine University, he has held teaching appointments in computer science, business analytics and information systems management at Pepperdine, UCLA, and Chapman College.
      Get the Free Newsletter!
      Subscribe to Daily Tech Insider for top news, trends & analysis
      This email address is invalid.
      Get the Free Newsletter!
      Subscribe to Daily Tech Insider for top news, trends & analysis
      This email address is invalid.

      MOST POPULAR ARTICLES

      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Applications

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      IT Management

      Intuit’s Nhung Ho on AI for the...

      James Maguire - May 13, 2022 0
      I spoke with Nhung Ho, Vice President of AI at Intuit, about adoption of AI in the small and medium-sized business market, and how...
      Read more
      Applications

      Kyndryl’s Nicolas Sekkaki on Handling AI and...

      James Maguire - November 9, 2022 0
      I spoke with Nicolas Sekkaki, Group Practice Leader for Applications, Data and AI at Kyndryl, about how companies can boost both their AI and...
      Read more
      Cloud

      IGEL CEO Jed Ayres on Edge and...

      James Maguire - June 14, 2022 0
      I spoke with Jed Ayres, CEO of IGEL, about the endpoint sector, and an open source OS for the cloud; we also spoke about...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2022 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×