akeep / p4-proposals Goto Github PK
View Code? Open in Web Editor NEWCollaboration space for working on in-progress proposals with a smaller team.
Collaboration space for working on in-progress proposals with a smaller team.
I don't know how far any progress might be on this issue, but wanted to leave a pointer to it on this repo's issue, for reference.
It has slightly different syntax for adding new error codes, and unlike enum has no 'type name' -- there is only one 'error enum' in any P4_16 program as specified now, but anyone can add more values to it anywhere at the top level of the program, or multiple places later.
One use case for making it serializable is to pass the value to the control plane in a header of a packet that experienced a parser error. Not a capability everyone would want in their P4 programs, but some may.
Summary: I believe that bool is currently in the same boat as enum as far as serializability goes, with 0 distinctions in what you can do with them.
This comment is prompted by this sentence in Section 3 of the serializable types proposal: "Currently, some scalar types (like bool types) are not explicitly serializable unless they are included as part of a header in the current spec"
bool is defined to have a way to cast a value of that type to bit<1>, or from bit<1> to bool.
Including either of them in a header is an error for the latest p4test and p4c-bm2-ss open source compilers.
I believe it is not allowed by the P4_16 v1.0.0 spec, either.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.