Skip to content
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

Update sorting infrastructure for jb/functions #19295

Closed
timholy opened this issue Nov 10, 2016 · 11 comments
Closed

Update sorting infrastructure for jb/functions #19295

timholy opened this issue Nov 10, 2016 · 11 comments
Assignees
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request
Milestone

Comments

@timholy
Copy link
Member

timholy commented Nov 10, 2016

@StefanKarpinski, while you're on "progress for 0.6" duty, I had the impression you were going to tackle this?

@timholy timholy added this to the 0.6.0 milestone Nov 10, 2016
@Keno
Copy link
Member

Keno commented Nov 10, 2016

This seems like the issue to write down an issue which I've voice in person, but don't think I've written down. When using searchsortedfirst and the like, one can pass a by function, which is very convenient for searching. However, the thing one searches for in the input not the output of the by function, making usage a little awkward, since one may have to construct a dummy object. E.g. consider:

searchsortedfirst(records, SomePotentiallyHardToConstructRecord(thetimestampimlookingfor, ...), by = record->record.timestamp)

@StefanKarpinski
Copy link
Member

StefanKarpinski commented Nov 11, 2016

Yes, this needs to be done. I've been a bit busy with Pkg3 design, so if someone else wants to have at it, they can. If that doesn't happen in the next few weeks, I'll do it.

@StefanKarpinski StefanKarpinski added the help wanted Indicates that a maintainer wants help on an issue or pull request label Nov 11, 2016
@ViralBShah
Copy link
Member

We may be having a couple of interns at Julia Computing perhaps in December - is this something to have them work on?

@Sacha0
Copy link
Member

Sacha0 commented Dec 22, 2016

Unlikely to receive attention prior to 0.6. Best!

@Sacha0 Sacha0 removed this from the 0.6.0 milestone Dec 22, 2016
@tkelman tkelman added this to the 1.0 milestone Dec 22, 2016
@ViralBShah
Copy link
Member

Pinging @shashi here in case he can get to it.

@tkelman
Copy link
Contributor

tkelman commented Dec 22, 2016

This needs to go through a Julep and major redesign.

@JeffBezanson
Copy link
Member

Also rev::Bool = true leads to a type-instability (which in the case of the searchsorted* functions is very expensive, leading to the need for the horrible method-overwrite warnings during bootstrap). We could potentially replace this keyword argument with just order = Reverse.

@vtjnash vtjnash self-assigned this Sep 5, 2017
@JeffBezanson JeffBezanson added the triage This should be discussed on a triage call label Oct 26, 2017
@JeffBezanson
Copy link
Member

Current situation doesn't seem so bad, and this is a bit of a project. I suggest removing from the milestone.

@timholy
Copy link
Member Author

timholy commented Oct 27, 2017

Since no one has gotten to this, I can't disagree.

@timholy timholy modified the milestones: 1.0, 2.0+ Oct 27, 2017
@JeffBezanson JeffBezanson removed the triage This should be discussed on a triage call label Nov 2, 2017
@RauliRuohonen
Copy link

@StefanKarpinski said in #10593 (comment) (similarly big revamp of search/find functions):

Temporary fix if we don't get to this in time for feature freeze: move all these functions into a Search stdlib package and then fix it with a major version bump of that package in the future.

Would it be possible to do this with sort functions, so this issue could be moved to 1.x milestone instead of 2.0?

@StefanKarpinski
Copy link
Member

We've largely decided against this because it seems like the additional structure provided by the Ordering objects is actually useful fairly often. You can't, for example, dispatch on the structure of a function object the way you can on specific kinds of Ordering objects. The main outstanding issue was type instability of the rev keyword, but that's a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request
Projects
None yet
Development

No branches or pull requests

9 participants