Coder Social home page Coder Social logo

data drop / fifo overrun about raftlib HOT 5 OPEN

raftlib avatar raftlib commented on May 16, 2024
data drop / fifo overrun

from raftlib.

Comments (5)

jonathan-beard avatar jonathan-beard commented on May 16, 2024

from raftlib.

jdavidberger avatar jdavidberger commented on May 16, 2024

I looked into some of the code that was there and wasn't sure what the intention was for some of that.

Are you thinking this should be a run-time parameter you can set on the FIFO -- something like setOverflowBehavior -- or as a separate implementation type entirely put in the const_map for port_info?

from raftlib.

jonathan-beard avatar jonathan-beard commented on May 16, 2024

from raftlib.

jdavidberger avatar jdavidberger commented on May 16, 2024

I checked out dev; seems like a lot is ifdef'ed out for the refactor so I couldn't trace through it while running.

It seems like overrun behavior should be settable on the port and not the kernel. So would the syntax look something like:

M += s["0"] >> raft::manip< raft::fifo::drop_overrun >::value >> l;

to set the fifo to drop overruns for s["0"]?

That seems to imply that this is a run-time settable attribute on the FIFO -- by the time any of the stream operators kick in, the ports are already made -- so would a PR where you can set the behavior directly on the FIFO be helpful until the refactor with more manip functionality is done?

from raftlib.

jonathan-beard avatar jonathan-beard commented on May 16, 2024

This one will be added into the improved parser over my current vacation :).

I'd rather not create yet another syntax option that would fragment the environment. The only problem with the runtime settable version is creating more than one way of doing things...which isn't a problem in and of itself, but does make it harder for people to learn.

from raftlib.

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.