Skip to content

deprecate std.experimental.ndslice#4946

Merged
wilzbach merged 1 commit intodlang:masterfrom
9il:rmndslice
Dec 19, 2016
Merged

deprecate std.experimental.ndslice#4946
wilzbach merged 1 commit intodlang:masterfrom
9il:rmndslice

Conversation

@9il
Copy link
Member

@9il 9il commented Dec 10, 2016

Including ndslice to Phobos was my mistake. It is better to distribute it as DUB package. Please merge this PR. Phobos synchronization terrificly slowdown ndslice packages development, also Phobos is a classic D library while Mir projects require strong BetterC guaranties. I has not enough resources to maintain both Mir and Phobos versions. Hope this will be merged and users would not be confused anymore by Mir and Phobos ndslices incompatibility.

ndslice author

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have observed the pain resulting from syncing ndslice with its DUB packages for quite a while now, so I do understand your decision. In fact I was also asking for it in the past ;-)
Being a sole DUB packages makes the life of the maintainers a lot easier.

@@ -1,3 +1,4 @@
deprecated("Please use appropriate Mir project at http://github.com/libmir")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be so kind to

  • add a comment similar to /// @@@DEPRECATED_2017-04@@@ (s.t. the deprecations can be automatically found)
  • add a timestamp for scheduled removal (idk what the exact deprecation time for std.experimental is - CC @jmdavis)
  • link to the exact GitHub repo, s.t. users won't be lost - will there be mir-ndslice?

Copy link
Member Author

@9il 9il Dec 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mir-std. BTW, ndslice will be completely reworked. Instead of existing numpy-like ndslice a new ndslice will be provided. 90% of code will be rewritten. New ndslice:

  1. Will be faster
  2. Will be integrated with ranges
  3. Will be integrated with algorithms

In addition,

  1. new Range API architecture
  2. new algorithms implementation and API
  3. 3 types of ndslices:
    a. numpy-like: number of strides equals to number of dimensions
    b. raw-contnious (CBLAS-like): number of strides equals to number of dimensions minus one
    c. ideally continuous: number of strides equals to 0.

@9il
Copy link
Member Author

9il commented Dec 14, 2016

@wilzbach is current commit OK?

@wilzbach
Copy link
Contributor

wilzbach commented Dec 14, 2016

@wilzbach is current commit OK?

Yes. thanks! I think a deprecation period of two releases is quite ok for experimental ;-)
We/I can add a changelog entry afterwards, which explains the motivation.

As this is a big change in terms of policy, I want to give everyone a chance to notice (in particular @andralex).
However I doubt that anyone is going to step up and overtake the maintenance for your ndslice package, so in case no one shouts until this Sunday, I will merge this.

fix import
@andralex
Copy link
Member

I'm okay with this. We shouldn't even need to worry with deprecations for experimental code, but it's nice.

@@ -1,3 +1,5 @@
/// @@@DEPRECATED_2017-04@@@
deprecated("Please use mir-algorithm DUB package: http://github.com/libmir/mir-algorithm")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@9il I just realized that the repo doesn't exist yet. Do you plan to create it or did you mean to link to https://github.com/libmir/mir-std?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be created

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay - would you be so kind to create it, s.t. deprecation warnings don't go to a nirvana?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https is important in spite of the fact that github will redirect http to https - at least in theory a compromised network could intercept the http request and take it elsewhere...

@wilzbach
Copy link
Contributor

Auto-merge toggled on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants