Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper2

71 karma · joined Aug 10, 2017 (9y ago) · 249 submissions

Submissions

comment 7y ago · link · parent

> They never are, because if this did happen it would have massive implications for our understanding of the human body. It would require us to be wrong about a lot of things.

Yeah, welcome to medicine. If you've ever encountered these things in a non-theoretic perspective (i.e., having some condition), you quickly see that doctors don't know shit.

Perhaps not surprising, given that human experimentation is taboo.

Anyways, how does what you're saying mesh with the fact that extra glucose is stored in your body's reserves while ketones are secreted with urine and breath?

comment 7y ago · link · parent

> are then overwhelmed with work

No they're not. Most are doing pointless non-work (or negative work) because businesses need to show 'growth', usually by inflating head and report count.

comment 7y ago · link · parent

I've been coding C++ for 15 years and I've never seen a use-after-free in the wild. (I've seen lots of other bugs and security problems, but not use-after-free.)

Use-after-free is a C thing, not a C++ thing. Granted, C++ makes is super easy to code in C, but that's an organization problem that is already solved in any sane project.

comment 7y ago · link · parent

Don't know about you personally, but normal human babies certainly aren't at all like animals.

The sheer, mind-boggling rational and learning capacity needed to learn highly symbolic and abstract things like language and arithmetic means that babies are 'smarter' than adults.

(If by 'smarter' we mean the capacity for learning, mental models and abstract generalization.)

comment 7y ago · link · parent

So what?

Since when is 'emotion' is some sort of validation of personal worth instead of a condition you need to learn to live with?

comment 7y ago · link · parent

> for every anecdotal old-guy that hates Electron

Any sane person with half a brain hates Electron.

(Not that there are any good alternatives, but still...)

comment 7y ago · link · parent

Eh? It reads like a book translated into Chinese. It's probably one of the most not-Chinese Chinese books you can read.

comment 7y ago · link · parent

The extra CPU load for our balancers (nginx) didn't translate into any benefits for the user in performance or user experience. We ended up spending CPU cycles for no benefit.

Basically, HTTP/2 is tuned for a very specific case of Google traffic which pretty much never happens in places that aren't Google.

comment 7y ago · link · parent

Neither is the parent comment.

comment 7y ago · link · parent

> Better

No, http2 is not better. We actually did the tests. We're not quite Google-scale, but having to handle tens of thousands of requests per second put us in the 'high load' camp.

comment 7y ago · link · parent

> If someone becomes addicted to a substance

Are you mad? Nobody suddenly becomes 'addicted'. Addiction is something you do willfully and deliberately to yourself. Addiction is not a disease, it is a form of self-harm.

comment 7y ago · link · parent

> Get something done and working, even if performance sucks.

Often if "performance sucks" then it isn't done and isn't working. Performance is a client requirement like any other.

comment 7y ago · link · parent

We actually compared stock lua to luajit in production, for something with high load and serious performance requirements.

The difference turned out to be no big deal, less than x2 in speed. The real performance killer seems to be garbage collection and chasing pointers due to inefficient data structures. Luajit doesn't help much here.

In the end we went with stock lua because it doesn't have the 1 gigabyte memory limit, and so can use a much larger thread pool.

comment 7y ago · link · parent

> ...but I don't really understand what it implies

It means "faster than the slowest language currently in common use, I guess".

comment 7y ago · link · parent

> I'm incapable of understanding the mindset the man is in - total awareness of impending death.

Seriously? Every human being on Earth over a toddler's age is totally aware of impending death. To date nobody has ever lived forever. The only question, for every human being, cancer or no, is how many years you get before you eventually die.

Modern man just makes my head shake in disbelief sometimes...

comment 7y ago · link · parent

That's because professional outcomes for programmers aren't related to aptitude. Nobody ever got promoted for writing good code. (But the reverse is very common.)

comment 7y ago · link · parent

"1M socket connections" is easy.

Having them all do something useful at the same time is the hard part. (And no, "async" won't save you here.)

comment 7y ago · link · parent

> Why I quit a $500K job at Amazon to work for myself

Presumably, the answer is "because I already earned all the money I wanted to earn".

comment 7y ago · link · parent

Newsflash: Facebook's customers are advertisers, not the honeypot victims stuck to their site.

comment 7y ago · link · parent

> What must the Aztecs thought of the Spaniards whose holiest emblem is a man being publicly tortured to death.

The meaning and symbolism would have been blindingly obvious to them. In general, Christian and pagan theology is basically the same. Christianity is a direct development of pagan thought.

The modern thought framework for 99.9% of modern people is Gnostic, not Christian. Both Christianity and paganism is thus completely impenetrable and incomprehensible for pretty much every person alive today.

comment 7y ago · link · parent

"^W" is this guy: https://en.wikipedia.org/wiki/End-of-Transmission-Block_char...

In Unix line editors it is traditionally used to mean 'erase the previous word'.

See also documentation for ASCII (http://www.robelle.com/smugbook/ascii.html for example) for origins of ^C, ^D, ^S, etc.

comment 7y ago · link · parent

I think Nix is the final boss of language-specific package managers and where we'll eventually converge.

comment 7y ago · link · parent

Lung cancer is the least of your problems if you're a smoker.

Smoking greatly increases risks of literally every possible health condition.

(This is why the first question you'll be asked by a doctor is if you smoke or not, no matter what your complaint is.)

comment 7y ago · link · parent

Because it's owned by Google and Facebook.

- Always yours, your Cap.

comment 7y ago · link · parent

> I wonder why Go is working where the others went away from it?

Quite frankly, because Go developers don't learn from other's mistakes and reinvent square wheels.

Kernel threads will always be better and faster than usermode threads.

This is because any inefficiency in threading comes from the scheduler. Your usermode scheduler will always necessarily be slower and worse; it just makes so much sense to put your scheduling code where your context switching and process isolation code already is.

Sure, you can get a short-term gain by iterating fast and testing code if kernel developers are too slow and/or unwilling; but then eventually your code will get merged into the kernel anyways once you're done. So really usermode threads are only good as a rapid prototyping tool, not something for serious use.

comment 7y ago · link · parent

Something like IPython, amirite? XD

comment 7y ago · link · parent

> it is much more likely to need to represent 0.30 than 1/3

Citation needed, because this isn't really true.

Even if one concedes your (unspoken) idea that only financial transactions aren't "academic" (which also isn't true), in the real world financial transactions will typically include currency conversions, and those will have all sorts of weird non-decimal factors.

comment 7y ago · link · parent

The twist: I don't. Lol.

comment 7y ago · link · parent

I'm pretty sure that the idea that cholesterol causes heart attacks is fake news.

comment 7y ago · link · parent

There's no such thing as a language with no exceptions.

There are only languages where exceptions need to be hand-rolled in an ad-hoc fashion.

This ad-hoc approach does not work. It gives you tiny benefit of not needing to learn a language feature. Meanwhile, ad-hoc exceptions mean that you lose all sense of modularity in your program. Real programs are composed of dozens of modules at various levels of abstraction, communicating together over multiple processes and threads. Ad-hoc exceptions in a real program in practice means 'just crash the whole thing, yolo'.

That does not work for serious programs.

1
56789