News for hackers. Stuff that matters.

Which language to choose? Wanna develop an IoT solution

Hi mates! I am going to develop an IoT solution, maybe a framework? Anyway still in design. The problem is which language to choose, seems Go would be a better choice for its fast and high performance. Any guidance would be greatly appreciated!
( 11 comments | 5 points | on HN )
Re:Which language to choose? Wanna develop an IoT solution by beardyw on Saturday October 08, 2022 @11:30AM (#33133129)
I don't see how you can get an answer without saying at least what hardware you are planning to use. Generally the cheaper and more efficient it is the less choices you will have. Or is this an Iot hub?
Re:Which language to choose? Wanna develop an IoT solution by rad_gruchalski on Saturday October 08, 2022 @11:33AM (#33133146)
Pick the language you’re most comfortable with. The one you feel good using.
Re:Which language to choose? Wanna develop an IoT solution by Arubis on Saturday October 08, 2022 @10:32AM (#33132595)
Is this for learning or for money?

If you’re learning, check out Elixir Nerves: https://www.nerves-project.org/ Elixir’s a fun and friendly ecosystem, and Nerves makes embedded development really smooth.

If you’re starting a business, choose something you already know; barring that, get as close as possible; if you’re non-technical, choose something easy to hire for.

Re:Which language to choose? Wanna develop an IoT solution by mqus on Saturday October 08, 2022 @10:38AM (#33132651)
you know, "IoT Solution" is not at all specific. For good guidance, you need to give a few more details, like where will this "solution" run (on the "thing" side or on the server side, on a smart hub, etc?). What goals do you have? how should this thing look, architecture wise?
Re:Which language to choose? Wanna develop an IoT solution by hamdouni on Saturday October 08, 2022 @11:00AM (#33132852)
Go is relatively easy to learn and https://gobot.io/ is a good way to start.
Re:Which language to choose? Wanna develop an IoT solution by bruth on Saturday October 08, 2022 @10:43AM (#33132694)
Re:Which language to choose? Wanna develop an IoT solution by ShifuFramework on Saturday October 08, 2022 @10:00AM (#33132328)
Yeah obviously it's efficient, so I used it to establish my IoT framework. I have to say it is working perfectly, maybe you can have a look and make your own choice. Check it out here: https://github.com/Edgenesis/shifu
Re:Which language to choose? Wanna develop an IoT solution by nanomonkey on Saturday October 08, 2022 @12:23PM (#33133598)
If you're referring to endpoint hardware computing devices using some microcontroller similar to the esp32, you should definitely learn C. From there you can tack on a low level scripting language like lua or ulisp to compliment the low level stuff that you'll be writing. This will give you the best performance and understanding of the low level hardware, not to mention it's what the majority of libraries and tutorials on the subject will be written in.

If you're referring to something else, like a hub, you may want to list out your requirements and familiarity. C is still a good choice, but Go/Python/NodeJs what have you have all been used successfully for similar adventures.

Re:Which language to choose? Wanna develop an IoT solution by justanorherhack on Saturday October 08, 2022 @12:43PM (#33133802)
Go. I’m an consultant and have a golang iot platform that does ingest transforms rules alarms. We have 10k devices and use Scylla and it just works.
Re:Which language to choose? Wanna develop an IoT solution by Const-me on Saturday October 08, 2022 @01:02PM (#33133972)
If the target device is based on a microcontroller, I think C is the only reasonable choice, due to the ecosystem.

If the target device is an embedded Linux computer, you can choose pretty much any language you’re comfortable with. The golang is probably fine. Personally, I have good experience making embedded Linux software with C#. The performance on both ARMv7 and ARM64 CPUs is pretty good, comparable to compiled languages. The only downside is the runtime size. The current LTS version is .NET 6, the ARM64 Linux runtime takes 75MB on disk, or even 100MB if you want asp.net for a web interface of your device. Not all devices have gigabytes of flash memory.

Re:Which language to choose? Wanna develop an IoT solution by Matthias247 on Saturday October 08, 2022 @01:36PM (#33134276)
You don't really mention which part of an IoT solution? An actual device in people's homes? On factory floors? Some kind of router or edge gateway? Backend components?

The component itself will already limit your amount of reasonable choices for a language or framework. You probably neither want to Java on a microcontroller with 256kB RAM, nor C on a backend.