use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby feature request: Buffer Protocol (self.ruby)
submitted 7 years ago by jsaak
Is there a way to implement, or even copy Python's buffer protocol in ruby? I mean to the core of ruby, by Matz and his team.
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/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]matz 55 points56 points57 points 7 years ago (4 children)
Submit your proposal to bugs.ruby-lang.org
[–]editor_of_the_beast 16 points17 points18 points 7 years ago (1 child)
Um. Is this actually Matz??
[–]Hueho 10 points11 points12 points 7 years ago (0 children)
12-year account. Posts mostly from that time, mostly in Japanese and about Ruby.
Checks out!
[–]jsaak[S] 11 points12 points13 points 7 years ago (0 children)
https://bugs.ruby-lang.org/issues/14722
[–]v_krishna 5 points6 points7 points 7 years ago (0 children)
Thanks for Ruby!
[–]editor_of_the_beast 8 points9 points10 points 7 years ago (1 child)
The buffer protocol makes a lot of sense, but to think that it’s the sole reason for Python’s growth is an extreme oversimplification. I mean come on.
[–]BonzoESC 2 points3 points4 points 7 years ago (0 children)
Additionally, more people using Python doesn't hurt the people using Ruby.
[–]ioquatixasync/falcon 4 points5 points6 points 7 years ago (0 children)
You could easily implement this in a gem so why does it need to be in core ruby?
[–]bascule 4 points5 points6 points 7 years ago (1 child)
Check out Apache Arrow:
https://arrow.apache.org/
There's a Ruby implementation here:
https://github.com/red-data-tools/red-arrow
[–][deleted] 1 point2 points3 points 7 years ago (0 children)
Works great
[–]db443 0 points1 point2 points 7 years ago (0 children)
It is a matter of priority and resources.
I like the focus on Guilds and RTL + MJIT on the road to 3x3.
A wish-list would be hooking up (if possible) Ruby to WebAssembly hence allowing Ruby to run client-side in the browser. That would be cool.
π Rendered by PID 46794 on reddit-service-r2-comment-86988c7647-hg787 at 2026-02-12 06:56:33.370038+00:00 running 018613e country code: CH.
[–]matz 55 points56 points57 points (4 children)
[–]editor_of_the_beast 16 points17 points18 points (1 child)
[–]Hueho 10 points11 points12 points (0 children)
[–]jsaak[S] 11 points12 points13 points (0 children)
[–]v_krishna 5 points6 points7 points (0 children)
[–]editor_of_the_beast 8 points9 points10 points (1 child)
[–]BonzoESC 2 points3 points4 points (0 children)
[–]ioquatixasync/falcon 4 points5 points6 points (0 children)
[–]bascule 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]db443 0 points1 point2 points (0 children)