Giter Club home page Giter Club logo

Comments (6)

 avatar commented on August 10, 2024

This is a good idea. +1

from arsenal.

 avatar commented on August 10, 2024

I also Approve (Although I would prefer a simpler name to understand than
KineticPDU)

David Pineau
Scality R&D Developer

On Tue, Oct 27, 2015 at 1:13 AM, Michael Zapata [email protected]
wrote:

This is a good idea. +1


Reply to this email directly or view it on GitHub
#18 (comment)
.

from arsenal.

 avatar commented on August 10, 2024

Hm, thinking back on it, the Kinetic class was supposed to represent a single message. I don't see where the problem is.

from arsenal.

ironman-machine avatar ironman-machine commented on August 10, 2024

Here, I'm trusting the comments made by each of you. Maybe we're actually
looking too much into it, and Allocating a Kinetic class for each message
is more than enough...?

David Pineau
Scality R&D Developer

On Wed, Oct 28, 2015 at 5:32 PM, Michael Zapata [email protected]
wrote:

Hm, the Kinetic class was supposed to represent a single message. I don't
see where the problem is.


Reply to this email directly or view it on GitHub
#18 (comment)
.

from arsenal.

adrienverge avatar adrienverge commented on August 10, 2024

@AntoninCoulibaly Here is how I ideally see the implementation:

Kinetic.js would not export a class Kinetic, but functions such as receivePDU() or sendPDU(pdu, socket); and static constants such as errors.INVALID_STATUS_CODE.

So from another project such as Data, we could do:

import kinetic from 'arsenal';

const incomingPDU = kinetic.receivePDU();
const incomingProtobuf = incomingPDU.protobuf;
log.info("operation " + incomingProtobuf.opType); // GET, PUT...

// process data

const response = new kinetic.PDU();
response.protobuf.error = kinetic.errors.INVALID_STATUS_CODE;
kinetic.sendPDU(response, mySocket);

Does it make sense?

from arsenal.

koolfunky avatar koolfunky commented on August 10, 2024

It make sense, I think we have to discuss about this to see what we allocate in the Kinetic class. Because it is true than some function can be usable without the instance like computeHMAC() or parse(), but not much I think.

For the static constants I'm really on this idea.

from arsenal.

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.