Re: legacy code retreat's triva game : the D version

2013-12-22 Thread Marco Leise
Am Sun, 22 Dec 2013 02:12:51 +0100 schrieb Timon Gehr : > On 12/22/2013 02:09 AM, Timon Gehr wrote: > >> > >> The morale is that "uniform" random numbers doesn't imply that > >> every value in the range will eventually be generated once! > >> > > > > Yes it does. (The probability that some value i

Re: legacy code retreat's triva game : the D version

2013-12-22 Thread Chris Cain
On Sunday, 22 December 2013 at 08:06:30 UTC, Marco Leise wrote: Can you elaborate a bit? How do you know that the Java LCG can produce every 32-bit integer once? If that's true then the problem with the Java code was something different and I was just biased, because I was already expecting the c

Re: legacy code retreat's triva game : the D version

2013-12-22 Thread John Colvin
On Sunday, 22 December 2013 at 07:29:22 UTC, ilya-stromberg wrote: On Saturday, 21 December 2013 at 20:43:27 UTC, bearophile wrote: 3) Just like the integer '5' a range of values as 0 .. 1000 is an immutable value. So a variable that scans such range should be immutable. If you really want to

Re: legacy code retreat's triva game : the D version

2013-12-22 Thread Timon Gehr
On 12/22/2013 09:06 AM, Marco Leise wrote: Am Sun, 22 Dec 2013 02:12:51 +0100 schrieb Timon Gehr : On 12/22/2013 02:09 AM, Timon Gehr wrote: The morale is that "uniform" random numbers doesn't imply that every value in the range will eventually be generated once! Yes it does. (The probabil

Mobile App STACK4 with a D backend

2013-12-22 Thread extrawurst
Hello fellow Dlers ;) about a week ago I released the multiplayer version of my android app STACK4 (https://play.google.com/store/apps/details?id=com.Extrawurst.FIR). The app itself is using the free unity3d engine (C#) for the frontend but, after quite a journey, the backend was developed

Re: Mobile App STACK4 with a D backend

2013-12-22 Thread extrawurst
Additionally these are the open source utility libs that I created to while developing the server: google cloud messaging helper lib: https://github.com/Extrawurst/gcm-d sockjs long polling implementation based on vibe.d: https://github.com/Extrawurst/sockjs-d tool to keep the server running n

Re: Mobile App STACK4 with a D backend

2013-12-22 Thread Sönke Ludwig
Am 22.12.2013 14:38, schrieb extrawurst: > Hello fellow Dlers ;) > > about a week ago I released the multiplayer version of my android app > STACK4 (https://play.google.com/store/apps/details?id=com.Extrawurst.FIR). > > The app itself is using the free unity3d engine (C#) for the frontend > but,

Re: Mobile App STACK4 with a D backend

2013-12-22 Thread extrawurst
On Sunday, 22 December 2013 at 18:48:02 UTC, Sönke Ludwig wrote: Am 22.12.2013 14:38, schrieb extrawurst: Hello fellow Dlers ;) about a week ago I released the multiplayer version of my android app STACK4 (https://play.google.com/store/apps/details?id=com.Extrawurst.FIR). The app itself is

Re: Mobile App STACK4 with a D backend

2013-12-22 Thread John Colvin
On Sunday, 22 December 2013 at 13:38:22 UTC, extrawurst wrote: Hello fellow Dlers ;) about a week ago I released the multiplayer version of my android app STACK4 (https://play.google.com/store/apps/details?id=com.Extrawurst.FIR). The app itself is using the free unity3d engine (C#) for the

Re: legacy code retreat's triva game : the D version

2013-12-22 Thread Marco Leise
Am Sun, 22 Dec 2013 09:19:48 + schrieb "Chris Cain" : > On Sunday, 22 December 2013 at 08:06:30 UTC, Marco Leise wrote: > > Can you elaborate a bit? How do you know that the Java LCG > > can produce every 32-bit integer once? If that's true then > > the problem with the Java code was something

DIP54 : revamp of Phobos tuple types

2013-12-22 Thread Dicebot
http://forum.dlang.org/post/ggxgongvmrdfajtbp...@forum.dlang.org