On Mon, 2018-09-03 at 10:58 +0530, Amit via samba wrote:> Dear Devels,
>
> I am not aware whether this topic was discussed earlier or not.
>
> But it was on my mind from quite few days so ..
>
> Are we planning for movement of samba from C to C++ or other OOP
> language.
>
> If not why, reasons of yes I find quite a few...
>
> * C++ is a highly portabl/e/ language and is often the language of
> choice for multi-device, multi-platform app development.
> * C++ is an object-oriented programming language/ /and includes
> classes, inheritance, polymorphism, data abstraction and
> encapsulation.
> * C++ has a rich function library.
> * C++ allows exception handling, and function overloading which are
> not possible in C.
> * C++ is a powerful, efficient and fast language. It finds a wide
> range of applications – from GUI applications to 3D graphics for
> games to real-time mathematical simulations.
>
> Though C has advantages over C++, But C++ is evolving.
Yes and No.
We might, when the toolchain is in place, expore Rust further, and we
have Python which is many of the things above.
We also achieve much of the above with Samba's own style, and with
talloc in particular.
But my reading of the tea-leaves is that Samba isn't about to be
signifianctly rewritten in C++ any time soon.
Also, please don't assume that the consensus on the list is that the
above is a list of desirable outcomes (many of the issues with C++ come
from the exact features you mention).
I hope this clarifies things,
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba