Benoit Daloze

Results 1300 comments of Benoit Daloze

FWIW, I found https://bugs.ruby-lang.org/issues/15663#change-77214 where I asked some autoload questions and which makes it somewhat clear it's so complex nobody understands it fully. I think it shouldn't be too bad...

@fxn `require` only synchronizes per file, i.e., to guarantee a file is only loaded once (that's easy enough). That doesn't prevent that e.g. `class C` defined in `c.rb` is seen...

There doesn't seem to be any spec for this in FFI. It would be helpful if some are added. I guess you want to use the network endian (aka big...

https://github.com/ffi/ffi/commit/f8cfe29f2e4e1968651b165648886722173719c6#diff-682df063515101c03cfa458badf35dbcR49 is how it's implemented in that commit you linked. So checking everytime if the flag if set, and if so use some bswap function to swap the bytes. Seems...

I'll update to the latest FFI specs, I think we don't need a FFI release for that.

@chrisseaton Specs updated in b06882f97697269ca218b6cba86f579f6a74df8d, that includes the `order` specs. FWIW, I noticed there is things like `Long.reverseBytes()` in Java which might be useful. `pack/unpack1` can also be useful to...

Note that the Ruby JSON stdlib has some peculiarities, which might be quite difficult to be compatible with by using a third-party library.

I came to this issue from the `True parallelism with no GIL` goal. I wonder what you plan to use for Ruby objects and for built-in collections such as Array...

That makes sense. It sounds fairly similar to [my research](https://eregon.me/blog/research/) which avoids synchronization when an object is only reachable by a single thread (specifically [this paper](https://eregon.me/blog/assets/research/thread-safe-objects.pdf)). [Dynamic Atomicity: Optimizing Swift...

There is also the question whether it's worth at all to warn for this, given the current code handles it just fine by [forwarding to the new method](https://github.com/ruby/did_you_mean/blob/0034f8b304aa3bd7c382b92932a0b8fd95185aad/lib/did_you_mean.rb#L117-L137). Having 2...