smallnamespace
smallnamespace
Last time I tried, `pickle` errored out when trying to serialize a GameState. Pickling is necessary if anyone wants to ship a state over the wire, etc., and might also...
@djkaty @jleclanche While we're on the topic of selector optimizations, right now the reason the selectors build up lists of entities and tear them down again is because while _most_...
This will be useful for AI applications in particular, because sequences of actions often lead to the same state so we should be able to merge them together.
There are a few use cases for this: 1. Semi-deterministic tests, where we iterate through every possible random outcome (as opposed to manually patching up the outcome, or randomly generating...
A lot of method signatures are very loosely typed and dynamically dispatched; I'll look into adding signatures where it would aid readability.
Ran into this while rewriting the selectors -- there's no problem right now because `SELF` was rewritten to always return source, but should probably figure out why it wasn't on...
@jleclanche ``` 352533 function calls (346731 primitive calls) in 0.238 seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 7379 0.039 0.000 0.087 0.000 selector.py:140(test) 2014 0.010 0.000...
Instead of generating the addmask by repeatedly adding to the existing addmask in a [loop](https://github.com/WojciechMula/toys/blob/master/avx512-remove-spaces/avx512vbmi.cpp#L23), isn't the final mask simply the cumulative horizontal sum of the space `mask`? Looks like...