user4162: I want to write own GPU miner, but I can't find any simple solution (cgminer and RPC miner are big projects with many useless to me functions). I need the sources of only one GPU miner with long pooling, nothing more.

user2306: This is the simplest miner I know of:

pyminer
This is a 'getwork' CPU mining client for bitcoin.
It is pure-python, and therefore very, very slow.  The purpose is to
  provide a reference implementation of a miner, for study.

This doesn't support long polling, but there's a spec for that here.
:)

4162: <p>I want to write own GPU miner, but I can't find any simple solution (cgminer and RPC miner are big projects with many useless to me functions). I need the sources of only one GPU miner with long pooling, nothing more.</p>
 2306: <p><a href="https://github.com/jgarzik/pyminer" rel="nofollow">This is the simplest miner I know of:</a></p>

<blockquote>
  <p>pyminer</p>
  
  <p>This is a 'getwork' CPU mining client for bitcoin.</p>
  
  <p>It is pure-python, and therefore very, very slow.  The purpose is to
  provide a reference implementation of a miner, for study.</p>
</blockquote>

<p>This doesn't support long polling, but there's a spec for that <a href="https://deepbit.net/longpolling.php" rel="nofollow">here</a>.</p>

<p><a href="http://xkcd.com/541/" rel="nofollow">:)</a></p>
