Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
doc: document the Melange sources / folder structure in CONTRIBUTING.md #805
doc: document the Melange sources / folder structure in CONTRIBUTING.md #805
Changes from all commits
46476f7
ea57f35
624baf6
0591bed
85bf654
291a3e3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth pointing to the current commit in
main
now, so that at least if folder layout changes in the future, the docs can point to the state where things were written (applies to all links to code in the document).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the fact they're on
main
will let us catch if we ever break them. Meaning the guide should be updated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt we will know we are breaking them, as there is no mechanism to warn us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One part that confuses me about the current setup is that the PPX is not self-contained right? In the sense that part of the interpretation of these externals happens in the PPX, but another part happens at lambda compilation time.
E.g. the ppx inlines here some int64 constants
melange/ppx/melange_ppx.ml
Line 655 in 1167ca7
that are later picked up by lambda
melange/jscomp/core/lam_convert.ml
Line 544 in 1167ca7
I am not sure if it's worth mentioning here that
melange.ppx
is not a traditional ppx, in that sense, but is designed to work with the rest of the compiler.