Coder Social home page Coder Social logo

rpc's People

Contributors

221v avatar 5ht avatar boykodmytro avatar cryoflamer avatar firebuilder22 avatar umka1332 avatar vkatsuba avatar xafizoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rpc's Issues

bert_validator's inability to work with type `reference()`

During compilation using rebar3 (rebar 3.10.0 on Erlang/OTP 20 Erts 9.0) the following error was raised

error in parse transform 'bert_validator': {function_clause,
                                            [{bert_validator,guard,
                                              [{union,
                                                [{type,89,reference,[]}]},
                                               "Timer",
                                               {form,
                                                [10,118,97,108,105,100,97,116,
                                                 101,40,68,32,61,32,35,39,119,
                                                 114,105,116,101,114,39,123,
                                                 105,100,32,61,32,73,100,44,
                                                 32,99,111,117,110,116,32,61,
                                                 32,67,111,117,110,116,44,32,
                                                 99,97,99,104,101,32,61,32,67, ...

bert_validator's inability to work with remote_type `calendar() | datetime()`

During compilation using rebar3 (rebar 3.10.0 on Erlang/OTP 20 Erts 9.0) the following error was raised

error in parse transform 'bert_validator': {function_clause,
                                            [{bert_validator,guard,
                                              [{union,
                                                [{remote_type,92,
                                                  [{atom,92,calendar},
                                                   {atom,92,datetime},
                                                   []]}]},
                                               "Started",
                                               {form,
                                                [10,118,97,108,105,100,97,116,
                                                 101,40,68,32,61,32,35,39,119,
                                                 114,105,116,101,114,39,123,
                                                 105,100,32,61,32,73,100,44,
                                                 32,99,111,117,110,116,32,61,
                                                 32,67,111,117,110,116,44,32,
                                                 99,97,99,104,101,32,61,32,67, ...

bert_validator's inability to work with type `string()`

During compilation using rebar3 (rebar 3.10.0 on Erlang/OTP 20 Erts 9.0) the following error was raised

Error in parse transform 'bert_validator': {function_clause,
                                            [{bert_validator,guard,
                                              [{union,
                                                [{type,25,string,[]},
                                                 {type,25,binary,[]}]},
                                               "Name",
                                               {form,
                                                [10,118,97,108,105,100,97,116,
                                                 101,40,68,32,61,32,35,39,119,
                                                 114,105,116,101,114,39,123,
                                                 105,100,32,61,32,73,100,44,
                                                 32,99,111,117,110,116,32,61 ...

Wrong code generation (check_len) with bert_javascript

I got a json-bert.js which contains

function check_len(x)  { try { return (eval('len'+utf8_arr(x.v[0].v))() == x.v.length) ? true : false }
                         catch (e) { return false; } }

From utf8.js:

function utf8_arr(ab) { if (!(ab instanceof ArrayBuffer)) ab = new Uint8Array(utf8_enc(ab)).buffer;
                        return utf8_dec(ab); }

This function always fails because utf8_arr expects as its input an ArrayBuffer. But bert.jss atom(o) gives an Uint8Array as v property.

Possible fix: replace utf8_arr(x.v[0].v) with utf8_arr(x.v[0].v.buffer) or utf8_dec(x.v[0].v).

Or am I getting something wrong?

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.