Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

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

Submissions

comment 3y ago · link · parent

Absolutely not. Advertising is applied sociology, not psychology. Ads don't care about your personal wants or desires, they only care about Bayesian probabilities across broad target audience groups. (E.g. "dog lovers are X more likely to Y than cat lovers".)

LLMs are useless in this domain.

comment 3y ago · link · parent

Yes, except without the frame. (Restrict cross-origin requests if you worry about security.)

comment 3y ago · link · parent

C++ regexes are literally just copy-pasted ECMAScript regexes. They could have just used an existing regex library, but C++ compiler developers presumably don't want to support an extra dependency.

That's the only real reason why std::regex is slow.

comment 3y ago · link · parent

There's nothing wrong with the std::regex design as it is the standard.

std::regex only sucks because the developers of gcc and clang never bothered to optimize it. (Too much work and they have other stuff to worry about.)

comment 3y ago · link · parent

By "impressed" I mean the guys perpetuating the hype cycle and itching to be "disrupted".

The story of 2023 is the CEO or another C-level boss rushing to their ML team and excitedly telling them to scrap all their plans because they need to integrate ChatGPT AI "yesterday", while the ML team roll their eyes and laugh behind his back.

I'm sure it happened to you too.

comment 3y ago · link · parent

Yeah, the people who know the most about AI are also the people who are least impressed with its capabilities.

It's supposed to be the other way around.

comment 3y ago · link · parent

Ads are tremendously useful, just ask any business owner.

The problem with ads is not that they're useless, it's that it is an industry prone to scams and grift. (Because doing advertising right requires all sorts of actual science, and ain't nobody got time for that when there's money to be made.)

t. Worked for 20 years and adtech.

comment 3y ago · link · parent

Nobody has yet shipped a product with LLM code. Lay off the futurology.

comment 3y ago · link · parent

No. It's needed when you're doing something high-performance and are listening to a database change stream.

comment 3y ago · link · parent

Good for you, some people can do automatic unattended OS updates too.

There's no benefit to using containers here, only more pain.

comment 3y ago · link · parent

A "hypervisor (or some theoretical HAL)" is literally what an OS is.

comment 3y ago · link · parent

> You don't really need any OS to run, say, BEAM VM (just an example).

Yes, you do. BEAM will not handle your CPU interrupts or manage your physical memory pages or your USB devices. (The 99 percent of an OS's job.)

comment 3y ago · link · parent

"Cloud" is just "datacenter" with special mark-up for the pointy haired boss.

Adopting a PHB-friendly name won't make the problems go away.

> There's nothing that prevents you from redeploying your service in microsecond, just as you hit "Save" button in vscode.

Yeah, we had that 20 years ago with PHP. It had its downsides too, let me tell you.

comment 3y ago · link · parent

Not really. A "container" is usually just an instance of a Linux distribution, and the work involved in updating it is roughly the same.

comment 3y ago · link · parent

Be thankful there are still people willing to pay you for bullshit jobs.

Things will be tougher when management starts asking for real, measurable results.

comment 3y ago · link · parent

CMake semantics except expressed in Python scripts somehow sounds even worse.

comment 3y ago · link · parent

It doesn't, but you need to ditch requirements.txt and just overridePythonPackage with the correct github revision hash.

It's a PITA but unlike pip and conda it's 100% reliable.

comment 3y ago · link · parent

Yes, buildNpmPackage works great.

comment 3y ago · link · parent

nixpkgs doesn't use requirements.txt for whatever reason.

(That reason probably being the utter brokenness and braindead state of Python packaging; Node packages work much better.)

comment 3y ago · link · parent

If you're using Nix to build containers then you can just do nix-copy-closure and avoid the container hassles altogether.

Containers give you an extra networking layer, theoretically, but the way it is implemented is extremely brittle and leaky, so most people don't use it anyway.

I assume the same logic applies if you're using some other way of building instead of Nix, too.

comment 3y ago · link · parent

> Hey man, we couldn't figure out how to do software dependencies correctly, so we put a Linux distro inside your Linix distro.

> Now you have fifty operating systems to upgrade instead of one. Enjoy.

Using nix-copy-closure basically solved all my problems with one command.

comment 3y ago · link · parent

You are right, theoretically.

Unfortunately, the userspace part of pthreads is not tuned for performance and does a lot of ridiculous things if you care about parallelism.

(Mostly I was complaining about the poor quality of userspace system libraries.)

comment 3y ago · link · parent

> Just don't use any shared state, bro

Thank you, Sherlock.

But for the rest of us: when you need shared state, lockfree atomic spinlocks are roughly 1000 times more performant than mutexes. (Not a scientific estimate, numbers taken from real-word experience.)

comment 3y ago · link · parent

> "Hosting and tinkering"

It isn't 1992 anymore, people don't "tinker", they have orchestration in 2023.

The orchestration tools for self-hosted are cheaper, more standard and more reliable. (Because Amazon's and Google's stuff is actually built on top of standard stacks, except with extra corporate stupidity added.)

Regardless of whether you use something industry standard or something proprietary, you will need to have an ops team that knows orchestration. (And an AWS orchestration team will be more expensive, because, again, their stuff is non-standard and proprietary.)

There are reasons for using AWS, but cost or time to market is never one of them.

comment 3y ago · link · parent

> They are, but they are not data centers in the traditional sense of the term.

They are, 100%, without a doubt, absolutely, data centers in the traditional sense of the term.

> ...the «10x markup» is complete bonkers and is a fiction.

Go compare prices of e.g. Hetzner or OVA and come back to me again with that "fiction".

> 100 million monthly events

That's only about 35 events per second. Hosting over at Hetzner will cost you maybe $25 a month. So yeah, the x10 markup is real.

comment 3y ago · link · parent

No, because aarch64 linux distros only became a viable thing just recently.

Who knows how many decades it will take for e.g. Debian to support RISC-V properly.

comment 3y ago · link · parent

AWS and Azure are datacenters too. You're paying a x10 markup to make accounting shenanigans easier, but the technology is exactly the same.

comment 3y ago · link · parent

> quality comments

A.k.a. censorship.

comment 3y ago · link · parent

Wow, you're quite lucky, because Google doesn't want you working for them either.

comment 3y ago · link · parent

It was a special kind of vacation.
1
777879
135