General

Profile

hurricup (Alexandr Evstigneev)

  • Login: hurricup
  • Email: hurricup@gmail.com
  • Registered on: 09/26/2020
  • Last sign in: 10/29/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 5 17 22

Activity

10/31/2024

08:30 AM Ruby Bug #20856 (Closed): Incorrect and inconsistent multi-thread eval execution with Prism compiler
Consider example:
```
s = Thread.new {
a = 5
puts eval("a == b")
x = 6
}
s.join
b = 11
```
As far as I see it, it should not work. Because at the moment of eval, b is unknown and not even declared (it can even be in c...
hurricup (Alexandr Evstigneev)

10/29/2024

04:40 AM Ruby Misc #20814: iseq optimizations on constant condition
nobu (Nobuyoshi Nakada) wrote in #note-1:
> To disable optimizations, see the document of `RubyVM::InstructionSequence.compile_option=`.
> ...
My question is more about the runtime. E.g I want to run a ruby program with optimizations d...
hurricup (Alexandr Evstigneev)

10/25/2024

11:20 AM Ruby Misc #20814 (Feedback): iseq optimizations on constant condition
ruby 3.4-preview2 seems optimizes out some stuff when building iseq and this may lead to user unexpected behavior when debugging, because some lines just optimized out.
Example:
```ruby
def foo1
if true
nil
else
1
...
hurricup (Alexandr Evstigneev)

07/24/2023

04:10 AM Ruby Bug #19782: Ruby operators precedence inconsistency
sawa (Tsuyoshi Sawada) wrote in #note-1:
> In general, precedence comes into play when an expression is ambiguous. An expression is ambiguous when there is more than one (grammatical) parse. `(a && b) = c` is not a grammatical parse of ...
hurricup (Alexandr Evstigneev)

07/23/2023

06:33 AM Ruby Bug #19782 (Rejected): Ruby operators precedence inconsistency
Unfortunately I could not find a good documentation regarding ruby operators precedence and associativity, but according to https://ruby-doc.org/3.2.2/syntax/precedence_rdoc.html
`&&` has higher precedence than assignment.
Meaning that...
hurricup (Alexandr Evstigneev)

05/25/2023

01:51 AM Ruby Bug #19689: ruby_vm_event_enabled_global_flags is not exported by ruby 3.3.0-preview1
nobu (Nobuyoshi Nakada) wrote in #note-1:
> That is one of symbols had been exported only for MJIT, and is declared in an internal header.
> ...
It is used in the debugger implementation. Can't say right now for what perticular reason,...
hurricup (Alexandr Evstigneev)

05/24/2023

11:01 AM Ruby Bug #19689 (Feedback): ruby_vm_event_enabled_global_flags is not exported by ruby 3.3.0-preview1
As far as I understand headers, it still should be available.
Still:
```
hurricup@AM-UNIT-0002:/usr/share/rvm/rubies$ nm -gD ruby-3.2.2/lib/libruby.so |grep ruby_vm_event_enabled_global_flags
00000000004497f4 B ruby_vm_event_enabl...
hurricup (Alexandr Evstigneev)

04/06/2023

06:43 AM Ruby Bug #19583 (Closed): Unary minus inconsistency when used with variables and literals
This feels a bit inconsistent and I could not find an explanation.
This is fine and `-` has higher precedence than `.`
```
-2.upto 0 do |arg|
puts arg
end
```
But this is not working, won't even compile (requires parens):
```...
hurricup (Alexandr Evstigneev)

04/04/2023

04:37 AM Ruby Feature #19545: lp/hp logic parsing inconsistency
jeremyevans0 (Jeremy Evans) wrote in #note-4:
> hurricup (Alexandr Evstigneev) wrote in #note-3:
> ...
Thank you for the explanation. This is totally understandable for me.
I just saying that this may be non-intuitive for the languag...
hurricup (Alexandr Evstigneev)
03:45 AM Ruby Feature #19545: lp/hp logic parsing inconsistency
You are explaining from ruby developer perspective and it all makes sense.
But from pure language user this feels really strange and inconsistent. Especially `puts((...))` :D
`false or not false` is pretty valid expression. And any ...
hurricup (Alexandr Evstigneev)

Also available in: Atom