Having professionally(!) been programming for a while now, I've run into this situation where I'm actually putting quite precise requirements on the tools I use to develop, both professionally (C++) and at home (CoffeeScript with NodeJS). Thus, after having seen some of the amazing benefits of big clunky IDE's for C++ (keypress to go to declaration/implementation) as well as some of its atrocious drawbacks (what slow, badly designed monolithic beasts of programs they are - but you have to use them with big C++ codebases because of the benefits), I have been hunting for good features for my home web development setup.static pthread_t clux_thread;
int main() {
//...ignored 5,000,000 lines here
pthread_create(&clux;_bg_thread, NULL, Worker::clux, (void*)new Workspace());
//...ignored 50,000 lines here
}
//worker_clux.cpp
static pthread_t clux_bg_thread;
Changeset * clux_work(BACON * bacon, METAL * metal) {
metal->listen();
Code * code = new Code();
while (true) {
(stash.push(*bacon)) ? ++code_quality : code_quality--;
Changeset * chng = code->commit(new CIMsg(code));
if (code->merge_and_build(&clux;_bg_thread)) { //transactional. switches to bg thread while build blocks
code->push();
return chng;
}
code->rollback();
code->append(new Code(code_quality));
}
}
void * Worker::clux(void * workspace) {
Workspace place = workspace;
workspace->init('ubuntu');
while(workspace->activate()) {
METAL metal = (conservative) ? clementine('/home/clux/Music', 'Opeth') : chrome('grooveshark.com', metal);
BACON * bacon = (BACON*)falloc(2*sizeof(BaconContainer));
while(bacon->in_fridge() && metal->find())
myProduct->development_branch->document(clux_work(bacon, &metal;));
if (!leaving_time) //above loop exited early => no network or food
marioKart->advertise()->play();
int hours = (day_num%7 >= 5) ? 56 : 16;
workspace->deactivate();
sleep(hours*3600*1000);
}
exit(-1); //require manual startup
}
void * Slacker::clux(void * workspace) {
while(true) {
(internet && !num_bugs) ? internet->browse() : clux::ponder();
if (irc->uptime()) (mood=='meh') ? irc->troll() : irc->chat();
if (marioKart->advertise()) marioKart->play();
}
}
Posted on May 26th 2011, 10:29 by clux :: 0 Comments