#send in 1.9

T

Trans

My feeling is that so much is changing that, when backwards
compatibility is critical, you're better off sticking to 1.8. If you
think the new features are more important than that, you're going to
have to bite the bullet and port your code to work on 1.9 :).

But why change something if you don't need to? The issue here is
merely semantic, #send vs. #funcall. So why break all those previous
uses of #send, if all we need to do is pick a different term to
prevent it? Is the semantics of #send that crucial? That's really the
crux of my argument: Why change #send if you are just going to offer
the same functionality in another straight-forward method like
#funcall.

Ruby has a general policy of giving long names to methods that
subverts formal OOP. So it really puzzles me that Matz would just pick
another simple term like 'funcall' (Lisp is great functionally, but
I'd certainly think twice before borrowing terms verbatim). If you
want something semantically "tight", I still think #send vs.
#instance_send makes the most sense. It clearly fits in with the rest
of the instance_xxxxx methods. But short of that, I just don't see the
point --just pick another name. Indeed, there may even be a better
term. For instance what about #respond? That has a similar meaning to
send and has a nice correspondence to #respond_to? Or if you prefer
something a little shorter/not quite so clearly correspondent, how
about #reply?

In any case, the bottom line is that, of all the choices (in order of
my preference): #send vs. #instance_send, keep #send and pick a new
term, #send vs. #send!, ... Matz' current choice is at the bottom. And
I think a lot of Rubyists agree.

T.


T.
 
G

Gregory Brown

In any case, the bottom line is that, of all the choices (in order of
my preference): #send vs. #instance_send, keep #send and pick a new
term, #send vs. #send!, ... Matz' current choice is at the bottom. And
I think a lot of Rubyists agree.

Then write an RCR and see how it does. I personally prefer send /
send! but am fine with send / funcall()

This discussion gets boring fast. :-/
 
T

Trans

Then write an RCR and see how it does. I personally prefer send /
send! but am fine with send / funcall()

See how it does? You're clearly unaware of the current RCR state of
affairs.
This discussion gets boring fast. :-/

Er... then why are you reading this thread, let alone posting to it? I
don't think it's boring at all. It may seem a small matter to you, but
small things add up and effect the future of my favorite programming
language.

T.
 
G

Gregory Brown

See how it does? You're clearly unaware of the current RCR state of
affairs.

Please elaborate. I don't see an RCR open for this, or rejected, for
that matter.
http://rcrchive.net/
Er... then why are you reading this thread, let alone posting to it? I
don't think it's boring at all. It may seem a small matter to you, but
small things add up and effect the future of my favorite programming
language.

My concern is that you bring up several issues that you wish to change
about Ruby, almost on a daily basis. I don't think it's a bad thing
(at all), I just think maybe focusing on a few key issues, making a
clear statement of why they matter to you, and then taking the
initiative to file an RCR would be more fruitful than complaining that
Matz isn't listening to people.

At least if you brought this discussion up in the form of an RCR,
you'd be able to get some definitive answers.
 
R

Robert Dober

Then write an RCR and see how it does. I personally prefer send /
send! but am fine with send / funcall()

This discussion gets boring fast. :-/
For sure for those who like the behavior as it is planned...

Anyway a CR shall be discussed in this list before issued, so the
attitude, "write a RCR" because one does not want to discuss the item
is an approach I appreciate only mildly...

Nobody has forced you to get bored, right?
Imagine if I would drop a line into each thread I find boring, quite
awesome an idea.

Robert
 
G

Gregory Brown

For sure for those who like the behavior as it is planned...

Anyway a CR shall be discussed in this list before issued, so the
attitude, "write a RCR" because one does not want to discuss the item
is an approach I appreciate only mildly...

That's not what I'm suggesting. Search the archive for previous
discussions on this topic. My point is that sooner or later, issues
like this need to make it to the RCR phase to avoid repeating the same
points over and over.
 
R

Robert Dober

That's not what I'm suggesting. Search the archive for previous
discussions on this topic. My point is that sooner or later, issues
like this need to make it to the RCR phase to avoid repeating the same
points over and over.

Hmm I do not understand, maybe it is me who is wrong, anyway I just
had not the feeling that this thread got repeating, yes ok Tom might
have made his point twice, but he was talking to different people and
I think that is quite ok, now you could make your point again too,
right?
Please note especially that Tom and myself have given in to the
majority POV -- so there will be no RCR I guess -- but that does not
imply that we feel wrong about our POV and can keep explaining it.

Ok enough said on this issue from my part.

Robert
 
T

Trans

Please elaborate. I don't see an RCR open for this, or rejected, for
that matter.http://rcrchive.net/

The RCR system is in a rather anemic state. Honestly, it's not worth
the effort. It's better just to bring it up here and hope some of the
popular stances filter up.

T.
 
G

Gregory Brown

The RCR system is in a rather anemic state. Honestly, it's not worth
the effort. It's better just to bring it up here and hope some of the
popular stances filter up.

Yeah, you're right. But I think that might be partially our fault for
never bringing things beyond RubyTalk :)

