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

Upgrade to Zipline 1.7.0 #1718

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Upgrade to Zipline 1.7.0 #1718

merged 2 commits into from
Dec 4, 2023

Conversation

swankjesse
Copy link
Collaborator

The '@contextual' is both unfortunate ane necessary. There's no automatic way for Zipline to customize encoding of built-in types, and the built-in encoding of longs loses precision.

More details in this Zipline PR:
cashapp/zipline#1171

The '@contextual' is both unfortunate ane necessary.
There's no automatic way for Zipline to customize encoding
of built-in types, and the built-in encoding of longs
loses precision.

More details in this Zipline PR:
cashapp/zipline#1171

@ObjCName("AppLifecycle", exact = true)
public interface AppLifecycle : ZiplineService {
public fun start(host: Host)

public fun sendFrame(timeNanos: Long)
public fun sendFrame(timeNanos: @Contextual Long)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a side point, but I feel like we've been overusing @Contextual. We very explicitly know what serializer we want to use here, and should probably opt for something as outlined at https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#specifying-serializer-globally-using-typealias. Doing @Contextual just pushes all unregistered types to throw a runtime exception, which doesn't make sense if we know what serializer we always want for a specific case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great idea.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@swankjesse swankjesse enabled auto-merge (squash) December 4, 2023 16:22
@swankjesse swankjesse merged commit 738d55f into trunk Dec 4, 2023
7 of 8 checks passed
@swankjesse swankjesse deleted the jwilson.1130.zipline_170 branch December 4, 2023 17:40
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