Skip to content

Simplify loading code from stdin during precompilation.#43853

Merged
vtjnash merged 1 commit intomasterfrom
tb/loading_stdin
Jan 18, 2022
Merged

Simplify loading code from stdin during precompilation.#43853
vtjnash merged 1 commit intomasterfrom
tb/loading_stdin

Conversation

@maleadt
Copy link
Copy Markdown
Member

@maleadt maleadt commented Jan 18, 2022

Implements #43191 (comment)

@fredrikekre
Copy link
Copy Markdown
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
Copy Markdown
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