pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
104 stars 17 forks source link

Cross-actor, shm, (tick) ring buffer #107

Open goodboy opened 4 years ago

goodboy commented 4 years ago

As part of the fsp subsystem design we're likely going to want to implement some shared memory systems for low latency multi-time frame calcs. I've started a couple design ideas about this in #98 but I do think for sure part of this system will require a fast ring buffer for numpy data:

Here's a starter list of projects to try after some very brief searching


committed to long ago

committed recently

It may just end up we take a lang from #106 and implement one or try out some designs from above on the new SharedMemory type which has an example using a numpy array. An example wrapper for an older version of this from the scipy cookbooks is here.


disruptor style

The "lurkers" said LMAX already did this best with their disruptor project. I think we can make a very cool variant of this with actors, numpy and numba:


As always, lurkers please chime.

goodboy commented 4 years ago

The "lurkers" said LMAX already did this best with their disruptor project:

I think we can make a very cool variant of this with actors, numpy and numba.

goodboy commented 3 years ago

data_pipe is another one to check out (though not sure it'll have numpy support at all).

Looks to imply it has some disruptor style examples.

goodboy commented 3 years ago

This definitely can tie in with #192 @guilledk