General

Profile

jbeschi (jacopo beschi)

  • Login: jbeschi
  • Email: intrip@gmail.com
  • Registered on: 11/05/2015
  • Last sign in: 02/21/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

02/20/2024

11:05 AM Ruby Bug #20284: Regexp::TimeoutError is not triggered by a specific Regexp
mame (Yusuke Endoh) wrote in #note-1:
> Thanks for the report.
> ...
Got it, makes complete sense. A note in the docs about it would be helpful though.
jbeschi (jacopo beschi)
09:35 AM Ruby Bug #20284 (Feedback): Regexp::TimeoutError is not triggered by a specific Regexp
I've noticed that the Regexp::TimeoutError is not triggered for this Regexp:
```ruby
jacopo-37s-mb 3.3.0 ~ cat fail.rb
require 'benchmark'
p RUBY_DESCRIPTION
Regexp.timeout = 0.1
puts "Regexp.timeout: #{Regexp.timeout}"
re =...
jbeschi (jacopo beschi)

09/22/2023

03:35 PM Ruby Misc #19899 (Closed): Ruby3.3.0-preview2: Behaviour changes of Socket.recv when the sever closes the connection
I noticed that `Socket#recv` now returns `nil` instead of `""` when the server closes the connection, is it expected? If yes, I suggest mentioning it to the [release page](https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-... jbeschi (jacopo beschi)

12/21/2020

01:46 PM Ruby Feature #16816: Prematurely terminated Enumerator should stay terminated
I'd like to try working on this fix: is it possible? jbeschi (jacopo beschi)

12/14/2020

02:30 PM Ruby Feature #16697: Hash.ruby2_keywords_hash?(value) should support any object
@mame Thanks for clarifying! Ok let's see :) jbeschi (jacopo beschi)

12/11/2020

05:18 PM Ruby Feature #16697: Hash.ruby2_keywords_hash?(value) should support any object
Honestly, I don't think returning `nil` would be an improvement: using `nil` as a type check looks a bit hacky to me.
Anyways I'd wait for the devs meeting outcome and see if we can move this forward.
jbeschi (jacopo beschi)

12/03/2020

07:52 AM Ruby Feature #16697: Hash.ruby2_keywords_hash?(value) should support any object
I've created a PR for the proposal https://github.com/ruby/ruby/pull/3839 jbeschi (jacopo beschi)

12/02/2020

02:05 PM Ruby Feature #16697: Hash.ruby2_keywords_hash?(value) should support any object
Thanks! I'll give it a try :-) jbeschi (jacopo beschi)
12:02 PM Ruby Feature #16697: Hash.ruby2_keywords_hash?(value) should support any object
I'd like to contribute here but I'm new to this so please forgive me if this is a stupid question: we basically just need to change `ruby2_keywords_hash?` to return `false` if the argument is not an `Hash` instead of raising a `TypeError` ? jbeschi (jacopo beschi)

11/26/2020

07:57 AM Ruby Feature #17342: Hash#fetch_set
`fetch_set` mixes the concept of query with the concept of command and I think it's not a good approach.
Moreover I don't really see any big advantage in writing
```ruby
cache.fetch_set(key) { calculation }
```
vs
```ruby
cache.fet...
jbeschi (jacopo beschi)

Also available in: Atom