<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: C# vs C++ Performance Part II</title>
	<link>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/</link>
	<description>Things about life - Some financial, poker and other code</description>
	<pubDate>Thu, 28 Aug 2008 09:55:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: bokeh</title>
		<link>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-866</link>
		<dc:creator>bokeh</dc:creator>
		<pubDate>Fri, 03 Aug 2007 16:03:25 +0000</pubDate>
		<guid>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-866</guid>
		<description>Hi all,

I have written a 5, 6 and 7 card evaluator in PHP (a language certainly not known for it's speed). It is the simplest evaluator I have ever seen and is made up of about 10 lines of very basic code. It takes 16 microseconds (not milliseconds) to score a 7 card hand.

I have used it in my online Texas Hold'em probability calculator which can be seen at http://texas.holdem.poker.probability.cal.culator.org/

My guess is in C++ this evaluator would beat any other for speed, but I don't know C++.

I'd love to get in touch with anyone interested in the code or interested in porting it to a CLI in C++.

Anyone interested can email me at http://bokehman.com/email</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I have written a 5, 6 and 7 card evaluator in PHP (a language certainly not known for it&#8217;s speed). It is the simplest evaluator I have ever seen and is made up of about 10 lines of very basic code. It takes 16 microseconds (not milliseconds) to score a 7 card hand.</p>
<p>I have used it in my online Texas Hold&#8217;em probability calculator which can be seen at <a href="http://texas.holdem.poker.probability.cal.culator.org/" rel="nofollow">http://texas.holdem.poker.probability.cal.culator.org/</a></p>
<p>My guess is in C++ this evaluator would beat any other for speed, but I don&#8217;t know C++.</p>
<p>I&#8217;d love to get in touch with anyone interested in the code or interested in porting it to a CLI in C++.</p>
<p>Anyone interested can email me at <a href="http://bokehman.com/email" rel="nofollow">http://bokehman.com/email</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Benson</title>
		<link>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-361</link>
		<dc:creator>Mike Benson</dc:creator>
		<pubDate>Mon, 23 Apr 2007 15:48:42 +0000</pubDate>
		<guid>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-361</guid>
		<description>Ron, what I did was created a Java Bot that loaded a C++ dll.  The C++ then interoped into .NET.  Quite a pain to do but it worked.  On occasion Poker Academy would spit out an error on loading the bot but never had an error during running.

Here is the Java code   &lt;a href="http://thebensons.org/BlogImages/PAJava.rar"&gt;PAJava.rar&lt;/a&gt; that loaded my C++ interop dll.  All my bots were written in C# so they were loaded by my C++ dll.  My bots maintained their own table state etc... that allowed me to play the game with less than perfect information.  So all my Java bot had to do was pass the information off to C++.

&lt;a href="http://thebensons.org/BlogImages/PAJava.rar" /&gt;</description>
		<content:encoded><![CDATA[<p>Ron, what I did was created a Java Bot that loaded a C++ dll.  The C++ then interoped into .NET.  Quite a pain to do but it worked.  On occasion Poker Academy would spit out an error on loading the bot but never had an error during running.</p>
<p>Here is the Java code   <a href="http://thebensons.org/BlogImages/PAJava.rar">PAJava.rar</a> that loaded my C++ interop dll.  All my bots were written in C# so they were loaded by my C++ dll.  My bots maintained their own table state etc&#8230; that allowed me to play the game with less than perfect information.  So all my Java bot had to do was pass the information off to C++.</p>
<p><a href="http://thebensons.org/BlogImages/PAJava.rar" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ron</title>
		<link>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-349</link>
		<dc:creator>ron</dc:creator>
		<pubDate>Wed, 18 Apr 2007 22:16:50 +0000</pubDate>
		<guid>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-349</guid>
		<description>Mike, could you give me some instruction on how you hooked into poker academy, I am working on somthing similar with pacific poker, and I am using dll injection.  How did you do it with poker academy, as so far i have not been doing to well!  All I want to do is test my code and see if i am a better player and collect my stats.  As a point of interest, I converted cactus kev's into java, which was real fun, especially because you cant import the tables so you have to convert them to files and read them in to either hash tables or arrays, depending on how you feel when writing the code!  I am also using some starting tables out of poker for dummies, which really ties you down, I just wonder how they will do over time as I tend to play a little looser than that - lol.  Any hints on the 'hooking into' aspect would be cool.

Many thanks, Ron</description>
		<content:encoded><![CDATA[<p>Mike, could you give me some instruction on how you hooked into poker academy, I am working on somthing similar with pacific poker, and I am using dll injection.  How did you do it with poker academy, as so far i have not been doing to well!  All I want to do is test my code and see if i am a better player and collect my stats.  As a point of interest, I converted cactus kev&#8217;s into java, which was real fun, especially because you cant import the tables so you have to convert them to files and read them in to either hash tables or arrays, depending on how you feel when writing the code!  I am also using some starting tables out of poker for dummies, which really ties you down, I just wonder how they will do over time as I tend to play a little looser than that - lol.  Any hints on the &#8216;hooking into&#8217; aspect would be cool.</p>
<p>Many thanks, Ron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-184</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 10 Feb 2007 23:08:51 +0000</pubDate>
		<guid>http://thebensons.org/blog/2006/11/05/c-vs-c-performance-part-ii/#comment-184</guid>
		<description>Hi,

Just wondering if your C# code could be used to calculate odds of winning pre-flop, post-flop, fourth and fifth street? My C# kung-fu isn't the strongest, do you have any code kicking around that doesn't something like that?

Regards,

Chris
&lt;blockquote&gt;
&lt;p align="left"&gt;Not directly, but you could pretty easily do that.  Just take all possible combinations and run through them.  I did something similar while playing with it.  The last chunk I worked on, I hooked into Poker Academy to create a poker bot.  Let me tell you Java to C# is no small feat.
&lt;p align="left"&gt;Mike&lt;/p&gt;
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just wondering if your C# code could be used to calculate odds of winning pre-flop, post-flop, fourth and fifth street? My C# kung-fu isn&#8217;t the strongest, do you have any code kicking around that doesn&#8217;t something like that?</p>
<p>Regards,</p>
<p>Chris</p>
<blockquote>
<p align="left">Not directly, but you could pretty easily do that.  Just take all possible combinations and run through them.  I did something similar while playing with it.  The last chunk I worked on, I hooked into Poker Academy to create a poker bot.  Let me tell you Java to C# is no small feat.
</p>
<p align="left">Mike</p>
</blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>
