Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

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

Submissions

comment 4y ago · link · parent

A context switch happens when a thread blocks on I/O. An async event loop will context switch when 'await' happens. (Which is, also, usually when it wants to wait for I/O.)

You're assuming that an async event context switch is somehow vastly less costly than an OS context switch, which isn't true in the general case. (And unless you really went out of your way to make it happen then yours is the general case.)

comment 4y ago · link · parent

A green thread implementation will thrash just as much in your hypothetical scenario.

The only advantage of green threading is the capability to do problem-specific optimized scheduling.

If you're not doing this then you don't need green threads.

comment 4y ago · link · parent

The original promise of Java was cross-platform user-facing visual apps. (Which is why Gates was scared of it.) This promise certainly failed to deliver.

Instead Java is now Cobol 2.0, but nobody lost sleep over this fact.

comment 4y ago · link · parent

> paper mache furniture

Wait till you find out what that Ikea crap is made of. :)

comment 4y ago · link · parent

> let's just agree to call this insane malpractice "rusty" and it suddenly becomes okay

You're not making the case here, guys.

comment 4y ago · link · parent

Really?

The short story is now a dead artform. Even 'trilogies' aren't a thing anymore - anything less than five thick tomes doesn't sell.

Movies are now three hours long, but even that seems to be a half-measure and the cinematic form is now being replaced by miniseries.

(I remember when a 90 hour movie was considered long.)

comment 4y ago · link · parent

Isn't this like 2 requests per second?

That's massively overpriced, with current prices you should fit into a 5 dollar budget.

comment 4y ago · link · parent

HTTP is not just for the web. In fact, the vast majority of HTTP trafic doesn't involve the browser at all.

The examples are realistic and useful. E.g., Clickhouse uses POST methods for queries, and a ridiculous `&readonly=2` parameter to differentiate modifying queries from readonly SELECT queries.

comment 4y ago · link · parent

Elon's day job is making sure stock quote goes up, not rockets or AI. Keep this in mind.

comment 4y ago · link · parent

I don't think this is true. My experience hiring C++ developers does not confirm.

comment 4y ago · link · parent

> Most things don't need autoscaling

Correction - most things can't be autoscaled. I'll eat my hat if more than 25% of existing k8s clusters can even autoscale. Most will use PVC's and other stupid overengineered hoops to bind CPU to specific physical storage.

TLDR - k8s is just a painful enterprise thing to justify ops budgets for BigCorp. (Presumably, to counteract the fact that much of that budget went into "the cloud" lately.)

comment 4y ago · link · parent

Yes it is. The people who made Unicode went out of their way to make life hard and offensive for CJK, Cyrillic, etc., users.

comment 4y ago · link · parent

You miss the point. The basic unit of ASCII v2 (aka 'Unicode') should have been the codepage, not the codepoint. Having a stateful stream of codepage-symbol pairs is not a problem - in practice, all Unicode encodings ended up being stateful anyways, except in a shitty way that doesn't help to encode any semantic information.

comment 4y ago · link · parent

> It might have been better if the 'code pages' idea was refined instead of eliminated

Obviously yes, it would have been better.

But Unicode was designed by the same people who designed ASCII - monolingual Americans who never had to deal on a daily basis with anything that doesn't fit into the 26 letters of the English alphabet. So here we are.

comment 4y ago · link · parent

Don't call functions (that aren't part of the C++ standard library) inside the lock guard. It's not a hard rule and you'll get 99% of the way there.

comment 4y ago · link · parent

Are you implying ameobas don't have some sort of interior representation of their external environment?

I would be very hard to do what they do without one.

comment 4y ago · link · parent

What makes you say that an amoeba doesn't have intelligence?

comment 4y ago · link · parent

The amoeba has zero neurons, and yet it can hunt prey and can reproduce sexually.

Our understanding of intelligence is so laughably primitive that it is "not even wrong".

comment 4y ago · link · parent

The Nix language is just JSON + lambda functions + variables. And nothing more. If you know modern JavaScript then you already know the Nix language.

The problem is Nixpkgs, the largest Nix program. Nix-the-language doesn't lend itself too well to programming in the large. It's a bit like writing a large JavaScript SPA without frameworks or strict coding standards.

comment 4y ago · link · parent

There's no reason to program in C# if you already know C++.

comment 4y ago · link · parent

Anything except Ubuntu or RedHat is a statistical anomaly anyways.

comment 4y ago · link · parent

You can outsource the staffing costs too. This also turns out to be much cheaper due to economies of scale. :)

comment 4y ago · link · parent

Not really. As far as I can tell, the core value of AWS is letting accountant shift CAPEX to OPEX.

The technical considerations are a distant second or third place.

comment 4y ago · link · parent

> How The Science tells us the pandemic will end once everyone is vaccinated

Fixed it for you.

comment 4y ago · link · parent

He was mostly right. Neural nets are mostly an artistic tool for creating awesome generative art. They don't give any scientific or mathematical answers.

comment 4y ago · link · parent

Someone should make a Language language already.

(Let it be Microsoft or Google, for bonus points.)

comment 4y ago · link · parent

Ants developed civilization. You don't need brains for that.

comment 4y ago · link · parent

TypeScript is better than JavaScript, yes. But still it doesn't guarantee anything at runtime.
1
979899
135