Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

3,226 karma · joined Jun 14, 2019 (7y ago) · 4,043 submissions

Submissions

comment 7y ago · link · parent

> ...advertising is necessary for funding the open Web and keep it open for people who either can't afford tons of subscriptions or hate them for privacy reasons

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

Progress doesn't work like that. Once you've picked the obvious low-hanging fruit it stops being a research problem and starts being an engineering one. Which means tradeoffs and no free lunch and no more magic.

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

Well, it's either "pounds of meat and dairy" or "sugar", you need one or the other because humans can't feed on sunlight yet.

comment 7y ago · link · parent

> - Asynchronous programming is completely orthogonal to Python

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

> Async I/O gives awesome performance

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

Not specified enough, I think you mean:

    <ieee-754:byte xstdversion="2008" nstid="two's complement" _archext="x86-64">
       <ieee-754:bit arity="2">1</ieee-754:bit>
       <ieee-754:bit arity="2">0</ieee-754:bit>
       ...

comment 7y ago · link · parent

Not really, because a) people aren't willing to put up with false positives (i.e., adblockers hiding the meme cat photos you were looking for), and b) people aren't willing to pay money to hide ads.

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

You're bonkers if you think that news websites intend for you to read news without ads.

Ultimately this is just another case of "rules for thee but not for me".

comment 7y ago · link · parent

If your webpage is a binary blob - for example, several megabytes of webassembly that unpacks an encrypted payload onto a randomly-generated DOM - then adblockers would have to disassemble the thing and run heuristics to figure out which part of the page is ads and which are innocent images and text.

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

I work in advertising, and have been for over 15 years. Two points to make:

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

Medicine is not about "drugs".

You might at well claim that medicine made great strides because so many new and exciting leeches were discovered.

comment 7y ago · link · parent

> nonlogical

'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

I'm sure Google does.

comment 7y ago · link · parent

There's no such thing as a "C/C++".

comment 7y ago · link · parent

> interrupt you by tapping you on the shoulder whenever they need something

Well, yes, that's what you're being paid for.

The alternative is hard KPI's and getting fired for not meeting them, which is not something you really want.

comment 7y ago · link · parent

Yes, if you want your shells scripts to consume 3 gigabytes of memory.

comment 7y ago · link · parent

"Undefined behavior" is a quirk of the C++ ISO standard legalese, not some property of computing or of the C++ language.

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

It's definitely problematic, but so is having your interpreter completely redefine language constructs on every point release. Or having different interpreter implementations act differently because there's no standard.

Somehow we make do in these cases and don't act like the sky is falling.

comment 7y ago · link · parent

False.

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

Unless they're misogynists or skeptical of "climate change", then it's best to burn them at the stake, just to be safe that the crimethink isn't contagious.

comment 7y ago · link · parent

Forecasting in 2019 is still using techniques from 1950. You can call that "machine learning", but only if you really want to make people confused by marketing speak.

comment 7y ago · link · parent

> "undefined behaviour"

Yeah, you don't know what you're talking about.

"Undefined behavior" simply means "stuff not covered by the ISO standard".

So Python and Rust are 100% UB, and people don't really care.

comment 7y ago · link · parent

Nix is the best C++ package manager at the moment, once you climb the slight learning curve.

comment 7y ago · link · parent

Not really.

Today's ML is really good at speech and image recogniziton, which makes for some very eye-popping layman demos.

Whereas what businesses really want is time series prediction, and modern ML really sucks balls at solving this problem.

comment 7y ago · link · parent

Seems he was right. People undeservedly think Jobs was "the inventor of the computer and the phone", and little touches of bullshit like that went a great deal to form that image.

comment 7y ago · link · parent

No, it just (code)smells that way.

comment 7y ago · link · parent

> The GC is realistically only an issue in rare fringe cases.

Yes, and one of those fringe cases is when you're building a competitor for C++.

Knowing your target audience helps if you're trying to take over the world.

comment 7y ago · link · parent

> I give it about 10 years time, for pure manual memory management to be like Assembly and embedded development.

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.

comment 7y ago · link · parent

> due to their lack of manpower vs other languages offerings and continuous improvements

No. D failed due to a mandatory GC and the 'two standard libraries' idiocy.

comment 7y ago · link · parent

> Write a compiler

Then you have two problems?

1
131132133134135