Skip to content

Remove the transformation of application using opaqueFullApply from the compiler's PPX. #6893

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

Merged
merged 11 commits into from
Jul 24, 2024

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jul 19, 2024

Remove the transformation of foo(1,2) into Js.Internal.opaqueFullApply(Internal.opaque(f), 1, 2).

  1. remove the transformation from the compiler's PPX,
  2. change the back-end to restore lost optimisations in uncurried mode, so every runtime use of curry is gone.

@cristianoc cristianoc changed the base branch from master to Popaque July 19, 2024 05:46
Base automatically changed from Popaque to master July 21, 2024 04:56
@cristianoc cristianoc force-pushed the test-remove-opaque-full-apply branch 2 times, most recently from 18e39dd to 5c985f7 Compare July 21, 2024 05:06
@cristianoc
Copy link
Collaborator Author

Getters/setters: 1447667

CC @cknitt

@cristianoc cristianoc changed the title Test remove opaque full apply Remove the transformation of application using opaqueFullApply from the compiler's PPX. Jul 22, 2024
@cristianoc cristianoc force-pushed the test-remove-opaque-full-apply branch from 797bbda to 6488556 Compare July 23, 2024 04:12
The effect is that a bunch of applications are treated as curried applications.
Opaque full apply was still used in the case of partial application `foo(x, ...)`.
With the last use gone, the `Js.Internal` module can be removed. One less piece of magic.
@cristianoc cristianoc force-pushed the test-remove-opaque-full-apply branch from 6488556 to 8504ebc Compare July 23, 2024 04:36
@cristianoc cristianoc merged commit e3d8536 into master Jul 24, 2024
19 checks passed
@cristianoc cristianoc deleted the test-remove-opaque-full-apply branch July 24, 2024 06:46
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.

2 participants