1,581 karma · joined Oct 22, 2022 (4y ago) · 796 submissions
comment 3y ago · link · parent
It's ok to claim that Qt's MOC optimizes for developer experience,and all other tradeoffs are acceptable.
> I don't have numbers to cite, but I think the attempts at replacing the moc with newer C++ lang features also usually didn't exactly hit the compiler fast paths.
This doesn't really matter. It's not just the MOC. Using Qt UI form files forces UIC into the picture, which also fails to be cached.
> Yes, perhaps optimizing the compilers would be nicer.
The compiler is not the problem. Obviously. WPF also uses code generators and it's not plagued with long build times.
> Maybe so, but this is not what my comment is about. What I'm saying is that MS has made much more invasive changes to C++ as a language than Qt has in its platforms or frameworks, e.g. compiler-backed extended and different behavior. Or look at C++/CX (since phased out, thankfully).
This reads like whataboutism, and fails to address Qt's problems.
> There's a lot of "If you're using Qt you're not using C++!!1" FUD to confuse newbies
I never saw that once, not do I understand why that is relevant.
comment 3y ago · link · parent
Your own source mentions not only the correlation between income and SAT scores, but it also points out a link between quality of the education services provided to some communities and social pressure. It's also telling that the outliers are explained in a way that boils down to "they succeed in spite of everything we throw at them".
comment 3y ago · link · parent
I never came across any of the sort.
What I come across frequently is the extension of the American exceptionalism mindset that leads some US natives to believe they are exceptional at math in spite of evidence failing to support their exceptionalism views.
> America is a society of disparate cultures, regions, communities, and outcomes (often in the same cities) that is far too (...)
I also see this all too often: the follow-up to the exceptionalism mindset failing to support their beliefs in a rational basis, and proceeding to cherry-pick subsets that suit their exceptionalism views.
It's like claiming that Americans are all tall athletic and exceptional basketball players, and supporting that exceptionalism view by pointing out that Michael Jordan and LeBron James are US citizens. Meanwhile, ignoring that the average us citizen might have more in common with Danny DeVito.
The US population is over 330M people, and its an unrivaled economic and technological powerhouse. Of course you can find hundreds of exceptional individuals. But being able to find a champion among the masses is not the point of a statement like "Americans are good at math". Baselines matter a lot, and even you admit that the US does not look great by attempting to cherry pick your way out of that.
comment 3y ago · link · parent
This sounds like a non-issue, specially considering the pervasive use of "unsightly" installations like air ducts, heating vents, radiators, electrical sockets, telecommunication service panels, routers, and even light fixtures.
If you intentionally dismiss obvious solutions, of course you only end up with problems without obvious solutions.
> It's supposed to be dismissive, because this whole discussion is (...)
If you have nothing to add, please add nothing.
comment 3y ago · link · parent
It does have it's drawbacks. The MOC heavily penalizes build times, and build caching tools like ccache don't work out of the box with it. So not only does the MOC worsens builds, it also prevents basic optimizations from mitigating it.
> Compared to the crazy stuff Microsoft has done over the years (...)
Microsoft did a fantastic job with it's GUI frameworks. WPF is a stellar example of getting most things right. It's astounding how views are so trivial with WPF. XAML voodoo has it's critics but no one praising Qt would ever dare point a finger at XAML.
comment 3y ago · link · parent
No, not really. HTML was from the start and always has been designed to specify UIs. From the very start HTML had support for specifying UI element trees, including higher-level UI design patterns like buttons, combo boxes, radio buttons, etc, and also supported running scripts as part of events triggered from those UI elements.
> Most added features solve real problems.
That's debatable, both with regards to "solve", "real", and "problems".
comment 3y ago · link · parent
Windows is renowned for having awful performance in usecases involving accessing many small files even for read-only applications. I know a team that even went as far as testing switching away from Windows to build Windows apps and instead switched to cross-builds on Linux just to avoid that performance sinkhole. Meanwhile I worked on a multiplatform project where macOS builds on a Mac mini for the exact same project took less than half the time to build than on a beefed up Windows workstation.
Here's an interesting discussion on HN from a couple of years ago on this topic.
comment 3y ago · link · parent
That's a lot of hand-waving weasel words to blame those experiencing problems for the naturally occurring problems.
If it was the same thing, we would not be having discussions on their pros and cons. This is not a team-specific issue.
comment 3y ago · link · parent
I recall Opera doing this sort of thing around two decades ago. It had a setting to aggressively cash all links, and navigating between those was instantaneously.
Is this what Chrome does?
comment 3y ago · link · parent
All of them.
> Why is it better?
Because it specifies a workflow that actually matches what you want to do instead of employing a pile of ad-hoc rules that quickly become an unmaintainable mess.
If you have animations and async calls and multiple screens/pages, you have an application with application states which transition in response to inputs. That's what state machines are designed to handle.
Storyboards are state machines. Navigation components are state machines. UI binding layers like redux are state machines.
comment 3y ago · link · parent
You seem to be confused. Using steel as a raw material is not "scrapping and recycling". The value of steel in engineering applications is that you can trust that the properties of a particular alloy used to make a particular part will comply with the specs. Steel from China is renowned for being unreliable and failing to comply with standardized properties.
https://www.cdmg.com/building-faqs/why-using-cheap-steel-is-...
You avoid that risk by importing steel as a raw material and use that to actually produce reliable steel. If low-quality steel is cheap enough so that after recycling it you can still make a profit then it's a sound business decision and the whole economy benefits.
comment 3y ago · link · parent
I fail to see how this is has any relevance. The ethical or emotional argument of killing an animal does not depend on vague assertions over the problem-solving skills of said animal.
Meanwhile I feel your blend of arguments is terribly disingenuous for the way they avoid facing the fact that people eat animals in general and octopuses in particular.
comment 3y ago · link · parent
I don't see any difference between this and, say, kill cows.
Also, the news piece sounds too desperate in it's attempt to appeal to an irrational emotional response. The author goes to the ridiculous extent of claiming that
"the operator intends to kill [octopuses] by submerging them, alive, in freezing water."
I mean, isn't "being alive" a key precondition to kill an animal?
comment 3y ago · link · parent
I'm not sure the people complaining about Chinese steel imports are thinking about environmental footprint. It's all a chain of simplistic economic reasoning to complain that they import a product instead of producing it.
comment 3y ago · link · parent
CMake is a high level makefile/build system generator.
There is nothing to maintain in modern cmake. You just set what executables/libraries you want to build, set their dependencies, and you're done.
And of all alternatives you chose to push, you pick Bazel of all things? Feature-incomplete and requiring all sorts of low-level maintenance?
comment 3y ago · link · parent
Nonsense. All build systems implement a DAG of build targets.
> why caching tools can't be used effectively
Nonsense. There are a myriad of caching tools freely available, from ccache, sccache, build cache, etc. To get them to work, all you need to do is pass compiler launchers to them, which means setting a single env/build flag.
The author is either trying hard to make a mountain out of irrelevant molehills, or is outright being disingenuous.
Bazel is being sold as a solution desperately grasping at straw-like problems, while being feature incomplete.
comment 3y ago · link · parent
I don't think this assertion makes sense. Making steel is way more than getting iron and mixing it up with some carbon. You need special manufacturing processes to get specific alloys and treatments to get the properties and reliability you expect. Recycling and importing steel is like importing a raw material.
Your comment reads like "This let's them do things like claim burger made in USA when in fact the burger buns were made with corn from Ukraine and meat from Argentina".
comment 3y ago · link · parent
What problems, exactly? The author acknowledged cargo works but hand-waves over vague claims of "it does not track dependencies well or support arbitrary build graphs", followed by acknowledging those issues are either non-issues or solved problems whose solution was dismissed without any good reason (caching tools).
The author's claims boil down to "I wanted to shoehorn Bazel but had no good reason to, so I double-down on Bazel's only selling point while ignoring everything".
It's ok if anyone just wants to try stuff without having any rational or coherent argument to justify it, but let's not call that "problems".
comment 3y ago · link · parent
What leads you to believe that writing new build systems is a popular hobby?
I mean, cmake is the de facto standard for C++ projects and it has been for what? Over a decade? What does this tell you?
comment 3y ago · link · parent
I'd love to hear what leads you to believe that adding yet another build system in the form of Bazel would solve that problem for you.
comment 3y ago · link · parent
I have to call bullshit on this. With C or C++ you need to build the whole project with specific compiler flags to be able to generate code coverage reports. This is not something you implement by tweaking a setting in unit tests.
comment 3y ago · link · parent
I'd love to hear if anyone can make a case for Bazel knowing that cmake+build cache tools like ccache buy far better performance improvements than any full or incremental build.