General

Profile

glebm (Gleb Mazovetskiy)

  • Login: glebm
  • Registered on: 05/27/2017
  • Last sign in: 12/08/2023

Issues

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

Activity

06/12/2019

08:54 AM Ruby Feature #15914 (Open): mkmf without libruby
It would be nice to be able to use `mkmf` without `libruby`.
Motivating use-case:
Many gems provide Ruby bindings to C ABI via [Ruby FFI](https://github.com/ffi/ffi) instead of libruby.
This is because Ruby FFI is easier to use, is ...
glebm (Gleb Mazovetskiy)

04/02/2018

01:55 AM Ruby Bug #14651 (Closed): Building 2.5.1p57 with -flto fails on gcc 5.4.0
gcc v5.4.0 is the latest gcc in Ubuntu 16.04 LTS.
I've upgraded to Ubuntu 17.10 and there it is currently:
~~~
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
~~~
With this new gcc version, compiling with `-flto` works.
As the...
glebm (Gleb Mazovetskiy)

03/29/2018

05:09 AM Ruby Bug #14651 (Closed): Building 2.5.1p57 with -flto fails on gcc 5.4.0
~~~ bash
cflags='-march=native -flto -pipe' rvm reinstall 2.5.1 --disable-binary
~~~
~~~ bash
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-g...
glebm (Gleb Mazovetskiy)

05/29/2017

02:50 PM Ruby Feature #13606: Enumerator equality and comparison
duerst (Martin Dürst) wrote:

> Actually, I wonder if there's any difference between what the OP wants and
> ...
The above allocates Arrays, Enumerator equality would not.
glebm (Gleb Mazovetskiy)

05/28/2017

07:48 PM Ruby Feature #13606: Enumerator equality and comparison
MSP-Greg (Greg L) wrote:
> Could be helpful, but some `Enumerators` are not ordered. So how would `==` work for 'hash like' objects (assuming they're not based on a hash, which has an `==` operator)?
> ...
Equal objects should produce...
glebm (Gleb Mazovetskiy)
04:55 PM Ruby Feature #13606: Enumerator equality and comparison
duerst (Martin Dürst) wrote:
> Sounds interesting in theory, but do you have actual use cases? And do you think that the potential inefficiency is worth it?
The use cases are the same as for comparing `Array`s.
The potential ineffic...
glebm (Gleb Mazovetskiy)
04:50 PM Ruby Feature #13606: Enumerator equality and comparison
shevegen (Robert A. Heiler) wrote:
> [...] but they are not entirely the same are they? Different
> ...
Most objects in Ruby are compared semantically if the object IDs are different, including `Array` and `Hash`.
> What would the...
glebm (Gleb Mazovetskiy)

05/27/2017

11:22 PM Ruby Feature #13606 (Rejected): Enumerator equality and comparison
In Ruby, most objects are compared by value. What do you think about `Enumerator`s following the same pattern? I think this would greatly increase the expressiveness of Ruby.
Proposal:
Two `Enumerator`s should be considered equal (...
glebm (Gleb Mazovetskiy)

Also available in: Atom