``` ruby v = 1; [[2]].each{ |(v)| }; p v _ = 1; [[2]].each{ |(_)| }; p _ ``` prints ``` 1 2 ``` You can see here that `v` is still `1` but `_` isn't shadowed properly and is being assigned `2`. Reproducible from 2.3.8 to 3.0.2 ...Nakilon (Victor Maslov)
Bidirectional assignments should be implemented to make swapping values: ``` var1, var2 = var2, var1 ``` much shorter: ``` var1 vv^^ var2 ```Nakilon (Victor Maslov)
Nakilon (Victor Maslov) wrote: > docker build - -t temp-ruby2.3.8 --build-arg RUBY_VERSION=2.3.8 --build-arg ALPINE_VERSION=3.8 <Dockerfile Also tried the same version of Alpine but higher Ruby -- ruby:2.4.6-alpine3.8 -- got the same...Nakilon (Victor Maslov)
My native extension gem compiles fine with all versions of Ruby on macOS but only with Ruby 2.3 on Alpine. It throws various `Error relocating`, `symbol not found` when I require the `.o` file. Here I made a branch to reproduce it in Doc...Nakilon (Victor Maslov)
Excuse me, why isn't it fixed in 2.4? Does it break something? I've probably misconfigured ports around my docker environment (it's yet to be investigated) and was now very confused with this. Had to run the program a lot of times, rese...Nakilon (Victor Maslov)
For example, the Facebook Graph API server accepts POST request to calculate smth heavy and returns id of the 'async job'. Then I GET status until it's "complete" and then I GET the actual result. To process thousands of requests I ca...Nakilon (Victor Maslov)
**Sorry for broken markdown -- here I fixed it:** Current code is: ~~~ruby def w3cdtf if usec.zero? fraction_digits = 0 else fraction_digits = Math.log10(usec.to_s.sub(/0*$/, '').to_i).floor + 1 end ...Nakilon (Victor Maslov)
Current code is: ~~~ruby fraction_digits = Math.log10(usec.to_s.sub(/0*$/, '').to_i).floor + 1 ~~~ This makes time to lose as many digits, as there are zeros right after dot: ~~~diff < <dc:date>2014-03-04T07:37:...Nakilon (Victor Maslov)
Is it somehow related? http://stackoverflow.com/q/24782712/322020 ... .lazy ... .take_while.with_index{ ... ArgumentError - tried to call lazy take_while without a block:` Nevermind, swaping the chain in this way .with_index.take_wh...Nakilon (Victor Maslov)