-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements to random number generators #4193
Comments
I should add, I could put System.Random in a third party library, but I was hoping to make Effect.Random depend on it, which would exclude third party libraries. |
I suppose the other option is to put System.Random in the effects library. A bit odd, but maybe the simplest solution. |
Seems like random number generation is one of the places we would prefer the performance of Int. Maybe the old RNG needed Integer for the calculation? But I think the return type should be Int. |
The effects library has been deprecated in favor of Control.ST, that is on
contrib. You could check it on the tutorial.
Em 13/11/2017 5:32 da manhã, "Matthew Farrell" <notifications@github.com>
escreveu:
1. Switch generated type from Integer to Int?
Seems like random number generation is one of the places we would prefer
the performance of Int. Maybe the old RNG needed Integer for the
calculation? But I think the return type should be Int.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4193 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM9NmIi6Q_KBw8HRiK8WcgfKJhGfwbOks5s19RdgaJpZM4QbKPY>
.
|
@farrellm You are welcome to open a PR improving the random generation. |
@farrellm Additionally, please submit your contributions primarily to |
Makes sense, I'll move my changes from Effect to Control.ST A note on the tutorial, I saw the notice, but read it as only Effect.ST being deprecated. Probably worth adding a note explicitly stating the entire effects library is deprecated. |
I'm thinking of coding up a few enhancements to the existing library support for random number generators but looking for some feedback and advice on where to put it.
I have most of this coded already, and interestingly, I can avoid changing the existing Effect.Random interface at all by adding an implementation of RandomGen for Integer.
The text was updated successfully, but these errors were encountered: