(no subject)
once upon a time, i was a software engineer / researcher type. i miss those days.
it's been a while.
in no particular order:
been looking at buying a condo, with mediocre levels of success so far. more on that when i get time.
the problem boils down to this: boost's statechart stuff gives a mechanism for encoding a statemachine in a rather clever, very strongly typed way. you can get notifications that you entered a state (by a constructor call) and that you've exited the state (via a destructor call), but there's no obvious way to say "while i'm in this state, perform these actions in a loop". i mostly grok why this is the case — they want statechart to do one thing well — but i'm a little disappointed because it seems like pretty obvious capability to have left out.
there's a reasonably simple way to make this work: create an interface that exposes whatever state dependent services you need. make each state implement the interface in addition to all the statechart stuff. then do something like:
while(...) {
StateFunctor& lFunctor = reinterpret_cast<functor&>(lStateMachine.g et_current_state());
lFunctor(lEventQueue);
if( !lEventQueue.empty() ) {
lStateMachine.process_event( lEventQueue.front() );
lEventQueue.pop();
}
}
more python adventures: it turns out that a sane editor makes the white space nazism less problematic. if it weren't for the silly amounts of time i've spent reading api docs (btw, scipy: your documentation sucks), i'd actually seriously consider python for more actual work projects.
as it is, i'm working on embedding a python interpreter into a c++ program, partly as a way of testing an idea, and partly because it's about the most stimulating thing i've had to think about in quite a while (at least in terms of work stuff).
i've spent a lot of time working through state space stuff and doing a ton of blackboard algebra. i'm finally beginning to put all the bits and pieces that i had been missing into place. i should have spent more time this weekend doing more homework (and i will, after supper), but i'm feeling better about where i am with that class in general. i need to reread my notes and get studied up for my midterm which is coming up real soon now (tm).
spent a large chunk of today doing filing. i still don't quite believe how much crap gets sent to me. on the plus side, my old shredder died, so i picked up a new industrial strength one that swallows credit card spam whole. i am deeply pleased by this.