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

move Serializer to stdlib #25628

Merged
merged 1 commit into from
Jan 19, 2018
Merged

move Serializer to stdlib #25628

merged 1 commit into from
Jan 19, 2018

Conversation

JeffBezanson
Copy link
Member

@JeffBezanson JeffBezanson commented Jan 18, 2018

Base only uses this in two places: precompile and pkg/entry. I changed them to use Good Ol' Strings.

Did some renaming as well. The package is now called Serialization, and SerializationState is renamed Serializer to go with AbstractSerializer and its other subtype ClusterSerializer.

@JeffBezanson JeffBezanson added deprecation This change introduces or involves a deprecation excision Removal of code from Base or the repository stdlib Julia's standard library labels Jan 18, 2018
base/loading.jl Outdated
@@ -582,16 +583,17 @@ function create_expr_cache(input::String, output::String, concrete_deps::typeof(
empty!(Base._concrete_dependencies)
append!(Base._concrete_dependencies, $concrete_deps)
Base._track_dependencies[] = true
end)
end\0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While effectively the same, might be clearer to splice in repr(...) explicitly?

pkg = deserialize(f)
err = deserialize(f)
pkg = chop(readuntil(f, '\0'))
err = chop(readuntil(f, '\0'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why chop?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result of readuntil includes the delimiter. I guess we could change that, since we already made that change to readline.

@JeffBezanson JeffBezanson force-pushed the jb/mvserializer branch 2 times, most recently from 493c3a3 to 6c85618 Compare January 18, 2018 22:54
@JeffBezanson JeffBezanson merged commit 625923f into master Jan 19, 2018
@JeffBezanson JeffBezanson deleted the jb/mvserializer branch January 19, 2018 15:54
Keno pushed a commit that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation excision Removal of code from Base or the repository stdlib Julia's standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants