Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #41449

Re: "Current Proposals for C++17"

From Dombo <dombo@disposable.invalid>
Newsgroups comp.lang.c++
Subject Re: "Current Proposals for C++17"
Date 2016-03-06 21:03 +0100
Organization A noiseless patient Spider
Message-ID <nbi271$272$1@dont-email.me> (permalink)
References <naqk3a$s2i$1@dont-email.me> <naqs3p$j39$1@news.xmission.com> <nar7v5$k4r$1@dont-email.me> <nasqe0$vgd$1@dont-email.me> <nb3edi$b9j$1@news.xmission.com>

Show all headers | View raw


Op 01-Mar-16 om 7:55 schreef Richard:
> [Please do not mail me a copy of your followup]
>
> Dombo <dombo@disposable.invalid> spake the secret code
> <nasqe0$vgd$1@dont-email.me> thusly:
>
>> Op 27-Feb-16 om 5:19 schreef Alf P. Steinbach:
>>> On 27.02.2016 01:54, Richard wrote:
>>>> Lynn McGuire <lmc@winsim.com> spake the secret code
>>>> <naqk3a$s2i$1@dont-email.me> thusly:
>>>>
>>>>> There is not a standard user interface toolkit proposal.
>>>>
>>>> Don't need it.
>>>>
>>>> There are already several good defacto standards: Qt, wxWidgets, and
>>>> (less to my personal taste, but relevant) MFC. [...]
>>
>> Unfortunately those user interface kits are showing their age; they
>> don't take advantage of modern C++ features but instead choose to supply
>> their own string, container...etc classes and mechanisms. All of this
>> was understandable in the nineties before C++ was standardized but is
>> unforgivable in this day and age.
>
> That's a fair criticism.  wxWidgets (and I assume Qt, but I know less
> about how they decide future directions) would welcome a modern
> version of the toolkit that used C++ more directly.  However, consider
> that wxWidgets is constrained by the underlying GUI toolkit of the
> environment (Win32, Cocoa, Tcl/Tk, whatever).  There isn't always a
> good mapping from modern C++ to these underlying systems.

wxWidgets is clearly inspired by MFC; not my favorite to put it mildly. 
In the defense of MFC one can argue that when it was conceived in the 
early nineties the Microsoft compiler supported little more than "C with 
classes"; no exceptions, no templates, no standard library (thus no 
standard string and container classes) and slow processors and a not 
terribly clever compiler. No such excuses for wxWidgets.

As far the underlying GUI toolkit and modern C++ features are concerned; 
those are mostly orthogonal aspects.

> And jesus, no, we don't need something that isn't an evolution of what
> we currently have.  In other words, creating an ivory tower type GUI
> library that feels good from a modern C++ perspective, but provides no
> bridge to existing GUI technologies or API is a complete waste of
> time.  Existing defacto standards have momentum and pretending that
> your library is better without that momentum on your side is silly.

The problem in the C++ world is that there is no defacto standard as far 
as UI toolkits are concerned, there are god know how many C++ UI 
libraries out there. Qt being arguably the best one if you can live with 
the bloat, but still far from ideal as far as I'm concerned.

And by the way I don't have my own UI library, and have zero intention 
to create one. Those are the kind of things I rather buy than build myself.

>> It can't be 10% or even 50% better if you're proposing an entirely new
>> library, it has to be 5000% better to convince people it's worth
>> learning/switching from what they already know.

You are missing the point. I find building UI applications in C++ rather 
unproductive compared to most other programming languages I know of. One 
reason is that they don't take advantage of modern C++ features (they 
added those to the language for reason you know) but instead rely on on 
their own kludges to implement features C++ compliers didn't have back 
in the nineties. Another being that C++ UI libraries tend to have their 
own types for string and containers. Now I'm not a big fan of the 
standard library, but it is a _standard_ supported by all compilers. The 
problem with a library having its own types is you have to write glue 
code (which is error prone and doesn't add value) unless the library 
does every you will ever need, which is probably the reason why Qt 
attempts to provide everything but the kitchen sink.

>> Development of WinForms has stopped well over a decade ago, [...]
>
> The key thing you're all missing when you list GUI libraries for these
> other languages is THEY ARE NOT PART OF THE STANDARD.  Sometimes this is
> because there is no standard for the language, or because the standard
> only specifies the language and not any pile of libraries on top).  C#
> standard doesn't specify the .NET Framework, which is a pile of libraries
> from Microsoft.  And so-on.

Strawman argument. I'm not arguing for having a C++ UI library in the 
standard. I'm arguing for a UI library that smoothly interfaces with the 
types provided by the standard library.

> My point is that these other languages are doing just fine,
> thank you, without "standardizing" a GUI toolkit.

Unlike C++ many programming languages, like C#, have one or only a very 
few "defacto" UI libraries that do interface smoothly with the types in 
standard library that comes with the language.

> So is C++.

If you just need an UI, C++ is rarely the best option IMO.

> There is no need for a GUI toolkit in the C++ standard because we
> already have defacto standards that are serving the need just fine.

Notice the words "defacto" and "standards" . Now think about that for a 
moment (hint: the latter word is plural).

> I could understand this clamor for a GUI toolkit if there was nothing
> available and there was a huge screaming void, but there have been
> C++ GUI toolkit libraries since 1988 when InterViews was described
> and that was done straight on top of Xlib, which was a C API.
> <http://www.cs.tufts.edu/~nr/cs257/archive/mark-linton/interviews.pdf>

Again strawman argument. No one is claiming there are no UI toolkits for 
C++, if anything there are rather too many which is an indication that 
there are apparently more people not too satisfied with the UI libraries 
that already existed.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

