3,226 karma · joined Jun 14, 2019 (7y ago) · 4,043 submissions
comment 7y ago · link · parent
That's a minor issue. The bigger issue is the fact that, if adblockers become truly popular, websites will go back to serving opaque binary blobs instead of HTML+CSS+JS.
Remember Flash and 'Flash pages' back in the day? That, except worse.
comment 7y ago · link · parent
We're never gonna have an airliner that is 10 times faster than the ones we have now. Same principles with computing too.
comment 7y ago · link · parent
Theoretically, yes. In practice, people are just copying Python mistakes word-for-word, in an attempt to score the "coolness" factor that async garnered in the Python community. (Never mind that the "coolness" came from solving a problem that doesn't even exist in other languages...)
If you want to see what asynchronous programming would look like if it weren't copied from Python, look at the recent C++ proposal.
> - If you don't need it, don't use it. Rust without asynchronous functions still looks and works like before
The problem is that every Python library now comes in two versions, regular and 'async'. Even if you don't need or care about anything 'async'.
I guess splintering your code base into two incompatible flavors is just the pythonic way of doing things? Now that the 2 vs 3 insanity is finally dying down, they needed to start a fresh one?
Why is Rust trying hard to repeat these mistakes?
> - By the way: welcome to C++20's coroutines
That I already answered above.
comment 7y ago · link · parent
No, it doesn't really. 'Async' is a strictly Python problem, due to the insanity of the GIL. Predictably, the Python solution to it is also insane.
Why you have to turn a sane language like Rust into an insane one by cargo-culting a solution to a non-problem is a mystery to me.
Oh well, good thing at least C++ hasn't dropped the ball.
comment 7y ago · link · parent
The real solution is getting rid of intrusive and/or annoying ads, but that would mean sites with tightly curated audiences; no clickbait, SERP spam and other stupid audience-inflating crap.
Ultimately intrusive ads happen because publishers are in a rush to monetize traffic that advertisers view as cheap/low quality. It becomes a downwards spiral of attract low-quality eyeballs -> ad spendings plummet -> devote more screen share to annoying ads -> viewership falls -> attract more low-quality eyeballs -> etc.
Maybe at some point we'll hit rock bottom and things will start improving.
comment 7y ago · link · parent
Which is impossible to do without horrible false-positives. The arms race between ever-increasing heuristics complexity on the adblocker side and the webpage cloaking ads as content is a race that the adblockers cannot win.
comment 7y ago · link · parent
a) Advertising is (and always has been), fundamentally, the application of data science to drive return-on-investment decisions. Any company that can do data science and understands RoI will eventually converge to be an advertising company. Calls for Google to "find a product to sell instead of being an advertising company" are calls for Google to throw away their data science expertise. Not gonna happen.
b) Breaking adblockers is a technically solved problem; just serve web pages as server-rendered blobs. (Think 'flash pages' of yore.) We're not doing it yet because the proportion of adblock users is still too small to make this profitable.
But if this proportion changes in the future, so will the web. So calls for more adblocking are just calls for a vastly more closed and proprietary web than today.
That is probably not what you really want.
comment 7y ago · link · parent
'Logical' is a misnomer, Prolog is really a database query language. Unlike SQL it's not relational and not based on joins, it has tree walking semantics.
That said, without a decent storage/indexing system under the hood it is indeed quite pointless. Nobody wants a 'small data' tiny DB engine in 2019.
comment 7y ago · link · parent
Briefly, the C++ standard defined three classes of stuff that isn't covered by the standard:
Implementation-defined behavior - "behavior, for a well-formed program construct and correct data, that depends on the implementation and that each implementation documents".
Unspecified behavior - "behavior, for a well-formed program construct and correct data, that depends on the implementation".
Undefined behavior - "behavior for which this document imposes no requirements".
So 'undefined behavior' is stuff that isn't mandated by the standard and also may or may not be an error.
Some UB stuff is bugs (like accessing arrays out of bounds), some isn't bugs but just processor/OS dependent stuff that is out of scope of the C++ standard. (Like what happens when integers overflow.)
In short, the existence of UB is a good thing; having a standard that clearly states what is part of it and what isn't is vastly better than a standard that mandates too much or is too vague.
(And it goes without saying that having no standard at all, like is usual for other programming languages in 2019, is worse in every way.)
comment 7y ago · link · parent
Somehow we make do in these cases and don't act like the sky is falling.
comment 7y ago · link · parent
There have been dozens of working C++ competitors over the years, each one technically as good as C++.
They all failed because their authors are good at writing languages, but very bad at knowing how languages are used in the real world.
The C++ committee really knows what it's doing, you're not going to do anything useful in this space without actually understanding the problem domain.
TL;DR - yes, C++ is complex, but that is because programming is complex. Your attitude of "programming is hard, let's go (language) shopping" will not displace C++.
comment 7y ago · link · parent
Yeah, I've heard that 25 years ago. It was, in fact, the big marketing bullet point on Java's first release.
Meanwhile here in 2019, with the death of Moore's Law, careful memory (and cache!) management is more important than before.