sigsys (Math Ieu)
- Login: sigsys
- Email: sigsys@gmail.com
- Registered on: 06/21/2015
- Last sign in: 03/06/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 3 | 4 |
Activity
11/11/2025
-
07:06 PM Ruby Bug #21680 (Closed): Integer#digits bug starting from Ruby 3.1
- ```
(2**512).digits(256).last
```
The result was 1 on Ruby 3.0. Starting from Ruby 3.1 it turned to 256 (which can't possibly be right).
05/02/2025
-
08:31 AM Ruby Feature #21300 (Open): Suggestion: Method for Array truncation
- `#pop(n)` and `#slice!(...)` can be used for truncation, but they both allocate a new array for the deleted elements (unless you do it one at a time with `#pop()`...), which is not always needed.
I propose adding a `#size=` method for...
12/26/2023
-
11:56 PM Ruby Bug #20091 (Closed): Anonymous block method parameters no longer usable within blocks with ruby 3.3
- This used to work on 3.1 and 3.2, but now fails with "anonymous block parameter is also used within block (SyntaxError)":
```
def g = yield
def f(&)
g { g(&) }
end
p f { 123 }
```
And something like this also fails:
...
02/28/2017
-
10:37 PM Ruby Feature #12901: Anonymous functions without scope lookup overhead
- Shyouhei Urabe wrote:
> Math Ieu wrote:
> ...
But it could be enabled on-demand. Say with a magic comment, then all closures created from code of this file would be optimized to not capture everything. I guess there might as well be sp...
02/27/2017
-
04:18 PM Ruby Feature #12901: Anonymous functions without scope lookup overhead
- Would be better if this could be determined automatically, as others have pointed out.
A lot of functional programming languages optimize this away with some form of "lambda lifting".
The shared variables that are not ever reassign...
07/05/2015
-
11:27 AM Ruby Bug #11335 (Closed): `ruby -r debug` catchpoint problem
- With a `test-debug.rb` like this:
~~~
raise 'test'
~~~
And starting the debugger like this:
~~~
ruby -r debug test-debug.rb
~~~
By default, the catchpoint is `StandardError`, but it doesn't work:
~~~
test-debug.rb:1:r...