Coder Social home page Coder Social logo

numero-uri's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

numero-uri's Issues

Could we merge HttpEncoder and UrlTemplater

The HttpEncoder seems to be stateless and allways takes an UrlTemplater. So imagine we renamed the UrlTemplater to be UrlEncoder and hung the encode and decode off of it. Seems like that would make more sense to users.

Create a new repo and start and IETF spec for this

Spec needs to describe the template format and how an given URL gets encoded

Need to describe way location on github for the URI templates and way to update that based on PR from owner of given PEN

Need to be in mmark ( not kramdown )

refactors includes

I think we can move to only the public includes that a user of the library needs are in ./inc

Refactor library a bit

I think all the stuff for managing configuration should be outside the library and the library works on the assumption that a valid JSON file is loaded into memory then passed into the library. So the CLI program might still have stuff for accessing a file but it all moves out to that.

Support more than one template under a give pen/sub-pen combination

MOQ has the concept of Track Namespace and Track Names to which things subscribe to.
When mapping between MoQ Tracks to Quicr Namespace, we need to be able to look up multiple prefixes under a given sub-pen.

This requires support in template addition/encode/decode flows.

Compiler error on the main

In file included from /Users/snk/work/m10x/numero-uri/cli/src/main.cc:6:
/Users/snk/work/m10x/numero-uri/cli/inc/TemplateFileManager.hh:22:19: error: implicit instantiation of undefined template 'std::basic_stringstream'
stream->write(buf, count);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/c++/v1/iosfwd:144:32: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_stringstream;
^
In file included from /Users/snk/work/m10x/numero-uri/cli/src/main.cc:6:
/Users/snk/work/m10x/numero-uri/cli/inc/TemplateFileManager.hh:56:27: error: implicit instantiation of undefined template 'std::basic_stringstream'
std::stringstream stream;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include/c++/v1/iosfwd:144:32: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_stringstream;
^
/Users/snk/work/m10x/numero-uri/cli/src/main.cc:58:21: error: call

int128 implementation

Lets talk about much faster way to do the uint128 stuff.

On a bunch of stuff use, we can do it with direct compiler support for in128 and on others I would like to use a struct with two int64

Can we get off gtest ?

I would love to pick a test framework that was not gtest - it has constant installation problems. That said, I am not sure what to move to ?

Do we need the JSON

If we end up with just a list of template strings, does make me wonder if we need it or not

Add editing functionality to templates

Current behaviour:
We cannot edit a template in code once it has been made without having to edit the template file.

Expected behaviour:
We should be able to pass a PEN value and receive the template that is associated with it for viewing and be able to pass a PEN value and an updated url_template object.

Encoding seem wrong

If I add a template for then encode
encode https://webex.com/1/meeting0/room0

I get a hex number of
56BC75E2D631000000000000000

Similarly is I move I do pen 0 and
https://webex.com/0/meeting0/room1

I get a hex dec number of
0000000000000000025600000000000000000000
which is hex
56BC75E2D6310000000

I did not poke into how this is all going but something is not right in encoding or in print out of number of something

refactor example CLI

We should move all the stuff for the CLI to be in ./cmd director that has the source for that and is a seperate project that calls the library. Sort of like test libs are done

Allow multiple templates for single pen

Allow an optional subPen which is 8 bit number that follows the pen and is constant ( like the pen ) that is provided in template and allows for 256 templates in single pen

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.