Uh oh!
There was an error while loading. Please reload this page.
FS-1135 implementation - random functions for collections - #17277
Conversation
❗ Release notes required
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lanayx
commented
Jun 5, 2024
Can somebody please help me pass unit tests? It fails with |
I think you might want to run something like this $env:TEST_UPDATE_BSL=1>> dotnet test tests/FSharp.Core.UnitTests/FSharp.Core.UnitTests/-c Release --filter "SurfaceArea"That should update the baselines (sometimes you may need to run it twice), which you can then commit. |
Lanayx
commented
Jun 5, 2024
Thanks it worked, just as I figured out it should be |
brianrourkeboll
commented
Jun 5, 2024
Ah, yeah, whoops |
psfinaki
commented
Jun 6, 2024
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lanayx
commented
Jun 6, 2024
@abelbraaksma you are welcome to review as well! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
commented
Jun 18, 2024
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
psfinaki
left a comment
There was a problem hiding this comment.
Thanks for this, great effort and great docs.
I haven't looked into the implementation yet, I was rather checking if the API adheres to the RFC - which it does, apart from one exception type in one case.
I will finish my review soon. Overall, I am up for merging this in its current shape. I think this API is good enough. It could probably be made thinner or more discoverable, as per discussions in the related threads. But unless it proves to be a performance trap AND cannot be optimized within the API boundaries in followups - I don't think it's worth starting the design process all over again.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
commented
Jun 20, 2024
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
left a comment
There was a problem hiding this comment.
Good stuff, I am for getting this in (see my comment above).
The implementation LGTM, just give us some time to figure out all this exception naming stuff, also the CI is broken right now.
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
commented
Jun 26, 2024
Alright, let's get this in. Thanks for your work @Lanayx. Let's spread the word :) |
With the introduction of #20229, we can now have if-def-based additions to FSharp.Core that rely on newer runtime APIs. As a follow-up optimization to the FS-1135 random functions here, the internal RNG could reference |
Description
FS-1135 implementation
Checklist
Test cases added
Performance benchmarks added in case of performance changes
Release notes entry updated: