News for hackers. Stuff that matters.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by gaudat on Wednesday March 22, 2023 @10:18AM (#35261384)
RTOSes are developed to solve this exact problem of concurrency. Try Zephyr, ThreadX (from MS) or FreeRTOS (from Amazon) or whichever OS your microcontroller vendor supports. It will be eye opening, and you get to learn to write safe code in C with synchronization primitives just like our ancestors.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by HeyLaughingBoy on Wednesday March 22, 2023 @10:32AM (#35261628)
ESP32 running with Arduino framework comes with FreeRTOS out of the box.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by voakbasda on Wednesday March 22, 2023 @12:06PM (#35263189)
Amazon did not create FreeRTOS; they simply took over maintenance a few years back. I didn’t know that happened until I fact-checked your comment, but it is enough to make me never want to use it ever again. And that makes me very sad.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by kevin_thibedeau on Wednesday March 22, 2023 @12:49PM (#35263787)
They improved the licensing to MIT. The pre-acquisition license was "GPL" but it had a noncompliant restriction prohibiting comparative benchmarks. There have also been useful improvements to the codebase. Amazon is a net positive in this case.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by bsder on Wednesday March 22, 2023 @06:02PM (#35267672)
FreeRTOS is now MIT licensed, and the primary developer is actually getting paid to work on FreeRTOS.

This can only improve FreeRTOS and the embedded ecosystem in general.

And, if Amazon becomes a problem, people can fork and bail.

Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by dylan604 on Wednesday March 22, 2023 @12:44PM (#35263729)
>just like our ancestors.

why am I laughing at how much this stings? we're not that old, damnit!

Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by kjs3 on Wednesday March 22, 2023 @12:59PM (#35263932)
I saw a tee shirt the other day that said "It sucks to be the same age as old people". We are that old. :-)
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by steve_adams_86 on Wednesday March 22, 2023 @10:16PM (#35269695)
Ha, I'd never seen FreeRTOS – thanks! It looks awesome.