The Ruby Programming Language https://www.ruby-lang.org/
  • Ruby 57.1%
  • C 29.5%
  • Rust 8.3%
  • C++ 2.5%
  • Yacc 0.8%
  • Other 1.7%
Find a file
Jean Boussier 845bca0acb prism_compile.c: Right size class and module labels
`rb_snprinf` end up creating strings from a larger size pool than
necessary, which isn't ideal for iseq labels as they stay around for
the entirety of the process lifefime.

Using handrolled concatenation and interning, we can save a little
bit of memory (~6MiB / 0.65%) on a corpus of ~1M iseqs.
2026-12-03 12:41:06 +01:00
.github Bump the github-actions group across 1 directory with 5 updates 2026-11-29 23:24:34 -08:00
basictest
benchmark Benchmark: compare String#tr to ERB::Util.html_escape 2026-11-16 11:03:19 +01:00
bin
bootstraptest ZJIT: x64: Fix truncation of memory displacement larger than 16 bit 2026-11-30 20:48:03 -05:00
ccan
coroutine Drop support for Darwin on PowerPC 2026-10-08 07:04:09 +09:00
coverage Drop the stale bundled simplecov TODO 2026-08-31 14:00:09 +09:00
cygwin Remove obsolete -mno-cygwin flag 2026-07-16 09:47:27 +09:00
defs Optimize String.new(capacity:) 2026-11-12 16:40:20 +01:00
doc [DOC] US-ASCII has 128 characters, not 256 2026-12-02 20:43:36 +09:00
enc Don't read past the end in UTF-16LE left_adjust_char_head 2026-11-27 14:32:56 +09:00
ext [ruby/stringio] Fix StringIO returning part of a character as valid 2026-12-03 09:07:26 +00:00
gc GC: Add GC.stat entry for collectible_wb_unprotected_objects 2026-12-02 15:32:19 -05:00
gems Update bundled gems list as of 2026-11-24 2026-11-24 02:33:18 +00:00
include Define RUBY_EVENT_RESERVED_FOR_INTERNAL_USE before its user 2026-12-02 15:21:27 +01:00
internal Bound descriptor usage during recursive file removal 2026-12-02 16:46:36 +09:00
jit YJIT: Fix unused_unsafe warning in StatsAlloc 2025-12-05 15:49:25 -05:00
lib [ruby/rubygems] Update vendored net-http to 0.10.0 2026-12-02 16:06:27 +09:00
libexec [ruby/erb] Fix -h CLI option 2026-07-20 08:22:03 +00:00
man [DOC] Update the date in man pages 2026-09-28 07:29:08 +09:00
misc Move "once storage" outside inline caches 2026-11-30 20:45:10 +01:00
missing dtoa.c: Initialize S in dtoa 2026-11-25 18:23:32 +09:00
prism [ruby/prism] Only treat ASCII space after qmark as space 2026-12-02 21:51:36 +00:00
sample Replace GC.stat scope: with a process: keyword 2026-10-23 17:05:54 +01:00
spec Add a path-based fallback for recursive File.unlink 2026-12-02 16:46:36 +09:00
template simplify calculation of accents for Tibetan vowels 2026-12-01 18:22:36 +09:00
test Fix Math.log with a huge bignum base 2026-12-03 18:22:54 +09:00
tool Encode direct threaded instructions as offsets from a base label 2026-12-03 10:04:00 +01:00
wasm wasm: increase the default Asyncify buffer size 2025-05-03 01:36:13 +08:00
win32 Remove files before recursive directory descent 2026-12-02 16:46:36 +09:00
yjit Flag changed instruction info in the dumped opcode 2026-12-02 13:36:49 +01:00
zjit ZJIT: Give attr_reader calls an ivar inline cache (#20359) 2026-12-02 16:36:04 -08:00
.dir-locals.el
.document [DOC] Only document .c in subfolders 2026-07-22 12:37:58 +09:00
.editorconfig
.gdbinit Store iseq_insn_info in a single contiguous buffer 2026-11-30 16:57:43 +01:00
.git-blame-ignore-revs Ignore revert and reapply [ci skip] 2026-11-20 16:44:58 +09:00
.gitattributes Tell GitHub that *.inc files are autogenerated [ci skip] 2026-08-02 06:56:11 +09:00
.gitignore win32: Add install-gnumake.cmd 2026-10-15 08:00:21 +09:00
.indent.pro
.mailmap
.rdoc_options [DOC] Simplify doc setup (#16393) 2026-03-15 12:47:51 +00:00
.rspec_parallel
aclocal.m4
addr2line.c * addr2line.c (main_exe_path): support OpenBSD via getexecpath() 2026-10-19 20:30:49 -07:00
addr2line.h
array.c [Feature #17056] Guard Array offset specs by version 2026-12-02 13:53:51 +09:00
array.rb ZJIT: Inline and fold Array#last (#19902) 2026-11-24 11:39:36 -08:00
ast.c Fix and test large line numbers 2026-12-02 11:52:58 +01:00
ast.rb [Feature #22520] Return the block node from #syntax_tree for a block 2026-11-17 23:12:34 +01:00
autogen.sh Fix typo in comment regarding symlink flags in autogen.sh 2025-08-07 01:06:50 +09:00
basic_object.rb ZJIT: Inline ISEQs marked :always_inline 2026-10-21 20:48:24 -04:00
bignum.c Initialize the digits of a Bignum before allocating them 2026-11-30 12:53:58 +09:00
box.c [DOC] Fix headings in box.c 2026-11-17 09:30:36 +09:00
BSDL
builtin.c ISeq.load_from_binary: accept file and path like .compile 2026-11-26 22:23:12 +01:00
builtin.h [Bug #21881] Separate the master and root box 2026-05-10 09:38:45 +09:00
Cargo.lock ZJIT: Test rb_profile_frames from signal handler (#17194) 2026-07-01 09:59:27 -07:00
Cargo.toml YJIT: ZJIT: Use opt-level=1 on dev builds to avoid SystemStackError 2026-04-02 20:17:13 -04:00
class.c Clone the prepended iclass chain when cloning a singleton class 2026-12-02 18:53:49 -05:00
common.mk Use exclusive handles for recursive removal on Windows 2026-12-02 16:46:36 +09:00
compar.c [DOC] Doc for Comparable#clamp 2026-10-25 11:07:01 +09:00
compile.c compile.c: shrink outer_variables 2026-12-03 12:11:58 +01:00
complex.c [DOC] Fix outdated results in examples 2026-10-21 17:52:28 +09:00
concurrent_set.c Fix concurrent_set delete missing keys past an in-progress insert 2026-11-16 10:59:10 -07:00
configure.ac Add recursive removal to File.unlink 2026-12-02 16:46:36 +09:00
const_path.c Directly compile constant references into rb_const_path_t 2026-11-29 11:33:36 +01:00
const_path.h Directly compile constant references into rb_const_path_t 2026-11-29 11:33:36 +01:00
constant.h Only the owner Ractor makes its objects shareable [Bug #22419] 2026-11-11 20:38:51 +09:00
cont.c Fix valgrind issues 2026-11-27 09:15:53 -05:00
CONTRIBUTING.md [DOC] Fix contributing link 2025-04-09 19:13:58 +09:00
COPYING [DOC] Cross-links between Japanese and English pages (#15705) 2025-12-23 20:46:57 -06:00
COPYING.ja [DOC] Cross-links between Japanese and English pages (#15705) 2025-12-23 20:46:57 -06:00
darray.h Make ruby_xfree_sized and ruby_xrealloc_sized public 2026-04-01 08:10:07 +01:00
debug.c win32: Add RUBY_DEBUG=wer to leave crashes to Windows Error Reporting 2026-09-29 20:17:41 +09:00
debug_counter.c
debug_counter.h Move "once storage" outside inline caches 2026-11-30 20:45:10 +01:00
depend More efficiently store opt_getconstantpath segments 2026-11-27 07:52:10 +01:00
dir.c Bound descriptor usage during recursive file removal 2026-12-02 16:46:36 +09:00
dir.rb Add parent directory removal options to Dir.rmdir 2026-12-02 16:46:36 +09:00
dln.c dln.c: Free the wide path with the CRT free 2026-10-31 11:38:27 +09:00
dln.h namespace on read 2025-05-11 23:32:50 +09:00
dln_find.c Do not skip path delimiters after multibyte characters in dln_find on Windows 2026-09-27 08:26:13 +09:00
dmydln.c namespace on read 2025-05-11 23:32:50 +09:00
dmyenc.c
dmyext.c
encindex.h Use rb_len_t for the lengths and indices left in long 2026-10-10 16:45:25 +09:00
encoding.c Raise encoding table errors outside the VM lock 2026-11-23 23:05:48 -07:00
enum.c [DOC] Fix hash style in docs of Enumerable#to_h 2026-12-01 20:18:36 +09:00
enumerator.c Return a non-Array value from Enumerator#peek_values as is 2026-11-25 11:51:21 +09:00
error.c Load the error decoration gems by firing their autoloads 2026-10-15 13:50:39 +09:00
eval.c const_path.c: store longer paths in a tree 2026-11-28 09:32:00 +01:00
eval_error.c Use rb_len_t for the lengths and indices left in long 2026-10-10 16:45:25 +09:00
eval_intern.h Remove CharNext from eval_intern.h 2026-09-27 08:26:13 +09:00
eval_jump.c [Bug #22191] Report EXIT handler exceptions after END blocks 2026-07-13 04:22:19 +09:00
file.c Remove files before recursive directory descent 2026-12-02 16:46:36 +09:00
gc.c Fix finalizers being skipped after one raises 2026-12-01 16:19:32 -07:00
gc.rb GC: Add GC.stat entry for collectible_wb_unprotected_objects 2026-12-02 15:32:19 -05:00
gem_prelude.rb Do not consume BUNDLER_SETUP outside the main box 2026-08-06 16:29:37 +09:00
golf_prelude.rb
goruby.c
GPL
hash.c Clear the default proc flag on Hash#initialize with a default value 2026-12-02 16:28:54 +09:00
hash.rb [DOC] Fix link in Hash 2026-01-31 17:45:03 -05:00
hrtime.h
id_table.c shape.c: store edge name as rb_id_serial_t 2026-11-26 08:37:31 +01:00
id_table.h shape.c: store edge name as rb_id_serial_t 2026-11-26 08:37:31 +01:00
imemo.c Move "once storage" outside inline caches 2026-11-30 20:45:10 +01:00
inits.c Don't create CCs for methods we assume are cold 2026-10-27 09:49:20 -04:00
insns.def Move "once storage" outside inline caches 2026-11-30 20:45:10 +01:00
internal.h Set the long path bit for embedded interpreters too 2026-08-19 16:31:10 +09:00
io.c Fix ARGF#closed? crash when no file has been opened 2026-12-02 16:19:19 +09:00
io.rb io.c: ignore failure to set O_NONBLOCK in ARGF.read_nonblock 2026-10-13 18:42:52 +09:00
io_buffer.c Avoid copy-on-write commit for read-only private mappings on Windows 2026-11-25 09:26:12 +09:00
iseq.c Store instruction lines and events in the instruction slots 2026-12-03 10:04:00 +01:00
iseq.h Set up insns_info from the iseq body 2026-12-02 11:57:20 +01:00
jit.c More efficiently store opt_getconstantpath segments 2026-11-27 07:52:10 +01:00
jit_hook.rb ZJIT: Inline BasicObject#!= through a JIT hook (#19162) 2026-10-14 18:00:32 +00:00
jit_undef.rb ZJIT: Inline BasicObject#!= through a JIT hook (#19162) 2026-10-14 18:00:32 +00:00
kernel.rb ZJIT: Force inlining of methods annotated with Primitive.inline_block (#17864) 2026-11-18 16:40:30 -05:00
KNOWNBUGS.rb
LEGAL win32: Add --with-mimalloc 2026-11-04 10:28:54 +09:00
lex.c.blt
load.c Fix ractor require spawning a thread for an already required file 2026-11-16 11:51:57 -05:00
loadpath.c
localeinit.c [DOC] Encoding.locale_charmap never returns nil (#18943) 2026-09-23 11:12:40 +01:00
main.c Make wrapper of main for wasm more generic 2025-03-16 17:33:58 +09:00
marshal.c Document the klass parameter of r_object_for 2026-11-25 17:52:52 +01:00
marshal.rb Look up the nearest user box for :caller_user_box 2026-09-14 12:39:17 +09:00
math.c Fix Math.log with a huge bignum base 2026-12-03 18:22:54 +09:00
memory_view.c Skip whitespace in rb_memory_view_parse_item_format fill pass (#19807) 2026-11-14 19:43:38 +09:00
method.h Fix a ractor alias concurrency bug involving method definitions 2026-11-12 20:04:23 -05:00
mini_builtin.c Move prism_compile.h include out of iseq.h 2026-10-14 16:20:26 +02:00
miniinit.c
NEWS.md Mention that resolv prefers the registry on Windows in NEWS 2026-12-03 08:58:30 +09:00
nilclass.rb Move more NilClass methods to ruby 2025-06-12 09:30:09 +02:00
node.c [Feature #22215] Remove vm_core dependency from gc header 2026-08-07 09:59:15 +09:00
node.h Make node line macros inline functions 2025-01-30 18:19:53 +09:00
node_dump.c Add NODE SCLASS locations 2025-08-30 22:41:23 +09:00
numeric.c Return 0 early from Integer#floor/#ceil when 10**-ndigits is too large 2026-12-02 21:57:12 +09:00
numeric.rb ZJIT: Align Integer#downto with the C implementation (#19787) 2026-11-20 11:18:13 -08:00
object.c Keep the members of Struct and Data classes in an inline field of the class (#19907) 2026-11-22 10:30:45 +01:00
pack.c Keep the buffer alive while packing a BER-compressed integer 2026-11-27 14:13:31 +09:00
pack.rb [DOC] Move packed_data from rdoc to markdown 2026-05-31 17:32:47 +09:00
parse.y Pass the length of a magic comment value to its handler 2026-12-02 15:43:42 +09:00
parser_bits.h Remove unused MSC_VERSION_SINCE and MSC_VERSION_BEFORE 2026-09-26 12:42:26 +09:00
parser_node.h
parser_st.c marshal.c: embed compat_tbl in load and dump args 2026-09-24 13:31:56 +02:00
parser_st.h [DOC] Fix typos in C comments 2026-07-23 12:08:25 +09:00
parser_value.h Make rb_len_t 64 bits on mswin 2026-10-19 16:07:39 +09:00
pathname.c Use rb_len_t for path lengths 2026-10-09 14:00:15 +09:00
pathname_builtin.rb [DOC] Harmonize world_readable? methods 2026-10-16 08:48:20 +09:00
prelude.rb Move Enumerable#to_set from prelude.rb to set.c 2026-11-06 17:56:06 +09:00
prism_compile.c prism_compile.c: Right size class and module labels 2026-12-03 12:41:06 +01:00
prism_compile.h [PRISM] Acquire frozen snapshots of source and filepath 2026-12-02 22:27:55 -05:00
prism_init.c Fix some prism docs 2026-10-19 19:54:37 +02:00
prism_xallocator.h [Bug #21868] Use ruby allocator for prism 2026-02-18 09:19:56 +01:00
probes.d Fix argument types 2026-07-07 20:59:49 +09:00
probes_helper.h
proc.c Fix Method#super_method for an alias of a superclass method 2026-12-02 19:18:03 -08:00
process.c Set errno from fork(2) when rb_fork_ruby fails 2026-11-29 18:13:54 +09:00
ractor.c Preserve string capacity when moving between Ractors 2026-12-03 19:03:27 +09:00
ractor.rb Ractor.select raises if any port is closed 2026-11-28 00:03:34 +00:00
ractor_core.h Keep one reply port per Ractor for internal requests 2026-11-11 20:38:51 +09:00
ractor_sync.c Ractor.select raises if any port is closed 2026-11-28 00:03:34 +00:00
random.c Use rb_len_t for byte lengths in random.c 2026-10-09 14:00:15 +09:00
range.c Fix signed integer overflow in rb_range_component_beg_len 2026-11-11 03:40:25 +09:00
rational.c Use rb_len_t for string lengths in numeric conversions 2026-10-09 14:00:15 +09:00
re.c [DOC] Fix incorrect information in Regexp.new 2026-12-01 16:00:32 +09:00
README.ja.md [DOC] Cross-link between README pages 2025-12-04 13:58:26 -08:00
README.md [DOC] Cross-link between README pages 2025-12-04 13:58:26 -08:00
regcomp.c Cut the look-ahead literal of the optimizer at a character boundary 2026-11-30 02:53:59 +09:00
regenc.c Do not take a negative code point for ASCII 2026-11-25 16:58:12 +09:00
regenc.h Do not take a negative code point for ASCII 2026-11-25 16:58:12 +09:00
regerror.c Do not read the subject at its end, and keep sprev right after an empty back reference 2026-11-25 16:55:07 +09:00
regexec.c Disable the match cache when the size of the cache opcodes overflows 2026-11-25 18:28:58 +09:00
regint.h Check integer overflows in Onigmo 2026-11-25 17:40:24 +09:00
regparse.c Check integer overflows in Onigmo 2026-11-25 17:40:24 +09:00
regparse.h Reject huge character class data at parse time 2026-11-25 17:24:22 +09:00
regsyntax.c
ruby-runner.c Do not overwrite GEM_PATH if already set 2025-02-10 18:04:25 +09:00
ruby.c Keep the shebang line alive while parsing the options in it 2026-11-30 23:14:04 +09:00
ruby.rs ZJIT: Move jit.rs to ruby.rs and create a shared crate jit 2025-09-11 21:51:47 -07:00
ruby_assert.h
ruby_atomic.h const_path.c: store longer paths in a tree 2026-11-28 09:32:00 +01:00
ruby_parser.c Fix and test large line numbers 2026-12-02 11:52:58 +01:00
rubyparser.h Use digit scanner in the universal parser 2026-10-27 01:32:35 +09:00
rubystub.c
scheduler.c Scope fiber_interrupt with an operation proxy. (#18793) 2026-09-13 14:48:19 +12:00
set.c [DOC] Fix Set method descriptions in What's Here 2026-12-02 16:36:28 +09:00
shape.c Fix -Wshorten-64-to-32 in rb_shape_object_id_child_exists_p 2026-11-26 13:53:34 -05:00
shape.h Define RBASIC_SET_SHAPE_ID_ATOMIC as a macro 2026-11-26 23:43:55 +00:00
signal.c trap: use shareable Proc semantics on non-main Ractors 2026-11-04 08:13:19 -07:00
siphash.c Suppress gcc 15 unterminated-string-initialization warnings 2025-04-30 20:04:10 +09:00
siphash.h
sparc.c
sprintf.c Suppress type-limits warning 2026-11-30 21:59:55 +09:00
st.c Detect the table replaced by eql? during lookups 2026-11-30 12:27:39 +09:00
strftime.c [Bug #22458] Fix out-of-bound in Time#strftime 2026-10-21 20:19:58 +09:00
string.c Make rb_str_new_owned embed embeddable strings 2026-12-03 19:03:27 +09:00
string.rb Optimize String.new(capacity:) 2026-11-12 16:40:20 +01:00
struct.c Look up struct info through singleton classes of Struct and Data instances 2026-12-02 16:43:44 +09:00
symbol.c Add ruby_debug_* symbol aliases for external profilers 2026-12-01 10:14:04 +01:00
symbol.h More efficiently store opt_getconstantpath segments 2026-11-27 07:52:10 +01:00
symbol.rb Symbol#to_s now returns a frozen string. 2026-07-10 10:02:00 +02:00
thread.c Fix and test large line numbers 2026-12-02 11:52:58 +01:00
thread_none.c Join getaddrinfo and getnameinfo threads before fork 2026-10-14 10:46:00 +02:00
thread_none.h Always use the no-inline rb_current_ec() 2026-10-22 00:27:26 +09:00
thread_pthread.c Build again where pthread_t is not a scalar 2026-11-11 16:37:31 +09:00
thread_pthread.h Always use the no-inline rb_current_ec() 2026-10-22 00:27:26 +09:00
thread_sched.c Run Ractor-targeted postponed jobs on whichever thread takes the GVL 2026-11-11 20:38:51 +09:00
thread_sched.h Let an interrupted M:N io wait handle the interrupt and wait again 2026-10-21 10:08:38 +09:00
thread_sched_mn.c Fix valgrind issues 2026-11-27 09:15:53 -05:00
thread_sync.c Fix missing write barrier in Thread::Queue#initialize 2026-12-01 14:06:20 +09:00
thread_sync.rb Use rb_len_t for Thread::Queue lengths 2026-10-09 14:00:15 +09:00
thread_win32.c Win32: Match the thread routine type of _beginthreadex 2026-10-15 13:39:04 +09:00
thread_win32.h Share one thread/ractor scheduler between POSIX and Windows 2026-08-29 04:04:48 +09:00
time.c Fix UB in time_timespec for out of range values for tv 2026-11-30 11:29:20 -05:00
timev.h
timev.rb [DOC] Inline UTF-8 docs into C code 2026-11-06 00:11:32 +09:00
trace_point.rb Make tracepoints with set_trace_func or TracePoint.new ractor local (#15468) 2025-12-16 14:06:55 -05:00
transcode.c Insert the replacement before the pending input of the converter 2026-11-24 17:18:51 +09:00
transcode_data.h
universal_parser.c [Bug #22597] Reject incompatible encoding name variables 2026-11-18 23:40:45 +09:00
util.c Stop including missing/file.h in dln.c and util.c 2026-09-27 06:05:59 +09:00
variable.c Set a class's shape id atomically 2026-11-26 18:22:06 +00:00
variable.h imemo.c: embed the st_table inside rb_fields 2026-07-14 23:50:17 +02:00
vcpkg.json win32: Add --with-mimalloc 2026-11-04 10:28:54 +09:00
version.c Fix length of ruby_description for modular GC 2026-07-26 09:37:20 -04:00
version.h
vm.c Make rb_iseq_line_no() return an int 2026-12-01 22:36:06 +01:00
vm_args.c vm_core.h: Normalize param.post_start and param.rest_start 2026-11-30 08:26:29 +01:00
vm_backtrace.c Look up a frame's line from the instruction boundary at its pc 2026-12-02 11:57:20 +01:00
vm_callinfo.h [Bug #22539] Do not apply refinements to the initialize call of opt_new 2026-11-12 12:39:37 +01:00
vm_core.h Store instruction lines and events in the instruction slots 2026-12-03 10:04:00 +01:00
vm_debug.h _RUBY_DEBUG_LOG usable anywhere 2025-12-10 10:23:37 +09:00
vm_dump.c Use rb_len_t for Array and String lengths in the VM 2026-10-09 14:00:15 +09:00
vm_eval.c Fix buffer overflow in Thread with certain symbol procs 2026-11-19 07:02:36 +09:00
vm_exec.c Encode direct threaded instructions as offsets from a base label 2026-12-03 10:04:00 +01:00
vm_exec.h Encode direct threaded instructions as offsets from a base label 2026-12-03 10:04:00 +01:00
vm_insnhelper.c Fix memory leak in targeted TracePoint 2026-12-03 16:44:47 +09:00
vm_insnhelper.h Fix gdb rb_ps helper (#16896) 2026-05-08 11:27:05 -07:00
vm_method.c Fix and test large line numbers 2026-12-02 11:52:58 +01:00
vm_opts.h Remove unreferenced OPT_GLOBAL_METHOD_CACHE and OPT_UNIFY_ALL_COMBINATION 2026-07-15 09:42:05 +09:00
vm_sync.c Add assertions that interrupts aren't checked when VM lock taken. (#18832) 2026-09-15 16:23:10 +12:00
vm_sync.h ObjectSpace.{dump,dump_all,dump_shapes} needs vm barrier. (#15569) 2025-12-17 12:17:30 -05:00
vm_trace.c Fix and test large line numbers 2026-12-02 11:52:58 +01:00
vsnprintf.c Fix vnsprintf.c UB found with UBSan 2026-12-01 10:56:25 -05:00
warning.rb
weakmap.c Fix WeakMap#each yielding entries twice or stopping early 2026-11-23 11:31:59 -07:00
yjit.c Make rb_iseq_line_no() return an int 2026-12-01 22:36:06 +01:00
yjit.h win32: Support YJIT on arm64 2026-11-06 07:15:38 +09:00
yjit.rb YJIT: Do not suggest ./configure --enable-yjit=dev on mswin 2026-10-07 06:11:37 +09:00
zjit.c Encode direct threaded instructions as offsets from a base label 2026-12-03 10:04:00 +01:00
zjit.h ZJIT: Dodge &mut-on-read-only UB with C frame JITFrame 2026-11-24 14:35:56 -05:00
zjit.rb ZJIT: Inline block bodies on invokeblock (#20137) 2026-11-25 21:01:08 -08:00

Actions Status: MinGW Actions Status: Ubuntu Actions Status: Windows Travis Status

日本語

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

https://www.ruby-lang.org/

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.

matz@ruby-lang.org