4 ms·
I'd like to do this, but with Lua. Anyone wanna join?
by mmjaa 8y ago
I'd like to do this, but with Lua. Anyone wanna join?
- memsom 8y agoThe advantage of Object Pascal is that it is compiled to binary. Lua is generally interpreted. I guess you could implement Lua execution on top of this - so you could make it happen. Depends if the Free Pascal compiler can link in the Lua interpreter for this platform, and what level of integration Lua has in to the Object Pascal language.
- wink 8y agoI don't see a problem with that, when you write your core logic in lua and provide a binary "runner" (lua bindings or plain lua executable). Your point to get lua to run there in the first place stands, of course.
- strkek 8y agoIf you begin this, please leave a GitHub link so I can follow it :) EDIT: Or a link to the repository, in case it's not hosted on GitHub.
- dividuum 8y agoNot exactly for the same use case, but I created info-beamer hosted (https://info-beamer.com https://info-beamer.com). Its a digital signage platform, so more for visual results than interfacing with hardware, but it's fully programmable in Lua. You can see the Lua API here: https://info-beamer.com/doc/info-beamer https://info-beamer.com/doc/info-beamer. On top of that info-beamer hosted provides a complete operating system that can trivially installed on a Pi (https://info-beamer.com/doc/installing-hosted https://info-beamer.com/doc/installing-hosted) and you can configure and run your code on any number of Pis and control everything through a dashboard or API (https://info-beamer.com/doc/api https://info-beamer.com/doc/api). As an example of what a full "package" looks like, have a look at this minimal example: https://github.com/info-beamer/package-cec-test https://github.com/info-beamer/package-cec-test. Everything is fully programmable and you can even 'git push' code to the system. Let me know if you have any questions.
- lovepi 8y agoHey there! I know this is unrelated but I have been trying to learn about programming embedded systems mainly for IOT. I started with pi and right now I want to create minimum O.S for my pi.one of the challenges i have faced is using updating without corrupting or bricking device. I have managed to get and understand abit about SWUpdate which is build for this . But I am totally lost when it comes to which O.S I should start with. Yocto vs buildroot. Also I would love to hear your views on Ultibo.
- dividuum 8y agoI don't use yocto or buildroot, so I can't really comment on either. I also put together my own updating mechanism which uses A/B booting (so it boots from partition A, updates into B, makes that active and then tries to boot into B. Once successful, it switch A and B and the cycle starts again). It's deeply integrated into the rest of the system (like the success condition of updates and timeouts waiting for that condition). The fear of accidentally bricking all live devices motivated me to build something I truly understand and is minimal (it's core is at most 200 lines of python). Ultibo seems pretty nice, although I only read a bit out it and didn't play around with it. I'm a big fan of small systems and fondly remember writing Pascal back in the Borland Pascal days.