Shinmera / random-state

A collection of portable random generators for Common Lisp
http://shinmera.github.io/random-state/
zlib License
27 stars 9 forks source link

Does `benchmark` have to be upstream of `generator`? #42

Closed rpgoldman closed 3 months ago

rpgoldman commented 3 months ago

CCL's compiler doesn't like it that benchmark is defined (in toolkit.lisp) before generator.lisp is loaded. It says this:

Compiler warnings for "home:lisp;shop;jenkins;ext;random-state;toolkit.lisp.newest" :
;   In BENCHMARK: INLINE declaration for unknown function ENSURE-GENERATOR
;   In BENCHMARK: Unknown type (FUNCTION (GENERATOR) T), declaration ignored

I would like to pull the two benchmark functions out and put them in "histogram.lisp", since they are not called so only need to be defined by the time "random-state" is completely loaded.

If you are ok with that, I'll send another PR. But please let me know if there is some reason I should not do this.

rpgoldman commented 3 months ago

See #43

Shinmera commented 3 months ago

nah, seems fine.