<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 3, 2014 at 4:30 PM, Serge Aleynikov <span dir="ltr"><<a href="mailto:serge@aleynikov.org" target="_blank">serge@aleynikov.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">
I'd like to inquire the status of the following pull request:</div><div style="font-family:arial,helvetica,sans-serif">
<a href="https://github.com/erlang/otp/pull/121" target="_blank">https://github.com/erlang/otp/pull/121</a><br></div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">

Has it been reviewed?</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Thanks!</div><span class=""><font color="#888888"><div style="font-family:arial,helvetica,sans-serif">

<br></div><div style="font-family:arial,helvetica,sans-serif">Serge</div></font></span></div>
<br></blockquote><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi Serge,</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
We have discussed your contribution at the OTP technical board and here are the results:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<div>Inclusion in OTP</div><div>----------------------- </div><div><br></div><div>Your patch touches many source files which are central for the Erlang distribution and we feel it would require quite a lot of work from our side as well to assure that nothing in the current distribution gets broken or incompatible. It would also require quite deep involvement from us giving more detailed feedback regarding interfaces, semantics etc. We can not prioritize this at the moment so we will not include your contribution now (which means REJECT for now).</div>
<div><br></div><div>But we really want to add this kind of functionality and want to encourage you (and others) to continue the good work in this area for possible inclusion in OTP at a later stage. See more info and thoughts below.</div>
<div><br></div><div><br></div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">General thoughts</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">-----------------------</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Enhancing/extending the Erlang distribution to support heterogenous communication protocols is something we have discussed many times and it is something that we really would like to have.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">1) We would like a plugin architecture where different transport protocols can be easily plugged in without having to change the basic Erlang distribution or the VM.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">2) It should be possible to run different protocols towards different nodes</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">3) should be possible to have different timeouts (NET_TICK_TIME) per connection</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">4) interesting protocols would be UDS, TCP, TLS over TCP, SCTP, ...</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">5) it should be possible to look up nodes in different ways and maybe not only via contacting epmd on the host name which is part of the node name. I.e having the hostname as part of the node name is not always what you want, depending on protocol to use.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">....</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Your specific contribution</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">-----------------------------------</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">In your pull request you have implemented fully or partly 1,2, 4, and we see it as a good start.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">A general comment is that the diffs are showing differences on many places in the code where you actually haven't changed anything except tabs, line breaks and spaces. This makes it more difficult to sort out what you have changed and added. We would like a clean diff without unnecessary touches lines which has no relevance for the new function. If a formatting change is needed or suggested it should be a separate commit/pull request.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Regarding details in your code we have not had the time to take a deeper look but from a quick glance it looks good. The questionmarks are more about how to introduce this new functionality in a safe way and what more is needed that you have not addressed so far.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<div>Suggested way forward</div><div>------------------------------ </div><div><br></div><div><div><div>I think that one approach that would make it easier to include this kind of functionality soon would be to make minimal changes to the existing distribution code and only add or change so that it is possible to support heterogenous protocols with code that initially can live as a separate extension that don't need to be part of the OTP distro. </div>
<div>In this way the functionality can be further developed and used together with an ordinary OTP distro (unpatched) and can easily be included later (hopefully within a year).</div><div><br></div><div>Maybe you think that you already have done those minimal changes, but I suggest you take another look and see if it is possible to find a way to make minimal or now changes to net_kernel and epmd etc. which we could include and then have the rest as a separate "application"/extension project at github that can be included later.</div>
<div><br></div><div>Just some thoughts:</div><div>Maybe let the old distribution work as before and let the user choose "new_distro" in some way and will only then get to run the new code which allows heterogenous protocols another new EPMD or an EPMD written in Erlang or allow for plugins of different EPMD implementations that can run in parallell. The communication towards EPMD maybe needs to be secure as well and then it might be much easier to implement in Erlang.</div>
<div><br></div><div>I (we) are more than willing to discuss more about how to find this minimal patch which we think we can "safely" include and which makes it possible to develop and use the rest as pure extensions to OTP in a first step.</div>
</div></div><div><br></div><div style="font-family:arial;font-size:small"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Regards Kenneth, Erlang/OTP Ericsson</span> </div></div></div></div></div>