-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
cli: Add infrastructure for new CLI drivers juliax
and juliac
#51417
Open
Keno
wants to merge
2
commits into
master
Choose a base branch
from
kf/newclidrivers
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+183
−4
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.\" To get a preview of the man page as it will actually be displayed, run | ||
.\" | ||
.\" > nroff -man juliac.1 | less | ||
.\" | ||
.\" at the terminal. | ||
.\" | ||
|
||
.TH JULIAC 1 2023-09-01 JULIA | ||
|
||
.\" from the front page of https://julialang.org/ | ||
.SH NAME | ||
juliac - Compiler driver for the julia programming language | ||
|
||
.SH SYNOPSIS | ||
\fBjulia\fR [OPTIONS...] \fB--\fR PROGRAMMFILE | ||
|
||
The Julia source file \fIPROGRAMFILE\fP (optionally followed by | ||
arguments in \fIARGS\fP) will be compiled and a binary will be | ||
written out according to OPTIONS. | ||
|
||
.SH DESCRIPTION | ||
This is a placeholder for the upcoming compiler-driver for the julia | ||
programming language. It is currently non functional. See | ||
.BR julia (1) | ||
for the traditional cli driver. | ||
|
||
.SH "COMMAND-LINE OPTIONS" | ||
|
||
.SH FILES AND ENVIRONMENT | ||
See https://docs.julialang.org/en/v1/manual/environment-variables/ | ||
|
||
.SH BUGS | ||
Please report any bugs using the GitHub issue tracker: | ||
https://github.com/julialang/julia/issues?state=open | ||
|
||
.SH AUTHORS | ||
Contributors: https://github.com/JuliaLang/julia/graphs/contributors | ||
|
||
.SH INTERNET RESOURCES | ||
Website: https://julialang.org/ | ||
.br | ||
Documentation: https://docs.julialang.org/ | ||
.br | ||
Downloads: https://julialang.org/downloads/ | ||
|
||
.SH LICENSING | ||
Julia is an open-source project. It is made available under the MIT license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.\" To get a preview of the man page as it will actually be displayed, run | ||
.\" | ||
.\" > nroff -man juliax.1 | less | ||
.\" | ||
.\" at the terminal. | ||
.\" | ||
|
||
.TH JULIAC 1 2023-09-01 JULIA | ||
|
||
.\" from the front page of https://julialang.org/ | ||
.SH NAME | ||
juliax - Experimental driver for the julia programming language | ||
|
||
.SH SYNOPSIS | ||
\fBjulia\fR [OPTIONS...] \fB--\fR PROGRAMMFILE | ||
|
||
If a Julia source file is given as a \fIPROGRAMFILE\fP (optionally followed by | ||
arguments in \fIARGS\fP) Julia will execute the program and exit. | ||
|
||
.SH DESCRIPTION | ||
This is the unstable, experimental driver for the Julia programming language. | ||
This interface is currently not stable across Julia versions. The behavior of | ||
this driver matches that of | ||
.BR julia (1) | ||
except for the differences noted below. | ||
|
||
.SH "COMMAND-LINE OPTIONS" | ||
|
||
.TP | ||
--math-mode=fast | ||
In juliax, this option is an error. In | ||
.BR julia (1) | ||
this options is silently ignored. | ||
|
||
.TP | ||
--cli-mode | ||
In juliax, this option is an error. In | ||
.BR julia (1) | ||
may be used to switch into juliax mode. | ||
|
||
.SH FILES AND ENVIRONMENT | ||
See https://docs.julialang.org/en/v1/manual/environment-variables/ | ||
|
||
.SH BUGS | ||
Please report any bugs using the GitHub issue tracker: | ||
https://github.com/julialang/julia/issues?state=open | ||
|
||
.SH AUTHORS | ||
Contributors: https://github.com/JuliaLang/julia/graphs/contributors | ||
|
||
.SH INTERNET RESOURCES | ||
Website: https://julialang.org/ | ||
.br | ||
Documentation: https://docs.julialang.org/ | ||
.br | ||
Downloads: https://julialang.org/downloads/ | ||
|
||
.SH LICENSING | ||
Julia is an open-source project. It is made available under the MIT license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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 think it's okay to say that the documented behaviors of the
julia
driver are public API, since that's consistent with the rest of this FAQ entry (which says that documented behaviors of public symbols are public API). But "semantically observable behaviors" seems too vague and hard to define.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.
That would have prevented the
--math-mode=fast
removal.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 think I'm misunderstanding what you've written here. Which of the following interpretations is correct?
Interpretation 1:
julia
driver are public API.julia
driver are public API.Interpretation 2:
julia
driver is public API iff the behavior is documented and the behavior is semantically observable.When I read the above text, I interpreted it as interpretation 1.
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.
Interpretation 2 is what I intended. In particular options that are non-semantic (optimization levels, fastmath, etc.) are not guaranteed to work the same across versions, even if the documentaiton tells you what they do.
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.
Ah, I see. Interpretation 2 sounds good to me.
Let's reword the sentence to make it more clear?
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.
How about something along the lines of:
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.
And it might also be helpful to add some form of the sentence that you wrote above, since I think it gives some good illustrative examples: