Giter Site home page Giter Site logo

Comments (3)

pavel-kirienko avatar pavel-kirienko commented on May 28, 2024

The viability of moving the data type hash from the frame header into the payload segment (that is, changing the layout so that the data type hash is not carried with each frame but only once per transfer) should be assessed. Pros: less overhead. Cons: reduced context per frame complicates diagnostics (esp. postmortem) and makes acceptance filtering by data type impossible.

from specification.

pavel-kirienko avatar pavel-kirienko commented on May 28, 2024

Interesting industry examples (find an overview in my recent post on Data type extensibility and composition:

  1. DDS defines rigorous type compatibility and extensibility model. While extensive, their model has the disadvantage of being complex (undesirable for UAVCAN, where U stands for uncomplicated) and limiting (aliasing is made impossible). Also, the means of assessing compatibility via a dedicated QoS policy as defined by DDS are hard to apply to UAVCAN due to its more stateless nature. Still, DDS is a highly successful and masterfully architected technology that should be looked up to.

  2. Cap'n'Proto takes a simpler approach that is closer in spirit to UAVCAN: it delegates the compatibility issues to the developer by requiring that each file has a randomly-assigned 63-bit unique ID. Then, definitions that are considered compatible (coercible, assignable) by the developer (as opposed to DDS where the decision is ultimately made by the machine) would simply share the same unique-ID. This obviously permits free renaming and modification assuming (boldly) that the developer is careful enough. This approach is not directly transferable to UAVCAN though because it is incompatible with structural subtyping, where different types may still be assignable despite being independent of each other.

For now the Data Type Hash should be just set to zero when transmitting and ignored when receiving. It may be changed in a future revision of the protocol if an adequate solution for the automatic runtime type assignability check is found.

from specification.

pavel-kirienko avatar pavel-kirienko commented on May 28, 2024

Related work: https://forum.uavcan.org/t/type-safety-enhancement-proposal/1416

Methods of mapping such string signature to a numerical data type hash should be explored. One (raw) idea is to represent each entry in the signature as a product (or power) of two primes: one is defined by the index of the entry, the other is its type. Proper arrangement provided, two types can be assumed to be compatible if the data type hash of one is a factor of the other.

from specification.

Related Issues (20)

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.