mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3e5e84e391
The HAL was integrated into mruby-task/ports/{posix,win}/ in
be6413f0d8 and the function names were updated in 610ff67906, but
the docs and one header still described the old separate-gem layout:
- mrbgems/mruby-task/README.md described hal-posix-task and
hal-win-task as separate gems, used the pre-rename function
names (mrb_task_hal_*), and omitted mrb_hal_task_sleep_us.
Rewrote the HAL section to match the current ports/ model.
- mrbgems/mruby-task/include/task.h had three orphan declarations
(mrb_task_hal_init / _final / _idle_cpu) from before the
rename. Removed; the real declarations are in task_hal.h.
- mrbgems/mruby-task/include/task_hal.h had a comment referring
to the removed hal-* gems.
- doc/guides/amalgamation.md listed hal-posix-io and hal-posix-task
as platform-specific gems alongside mruby-io and mruby-task; both
are now ports under the parent gem.
Reported by Asmod4n in #6825.
Co-authored-by: Claude <noreply@anthropic.com>
mruby Documentation
Getting Started
New to mruby? Start here:
| Document | Description |
|---|---|
| Getting Started | Build mruby and run your first program |
| Language Features | Ruby subset supported by mruby |
| Limitations | Behavioral differences from CRuby |
Guides (for embedders and gem authors)
Embedding mruby in C
| Document | Description |
|---|---|
| C API Reference | Values, classes, methods, error handling, fibers |
| GC Arena | Managing temporary objects in C extensions |
| Linking | Linking with libmruby |
| Amalgamation | Single-file build for easy integration |
| Precompiled Symbols | Compile-time symbol allocation |
Building and Configuring
| Document | Description |
|---|---|
| Compilation | Build system, cross-compilation, toolchains |
| Build Configuration | Compile-time macros (MRB_* flags) |
| mrbgems | Creating and managing gems |
| Memory | Allocator customization and heap regions |
Tools
| Document | Description |
|---|---|
| Debugger | Using mrdb for debugging |
| ROM Method Tables | Read-only method tables for constrained devices |
Reference
| Document | Description |
|---|---|
| Directory Structure | Source tree layout |
Internals (for mruby contributors)
Start with Architecture for an overview, then dive into the subsystem you need:
| Document | Description |
|---|---|
| Architecture | Overview of object model, VM, GC, compiler |
| Virtual Machine | Dispatch loop, call frames, method lookup, fibers |
| Garbage Collector | Tri-color marking, write barriers, generational GC |
| Compiler Pipeline | Parser, code generator, IRep, binary format |
| Opcodes | VM instruction set reference |
| Value Boxing | How mrb_value encodes types |