Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread John Colvin via Digitalmars-d-learn
On Thursday, 9 April 2015 at 10:23:06 UTC, wobbles wrote: On Thursday, 9 April 2015 at 10:04:09 UTC, John Colvin wrote: On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote: Another possibilty I was looking at was to write a tool that will spit out all combinations at runtime, and then impo

Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread John Colvin via Digitalmars-d-learn
On Thursday, 9 April 2015 at 11:05:22 UTC, John Colvin wrote: On Thursday, 9 April 2015 at 10:23:06 UTC, wobbles wrote: On Thursday, 9 April 2015 at 10:04:09 UTC, John Colvin wrote: On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote: Another possibilty I was looking at was to write a tool

Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread wobbles via Digitalmars-d-learn
On Thursday, 9 April 2015 at 10:04:09 UTC, John Colvin wrote: On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote: Another possibilty I was looking at was to write a tool that will spit out all combinations at runtime, and then import these back into the bot at compile time to build a look

Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread Rikki Cattermole via Digitalmars-d-learn
On 9/04/2015 9:49 p.m., wobbles wrote: So, I'm writing a poker AI bot. The idea was to generate a lookup table of all the poker hands using CTFE so runtime can be as quick as possible (as the bot has a very small amount of time to act). There are a LOT of calculations though, many millions of co

Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread John Colvin via Digitalmars-d-learn
On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote: Another possibilty I was looking at was to write a tool that will spit out all combinations at runtime, and then import these back into the bot at compile time to build a lookup table that way. Thanks! This is definitely a better ide

Re: Managing memory usage at Compile Time with DMD

2015-04-09 Thread Vladimir Panteleev via Digitalmars-d-learn
On Thursday, 9 April 2015 at 09:49:39 UTC, wobbles wrote: So, I'm writing a poker AI bot. The idea was to generate a lookup table of all the poker hands using CTFE so runtime can be as quick as possible (as the bot has a very small amount of time to act). There are a LOT of calculations thoug

Managing memory usage at Compile Time with DMD

2015-04-09 Thread wobbles via Digitalmars-d-learn
So, I'm writing a poker AI bot. The idea was to generate a lookup table of all the poker hands using CTFE so runtime can be as quick as possible (as the bot has a very small amount of time to act). There are a LOT of calculations though, many millions of combinations. During complation, thi