"Ruby from Other Languages" > "To Ruby From C and C++"
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- documentation
Research direction
Start with /documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/ and read the “Similarities with C++” and “Differences from C++” sections, including each quoted statement. Check the documented points about Proc syntax, container types, coercion and conversions, and threading against current Ruby behavior. Done means updating this page and reviewing the other “Ruby from Other Languages” pages for changes since Ruby 1.8.x.
Written by the indexing model from the issue text.
Description
Needs review and updating for new features since 2.0
page path:
"/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/"
(1) section Similarities with C++
The C++ -> operator is mentioned. The new Ruby use of the -> operator for declaring Proc objects should perhaps be mentioned (in the Differences section, and linked from here.)
(2) section Differences from C++
"There’s only two container types:
ArrayandHash."
What of Set, Struct, Matrix or Range ?
(3) section Differences from C++
"There’s no type conversions. With Ruby though, you’ll probably find that they aren’t necessary."
Should there be mention of coercion ?
Or the global functions such as Integer(), Float(), etc.
(4) section Differences from C++
"Multithreading is built-in, but as of Ruby 1.8 they are “green threads” (implemented only within the interpreter) as opposed to native threads."
This appears to not have been changed since 1.8. Has this changed with 2.x and later ?
- All "Ruby from Other Languages" pages should be reviewed for changes since v 1.8.x.
- Dominant language
- HTML
- Stars
- 944
- Forks
- 673
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/www.ruby-lang.org
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ruby/www.ruby-lang.org#3702 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
ruby/www.ruby-lang.org#2791 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ruby/www.ruby-lang.org#3946 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
ruby/www.ruby-lang.org#3800 ·
-
ruby/www.ruby-lang.org#3791 · 1 comment · 1 reaction · 2 assignees ·
All issues in ruby/www.ruby-lang.org
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Mintplex-Labs/anything-llm#6490 ·
-
bug needs response
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Adyen/adyen-dotnet-api-library#1869 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
w3c/webdriver-bidi#1168 ·
-
area/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
rancher/fleet-product-docs#393 ·
-
Type/Improvement
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
OpenNSW/nsw-srilanka#522 ·