Day 8 – Ice Castle and Santa (by sarah)
This is day 8's painting 🙂
Jean has discovered that she can use the concept of Father Christmas to cajole her little sister into helping with bedroom tidying - they still end up arguing.
This is day 8's painting 🙂
Jean has discovered that she can use the concept of Father Christmas to cajole her little sister into helping with bedroom tidying - they still end up arguing.
For a while, I've been mulling the idea of writing zmiku, a daemon that can be programmed to automatically control various kinds of systems. My application is home automation, and maybe automating the management of servers (restarting and failing over services, dealing with overload situations, gracefully handling disks being full, that sort of thing); but it occurs to me that the same basic problem also applies to controlling autonomous robots such as space probes, industrial processes, and that sort of thing. A good solution to all these problems in one would be quite useful!
You might say that this is a non-problem; normally, people would just write programs from scratch to control these kinds of things, sitting in a loop reading inputs and updating state variables and choosing what output actions to generate, but the complexity of the resulting program tends to increase rapidly as the problem complexity rises.
Rather than traditional programming languages, a better notation for such a reactive system is a state machine. The Wikipedia articles on a UML state machine diagram gives a good introduction to one version of this notation, including some discussion of ways to extend the most basic version in ways that increase its expressiveness and modularity.
I'd like to base zmiku on a textual version of the UML statecharts, but today I've had a horrible stomach ache, so been unable to do much more than lie around and think about stuff, and what my mind settled on was the interesting question of how to integrate state machines with goal-based programming, which is also useful for controlling complex systems. In a goal-based system, various goals are known to the system, each with a priority; for instance, a flying robot may have a destination demanded by the user, which the navigation system tries to fly the robot towards; but a collision-avoidance system may sometimes override the navigation system when it detect that a collision will result otherwise, with a higher-priority goal for the steering system. And when the collision has been avoided, that goal will disappear, and the earlier goal of getting to the destination will take over once more. And if the robot's batteries are running low, then flying towards a charging place (or a place where the solar panels are in sunlight) might be a higher priority than the user's chosen destination, but not a higher priority than avoiding collisions. And so on.
So I came up with a model for integrating the two, using the "scoreboard" model from artificial intelligence; giving a system a shared global state between a number of concurrent subsystems. And this blog post is the result of me writing up my scribbled notes. I'm still in a lot of stomach pain, so I'm afraid it's going to be a bit rambly 🙂
This is day 7 of Advent - The Snow Dragon - I am desperately trying to write a story for this little dude as well - of course that story has ended up as a Horace the House Dragon Story which is not right for this picture so there will have to be another story at some point!
Al is now down with the man flu we've been suffering 🙁
It is day 6 of Advent and so here is my water colour - say hello to Mr Snowman. Alaric likes this one though I kind of don't!
And to keep with the chill of winter, here is Jean's song In The Winters Heart.
Here is day fives painting showing an ice skating scene 🙂
Jean has been making crowns with rubies on 😀 I was a fail mum and failed to finish yesterdays advent wrapping due to sore hands but hope to do it and a few extra days today whilst they are both out!
And Joy-Amy's vid on increasing awareness of Fibro - a chronic pain condition.