( I have an RCR that recommends a compromise for Proc#yield that I've
not yet submitted)
 
D

dblack

Hi --

Yeah, you're right. But I think that might be partially our fault for
never bringing things beyond RubyTalk :)

As far as I know, all the RCR process needs is people to submit RCRs.
If anyone knows of anything technically wrong with the site, please
let me know.

I think people were unhappy about Matz's decision to start from
scratch a little while back, but the process only exists in the first
place as a mechanism for Matz to get information and discuss ideas, so
it's really up to him if he wants people to resubmit.


David

--
* Books:
RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
& consulting: Ruby Power and Light, LLC (http://www.rubypal.com)
 
T

Trans

Hi --






As far as I know, all the RCR process needs is people to submit RCRs.
If anyone knows of anything technically wrong with the site, please
let me know.

I think people were unhappy about Matz's decision to start from
scratch a little while back, but the process only exists in the first
place as a mechanism for Matz to get information and discuss ideas, so
it's really up to him if he wants people to resubmit.

I think that's what you technical adepts have never grasped. The
problem isn't technical, it's haptic.

But we've been threw this -- since the 2nd overhaul of the RCR
processes, let alone the third. For whatever reason, my critiques
clearly arn't worth the electrons they're transmitted-by.

T.
 
D

dblack

Hi --

I think that's what you technical adepts have never grasped. The
problem isn't technical, it's haptic.

You want a touch screen? :)
But we've been threw this -- since the 2nd overhaul of the RCR
processes, let alone the third. For whatever reason, my critiques
clearly arn't worth the electrons they're transmitted-by.

No; they're just not higher on the list than what Matz asks me to do
with regard to RCRchive, which I really think is as it should be.
It's basically his project, written for him to his specifications. I
help out by writing and hosting it.


David

--
* Books:
RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
& consulting: Ruby Power and Light, LLC (http://www.rubypal.com)
 
J

James Edward Gray II

I think that's what you technical adepts have never grasped. The
problem isn't technical, it's haptic.

Your prose got too flowery for me here. I looked up haptic, as I
suspect you intended, and I still have no clue what you said.
But we've been threw this -- since the 2nd overhaul of the RCR
processes, let alone the third. For whatever reason, my critiques
clearly arn't worth the electrons they're transmitted-by.

So your strategy has been to lob regular change-the-language requests
at Ruby Talk in protest? How often has that resulted in success,
just out of curiosity?

James Edward Gray II
 
G

Gregory Brown

Your prose got too flowery for me here. I looked up haptic, as I
suspect you intended, and I still have no clue what you said.

David hit the nail on the head. RCRs would catch on a whole lot more
if we had a touch screen. Like the bottle exchange at the
supermarket, see how user friendly those are/
 
R

Robert Dober

I think that's what you technical adepts have never grasped. The
problem isn't technical, it's haptic.

But we've been threw this -- since the 2nd overhaul of the RCR
processes, let alone the third. For whatever reason, my critiques
clearly arn't worth the electrons they're transmitted-by.
Do not say that, they are, but it is a reasonable approach to give in
into the majority and not waste resources on an RCR that will fail.
That said I feel that these discussions are also a kind of an informal
CR process because Matz reads this, and how can he not be influenced
by our infinite wisdom ;)
Robert
 
G

Gregory Brown

That said I feel that these discussions are also a kind of an informal
CR process because Matz reads this, and how can he not be influenced
by our infinite wisdom ;)

I think some well-focused finite wisdom might be more helpful, honestly.
 
R

Robert Dober

Your prose got too flowery for me here. I looked up haptic, as I
suspect you intended, and I still have no clue what you said.


