IoT and coding: The most important IoT programming languages

IoT and coding: The most important IoT programming languages

programming-languages-for-iot

The Internet of Things (IoT) is an entirely new platform for developers and engineers, but one thing should remain consistent as we move into this new world, the programming languages. From our limited time checking out IoT projects, developers seem to be utilizing the same languages for their projects, while also integrating some specific changes for IoT.

What languages are the best for IoT?

From speaking to industry folks that have worked on IoT devices and systems before, C, C++, and Java are the most popular choices for general purpose projects. C is one of the first programming languages and is popular for low-level projects, C++ expands on the capabilities of C. There’s another language called C#, Microsoft’s own higher level version, but not many developers use it. Better explanations for the differences between the three C’s can be found here, here, and here.

C is considered the most useful for IoT devices because it doesn’t require a lot of processing power. C++ is an alternative if the IoT device requires more complex tasks, think thermostats and smart toasters rather than devices that detect moisture or heat. Java is another general purpose language that is useful for IoT devices that require a lot of interfacing and calculation, since it is more portable than C++, lightweight (for a high level language), and more commonly taught.

See Also: Why open source is growing – and dying – at the same time

Python is another programming language frequently mentioned by developers. It is more flexible than C or Java, which have a lot of requirements and rules built up over the decades. Python has become a valuable resource for Web application developers, but some don’t see it transitioning to IoT anytime soon. JavaScript is another popular Web application language, but developers see Python as superior for IoT projects, due to its support for embedded programming.

Several blogs we viewed mention Go and Rust, concurrent programming languages developed by Google and Mozilla, respectively. Go provides a way for devices to talk to one another and receive information simultaneously, but is plagued with errors and the threat of data loss. Rust is more stable, but does not have the device sharing functionality nailed down as well as Go.

Other programming languages are more specific

If you don’t want to go with C, there are some other low-level programming languages that may suit your needs. B# is one of those, a language built from the ground up for very low power devices. It is similar to C#, but stripped of the hand holding and fitted with real-time control functions.

Assembler is the king of low-level languages, capable of running on just about anything. The downside is there’s no hand holding at all, if you code doesn’t work, too bad, if a new processor doesn’t accept Assembler code, too bad.

Google and Nest’s language, Weave, could become popular if it receives more support from developers inside and outside Mountain View. Google also has Brillo, an all encompassing platform for IoT devices, which could promote Weave use if it becomes popular. Apple is a contender with its open source language Swift, currently marketed at iOS and Mac OS developers.

For now, IoT developers should look at the programming languages we have used for decades, before venturing into the niche and new.

The post IoT and coding: The most important IoT programming languages appeared first on ReadWrite.

ReadWrite

(34)