View Compiled Binary Search Pattern

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

View Compiled Binary Search Pattern

Eranga Udesh-3
Hi,

Is there anyway to view Compiled Binary Search Pattern for debugging purposes? I need to output (dump) all content inside the Compiled Pattern.

Any possibility?

Thanks in advance.
- Eranga

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: View Compiled Binary Search Pattern

Jesper Louis Andersen-2
I don't think there is any support for this in the current or new Erlang systems. Compiled patterns are represented as magic binaries currently. This will change in Erlang/OTP 20.0 where you will have a reference type for this. But the semantics will stay the same: There is no way to go backwards. You best bet is to figure out where the creator code is. Then you can look at who creates the compiled binary search pattern.

On Sat, May 13, 2017 at 12:52 PM Eranga Udesh <[hidden email]> wrote:
Hi,

Is there anyway to view Compiled Binary Search Pattern for debugging purposes? I need to output (dump) all content inside the Compiled Pattern.

Any possibility?

Thanks in advance.
- Eranga
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: View Compiled Binary Search Pattern

Eranga Udesh-3
Hmm.. it would have been a wonderful thing if there was some debug command to dump the magic binary content. Anyway, thanks for the feedback.
- Eranga

On Sat, May 13, 2017 at 8:36 PM, Jesper Louis Andersen <[hidden email]> wrote:
I don't think there is any support for this in the current or new Erlang systems. Compiled patterns are represented as magic binaries currently. This will change in Erlang/OTP 20.0 where you will have a reference type for this. But the semantics will stay the same: There is no way to go backwards. You best bet is to figure out where the creator code is. Then you can look at who creates the compiled binary search pattern.

On Sat, May 13, 2017 at 12:52 PM Eranga Udesh <[hidden email]> wrote:
Hi,

Is there anyway to view Compiled Binary Search Pattern for debugging purposes? I need to output (dump) all content inside the Compiled Pattern.

Any possibility?

Thanks in advance.
- Eranga
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions