Project

General

Profile

ActionsLike0

Feature #14722

closed

python's buffer protocol clone

Added by jsaak (jsaak jsaak) almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:86746]

Description

Is there a way to implement, or even copy Python's buffer protocol in ruby?

There is an article that describes the benefits quite well:
https://jeffknupp.com/blog/2017/09/15/python-is-the-fastest-growing-programming-language-due-to-a-feature-youve-never-heard-of/

I did some work with machine vision, and the ability to manipulate images fast was also not realistic with ruby today.
This could be another area where ruby could shine.

Maybe this idea is worth a comment.


Related issues 1 (0 open1 closed)

Related to Ruby - Feature #13767: add something like python's buffer protocol to share memory between different narray like classesClosedActions

Added by Kenta Murata over 4 years ago

Revision 56012d2f

NEWS.md: Add memory view entry

The memory view interface added at 890bc2cdde is experimental new C-API
set. This feature permits extension libraries to share a memory area
that contains such a numerical array and a bitmap image. This is
designed by referring to Python's buffer protocol.
[[Feature #13767]]
[[Feature #14722]]

ActionsLike0

Also available in: Atom PDF