We don't free the method table for FrozenCore since it is converted to
an iclass and doesn't have the iclass_is_origin flag set. This causes a
memory leak to be reported during RUBY_FREE_AT_EXIT:
14 dyld 0x19f13ab98 start + 6076
13 miniruby 0x100644928 main + 96 main.c:62
12 miniruby 0x10064498c rb_main + 48 main.c:42
11 miniruby 0x10073be0c ruby_init + 16 eval.c:98
10 miniruby 0x10073bc6c ruby_setup + 232 eval.c:87
9 miniruby 0x100786b98 rb_call_inits + 168 inits.c:63
8 miniruby 0x1009b5010 Init_VM + 212 vm.c:4017
7 miniruby 0x10067aae8 rb_class_new + 44 class.c:834
6 miniruby 0x10067a04c rb_class_boot + 48 class.c:748
5 miniruby 0x10067a250 class_initialize_method_table + 32 class.c:721
4 miniruby 0x1009412a8 rb_id_table_create + 24 id_table.c:98
3 miniruby 0x100759fac ruby_xmalloc + 24 gc.c:5201
2 miniruby 0x10075fc14 ruby_xmalloc_body + 52 gc.c:5211
1 miniruby 0x1007726b4 rb_gc_impl_malloc + 92 default.c:8141
0 libsystem_malloc.dylib 0x19f30d12c _malloc_zone_malloc_instrumented_or_legacy + 152
What is Ruby?
Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible.
Features of Ruby
- Simple Syntax
- Normal Object-oriented Features (e.g. class, method calls)
- Advanced Object-oriented Features (e.g. mix-in, singleton-method)
- Operator Overloading
- Exception Handling
- Iterators and Closures
- Garbage Collection
- Dynamic Loading of Object Files (on some architectures)
- Highly Portable (works on many Unix-like/POSIX compatible platforms as well as Windows, macOS, etc.) cf. https://docs.ruby-lang.org/en/master/maintainers_md.html#label-Platform+Maintainers
How to get Ruby
For a complete list of ways to install Ruby, including using third-party tools like rvm, see:
https://www.ruby-lang.org/en/downloads/
You can download release packages and the snapshot of the repository. If you want to download whole versions of Ruby, please visit https://www.ruby-lang.org/en/downloads/releases/.
Download with Git
The mirror of the Ruby source tree can be checked out with the following command:
$ git clone https://github.com/ruby/ruby.git
There are some other branches under development. Try the following command to see the list of branches:
$ git ls-remote https://github.com/ruby/ruby.git
You may also want to use https://git.ruby-lang.org/ruby.git (actual master of Ruby source) if you are a committer.
How to build
See Building Ruby
Ruby home page
Documentation
Mailing list
There is a mailing list to discuss Ruby. To subscribe to this list, please send the following phrase:
join
in the mail subject (not body) to the address ruby-talk-request@ml.ruby-lang.org.
Copying
See the file COPYING.
Feedback
Questions about the Ruby language can be asked on the Ruby-Talk mailing list or on websites like https://stackoverflow.com.
Bugs should be reported at https://bugs.ruby-lang.org. Read "Reporting Issues" for more information.
Contributing
See "Contributing to Ruby", which includes setup and build instructions.
The Author
Ruby was originally designed and developed by Yukihiro Matsumoto (Matz) in 1995.