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

use unsafe_string instead of bytestring #444

Merged
merged 1 commit into from
Sep 20, 2016

Conversation

wookay
Copy link
Contributor

@wookay wookay commented Aug 8, 2016

It was a closed issue but to fix the potential problem.
#443

@wookay wookay changed the title use unsafe_string instead of bytestring WIP - use unsafe_string instead of bytestring Aug 8, 2016
@wookay
Copy link
Contributor Author

wookay commented Aug 8, 2016

reviewing with JuliaInterop/ZMQ.jl#109

@wookay
Copy link
Contributor Author

wookay commented Aug 9, 2016

it's planning for ZMQ.jl versions JuliaInterop/ZMQ.jl#110

@wookay wookay changed the title WIP - use unsafe_string instead of bytestring use unsafe_string instead of bytestring Aug 11, 2016
@wookay wookay force-pushed the compat_unsafe_string branch from 025d2e7 to b49dffa Compare August 11, 2016 15:02
@@ -1,6 +1,6 @@
julia 0.4
Nettle 0.2
JSON 0.5
ZMQ 0.3.1
ZMQ 0.3.4
Copy link
Contributor

Choose a reason for hiding this comment

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

is this fixing a deprecation warning or an error? if it's just fixing a deprecation warning, it's too tight

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should be ZMQ 0.3.4.
it's been changed with unsafe_string(::Message) since ZMQ 0.3.3,
but ZMQ 0.3.3 has wrong(conditional deprecation).

Copy link
Contributor

Choose a reason for hiding this comment

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

It works, it just has a lot of warnings. I suspect versions earlier than 0.3.1 would work too without any errors, wouldn't they?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean, for Julia 0.4, ZMQ 0.3.1 was defined for the type Message with

bytestring(zmsg::Message) = bytestring(pointer(zmsg), length(zmsg))

and with this PR, calling unsafe_string(::Message) doesn't work on Julia 0.4.

when running jupyter-notebook, there's hanging with timeout like this

[W 21:35:58.097 NotebookApp] Timeout waiting for kernel_info reply from e3f8da4c-ce1c-4604-965e-200479992642

thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, that makes sense, there was no unsafe_string(::Message) method before ZMQ.jl 0.3.3? So ZMQ.jl 0.3.3 is the actual minimum.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's also bad, because there's the critical issue for on ZMQ 0.3.3.
JuliaInterop/ZMQ.jl#108 (comment)
incidentally causing lot's of deprecated warnings for every input on IJulia.
I prefer to use ZMQ 0.3.4.

Copy link
Contributor

Choose a reason for hiding this comment

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

The requirements of ZMQ 0.3.3 and 0.3.4 are the same, so any time both are possible, Pkg will use the larger of them.

@stevengj
Copy link
Member

Bump. Needs a rebase and updated REQUIRE to ZMQ 0.3.3

@wookay
Copy link
Contributor Author

wookay commented Sep 20, 2016

ok. I'm going to rebase to ZMQ 0.3.3

@wookay wookay force-pushed the compat_unsafe_string branch from b49dffa to 0627584 Compare September 20, 2016 15:48
@stevengj stevengj merged commit 4cd1a63 into JuliaLang:master Sep 20, 2016
@stevengj
Copy link
Member

Thanks.

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