From: jsaak@... Date: 2018-04-28T18:11:41+00:00 Subject: [ruby-core:86751] [Ruby trunk Feature#14722] python's buffer protocol clone Issue #14722 has been updated by jsaak (jsaak jsaak). The article is an oversimplification, I do agree. But some common mechanism to pass chunks of memory to C libs (gsl, blas, opencv, maybe cuda, and many others) would help I think. This way you could run all of the functions of these libraries on the memory region. And then get the results in rubyland. There are c bindings for these libs, but you can not mix two libs at all (I think). That is why a ruby core mechanism is needed. It is quite possible, that my understanding about this topic is lacking. That is why I asked first. ---------------------------------------- Feature #14722: python's buffer protocol clone https://bugs.ruby-lang.org/issues/14722#change-71704 * Author: jsaak (jsaak jsaak) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: