Hacker Newsnew | past | comments | ask | show | jobs | submit | PEJOE's commentslogin

Not sure what you are trying to say here, but non-Newtonian (non linear shear stress vs viscosity) fluids are common and studied.


I thought Bitcoin was the money?


The article actually misses a Network Solutions dark pattern that really struck me: all monthly rates are actually 4 week rates, meaning you are billed 13 times a year.


Where is the line? The defense production act?


I think that'd be a ripe thing for SCOTUS to determine (though, I personally don't trust them to determine much right now, so ymmv)

There's probably a good argument that the government should have to invoke eminent domain and proceed with manufacturing themselves.

I can't say that I've put an excess of thought into the matter, though.


That you can do functional or OOP in C does not make C either kind of language, it just means that C is flexible enough that you can make the computer do things the way you want it to, no matter what that means, and other languages purposefully prevent you from doing what you might want to do.

C++ is object oriented not because it has compile time support for polymorphism or any of that other bad programming practice, but because classes have code sections that live with them, whether on the stack or in the heap, that can operate only on memory belonging to that instance of the class.

Object oriented programming is a coding style and choice. Some languages make it a first class part of the language design. It is purposefully not part of C.

However you can do OOP like things in C: a popular paradigm is to pass around pointers to structs that (should) live in the heap, and to have a number of functions which work on these structs. This is very similar in practice and mental modelling to OOP as users of C++ might know it, but is distinct in that no code ever lives in the stack or heap, and no code is restricted from operating on any of the program memory.


Hmm. In what sense do you believe that class has a code section that "lives" on the stack or heap?

On a modern system you can't usually do that because of W^X rules (also on a non-x86 modern system the performance would be abysmal if you tried because why waste transistors supporting something only crazy people would want?)

So perhaps notionally in the abstract machine if I have sixteen Clowns in a C++ vector there are sixteen copies of the Clown method squirt_water_at() in the vector too, but I assure you all the compiler emits is one copy of squirt_water_at() for Clowns, to the text segment with the rest of the program code, and maybe if Clowns are virtual, a pointer to a table of such functions lives with each Clown just in case there are Jugglers and LionTamers in the vector too - although compilers can sometimes figure out a rationale for not bothering.


Regardinf W^X, doesn’t the Linux kernel has some optional expensive debug operation that can be turned on/off through a self-modifying code removing the expensive branching?


I mostly agree with you. But "or any of that other bad programming practice"? Polymorphism is not a bad programming practice. Yes, it can be misused. No, that doesn't make it bad in and of itself.


Yep, can definitely do OOP in C. Except over here in embedded land those structs don't live in the heap... but as globals (still referenced via pointers tho).

Was demonstrating the difference between inheritance and composition in OOP C to my junior dev just this week.


I agree, but to fair to the author I do not think the vast majority of people are implementing thread pools in python.

I also think there were good reasons the author's linters were left as optional, and its probably not because everyone thought they were great ideas.


> I agree, but to fair to the author I do not think the vast majority of people are implementing thread pools in python.

This trope needs to die. While loops are a basic language feature. A thread pool is one very specific example of where that language feature is necessary. Every very specific example is trivially dismissed with "the vast majority of of people aren't doing that very specific thing." It's the laziest rebuttal, and not even wrong.

Cool things I've seen written in python that need while loops: http servers, games, more generally anything that listens on a port or depends on user input, mathematical code that depends on computing a base-k representation, stack-based algorithms...

Hold on, let's stop there. Python sucks at recursion. So bad it's capped at a very small depth. The only reasonable workaround is to avoid the call stack and roll your own, which involves... you guessed it, a while loop. So, this linter prefers buggy stack-smashy code. That's nice. Adults can use another linter.


Did you read the second half of my post? Did you read the authors post at all?


Obama's TPP was a much better counter to China than anything the Trump administration accomplished. Too bad your "tarred and feathered," President didn't have the vision to take effective steps, and instead took loud, boisterous, and largely ineffective measures instead.

Once his advisors realized the reality in , they begged to get back into the TPP at the original terms, but that ship had sailed. [https://www.ft.com/content/bc65dd72-3f2d-11e8-b7e0-52972418f...]

Nothing trump did China wise ever made up for this disastrous failure, and all of his tariffs hurt Americans even more than they bothered China.


Can you please provide more evidence to support this claim? From where I'm sitting, TikTok's and Instagram's businesses would disagree strongly.


I would say, given a static audience of 1 million people, that user engagement goes down the more you advertise (if 1/4 of my feed is ads, that's 25% less actual content to interact with).

TikTok and Instagram have been able to grow larger and larger audiences despite the pressure of ads (and honestly I know when I tried TikTok last there weren't any ads yet, I wonder what portion of an hour is taken up by ads and how long is it til it reaches television levels of ~25%) - as long as audience growth outpaces users losing interest, you can keep introducing ads, but you can't do it forever.


That wasn't a scientific statement. Just a theory about Reddit. I personally like Reddit because it's not shoving ad's in your face constantly and I think others do as well. Apologies for presenting it without labelling it as a theory. I would edit it now if I could.


> worse heavily discriminates against the older folks

The ACA is actually a wealth transfer from the young to the old, like social security, because the young pay much more than their portion of healthcare costs, while the old have a ceiling on their healthcare costs.

Whether this is good policy is for the think tanks and politicians, but after the ACA it is not true that health insurance discriminates against older Americans.


You're losing the forest for the trees. Wealthier parents most often send their children to good private schools, and their children have lots of options for college if they are talented and hard working.


Where I lived in Texas, no middle class family sent their kids to public schools.


That's a hell of an indictment of the local schools. Where I live (Portland, Oregon suburbs) most middle/upper middle class families send their kids to public school.


Idk Seattle for example is liberal as hell but 25% go to private schools. Likely because equity goals are not good for non target groups


Where was this? I highly doubt this is true.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: