Skip to content
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

Simplify loading code from stdin during precompilation. #43853

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Jan 18, 2022

Implements #43191 (comment)

@fredrikekre
Copy link
Member

I believe this works without the -, and would have worked even before #43191 too, e.g.:

julia> open(`julia --startup-file=no`, "w", stdout) do proc
           write(proc, "println(\"hello, world\")")
       end;
hello, world

@maleadt maleadt requested a review from vtjnash January 18, 2022 12:52
@vtjnash vtjnash merged commit 51ded1c into master Jan 18, 2022
@vtjnash vtjnash deleted the tb/loading_stdin branch January 18, 2022 19:13
@vtjnash
Copy link
Sponsor Member

vtjnash commented Jan 18, 2022

This selects file-mode code execution. While leaving out the - would select repl-mode code execution. Previously, I think this used Serialize, so it was slowly simplified to this form, and left being a bit more verbose than necessary.

N5N3 pushed a commit to N5N3/julia that referenced this pull request Jan 24, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
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.

3 participants