On Saturday, 2 August 2025 at 05:27:04 UTC, Salih Dincer wrote:
On Monday, 28 July 2025 at 20:02:41 UTC, Dmitry Olshansky wrote:
And ofc I forgot the obligatory link:
https://github.com/DmitryOlshansky/photon
Undoubtedly, Photon is a good piece of software, because the
passing years have taught us a lot. Especially when you
mentioned its nature, you said that Photon’s nature is dual. I
sense that you have an interest in physics, and therefore in
science, and I feel the names were not chosen by coincidence.
I have BSc in applied math and physics. Indeed the name was
chosen very specifically. Unfortunately Ali Baba written their
own fiber scheduling runtime called photon. I’m not sure if I was
the first but ofc now living in the shadow of the big tech.
We (my colleagues and I) use loops in electronics as well.
After all, isn’t life itself a loop? I’d like to benefit from
Photon for microcontrollers too. Let me give an example: when
branching from the main loop to a subroutine—which can even be
another microcontroller on a separate PCB—you momentarily step
away from other tasks, forced by me to do so. In a way, when
one microcontroller sleeps, the other wakes up and practically
takes over the operations. It strongly resembles a relay race.
You also seem to be doing things similar to what we do in
electronics. After all, threads are almost like independent
circuits.
Cooperative multitasking could be indeed spread across a fleet of
MCUs, it is tricky but could provide the benefit of simple mental
model while programming such a board.
Wishing you success...
There is a lot to tackle still.
SDB@79