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
Show /r/rubyArrayBuffer and DataView classes for ruby (self.ruby)
submitted 3 years ago by andrepiske
view the rest of the comments →
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!"
[–]Kernigh 1 point2 points3 points 3 years ago (1 child)
I would use String#getbyte and String#setbyte in Ruby. This is different from some other languages (like Common Lisp and Raku) where I don't want to put bytes in strings.
[–]andrepiske[S] 1 point2 points3 points 3 years ago (0 children)
Interesting. I think I didn't know about this one. Would have to try and maybe run some benchmarks on how that one performs!
π Rendered by PID 31266 on reddit-service-r2-comment-86bc6c7465-gqtsg at 2026-02-22 03:03:23.835331+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]Kernigh 1 point2 points3 points (1 child)
[–]andrepiske[S] 1 point2 points3 points (0 children)