“Mesh: Compacting Memory Management for C/C++ Applications” https://arxiv.org/abs/1902.04738 , #PLDI 2019pic.twitter.com/6qIAzeesdY
U tweetove putem weba ili aplikacija drugih proizvođača možete dodati podatke o lokaciji, kao što su grad ili točna lokacija. Povijest lokacija tweetova uvijek možete izbrisati. Saznajte više
Sorry, I do [what some seem to consider] interesting procgen by faking it, not technical know-how :P
You surpassed faking it better than the real thing a long time ago so that excuse no longer applies :p
The entire trick: take a vector. Apply random swap on push. Result: stack with a lazily evaluated shuffle! Beautiful in simplicity, variations practically write themselves. For example, iterating over a circular buffer for Tetris-style randomization: https://news.ycombinator.com/item?id=19185781 …
I've done something like Fischer-Yates the other way — push at the end of the vector, pop by swapping a random element to the end. Useful in randomized floodfill for example: https://www.redblobgames.com/x/1521-randomized-fill/ … . I haven't considered whether swap on push is better than swap on pop.
If all you do is push or pop that should be equivalent, really
Interesting - I vaguely recall hearing about something like this before but I could be misremembering. Could be an interesting fast random generator in some situations
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.