Re: svn commit: r268566 - head/usr.bin/users

2014-07-13 Thread Hans Ottevanger
On 07/12/14 15:27, Alexey Dokuchaev wrote: On Sat, Jul 12, 2014 at 01:37:49PM +0100, Bruce Simpson wrote: On 12/07/2014 12:34, Bruce Evans wrote: This joke is bad. The C++ version is worse in every way. I concur with everything you have said in your message. Moral of story: it is very, very

Re: svn commit: r268566 - head/usr.bin/users

2014-07-13 Thread Alexey Dokuchaev
On Sun, Jul 13, 2014 at 03:59:26PM +0200, Hans Ottevanger wrote: On 07/12/14 15:27, Alexey Dokuchaev wrote: Now the question is, how do we come out of this mess? Shall we redo it in C again? Polish C++ version? Merge it with w(1) as suggested? More in general, in my experience C++ is

svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread David Chisnall
Author: theraven Date: Sat Jul 12 07:47:50 2014 New Revision: 268566 URL: http://svnweb.freebsd.org/changeset/base/268566 Log: Turn off exceptions and rtti when building the c++ version of users. Neither is used in the program and this saves us 10KB (around 40%) in binary size. Modified:

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Bruce Evans
On Sat, 12 Jul 2014, David Chisnall wrote: Log: Turn off exceptions and rtti when building the c++ version of users. Neither is used in the program and this saves us 10KB (around 40%) in binary size. This joke is bad. The C++ version is worse in every way. Source code: It becomes smaller

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Bruce Simpson
On 12/07/2014 12:34, Bruce Evans wrote: This joke is bad. The C++ version is worse in every way. I concur with everything you have said in your message. Moral of story: it is very, very easy to introduce bloat using C++, and using a higher level language does not automatically lead to

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Alexey Dokuchaev
On Sat, Jul 12, 2014 at 01:37:49PM +0100, Bruce Simpson wrote: On 12/07/2014 12:34, Bruce Evans wrote: This joke is bad. The C++ version is worse in every way. I concur with everything you have said in your message. Moral of story: it is very, very easy to introduce bloat using C++, and

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Ian Lepore
On Sat, 2014-07-12 at 13:27 +, Alexey Dokuchaev wrote: On Sat, Jul 12, 2014 at 01:37:49PM +0100, Bruce Simpson wrote: On 12/07/2014 12:34, Bruce Evans wrote: This joke is bad. The C++ version is worse in every way. I concur with everything you have said in your message. Moral of

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Steve Kargl
On Sat, Jul 12, 2014 at 09:31:23AM -0600, Ian Lepore wrote: On Sat, 2014-07-12 at 13:27 +, Alexey Dokuchaev wrote: On Sat, Jul 12, 2014 at 01:37:49PM +0100, Bruce Simpson wrote: On 12/07/2014 12:34, Bruce Evans wrote: This joke is bad. The C++ version is worse in every way. I

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Bruce Simpson
On 12/07/2014 16:31, Ian Lepore wrote: It is in no way established that any kind of mess exists. On the contrary, the metrics and analysis which bde@ has presented seem pretty clear to me. All we have is some people who appear to hate C++ expressing their opinions about how they hate C++.

Re: svn commit: r268566 - head/usr.bin/users

2014-07-12 Thread Tim Kientzle
On Jul 12, 2014, at 8:31 AM, Ian Lepore i...@freebsd.org wrote: It is in no way established that any kind of mess exists. All we have is some people who appear to hate C++ expressing their opinions about how they hate C++. All the whining about how many more bytes the compiled code is or