Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

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

Submissions

comment 5y ago · link · parent

Error messages are like the least horrible wart in LaTeX's mile-long list of warts.

comment 5y ago · link · parent

1000 threads blocking on I/O operations is the same as an epoll() over 1000 file descriptors under the hood, except you also get pre-emption guarantees from the kernel.

Yeah, so basically this. Except that "I/O bound" usually implies critical moments of computation too, and pre-emption is really nice here.

comment 5y ago · link · parent

> is heavily multithreaded (typically 20-60 threads)

Hm. For me "heavily multithreaded" is 1000 threads and more. That said, I just detach them, there's no real reason to wait for a thread.

comment 5y ago · link · parent

I hope not. I'm trying to get rid of a legacy kubernetes cluster I've inherited and it's a nightmare. Is there some sort of "how to get rid of k8s" service or tutorial out there?

P.S. The kicker is that this cluster is only used to deploy a couple three-page static websites, run a few simple cron jobs (using literally crontabs) and launch a couple docker images straight from Dockerhub.

comment 5y ago · link · parent

635kb is indeed "large" if it's one message. (You will have millions of messages in one file if you're doing batch processing.)

comment 5y ago · link · parent

No, not really.

The projects do rely heavily on Nix for infrastructure stuff, and I have to explain it to unprepared developers often.

The best angle is to explain it as "like Python venvs, except works for any combination of programming languages". That sets for correct expectation for feature set and complexity.

P.S. The single biggest huge blocker is lack of support for nix-shell in VSCode and JetBrains IDEs. Every other complaint is a minor trifle in comparison.

comment 5y ago · link · parent

Nix isn't a package manager, it's a system for making ad-hoc, repeatable computing environments.

The "package manager" paradigm doesn't fit Nix that well, which is why it's a painful experience when you come to it from the angle that it's another Linux distro.

(IMO it makes more sense to think of Nix as "declarative Docker that doesn't need Linux namespaces".)

comment 5y ago · link · parent

Yes, human civilization. :)

(Ok, granted, "worth" of civilization might be debatable.)

comment 5y ago · link · parent

There's only (approximately) two days a month when a human female can get pregnant. It's not about frequency or intensity, rather it's mostly timing. (And sperm quality, but that's another thing people have no clue about.)

comment 5y ago · link · parent

There won't be a "Western World" in 50 years.

comment 5y ago · link · parent

Ants are intelligent enough to form civilization. (I think the only other species than humans.)

Granted, ant intelligence is a hive mind.

comment 5y ago · link · parent

> 30 weeks

30 weeks?? Obviously these people never experienced pregnancy. It's ridiculous that we argue about lobster intelligence when most people don't even know the basic facts about their own human biology.

(Another common and ridiculous meme is the "pregnancy after having sex once" idea.)

comment 5y ago · link · parent

> They are not eating, exercising, listening to music, socializing, talking more than necessary, and not allowing themselves to be photographed if there’s a flash

This is the standard asceticism routine that every human religion in history followed. (And follows.)

I'll trust the weight of centuries of experience over some random internet source.

comment 5y ago · link · parent

No. LTS is much more prone to breakage. LTS means you're porting yesterdays's security patches onto code that has been abandoned five years ago. And usually you have package maintainers doing this, not actual software developers.

There's no reason to run LTS unless for corporate insanity purposes.

comment 5y ago · link · parent

If I wanted security then namespaces aren't the tool I would use.

(And I don't think they were ever intended as a security feature.)

comment 5y ago · link · parent

A currency amount is just a rational number with "1000000" as a denominator.

This is the correct representation, and how Google or the blockchain do it.

comment 5y ago · link · parent

Nice! This thing is actually sane and thought through. A first for serialization formats. They're usually a shitshow.

(Should have gone with 'rational' instead of 'decimal', though. Decimal will be too painful to implement accross languages and implementations. Java bias?)

comment 5y ago · link · parent

Have you seen the typical "data science" job applicant these days?

Looks pretty low-end to me.

comment 5y ago · link · parent

Wrong for what exactly?

I just want to run my apps with a separate TCP port namespace :)

comment 5y ago · link · parent

As far as I can tell from 30 seconds of research, this thing just bundles standard Linux syscalls in one package. "This machinery" is just typical Google overengineering, it's not doing anything except acting as middleware.

P.S. Yeah, I wish we had a better userspace Linux namespace toolkit instead of Docker.

comment 5y ago · link · parent

> And this is really what people are looking to solve

Why would you want to "solve" a basic fact of life?

Smells of ideology.

comment 5y ago · link · parent

> What problem does Bitcoin (Or blockchain, if you prefer, I'll take either answer), solve?

Getting techies without connections to Big Finance rich.

A case could be made why that's a good thing for society. (Would you rather some entity like HSBC hoard the wealth instead?)

comment 5y ago · link · parent

> when human labor was the most valued thing in the world

Try hiring sofware developers with skills that aren't entirely copy-pastable from Stackoverflow and getting them motivated enough to not cash out after six months, and then tell me it isn't.

comment 5y ago · link · parent

> Curious to hear from folks who actually work in the online ad industry

Two points:

a) Online ads are a shit sandwich for the advertisers from the points of view of quality and features. They only tolerate it because TV and print ads are dying as a medium.

b) Statistics and probability theory are used to filter the shit and connect online advertising to real-world metrics. It's a cost of doing business but it's a problem easily solvable by classical mathematics.

comment 5y ago · link · parent

> HTTP2 is faster,

No.

> ...more flexible,

No.

> ...and more reliable than HTTP1

No.

Like I said in another comment - I'd wager the majority of HTTP use cases have nothing to do with a browser or HTML/CSS/JS.

HTTP2 might be nicer when you're serving static content to a browser; debatable, but I'll give the benefit of the doubt.

In all the other vast domains of HTTP usage HTTP2 does nothing good.

comment 5y ago · link · parent

I'd go out on a limb here and wager that the majority of HTTP servers and clients aren't transferring HTML/CSS/JS. Moreover, the majority are probably not even talking to a web browser.

comment 5y ago · link · parent

"Scripting" isn't part of HTTP.

comment 5y ago · link · parent

HTTP 3 isn't HTTP.

HTTP is the universal protocol because the mental model of "verb-metadata-payload" fits almost everything you can imagine, and the socket handshake/framing parts are obvious and very performant. This is why HTTP is used everywhere from pushing stock quotes to industrial automation.

HTTP 2 and 3 aren't universal protocols, they solve a very specific problem of serving static content to browsers for Google-scale websites.

In effect, HTTP 2 and 3 are exactly the kind of niche one-problem protocol that HTTP was supposed to replace.

comment 5y ago · link · parent

HTTP is a simple, plaintext protocol.

(I've implemented producton-grade HTTP libraries many times. HTTP being a one-size-fits-all protocol means the existing libraries are ridiculously specialized and overspecced.)

comment 5y ago · link · parent

So is smoking, I'm sure.

(Especially if you ask a tobacco company.)

1
99100101
135