So your strategy has been to lob regular change-the-language requests
at Ruby Talk in protest? How often has that resulted in success,
just out of curiosity?

This is an attitude I cannot understand?
I have to recognize that valuable members like Gregory, David and
yourself have probably a point when they agree, out of pure
experience(1), but here I feel that I see things completely different.

For me this is a discussion beyond lobbying, and I feel it is rich,
and I feel sad that
you folks point a finger and cry RCR :)
This is strange but it is the best way I can describe this, hmm I
promised I would not speak up on this anymore, but I am too intrigued,
so you can criticize my netiquette for sure :(
Robert


(1) Experience also tells me that Tom's ideas are worth thinking about
them, some I found strange or wrong, but not many....
 
P

Phrogz

As far as I know, all the RCR process needs is people to submit RCRs.
If anyone knows of anything technically wrong with the site, please
let me know.

I think it also needs people to care enough to subscribe to RCRs,
review them, comment on them, and then for the submitters to have a
sense that someone in charge is actually going to do something with
the information.

My experience with the new RCR system hasn't been very negative, but
it hasn't been great. Previously (before the rest), I submitted a few
RCRs, there was lively discussion including by Matz, and in the end I
withdrew most of them. Someone (I assume Matz) actually marked some as
rejected. I wasn't crushed; I felt that I was part of an important
part of the process.

In the new RCR system, those RCRs I have submitted have gathered only
a few responses, a handful of votes, and now linger in the seeming
limbo of pending. It makes me feel like not enough people really care
about the RCR process to make it worth the time to officially work
through it.

I'm not sure what the root cause of these symptoms is. Did the reset
disenchant a bunch of people? Did the switch to mailing-list
subscription discussions raise the entry barrier too high?

I want the RCR process to work. I want to work with it. Maybe it's
gaining steam since I last visited it.
 
J

James Edward Gray II

For me this is a discussion beyond lobbying, and I feel it is rich,
and I feel sad that you folks point a finger and cry RCR :)

I apologize. I should have been nicer.

You're right in that there's nothing really wrong with this
discussion. My personal feeling is that Trans's solution to most
situations is to change Ruby to fit his world view. I feel like it
should be the other way around most of the time.

His regular change requests have led me to consider them more noise
than signal, though I shouldn't have taken that out on this thread.
Again, I apologize.

Getting back on topic: I feel as I have already stated that send()
and funcall() are on the right sides of the equation. send() sends
messages to an object and I feel that should be treated as a normal
method call, ignoring the private stuff.

funcall() was selected because Matz sometimes refers to receiverless
method calls as a "function style" syntax. We have at least
module_function() in the language today as another sign of this.

Like David Black, I don't care for the name and would prefer send!
(). The bang is suppose to indicate a dangerous alternative and
using a send()-like tool to bypass method visibility feels dangerous
to me. You better know what you are doing.

Regardless though, I can't build any rational for reversing them,
beyond backwards compatibility with the current send(). While that's
a noble goal, 1.9 is known to break compatibility when needed and if
that leads to a better thought-out API, I'm for it.

funcall() makes zero sense on the other side of the equation, so now
we need a name change too. To me, that's one of the signs that this
suggestion is on the wrong path.

That's just my opinion though. I could be wrong and I definitely
don't make these decisions.

James Edward Gray II
 
J

James Edward Gray II

My experience with the new RCR system hasn't been very negative, but
it hasn't been great.

I agree that the new system hasn't won me over yet and I think you do
a great job of analyzing the reasons.
I'm not sure what the root cause of these symptoms is. Did the reset
disenchant a bunch of people?

I can't speak for everyone, but it did for me a little, yes. After
literally years of silent observation I finally got up the courage to
make one. I followed the process as best I knew how: held the
discussion on Ruby Core, etc. My proposal got 14 "In favor" votes
and 4 "Strongly advocate" votes. Sadly, I think the site was already
dead by then and it just didn't seem to matter.
Did the switch to mailing-list subscription discussions raise the
entry barrier too high?

This does concern me too. I'll confess that I'm not auto-subscribed
to all the lists as they are made. That felt like it could get
overwhelming fast and I chickened out. (Looking back now though, the
traffic has been fine, so far.)

Like most Prag fans I've been dipping into Erlang a little lately.
One thing I noticed about their world was that they have one mailing
list that was just for discussing proposals to change the language.
I thought that was neat idea when I saw it. For some reason it feels
less overwhelming to me.

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top