News for hackers. Stuff that matters.
Re:Removing Python 2.x support from Django for version 2.0 by lmm on Thursday January 19, 2017 @11:28AM (#13437013)
Qt is a point in C++'s favour, but not enough to outweigh the downsides of the language.
Re:Removing Python 2.x support from Django for version 2.0 by 72deluxe on Wednesday January 25, 2017 @05:17AM (#13480209)
What! There are no downsides to the language! I jest

I love catching errors at compile time, not runtime :-)

Plus, it runs faster

Re:Removing Python 2.x support from Django for version 2.0 by lmm on Friday January 27, 2017 @08:59AM (#13499791)
I like catching errors at compile time. But C++'s unchecked manual memory management introduces more errors than the rest of the language eliminates, undefined behaviour turns all bugs into security bugs, there aren't first-class sum types (std::variant is finally on the way in but seems quite restricted; std::visit, while much better than what came before, is pretty cumbersome), and templates are cumbersome in syntax (and error reporting) and not as safe as they look thanks to partial specialization (which will be fixed by concepts if they ever actually make it into the language, but, well...). Along with plenty of less immediate problems (e.g. the lack of a module system).

If there were an ML-family language with good Qt support I'd use that for my GUIs - I use ML-based languages for almost all my non-GUI work. There's plenty I dislike about Python but it's still the best desktop GUI experience I've found.

Re:Removing Python 2.x support from Django for version 2.0 by flukus on Thursday January 19, 2017 @06:15PM (#13440356)
Could you write your UI in c++ with custom bindings and have the rest of the app in python?

Qt's binding support has been it's biggest issue since forever.

Re:Removing Python 2.x support from Django for version 2.0 by lmm on Friday January 20, 2017 @06:27AM (#13443039)
Maybe, but I like using Python for the GUI too. It was really nice back when it worked.
Re:Removing Python 2.x support from Django for version 2.0 by flukus on Saturday January 21, 2017 @05:56PM (#13452550)
A project you might be interested in is libui (https://github.com/andlabs/libui). I can't comment on it because I haven't used it and it's still quite young but it looks promising, it's on my radar to learn soon. Native widgets and written in c so the bindings should be stable. I've never written bindings for c++ but I'm guessing it's not easy because all the c++ toolkit bindings are unstable.

It has quite a few bindings already, here are the python ones: https://github.com/joaoventura/pylibui .