Skip to content

Conversation

@garyb
Copy link
Member

@garyb garyb commented Apr 14, 2018

This is for purescript/purescript-prelude#161 - the new mod definition for int is no longer straightforward (currently x % y, new one will be Math.abs(((x % y) + y) % y)), so the advantage of inlining is probably minimal now. As a benefit, this also means that the issue I raised in there about the mod behaviour differing between compiler versions on the same library will not be the case, since this won't be overriding the FFI implementation provided in there.

@garyb
Copy link
Member Author

garyb commented Apr 22, 2018

I'm going to go ahead and merge this, so we can get the corresponding part in the Prelude wrapped up. It shouldn't actually break anything even if it is wrong (and I'm pretty confident it's not) - it will just generate worse code.

@garyb garyb merged commit 0ebc457 into purescript:master Apr 22, 2018
@garyb garyb deleted the remove-int-mod-inlining branch April 22, 2018 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant