https://www.iotworldtoday.com/wp-content/themes/ioti_child/assets/images/logo/footer-logo.png
  • Home
  • News
    • Back
    • IoT World 2020 News
  • Strategy
  • Special Reports
  • Galleries
  • Business Resources
    • Back
    • Webinars
    • White Papers
    • Industry Perspectives
    • Featured Vendors
  • Other Content
    • Back
    • IoT World 2020 News
    • Q&As
    • Case Studies
    • Features
    • How-to
    • Opinion
    • Video / Podcasts
  • More
    • Back
    • About Us
    • Contact
    • Advertise
    • Strategic Partners
  • IOT World Events
    • Back
    • Internet of Things World: San Jose
    • IoT World 2020 News
Iot World Today
  • NEWSLETTER
  • Home
  • News
    • Back
    • IoT World 2020 News
  • Strategy
  • Special Reports
  • Galleries
  • Business Resources
    • Back
    • Webinars
    • White Papers
    • Industry Perspectives
    • Featured Vendors
  • Other Content
    • Back
    • IoT World 2020 News
    • Q&As
    • Case Studies
    • Features
    • How-to
    • Opinion
    • Video / Podcasts
  • More
    • Back
    • About Us
    • Contact
    • Advertise
    • Strategic Partners
  • IOT World Events
    • Back
    • Internet of Things World: San Jose
    • IoT World 2020 News
  • newsletter
  • IIoT
  • Cities
  • Energy
  • Homes/Buildings
  • Transportation/Logistics
  • Connected Health Care
  • Retail
  • AI
  • Architecture
  • Engineering/Development
  • Security
ioti.com

Embedded Computing


Thinkstock

Training and Development on the Mechanism of Metal Gears. in the design of information related to business

Turning to Rust Development For IoT Performance

If you haven’t heard of it, Rust is an up-and-coming programming language that provides secure application performance for device-run code.
  • Written by Dan Sullivan
  • 17th February 2021

As they build IoT applications, developers have many programming languages at their disposal.

Some popular options are Java, C, JavaScript and Python. C and C++ are especially popular for device-run code. Another, less popular, option today is Rust, but that is likely to change.

Let’s start with the characteristics of any programming language that makes it a good candidate for IoT development.

Application performance is a top priority, especially for code running on devices with minimal CPU and memory resources.  Developers can develop highly performant applications with C and C++, but at a cost. C and C++ developers know all too well the risks and challenges of dealing with bugs related to memory management such as unhandled null pointers and failing to de-allocate unused memory.

Another component of a good IoT development language is developer productivity. Productivity is often a byproduct of skills, tools, and programming language abstractions and patterns. Popular programming languages are well supported by development environments. Additionally, developer acquire build tools and skills with time and experience; as a result, language abstractions and patterns are a key variable with regards to developer productivity.

For those looking for both application performance and developer productivity, Rust is an increasingly popular option.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>

Register for IoT World 2021 here.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Rust Development for IoT Performance and Productivity

Rust is an open source systems programming language developed by the Mozilla Foundation. It’s designed to be memory safe, fast, and with the ability to easily support concurrency. The syntax of Rust is superficially similar to C and C++, but it also captures some of the benefits of functional languages like Haskel by providing abstractions such as iterators and closures.

