HNHacker News
TopNewBestAskShowJobs

phnguyen

2 karma · joined July 12, 2011

submissionscomments
phnguyen··on AI: Playing Score4 in functional and imperative style (C++,OCaml,F#,C#)
Hi ttsiodras, thanks for poiting out :D. I looked at the code and figured out where it went wrong. I discussed my problem further on https://github.com/phuc/Score4-haskell/issues/1. Btw I don't know whether Github notifies everytime I respond. I'm so inefficient at communicating, lol.
phnguyen··on AI: Playing Score4 in functional and imperative style (C++,OCaml,F#,C#)
So I updated my code to also print out debug. And Haskell now is almost 4 times faster than F# on my computer ;)
phnguyen··on AI: Playing Score4 in functional and imperative style (C++,OCaml,F#,C#)
Stay tuned. I will do the one in this paper once I have time ;)
phnguyen··on AI: Playing Score4 in functional and imperative style (C++,OCaml,F#,C#)
Hey ttsiodras, "ghc -O2 Main.hs" should be enough. I've updated the code a bit. It's now half F#'s execution time on my computer :)
phnguyen··on AI: Playing Score4 in functional and imperative style (C++,OCaml,F#,C#)
This is my attempt to translate from the functional OCaml version, focusing on elegancy. If you like to, please help me optimize it while retaining elegancy :) https://github.com/phuc/Score4-haskell/blob/master/Main.hs