Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
02e69d1c
Unverified
Commit
02e69d1c
authored
4 years ago
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `mruby3.md`.
parent
44a07393
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
9 deletions
+36
-9
doc/mruby3.md
doc/mruby3.md
+36
-9
No files found.
doc/mruby3.md
View file @
02e69d1c
User visible changes in `mruby3`
===
= New Syntax
We have ported some new syntax from CRuby.
*
R-assignment (
`12 => x`
)
*
Numbered block parameter (
`x.map{_1 * 2}`
)
*
End-less
`def`
(
`def double(x) = x*2`
)
= Build System
You can specify
`TARGET`
option to
`rake`
via a command line
...
...
@@ -53,7 +45,17 @@ When you write a new target description, please
contribute. We welcome your contribution as a GitHub
pull-request.
= Configuration Options
= Languge Changes
== New Syntax
We have ported some new syntax from CRuby.
*
R-assignment (
`12 => x`
)
*
Numbered block parameter (
`x.map{_1 * 2}`
)
*
End-less
`def`
(
`def double(x) = x*2`
)
= Configuration Options Changed
Some configuration macro names are changed for consistency
...
...
@@ -74,3 +76,28 @@ Changed from `MRB_METHOD_T_STRUCT`.
To use
`struct`
version of
`mrb_method_t`
. More portable but consumes more memory.
Turned on by default on 32bit platforms.
==
`MRB_NO_BOXING`
Uses
`struct`
to represent
`mrb_value`
. Consumes more memory
but easier to inveticate the internal and to debug. It used
to be default
`mrb_value`
representation. Now the default is
`MRB_WORD_BOXING`
.
==
`MRB_WORD_BOXING`
Pack
`mrb_value`
in an
`intptr_t`
integer. Consumes less
memory compared to
`MRB_NO_BOXING`
especially on 32 bit
platforms.
`Fixnum`
size is 31 bits so some integer values
does not fit in
`Fixnum`
integers.
==
`MRB_NAN_BOXING`
Pack
`mrb_value`
in a floating pointer number. Nothing
changed from previous versions.
= Internal Changes
==
`Random`
now use
`xoshiro128++`
.
For better and faster random number generation.
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment