Git Product home page Git Product logo

Comments (5)

joeblew99 avatar joeblew99 commented on July 22, 2024

i was using protocol buffers (PB) and recently started to use FlatBuffers (FB) for perf reasons.
FB is the successor to PB that has been in the alpha oven for a while now, but is now ready (IMHO)

http://google.github.io/flatbuffers/

if seems a good match this Glow, and i am curious on your thoughts.
There is no reflection, but instead the go files are code generated at compile time. There is no heap if used correctly at runtime.

I also liked the ability to serialise between FB and JSON. This allows the data types to be reused in the any web layer for a application.

from glow.

chrislusf avatar chrislusf commented on July 22, 2024

Protocol Buffer or Flat Buffer need definition and code generation. They could be used to customize ser/de.

The default ser/de should not need any additional steps.

from glow.

joeblew99 avatar joeblew99 commented on July 22, 2024

ok. I need to look into the code to see how your doing it. I guess its reflection based ?

from glow.

alpe avatar alpe commented on July 22, 2024

Fyi: The package was renamed to netchan:
https://github.com/chrislusf/glow/blob/master/netchan/channels.go#L52
https://github.com/chrislusf/glow/blob/master/netchan/channels.go#L77

from glow.

zenixls2 avatar zenixls2 commented on July 22, 2024

if you really want to use DeDiS/protobuf,
maybe write a func EncodeValue(value reflect.Value) to wrap from L51~L57
https://github.com/dedis/protobuf/blob/master/encode.go#L51
and write another func (dec *Decoder) DecodeValue(v reflect.Value) to wrap L64
https://github.com/dedis/protobuf/blob/master/decode.go#L64

from glow.

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.