https://www.iotworldtoday.com/wp-content/themes/ioti_child/assets/images/logo/mobile-logo.png
  • Home
  • News
    • Back
    • Roundups
  • Strategy
  • Special Reports
  • Business Resources
    • Back
    • Webinars
    • White Papers
    • Industry Perspectives
    • Featured Vendors
  • Other Content
    • Back
    • Q&As
    • Case Studies
    • Features
    • How-to
    • Opinion
    • Podcasts
    • Strategic Partners
    • Latest videos
  • More
    • Back
    • About Us
    • Contact
    • Advertise
    • Editorial Submissions
  • Events
    • Back
    • Embedded IoT World (Part of DesignCon) 2022
Iot World Today
  • NEWSLETTER
  • Home
  • News
    • Back
    • Roundups
  • Strategy
  • Special Reports
  • Business Resources
    • Back
    • Webinars
    • White Papers
    • Industry Perspectives
    • Featured Vendors
  • Other Content
    • Back
    • Q&As
    • Case Studies
    • Features
    • How-to
    • Opinion
    • Podcasts
    • Strategic Partners
    • Latest videos
  • More
    • Back
    • About Us
    • Contact
    • Advertise
    • Editorial Submissions
  • Events
    • Back
    • Embedded IoT World (Part of DesignCon) 2022
  • newsletter
  • IIoT
  • Cities
  • Energy
  • Homes/Buildings
  • Transportation/Logistics
  • Connected Health Care
  • Retail
  • AI
  • Metaverse
  • 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


  • IoT and Drones Automate Field Operations
    IoT-enabled drone technology has brought cost and operational efficiency to various industries.
  • Training and Development on the Mechanism of Metal Gears. in the design of information related to business
    Using Low-Code and No-Code in IoT App Development
    Developing applications for the Internet of Things is no easy feat. Connected things typically involve the integration of a disparate mix of technologies, including back-end systems, IoT endpoints, other platform and data sources. Additionally, companies that aim to build Internet of Things( IoT) applications need developers with specialized skills that allow them to configure and […]
  • Semiconductor Industry Growth Spikes, But Supply Remains Constrained
    Demand for semiconductors is white-hot as remote work and the appetite for consumer electronics continue unabated. But supply chain dysfunction could threaten semiconductor industry growth.
  • IoT security
    IoT Device Security at the Edge Poses Unique Challenges
    IoT device security at the edge is running up against the limits of traditional data center methods to secure edge devices.

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

  • Jetting to the Stars Using Containers for Development
  • ‘Edge NLP’ Is About Doing More With Less
  • Network Connectivity Paves Way, with Caveats, for IoT Adoption
  • 5G in Manufacturing Shows Promise, but Rollouts Are Incremental

Roundups

View all

IoT Product Roundup: PTC, Nokia, Arm and More

19th May 2022

IoT Deals, Partnerships Roundup: Intel, Nauto, Helium and more

14th May 2022

IoT Product Roundup: Amazon, Synaptics, Urban Control and More

27th April 2022

White Papers

View all

The Role of Manufacturing Technology in Continuous Improvement Ebook

6th April 2022

IIoT Platform Trends for Manufacturing in 2022

6th April 2022

Latest Videos

View all
Dylan Kennedy of EMQ

Embedded IoT World 2022: Dylan Kennedy of EMQ

Dylan Kennedy, EMQ’s VP of global operations, sat down with Chuck Martin at Embedded IoT World 2022.

Embedded IoT World 2022: Omdia’s Sang Oh Talks Vehicle Chip Shortage

Omdia’s automotive semiconductor analyst sits down with Chuck Martin at this year’s event

E-books

View all

How Remote Access Helps Enterprises Improve IT Service and Employee Satisfaction

12th January 2022

An Integrated Approach to IoT Security

6th November 2020

Webinars

View all

Rethinking the Database in the IoT Era

18th May 2022

Jumpstarting Industrial IoT solutions with an edge data management platform

12th May 2022

AI led Digital Transformation of Manufacturing: Time is NOW

9th December 2021

Special Reports

View all

Omdia’s Smart Home Market Dynamics Report

7th January 2022

Cybersecurity Protection Increasingly Depends on Machine Learning

28th October 2020

IoT Security Best Practices for Industry and Enterprise

20th October 2020

Twitter

IoTWorldToday, IoTWorldSeries

Europe’s First Automated Gas Station Convenience Store dlvr.it/SR45J9 https://t.co/eDJDJ7CxkI

25th May 2022
IoTWorldToday, IoTWorldSeries

Zero-Emission, Autonomous Cargo Ship Under Development dlvr.it/SR3xgb https://t.co/3oU7CrKWkW

25th May 2022
IoTWorldToday, IoTWorldSeries

Hannover Messe 2022: 5 Key Themes at This Year’s Show dlvr.it/SR3wtW https://t.co/j0fQUiU2LW

25th May 2022
IoTWorldToday, IoTWorldSeries

Can AI Help Stop Mass Shootings? dlvr.it/SR3tqK https://t.co/VxPBdajWA3

25th May 2022
IoTWorldToday, IoTWorldSeries

China has revealed an autonomous marine drone carrier dlvr.it/SR3qXs https://t.co/yMiiqeMNrZ

25th May 2022
IoTWorldToday, IoTWorldSeries

ISQ’s #UAV inspection drones will be on display at this year’s @hannover_messe dlvr.it/SR35dg https://t.co/U6QOQtMbGw

25th May 2022
IoTWorldToday, IoTWorldSeries

👀 Looking to integrate #AI into your manufacturing process? Explore how #manufacturers can begin the process of… twitter.com/i/web/status/1…

25th May 2022
IoTWorldToday, IoTWorldSeries

The U.S. Army is getting a 5G boost for #AR #VR capabilities from #5G network provider @OceusNetworks.… twitter.com/i/web/status/1…

24th May 2022

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 © 2022 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