"Current Proposals for C++17" Lynn McGuire <lmc@winsim.com> - 2016-02-26 16:40 -0600
  Re: "Current Proposals for C++17" Victor Bazarov <v.bazarov@comcast.invalid> - 2016-02-26 17:51 -0500
  Re: "Current Proposals for C++17" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-02-26 23:21 +0000
  Re: "Current Proposals for C++17" legalize+jeeves@mail.xmission.com (Richard) - 2016-02-27 00:54 +0000
    Re: "Current Proposals for C++17" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-27 05:19 +0100
      Re: "Current Proposals for C++17" David Brown <david.brown@hesbynett.no> - 2016-02-27 14:41 +0100
        Re: "Current Proposals for C++17" Öö Tiib <ootiib@hot.ee> - 2016-02-27 08:45 -0800
          Re: "Current Proposals for C++17" David Brown <david.brown@hesbynett.no> - 2016-02-28 16:43 +0100
            Re: "Current Proposals for C++17" Öö Tiib <ootiib@hot.ee> - 2016-02-28 10:24 -0800
      Re: "Current Proposals for C++17" Dombo <dombo@disposable.invalid> - 2016-02-27 19:41 +0100
        Re: "Current Proposals for C++17" Öö Tiib <ootiib@hot.ee> - 2016-02-27 11:23 -0800
          Re: "Current Proposals for C++17" Dombo <dombo@disposable.invalid> - 2016-02-28 22:18 +0100
            Re: "Current Proposals for C++17" Öö Tiib <ootiib@hot.ee> - 2016-02-28 14:27 -0800
              Re: "Current Proposals for C++17" Dombo <dombo@disposable.invalid> - 2016-03-06 20:10 +0100
                Re: "Current Proposals for C++17" woodbrian77@gmail.com - 2016-03-06 11:59 -0800
                Re: "Current Proposals for C++17" Dombo <dombo@disposable.invalid> - 2016-03-06 21:57 +0100
                Re: "Current Proposals for C++17" woodbrian77@gmail.com - 2016-03-06 13:49 -0800
                Re: "Current Proposals for C++17" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-07 17:51 +0000
                Re: "Current Proposals for C++17" Öö Tiib <ootiib@hot.ee> - 2016-03-06 17:02 -0800
                C++ style varies widely (was: "Current Proposals for C++17") legalize+jeeves@mail.xmission.com (Richard) - 2016-03-07 16:48 +0000
        Re: "Current Proposals for C++17" legalize+jeeves@mail.xmission.com (Richard) - 2016-03-01 06:55 +0000
          Re: "Current Proposals for C++17" Dombo <dombo@disposable.invalid> - 2016-03-06 21:03 +0100
            Re: "Current Proposals for C++17" legalize+jeeves@mail.xmission.com (Richard) - 2016-03-07 17:03 +0000
    Re: "Current Proposals for C++17" woodbrian77@gmail.com - 2016-02-27 17:25 -0800
      Re: "Current Proposals for C++17" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-02-28 02:15 +0000
        Re: "Current Proposals for C++17" Gareth Owen <gwowen@gmail.com> - 2016-02-28 07:33 +0000
          Re: "Current Proposals for C++17" Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-02-28 19:42 +0000
            Re: "Current Proposals for C++17" Gareth Owen <gwowen@gmail.com> - 2016-02-28 21:04 +0000
            Re: "Current Proposals for C++17" Ian Collins <ian-news@hotmail.com> - 2016-02-29 10:18 +1300
      Re: "Current Proposals for C++17" Christian Gollwitzer <auriocus@gmx.de> - 2016-02-28 09:19 +0100
        Re: "Current Proposals for C++17" Geoff <geoff@invalid.invalid> - 2016-02-28 14:05 -0800
        Re: "Current Proposals for C++17" Daniel <danielaparker@gmail.com> - 2016-02-28 19:03 -0800
          Re: "Current Proposals for C++17" David Brown <david.brown@hesbynett.no> - 2016-02-29 09:04 +0100
            Re: "Current Proposals for C++17" "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-29 11:21 +0100
              Re: "Current Proposals for C++17" Daniel <danielaparker@gmail.com> - 2016-02-29 02:46 -0800
                Re: "Current Proposals for C++17" red floyd <no.spam.here@its.invalid> - 2016-02-29 22:19 -0800
                Re: "Current Proposals for C++17" David Brown <david.brown@hesbynett.no> - 2016-03-01 09:27 +0100
                Re: "Current Proposals for C++17" Daniel <danielaparker@gmail.com> - 2016-03-01 05:20 -0800
      Re: "Current Proposals for C++17" legalize+jeeves@mail.xmission.com (Richard) - 2016-03-01 06:57 +0000
        Re: "Current Proposals for C++17" woodbrian77@gmail.com - 2016-03-01 09:51 -0800
          Re: "Current Proposals for C++17" scott@slp53.sl.home (Scott Lurndal) - 2016-03-01 18:08 +0000
          Re: "Current Proposals for C++17" Christian Gollwitzer <auriocus@gmx.de> - 2016-03-01 20:07 +0100
          Re: "Current Proposals for C++17" legalize+jeeves@mail.xmission.com (Richard) - 2016-03-01 20:17 +0000
    Re: "Current Proposals for C++17" Juha Nieminen <nospam@thanks.invalid> - 2016-02-28 18:26 +0000
      Re: "Current Proposals for C++17" red floyd <no.spam@its.invalid> - 2016-02-29 10:09 -0800
  Re: "Current Proposals for C++17" scott@slp53.sl.home (Scott Lurndal) - 2016-02-29 14:29 +0000

csiph-web