Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 12:25 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Best language for CFR?
PostPosted: Sat Oct 12, 2019 3:55 pm 
Offline
New Member

Joined: Wed May 21, 2014 12:52 am
Posts: 2
Hello everyone,

so i read the papers on Pluribus and Libratus, but did not find any information on what programming language the authors use to run the CFR simulations.
As their algorithm runs for several days on a supercomputer i imagine it has to be very optimized. So what is currently the proper language to implement high-scale CFR calculations. Also is it correct that both pluribus & libratus don't use any neural nets as it is used e.g. for DeepStack?

Some answers on this would be much appreciated, thank you.


Top
 Profile  
 
PostPosted: Sat Oct 12, 2019 7:03 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
I know that the university of Alberta who made Deepstack and some other famous bots before that use C. Personally I use C++, there are many C and C++ libraries that you can use and it's generally one of the fastest languages, arguably even the fastest.


Top
 Profile  
 
PostPosted: Sat Oct 12, 2019 9:23 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
I use Scala and Java. You could probably make it faster using C or C++ but I find the time saved in writing Scala a significant factor.
viewtopic.php?f=24&t=3235 suggests C/C++ is 2 to 3 times faster than Java which seems plausible to me. I imagine C# is also an option.

Neither Pluribus nor Libratus used neural networks, but Noam Brown has used neural networks in his research https://www.cs.cmu.edu/~noamb/research.html


Top
 Profile  
 
PostPosted: Sun Oct 13, 2019 12:23 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
After the language there are also frameworks etc. to consider. You will probably need some inter process communication framework if you want to go really big, Alberta used MPI for Cepheus, the bot that solved FL. I don't remember which MPI implementation it was only that it was NOT open mpi.


Top
 Profile  
 
PostPosted: Sun Mar 21, 2021 12:07 pm 
Offline
Junior Member

Joined: Sat Mar 13, 2021 3:43 pm
Posts: 23
HontoNiBaka wrote:
I know that the university of Alberta who made Deepstack and some other famous bots before that use C. Personally I use C++, there are many C and C++ libraries that you can use and it's generally one of the fastest languages, arguably even the fastest.


spears wrote:
I use Scala and Java. You could probably make it faster using C or C++ but I find the time saved in writing Scala a significant factor.
viewtopic.php?f=24&t=3235 suggests C/C++ is 2 to 3 times faster than Java which seems plausible to me. I imagine C# is also an option.


C/C++ for speed, Java for convenience.


Top
 Profile  
 
PostPosted: Fri May 07, 2021 12:38 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
If I had to write something with the speed of C/C++ I'd take a good look at Rust these days.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group