You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to communicate who's going to be working on which tickets so we don't start stomping on each other's feet.
I'll can tackle the #36 now, since I recently had to deal with those semantics.
I already mentioned it on a ticket, but I'll be happy to do the split described in #355
With regards to #276 I could take care of it too, since I was involved in that discussion and also fixed the original issue with slice in #257, however it would be great to get another pair of eye on the issue, so maybe someone else can pick it out.
#306 I suggested a solution: #301 (comment) which is the approach I've taken in massiv, so if someone would like to implement and document it, that'd be great.
With regards to exporting constructors, I'd go for adding these modules:
An easy way would be to simply re-export constructors from there or the hard way of moving constructors with all the instances into those module in order to avoid orphans. Former seems a bit less intrusive. This one is also up for the taking.
I do think that it would be a good way to promote distinction between safe and unsafe function usage. I never liked that functions like unsafeIndex are in scope by default. We could even use the Safe/Unsafe/Trustworthy Haskell extensions ;)
However, this would be a serious breaking change, so we would have to do it over multiple major releases. @Shimuuar and @Bodigrim if that is something you think is worthwhile to discuss we could start a separate issue and possibly kickoff a discussion on libraries?
I like idea of Unsafe modules. Adding them is not a bit problem, deprecation and removal of unsafe functions is. Should we have one unsafe module for boxed/unboxed/storable/etc vectors? Or should we add two one for mutable and one for immutable API. I don't remember whether there're name clashes but usually mutable and pure vectors are imported in different namespaces. This is argument for two modules. I don't like clutter though. It's also possible to not bother with reexports for unsafe API and only export generic variants.
Then there's question of finding all unsafe functions. Some seemingly benign functions will happily trash memory given incorrect inputs (see #118) as example
@Shimuuar I've started a new issue for this topic: #361
Some seemingly benign functions will happily trash memory given incorrect inputs
This means that the functions is unsafe and should be named with unsafe prefix, so it's a bug. We definitely should find all such functions. But that is a separate task, albeit a relevant one.
It has been over a year since we planned a major release, I think it is time we get it done. It is ok if we can't get all of those features we wanted in, a lot has been accomplished sine 0.12 version.
I am setting a timeline two weeks from today to cut a release. @Shimuuar and @Bodigrim please speak up if you have any objections.
Activity
lehins commentedon Jan 17, 2021
We'll hold off on #269 it might be useful to keep
sVectorafterall.lehins commentedon Jan 17, 2021
I'd like to communicate who's going to be working on which tickets so we don't start stomping on each other's feet.
I'll can tackle the #36 now, since I recently had to deal with those semantics.
I already mentioned it on a ticket, but I'll be happy to do the split described in #355
With regards to #276 I could take care of it too, since I was involved in that discussion and also fixed the original issue with slice in #257, however it would be great to get another pair of eye on the issue, so maybe someone else can pick it out.
#306 I suggested a solution: #301 (comment) which is the approach I've taken in massiv, so if someone would like to implement and document it, that'd be great.
With regards to exporting constructors, I'd go for adding these modules:
that have
{-# OPTIONS_HADDOCK hide, not-home #-}An easy way would be to simply re-export constructors from there or the hard way of moving constructors with all the instances into those module in order to avoid orphans. Former seems a bit less intrusive. This one is also up for the taking.
lehins commentedon Jan 17, 2021
On a second thought it might be a good idea to move all of the unsafe functions into their own modules, which would also include constructors.
I do think that it would be a good way to promote distinction between safe and unsafe function usage. I never liked that functions like
unsafeIndexare in scope by default. We could even use the Safe/Unsafe/Trustworthy Haskell extensions ;)However, this would be a serious breaking change, so we would have to do it over multiple major releases. @Shimuuar and @Bodigrim if that is something you think is worthwhile to discuss we could start a separate issue and possibly kickoff a discussion on libraries?
Bodigrim commentedon Jan 17, 2021
Please no %)
Yes, such change deserves a discussion on libraries and CLC.
Shimuuar commentedon Jan 18, 2021
I like idea of
Unsafemodules. Adding them is not a bit problem, deprecation and removal of unsafe functions is. Should we have one unsafe module for boxed/unboxed/storable/etc vectors? Or should we add two one for mutable and one for immutable API. I don't remember whether there're name clashes but usually mutable and pure vectors are imported in different namespaces. This is argument for two modules. I don't like clutter though. It's also possible to not bother with reexports for unsafe API and only export generic variants.Then there's question of finding all unsafe functions. Some seemingly benign functions will happily trash memory given incorrect inputs (see #118) as example
lehins commentedon Jan 18, 2021
@Shimuuar I've started a new issue for this topic: #361
This means that the functions is unsafe and should be named with
unsafeprefix, so it's a bug. We definitely should find all such functions. But that is a separate task, albeit a relevant one.lehins commentedon May 21, 2022
It has been over a year since we planned a major release, I think it is time we get it done. It is ok if we can't get all of those features we wanted in, a lot has been accomplished sine 0.12 version.
I am setting a timeline two weeks from today to cut a release. @Shimuuar and @Bodigrim please speak up if you have any objections.
Bodigrim commentedon May 21, 2022
No objections from my side.
Shimuuar commentedon May 23, 2022
Strongly agree. 0.13 is long overdue
lehins commentedon Jun 19, 2022
I've prepared a release here in #437
One thing that was not checked in the release plan was the exporting of constructors. I think this problem is solved now:
Data.Vector.Unboxed.BaseI think we are good for a release. If no one has any comments I'll merge the PR and make a release this week.
lehins commentedon Jun 19, 2022
vector-0.13.0.0 is out.