[#23657] [Bug #1550] String#lstrip! raises RuntimeError on Frozen String Despite Making No Changes — Run Paint Run Run <redmine@...>

Bug #1550: String#lstrip! raises RuntimeError on Frozen String Despite Making No Changes

13 messages 2009/06/01

[#23729] [Bug #1583] Time + String no Longer Raises TypeError? — Run Paint Run Run <redmine@...>

Bug #1583: Time + String no Longer Raises TypeError?

14 messages 2009/06/05

[#23770] [Bug #1595] rake unusable on windows install — Robert Gonzalez <redmine@...>

Bug #1595: rake unusable on windows install

10 messages 2009/06/09

[#23869] [Bug #1640] [PATCH] Documentation for the Rational Class — Run Paint Run Run <redmine@...>

Bug #1640: [PATCH] Documentation for the Rational Class

12 messages 2009/06/16

[#23903] [Bug #1648] Rational#div Raises NoMethodError for Invalid Argument — Run Paint Run Run <redmine@...>

Bug #1648: Rational#div Raises NoMethodError for Invalid Argument

9 messages 2009/06/17

[#23977] [ANN] meeting log of RubyDeveloperKaigi20090622 — "Yugui (Yuki Sonoda)" <yugui@...>

Hi,

41 messages 2009/06/23
[#23979] Re: [ANN] meeting log of RubyDeveloperKaigi20090622 — Run Paint Run Run <runrun@...> 2009/06/23

Thanks for the update. :-)

[#24173] Re: [ANN] meeting log of RubyDeveloperKaigi20090622 — "NARUSE, Yui" <naruse@...> 2009/07/07

Sorry for late response,

[#24174] Re: [ANN] meeting log of RubyDeveloperKaigi20090622 — Luis Lavena <luislavena@...> 2009/07/07

On Tue, Jul 7, 2009 at 12:12 AM, NARUSE, Yui<naruse@airemix.jp> wrote:

[#24242] Re: [ANN] meeting log of RubyDeveloperKaigi20090622 — Charles Oliver Nutter <headius@...> 2009/07/09

On Mon, Jul 6, 2009 at 10:18 PM, Luis Lavena<luislavena@gmail.com> wrote:

[#24010] [Bug #1685] Some windows unicode path issues remain — B Kelly <redmine@...>

Bug #1685: Some windows unicode path issues remain

26 messages 2009/06/24
[#29189] [Bug #1685] Some windows unicode path issues remain — Yuki Sonoda <redmine@...> 2010/04/01

Issue #1685 has been updated by Yuki Sonoda.

[#29200] Re: [Bug #1685] Some windows unicode path issues remain — Bill Kelly <billk@...> 2010/04/01

Yuki Sonoda wrote:

[#29892] Re: [Bug #1685] Some windows unicode path issues remain — Bill Kelly <billk@...> 2010/04/29

Hi,

[#24058] [Bug #1696] http downloads are unuseably slow — Steven Hartland <redmine@...>

Bug #1696: http downloads are unuseably slow

19 messages 2009/06/27

[#24063] [Feature #1697] Object#<=> — Marc-Andre Lafortune <redmine@...>

Feature #1697: Object#<=>

15 messages 2009/06/28

[ruby-core:24016] Re: [ANN] meeting log of RubyDeveloperKaigi20090622

From: Roger Pack <rogerdpack@...>
Date: 2009-06-24 17:04:15 UTC
List: ruby-core #24016
> It's a kind of amalgamation of boolean flip-flops and
> Enumerbale#partition. The name appears to be in doubt. IMO, 'gather'
> is too similar to 'collect', and to a slightly lesser extent,
> 'select'. 'chunk' or 'chunk_by' seems to capture the intent of the
> method better. (I disagree with the suggestion that the block could
> return certain underscore-prefixed symbols to control the method's
> operation; it seems inelegant).

partition_by perhaps?

A few related attempts have been:

rails' group_by [1]
>> (1..10).group_by{|n| n & 2}
=> {0=>[1, 4, 5, 8, 9], 2=>[2, 3, 6, 7, 10]}

and

enumerable_mapper gem's:

>> (1..10).grouped_by{|n| n & 2}
=> [[0, [1, 4, 5, 8, 9]], [2, [2, 3, 6, 7, 10]]]

The output of the latter is a little more of what I had expected the
"gather" method to do, too, something that includes the values

(1..10).chunk_by {|n| n & 2 }
   #=> [0, [1]]           # 1 & 2 = 0
   #   [1, [[2, 3]]        # 2 & 2 = 3 & 2 = 1
   #   [0, [[4, 5]]        # 4 & 2 = 5 & 2 = 0
   #   [1, [[6, 7]]        # 6 & 2 = 7 & 2 = 1
   #   [0, [[8, 9]]        # 8 & 2 = 9 & 2 = 0
   #   [1, [[10]]          # 10 & 2 = 1

otherwise you lose your gathered values which might not be as useful.

>> * SQLite as a standard library
>>  * [ruby-dev:38463]

That might be quite useful, but why is the question.  To make it more
available to users, since it comes by default [i.e. the equivalent of
bundling the sqlite headers along with ruby and including a sqlite
gem]?


I have a few suggestions for core change too, that might be
considered...guess I'll throw them all out here now since we're in the
Ruby RCR mood...

1) allow for better multi line comments

history: currently there is not easy way to do multi line comments
except by adding many #'s to the beginning of each line, or adding a
somewhat [to me] jarring
                 begin code
=begin
                 some code
=end
                 continue code

So the request is for prettier multi line comments.  Most people on
ruby talk call me crazy for wanting this, but I just cringe every time
I have to do it in Ruby.

The possible options would be to introduce a new multi-line comment
delineator [like /* */] or perhaps  modify the =begin syntax to allow
for it to not be at the beginning of a new line
  =begin
  some code
  =end
  more code.

I'm not one of those with a cool enough editor to do the multi line
comments for me [and many aren't], so such an addition would result in
cleaner looking multi line comments--at least to me.

2) default BasicSocket.do_not_reverse_lookup to true.

background: Currently ruby socket code defaults to always doing a
reverse DNS lookup
when it can [ex: once per incoming UDP packet].
This causes "surprising" pauses when the lookup fails, because the DNS
waits 15s to timeout, before passing the packet back to the
program--the (possibly random) pause is unexpected.

to see this in action: http://betterlogic.com/roger/?p=1646
comment out the do_not_reverse_lookup on the receiver and change the
sender to send to IP127.0.0.255 and watch the "slow for now reason"
packets come in.

The example works great [no pauses] if you set
BasicSocket.do_not_reverse_lookup to
true, and is much less surprising.  This isn't the first time I've been
bit by ruby's internal DNS lookups, and others have similarly been bit
by this, and it always causes confusion.  It also decreases the
network traffic overhead, etc.

A followup suggestion would be to deprecate do_not_reverse_lookup and
in its place create reverse_lookup so that you don't have to use as
many double negatives. [2]

3) with ruby in "-d" or "-v" mode (debug, verbose) don't swallow  any
lines from the exception backtrace given when a program exits because
of uncaught exception.  Those swallowed lines are sometimes useful,
and it is inconvenient to not be able to get at them easily.  So I'd
suggest that if ruby's in verbose mode, they not be swallowed.
Thoughts?

4) (the controversial one). Have load 'rubyscriptname' behave the same
as require 'libraryname' in terms of extension guessing.  It's
surprising to me when require doesn't require extension but load does,
because require and load typically both end up being used against .rb
files, so when I go from one to the other, I'm forced to include
extension.  It's confusing for newbies (and surprising for me).

Just thought I'd get those off my chest.

Thoughts?
-=roger

[1] http://allgems.faithpromotingstories.org/gems/doc/activesupport/2.3.2/classes/Enumerable.html#M000948

[2] http://www.ruby-forum.com/topic/184011#new

In This Thread