Some noteworthy traits of Rust are that it guarantees memory safety and doesn’t use garbage collection (a form of automatic it doesn’t allow dangling pointers or null pointers, and it uses the concept of a lifetime to track when memory is allocated, when it’s deallocated, and who can access it.

It’s important to note that Rust uses static types as well as type states for modeling assertions about the state of computation before and after a statement. With a static system, the compiler can apply constraints to avoid bugs that can occur in dynamically typed languages. In addition, Rust provides a type system called traits.

Rust offers several advantages over other systems programming languages. Its compiler is designed to catch subtle bugs that can afflict low-level and concurrency code, and Cargo, its dependency manager and build tool, streamlines compiling, testing and documenting code.

As noted previously, Rust is designed for application performance as well as speed of development. An example of this is demonstrated in abstractions like iterators that can perform as well as equivalent custom code.

Rust also brings a broad set of abstractions to low-level, high-performance programming, including vectors and hash maps. Although Rust is not a functional programming language, it has abstractions like closures and iterators available when functional programming approaches are called for. An example of a low-level feature, Rust allows programmers to decide when to store data on the stack or in heap storage.

Rust Development Community Offers Best Practices

A discussion of the advantages of Rust would be incomplete without acknowledging its community. Various resources have been made available by developers and users, such as documentation, a free book, and cookbooks freely available to developers who work with bare metal, microcontrollers, and IoT devices.

Rust offers developers speed, safety, high level abstractions and an efficient development environment. With all the different edges it has over alternative languages, it’s not too surprising Rust is gaining traction in systems programming, scientific programming, and other application areas including IoT applications.

In the next article in this series, we will explore the Rust ecosystem, packages for IoT and how to architect an application.

 

 

Tags: Developers Embedded Computing Technologies

Related


  • Edge computing
    Emerging Edge Cloud Architecture Continues to Shake Out
    Edge cloud architecture is going to bring about new capabilities. But as data-intensive functionality comes together at the edge, technologies need to develop, then converge, first.
  • Training and Development on the Mechanism of Metal Gears. in the design of information related to business
    How to Run Docker on IoT Devices
    Here’s how to run Docker on IoT devices, which enables you to bring container-based app development to the edge.
  • Jetting to the Stars Using Containers for Development
    The Department of Defense develops for space travel, bombers and jets. It turned to containers for development to build and battle-test its mission-critical systems.
  • ‘Edge NLP’ Is About Doing More With Less
    Digital assistants, enabled by natural language processing can execute a range of functions. But 'edge NLP,' has little use when embedded in devices with limited resources and connectivity.

Leave a comment Cancel reply

-or-

Log in with your IoT World Today account

Alternatively, post a comment by completing the form below:

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Content

  • IoT in Utilities Market Brings Resilience in Wake of COVID-19 Pressure
  • State of Manufacturing Technology Report
  • Modernizing the Manufacturing Industry with MQTT
  • Enabling the Connected Car with MQTT and HiveMQ

News

View all

Private LTE Market Projected to Grow to $13 Billion

12th January 2021

IoT World Announces 2021 IoT World Advisory Board

9th December 2020

White Papers

View all

The eSIM Cookbook – Towards the Next Generation of Connected Devices

22nd February 2021

eSIM Delivers Greater Freedom for OEMs – by Beecham Research and Truphone

22nd February 2021

Special Reports

View all

Cybersecurity Protection Increasingly Depends on Machine Learning

28th October 2020

Webinars

View all

Weber’s Journey: How a Top Grill Maker Serves Up Connected Cooking

25th February 2021

From Insights to Action: Best Practices for Implementing Connected Device Security

15th December 2020

Galleries

View all

Top IoT Trends to Watch in 2020

26th January 2020

Five of the Most Promising Digital Health Technologies

14th January 2020

Industry Perspectives

View all

IoT Spending Holds Firm — Tempered by Dose of ‘IoT Pragmatism’

1st December 2020

The Great IoT Connectivity Lockdown

11th May 2020

Events

View all

IoT at the Edge

17th March 2021

Embedded IoT World 2021

28th April 2021 - 29th April 2021

IoT World 2021

2nd November 2021 - 4th November 2021

Twitter

IoTWorldToday, IoTWorldSeries

#Smartbuilding technology lays the foundation for #energyefficiency efforts but also new COVID-19 goals, such as… twitter.com/i/web/status/1…

2nd March 2021
IoTWorldToday, IoTWorldSeries

IoT Remote Monitoring Helps Enterprises Traverse COVID-19 and Beyond dlvr.it/RtZ3K5 https://t.co/owJXYf1gkO

26th February 2021
IoTWorldToday, IoTWorldSeries

Securing the Industrial Internet of Things dlvr.it/RtYfYk https://t.co/khUn79dvQD

26th February 2021
IoTWorldToday, IoTWorldSeries

📢 Announcing #EIOTWORLD sponsor, @BluetoothSIG — the global standard for simple, secure wireless connections. ➕ Le… twitter.com/i/web/status/1…

26th February 2021
IoTWorldToday, IoTWorldSeries

How IoT Devices Can Enhance the Connected Customer Experience dlvr.it/RtPcvS

24th February 2021
IoTWorldToday, IoTWorldSeries

🤝 Meet #EIOTWORLD speaker Ingo Feldner, Project Lead for Virtual #Hardware Platforms at @RobertBoschGmbH 📅 Join hi… twitter.com/i/web/status/1…

24th February 2021
IoTWorldToday, IoTWorldSeries

Developing IoT Applications with Rust: Using a Rust Development Environment dlvr.it/RtNqrk https://t.co/wOmnoz2UVT

24th February 2021
IoTWorldToday, IoTWorldSeries

Chip-Enabled Edge AI Drives Next-Gen IoT dlvr.it/RtKcMQ https://t.co/dLjBzE6Qei

23rd February 2021

Newsletter

Sign up for IoT World Today newsletters: vertical industry coverage on Tuesdays and horizontal tech coverage on Thursdays.

Special Reports

Our Special Reports take an in-depth look at key topics within the IoT space. Download our latest reports.

Business Resources

Find the latest white papers and other resources from selected vendors.

Media Kit and Advertising

Want to reach our audience? Access our media kit.

DISCOVER MORE FROM INFORMA TECH

  • IoT World Series
  • Channel Futures
  • RISC-V
  • Dark Reading
  • ITPro Today
  • Web Hosting Talk

WORKING WITH US

  • Contact
  • About Us
  • Advertise
  • Login/Register

FOLLOW IoT World Today ON SOCIAL

  • Privacy
  • CCPA: “Do Not Sell My Data”
  • Cookies Policy
  • Terms
Copyright © 2021 Informa PLC. Informa PLC is registered in England and Wales with company number 8860726 whose registered and Head office is 5 Howick Place, London, SW1P 1WG.
This website uses cookies, including third party ones, to allow for analysis of how people use our website in order to improve your experience and our services. By continuing to use our website, you agree to the use of such cookies. Click here for more information on our Cookie Policy and Privacy Policy.
X