I've absolutely seen people from well-known companies and consulting groups sitting in a conference talk hacking on their work projects. Very frequently. For the past decade, easily. And as recently as last week, at RubyConf.
I was mentally distinguishing between "code that gets written at a conference because it's a conference" and "code that gets written at a conference because the person is bored/on a deadline/unable to persuade their employer that they need to have time to learn".
Depends on the conference, I suppose, but most I've been to include a healthy dose of that.
Certainly writing production code for work is rare, but for fun? Lots of it gets written there.