-
Notifications
You must be signed in to change notification settings - Fork 100
Consider depending on primitive #197
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
Comments
I tried to use it initially and it didn't work out well. I believe there
was some issues with inlining.
…On Wed, Mar 21, 2018, 11:34 David Feuer ***@***.***> wrote:
We try hard to limit dependencies, but it seems unfortunate that
Data.HashMap.Array and Data.Primitive.Array are so very similar. How bad
would it be to use it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#197>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AABDfcmhI-LUUf5trwwot5OpmkK6dPMaks5tgdhGgaJpZM4SzAHC>
.
|
Hrmf. Well, if it won't work it won't work, but it might be worth seeing if it can be brought up to snuff. Speaking of inlining, I'm wondering what, if anything, that is currently marked |
Inlinable is very tricky. For example, a function marked inline calling a
function marked inlinable will make specialization fail due to optimization
pass ordering. I filled a GHC bug about it long time ago.
…On Wed, Mar 21, 2018, 11:39 David Feuer ***@***.***> wrote:
Hrmf. Well, if it won't work it won't work, but it might be worth seeing
if it can be brought up to snuff. Speaking of inlining, I'm wondering what,
if anything, that is currently marked INLINE should actually be marked
INLINABLE. At the moment, any code using HashMap heavily is likely to end
up very large.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#197 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDfc3fIDuScz5fdFWf0oFk1eCXR3OIks5tgdmagaJpZM4SzAHC>
.
|
At some point after the next version of primitive is released, I'd like to give depending on @tibbe Let's say that I am able to depend on the array implementation from |
By "other reasons for which this change would be unwanted", what I'm mostly asking is whether there's an objection to depending on |
Personally I think |
The only maintainer listed on hackage is you. I was not aware that there was another, but looking through the commit history makes me suspect it's David. If so, we should update this information in the cabal file. |
Johan, if I create a haskell-unordered-containers github organization,
would you transfer the repository there? Organizations make it a lot easier
to deal with maintainers coming and going.
…On Fri, Apr 20, 2018 at 11:23 AM, Andrew Martin ***@***.***> wrote:
The only maintainer listed on hackage is you. I was not aware that there
was another, but looking through the commit history makes me suspect it's
David. If so, we should update this information in the cabal file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#197 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABzi_TAyjGKP-8pgowpyhFOMkvY1o_VQks5tqf1ogaJpZM4SzAHC>
.
|
I'm working on depending on primitive on #206 |
I used to be undecided about this idea, but I'm pretty positive now:
@andrewthad Could you rebase your PR #206? Regarding the risk of subtle performance regressions: I plan on reviewing the Core and STG diffs for #206 and I'm fairly optimistic that this will catch most issues. |
I'll give this a "yes, but". I actually think the Right Thing is to start by modifying |
@treeowl Can you clarify why this approach is better? It might also be helpful to link to the work you mention. |
The tricky thing with primitive is inlining decisions. It's critical to specialize to the right |
We try hard to limit dependencies, but it seems unfortunate that
Data.HashMap.Array
andData.Primitive.Array
are so very similar. How bad would it be to use it? There are a few serious bugs in the releasedData.Primitive.Array
right now, but fixes have been merged and a test suite is on its way.The text was updated successfully, but these errors were encountered: