Coder Social home page Coder Social logo

data-transform-explicitmetadata's People

Contributors

brummett avatar

Watchers

 avatar  avatar

data-transform-explicitmetadata's Issues

encoding stashes is broken

Triggered by brummett/Devel-hdb#61

See the comment in the linked issue, but basically encoding multiple non-ref GLOBs reuses a reference address for each one, and they mistakenly get encoded as all being references to whichever GLOB got encoded first.

Fails tests on Windows

Win32:
http://www.cpantesters.org/cpan/report/e0c5219f-7a88-1014-a466-fd082b825c07

#   Failed test 'encode bare filehandle'
#   at t\basic.t line 105.
#     Structures begin differing at:
#          $got->{__value}{IOseek} = '0 but true'
#     $expected->{__value}{IOseek} = undef
# Looks like you failed 1 test of 34.
t\basic.t ...... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/34 subtests 
t\blessed.t .... ok

#   Failed test 'encode nested data structure'
#   at t\nested.t line 104.
#     Structures begin differing at:
#          $got->{__value}{array}{__value}[3]{__value}{IOseek} = '0 but true'
#     $expected->{__value}{array}{__value}[3]{__value}{IOseek} = undef

Include FORMATs in globs

Data::Dumper::Streamer purports to do it inside _dump_format()
https://metacpan.org/source/YVES/Data-Dump-Streamer-2.38/lib/Data/Dump/Streamer.pm#L2781

It also refers to https://groups.google.com/forum/#!msg/comp.lang.perl.moderated/Vhg76vpuWnk/4IPZyCkjWg8J

sub deparse_format {
    use B::Deparse;
    # translate arg (or reference to it) into a B::* object
    my $Bobj = B::svref_2object(ref $_[0] ? $_[0] : \$_[0]);
    # if passed a glob or globref, get the format
    $Bobj = B::GV::FORM($Bobj) if ref $Bobj eq 'B::GV';

    if (ref $Bobj ne 'B::FM') {
        require Carp;
        Carp::croak "deparse_format: expected a glob, globref, or format ref";
    }

    my $deparser = B::Deparse::->new();
    return $deparser->indent($deparser->deparse_format($Bobj));
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.