3

Is there already an implementation (or at least binding to) Python3?

I can see that an original implementation is in Java on Github, but I do not see anything for Python3.

spam
  • 1,853
  • 2
  • 13
  • 33

1 Answers1

2

simple cython-based implementation is provided by data-pipe:

Andrei Pozolotin
  • 897
  • 3
  • 14
  • 21
  • 1
    1) No, this not complete disruptor, rather a capability demonstration. 2) there is no atomic/locking by design 3) yes, there are memory barriers, see native_any.h. 4) Internally, we have developed single producer / multiple consumer variation, still no atomic/locking needed, works both with cross-thread and cross-process profile. – Andrei Pozolotin Feb 28 '20 at 16:06
  • My bad, I did not analyze the code structure thoroughly enough. Not familiar with Cython extensions, *.pxd and *.pyx files confused me :) – Aleksei Petrenko Mar 03 '20 at 03:34
  • After checking again, `native_any.h` and `native_any.pxd` define `native_bool_compare_swap_int` to expose the GCC compiler intrinsic. But as far as I can tell, this function is never used in any other file. Same for `native_synchronize`. Can you please explain how this works? – Aleksei Petrenko Mar 04 '20 at 23:03