3 ms·
I was thinking about promises, because I just wrote a procedurally generated universe in Javascript with over 2^100 locations. To do the procedural generation c
by stcredzero 15y ago
I was thinking about promises, because I just wrote a procedurally generated universe in Javascript with over 2^100 locations. To do the procedural generation correctly, the Math.random() function has to be called in the same order every time for generating each "sector." I had used promises in Smalltalk, but never found an application super for them and was thinking that promises would be a way to code this cleanly.