[#63592] [ruby-trunk - Bug #10009] IO operation is 10x slower in multi-thread environment — normalperson@...
Issue #10009 has been updated by Eric Wong.
3 messages
2014/07/08
[#63682] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/13
[#63703] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/14
[#63743] [ruby-trunk - Bug #10037] Since r46798 on Solaris, "[BUG] rb_vm_get_cref: unreachable" during make — ngotogenome@...
Issue #10037 has been updated by Naohisa Goto.
3 messages
2014/07/15
[#64136] Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb — "Jeffrey 'jf' Lim" <jfs.world@...>
As per subject.
4 messages
2014/07/31
[#64138] Re: Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb
— "Jeffrey 'jf' Lim" <jfs.world@...>
2014/07/31
On Thu, Jul 31, 2014 at 6:03 PM, Jeffrey 'jf' Lim <jfs.world@gmail.com>
[ruby-core:64007] [ruby-trunk - Feature #5478] import Set into core, add syntax
From:
alexey.muranov@...
Date:
2014-07-25 09:59:29 UTC
List:
ruby-core #64007
Issue #5478 has been updated by Alexey Muranov.
It has not been mentioned in this thread yet that in Python it is done like this:
```python
empty_set = set()
some_set = {1, 1, 2, 2, 3, 4}
```
----------------------------------------
Feature #5478: import Set into core, add syntax
https://bugs.ruby-lang.org/issues/5478#change-48023
* Author: Konstantin Haase
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version: Next Major
----------------------------------------
=begin
A set is a central data structure. However, a lot of Ruby developers use arrays for situations where it would be more reasonable to use a set. One reason for that is that it is way easier to use Array then Set at the moment, another one is that developers are simply not aware it exists.
I propose moving Set from the stdlib to core and possibly add a syntax or a method on array for creating Set literals.
First class syntax suggestions:
<1, 2, 3> # might be tricky to parse
#[1, 2, 3] # would collide with comments
$[1, 2, 3]
${1, 2, 3}
Method suggestions:
~[1, 2, 3]
+[1, 2, 3]
Whitespace separated String Sets could look like this:
%w<foo bar blah> # creates an array at the moment
#w[foo bar blah] # would collide with comments
$w[foo bar blah] # would collide with sending :[] to $w
$w{foo bar blah}
~%w[foo bar blah] # not really shorter than using an array with strings
+%w[foo bar balh] # not really shorter than using an array with strings
Maybe it's ok to not have a whitespace separated syntax, I'm just brainstorming here.
The issue with the method approach is that it would create an Array to send the message to first.
I favor the <1, 2, 3> syntax, possibly without the ability to create a whitespace separated version.
I'd be willing to work on a patch not only for MRI but also for JRuby and Rubinius if you would consider this to be useful.
Although I would need help with the parser.
=end
--
https://bugs.ruby-lang.org/