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

They were also drinking water every day.

That doesn't make water bad.

I wish for people to be strong, just like I wish them good health, because it's a quality that makes for a happier life.

If one has the strength of character not to be pressured to do bad things, you get less fascists, not more.


I think you are the one infected with a very paternalistic vision of strength.

Strength is the ability to apply force, it's the quality of solidity, the potential for resistance, etc.

E.G: it takes strength to not act on fear and hate. Gandhi is considered a man of great strength.


There are plenty of things for which python is not slow, but people using python don't know a lot about programming, and end up with a slow result.

A couple of advises:

- the right algo will go a long, long way.

- know your data structures. E.G: assigning to a slice is ridiculously fast (even while unpacking), memory views may save a lot on byte heavy workloads, heapq and deque are underrated, etc. Also check out https://wiki.python.org/moin/TimeComplexity for big O notations on python builtin types common operations to understand what you pay for.

- know the stdlib. collections, itertools and functools all contain incredible gems.

- delegate. Python is a fantastic glue language, use it for what it's good at. Your database, your numpy arrays, your cache are all amazing are what they do, no matter the language. Let them do the heavy work.

- don't kill good perfs by ignorance. I regularly see people casting a generator, iterating on a dataframe, calling readlines() on a file or doing something else that is destroying the otherwise excellent perfs of their program.

- know the ecosystem. There are some very good fast libs out there: diskcache, sortedcontainer, scipy, uvloop...

- use threads to avoid blocking a GUI, multiprocess to share work between CPU and asyncio to speed up network operations. Each tool has a sweet spot. But threads are underrated, they work well for a couple of hundred parallel network operations, and most C libs will actually release the GIL, so they can use several CPU more often than you'd thin. Also, use pools if you can, shared_memory in 3.8 or mmap.

- sometime the dirty solution is just faster, like subprocessing to ffmpeg.

- The more recent, the slower. Sure, I love statistics, pathlib and dataclasses. In a regular code they are great. On a bottleneck however, they are very slow.

- the array module is not supposed to speed up the code, only save memory. But sometimes it does.

- printing to the terminal is limiting. Sometime your program is doing fine, the display is preventing it to go faster. At least check the flush.

- comprehensions are faster than alternatives.

- pre-allocating lists and dicts can help.

- measure. The austin profiler is your friend.

- rewriting the hot path in a faster language is likely more interesting than writing the whole program in it. A bit of nim or rust is easy to call from python.

- some python distribution are faster than others. I don't mean just pypy, but also regular cpyhon that have been built specially for some architectures. E.G: https://www.intel.com/content/www/us/en/developer/tools/onea...

- nuitka code compilation can speed up the code by a factor of 4, it's nice, especially for startup.


A big thank you! This is an amazing list of things to look into and keep in mind. Many points are obscure to me, but I'm going to print this and keep it at hand. Thanks again.


>pathlib and dataclasses. In a regular code they are great. On a bottleneck however, they are very slow.

Do you have any numbers to back this up? Why would Pathlib be slow?


Anthony Sottile has a good bit on it: https://www.youtube.com/watch?v=tFrh9hKMS6Y

TL;DR: Path() initialization is very heavy compared to simple strings, and subsequent path operations produce new Path() objects every time.

The video then illustrates the point with a patch to the black formatter cache yielding a 40X speedup.


Oh, that is unfortunate. Thanks for the tip.


How do you pre-allocate lists and dicts?


l = [None] * size


If you compile Python, you may also try nuitka, which can not only compile a standalone program, but also compile a single package.


Anybody very successful has had a lot of luck, that's a given.

But since it's about science, and revolutioning it on too of that, claiming there was nothing special about Einstein make little sense.


I'm betting they are probably less nutritious too.


I've suspected for a long time that we are missing major stuff from out diet due to changes in both the plants and animals we eat. I look at fruit in the grocery store and it just looks unnatural to me.


Studies have found decreases over time, from the mid 20th century, to now, in vitamins and minerals in fruits and vegetables. It's due to changes in varieties, soil depletion, and increased atmospheric CO2.

https://blogs.scientificamerican.com/observations/vanishing-...

https://www.politico.com/agenda/story/2017/09/13/food-nutrie...

There is some evidence sugar content has increased, from varietal changes, but that's about it.


Well, we are at the point where farmers have to add nutrients to soil.


People who talk about whether food is “nutritious” are like anti-vaxxers. There’s no scientific basis to these ideas, just feels.


Yet you don't provide any evidence for your bold, asbolutist, and franckly, insulting, claim. Hence I'd say this very form of comment is closer to the proverbial facebook mum style, than somebody suggesting "I'm betting".

But allow me to actually provide some hints that, while not able to remove all doubt about the matter, nevertheless show such a theory is not an undeserving question, nor born from an irrational mind:

https://journals.ashs.org/downloadpdf/journals/hortsci/44/1/...


What are you trying to say here? That nutrition doesn't exist? It's anti-science to state that an apple has more nutritional value than a potato chip?

Specifically what the parent is referencing is the density of nutrients per unit of meat. Are you saying that all meat is uniform in nutrient density?

I'm genuinely flabbergasted by your supremely odd take on this situation.


What “nutrients” are you talking about? Vague unspecific references to “nutrients” is a red flag that you’re talking to an anti-vax type.


Vague unspecific references to anti-vaxing are to me a red-flag that somebody tries to win a debate without having to provide any argument for ones opinion, even when answered approprietly in another comment.


Wanting more information about nutrition is not comparable to being opposed to vaccines.

Nutrition is an area of study which lacks a lot of information. Even as time goes on and agriculture changes, the data we have about the food we consume appears to be out of date. There are many other factors we’re just beginning to become aware of with implications we haven’t begun to unravel.

Nutritional science and the data we have today is completely acceptable to question. Just about everything is, but nutrition seems especially open.


Being interrupted every hour would kill the zone for me.


Yeah, they love also facebook, which monetize all their private life or sugary food, which alter your diet balance or cigarettes who can literally kill you. Not to mention all of them are addictive.

The fact consumers love something doesn't make it a good thing.


It does explain why smart TVs would be easy to buy and dumb TVs difficult to buy.

For example, I do not care if a TV is smart or dumb. All I care is how quickly it turns on because I am connecting it to an Apple TV anyway. Even as a person who would rather have a dumb TV than a smart TV, my actions continue to support smart TV manufacturers because I am not willing to spend the time and effort required to seek out dumb TVs, since I have already found an acceptable solution.


But if there are no dumb TVs for sale, how do you know if that's the consumer's desire or not?

The much simpler explanation is that TVs plastered with ads and surveillance are more profitable to companies.


I assume there are capable people working at these large TV companies who can ascertain reasonably well what kind of demand there is for a dumb TV.

Also, TVs went from dumb to smart, so empirically, sufficient buyers voted for smart even when they had an option for dumb. The alternative is all the manufacturers simultaneously pulled all dumb TVs out of the market even though selling them would provide a competitive advantage in a razor thin profit margin business, which does not seem likely.


Would be interesting to know why consumers want smart TVs so much.

Some smart TV features are indeed necessary if you want to watch anything via streaming (i.e. any halfway relevant modern series). But as GP said, you can usually get those via some kind of HDMI stick.

So one explanation might be that most people want to watch Netflix but don't know this is possible with a dumb TV + stick as well. Or they know this but don't understand why fiddling with two devices would be preferable to having one device where everything is built-in.

So far that's a reasonable stance, I believe - especially if you don't know all the tracking smart TV vendors already have done. This might change though if ads and other overtly user-hostile features are rolled out more widely.


Personally, I'm really into cable management and hate clutter. Having one less external device to plug in helps with that. It's not like a Roku or Apple TV or Fire Stick can't track you and show ads in all the same ways a Smart TV can, so it's hard for me to see the downside. Since you have to login to most of these services anyway, even if you're watching Netflix on a Linux laptop, they're still tracking you. I guess at least Samsung isn't tracking you on top of Netflix if you're just watching on a dumb monitor, but frankly, the way to handle that should be, if market-based, Smart TV providers that don't do content recognition and interest-based advertising, and if that doesn't work, legal regulation that bans abusive practices. We shouldn't be stuck with 80s technology forever because devices with integrated computers will inevitably be used for spying.


Consumers want to be able to just plug in their TV and press the Netflix button, nothing wrong with that.

Even after spending tens of thousands on home theatre equipment I struggle to understand why I should want to use some kind of stick to watch netflix from.


Why would you want a TV to be needlessly tied to an online service that can be turned off tomorrow? When Netflix stops providing its streaming service (or makes breaking changes to its API) a TV with Netflix support integrated now is wasting compute, menu space, physical buttons on remotes, etc. on a dead service. I would expect just about every TV to outlast Netflix unless it's treated poorly.


> I assume there are capable people

Never a great assumption really.

> working at these large TV companies who can ascertain reasonably well what kind of demand there is for a dumb TV.

Companies are focused on maximizing profit. Demand is secondary.

The hardware cost difference between a smart TV today and a dumb TV is negligible, but the loss of years of spying on you and serving you ads isn't.


    Also, TVs went from dumb to smart, so empirically, 
    sufficient buyers voted for smart even when they 
    had an option for dumb
This is one of those areas where consumerism/capitalism trips over itself and leads to sub-optimal outcomes.

The implicit assumption here is that this must be what consumers want, because it's what they "voted" for.

But voting (whether democratic elections, or just free-market consumer spending choices) only leads to optimal outcomes when the "voters" are sufficently knowledgeable in terms of both general domain knowledge and the choices themselves.

For all but the simplest choices (say, a choice between a bucket with a hole in the bottom and a bucket without a hole in the bottom) this is difficult.

There's no reasonable way for consumers to know how shitty the inbuilt OS/apps of a "smart TV" will become over time, or what onerous software updates the manufacturer will pump out, etc. A lot of this stuff is difficult or impossible to know even for savvy, educated people looking for a TV.

I wonder what sort of reaction you have when a successful, legally approved medicine turns out to cause death or injury in the long run, or merely proves to be ineffective. Or when a specific model of car develops problems after a couple of years.

Do you say, "well... this is clearly what consumers voted for?"


> There's no reasonable way for consumers to know how shitty the inbuilt OS/apps of a "smart TV" will become over time, or what onerous software updates the manufacturer will pump out, etc. A lot of this stuff is difficult or impossible to know even for savvy, educated people looking for a TV.

Maybe, but it has been a decade since smart TVs became prevalent, and I would bet everything I have that if you put a dumb TV for sale next to a smart TV in Costco, no matter how shitty the software on the smart TV is, the smart TV will be chosen enough times that the dumb TV maker goes out of business.

This is not about what should the consumer do. This is about what the consumer will do. And they will choose to pay $30 less in exchange for giving all their viewing data to the TV manufacturer. Try to educate them otherwise, I doubt it will be successful.

There is also more data out there than ever before in history about TVs, but I doubt most people would ever care enough to read in depth reviews on rtings or whatever.


Right. Capitalism often leads to suboptimal outcomes (everybody owns a TV somewhere between "mildly annoying" and "downright terrible") because there's no reasonable way to know better, so consumers choose based on the one thing everybody understands: price.

    There is also more data out there than ever 
    before in history about TVs, but I doubt most 
    people would ever care enough to read in depth 
    reviews on rtings or whatever.
You can read all of the reviews you like, but the conclusion is the same: you effectively cannot buy a non-smart TV now.

There's also the larger issue of whether it's reasonable for consumers to do so. Educated, informed consumers are always the goal, but at some point this is not reasonable.

1. Consumers can't be experts on everything. Cars, prescription eyeglasses, medicine, home repairs, computers, shoes - there are simply not enough hours in one's life to become a domain expert at everything.

2. A lot of people are, frankly, not the brightest. As the saying goes, half of the people in the world are below average. I don't mean this insultingly, in fact: quite the opposite. Human beings are human beings. We are all worthy of dignity and respect. But being an uber-savvy consumer is less practical for some.


> Capitalism often leads to suboptimal outcomes because there's no reasonable way to know better

Also known as the market for lemons: https://en.wikipedia.org/wiki/The_Market_for_Lemons

Akerlof's paper shows how prices can determine the quality of goods traded on the market. Low prices drive away sellers of high-quality goods, leaving only lemons behind. In 2001, Akerlof, along with Michael Spence, and Joseph Stiglitz, jointly received the Nobel Memorial Prize in Economic Sciences, for their research on issues related to asymmetric information.


> There's no reasonable way for consumers to know how shitty the inbuilt OS/apps of a "smart TV" will become over time, or what onerous software updates the manufacturer will pump out, etc. A lot of this stuff is difficult or impossible to know even for savvy, educated people looking for a TV.

You read a few TV reviews, see that LG OLEDs have been the best choice for many years. Hard to get this wrong.


This works until a fresh MBA or PE firm takes over and decides to pump and dump, and the quality craters quicker than the reputation.


They do. But the thing is that they work for the TV vendors instead of consumers and also if all vendors are moving to the same direction, there is virtually no choice for consumers.


There is no choice because there is insufficient profit. In an industry with tiny profit margins, if there was margin to be had, surely someone would jump on it.


I love how you refer to buyers as, "voting."


Citizens United says that $1 = 1 vote, right?

Isn't that the same across the entire world?

/s


The free market doesn't always evolve to meet consumer demand, especially when the demand is low.

Back before the turn of the century, Micropose released Falcon 4.0, arguably one of the best military flight sims. It was complex, had good graphics for the day, had a vibrant community of users, a vibrant aftermarket equipment ecosystem (HOTAS, foot pedals etc). I love playing it, and couldn't wait until better and better computers came out that could make the graphics photorealistic. I also played EF2000 which let you fly the Eurofighter. Same game idea, a bit less accurate, and a bit more user friendly.

Fast forward two decades and the military flightsim field is basically dead. People will tell you to try MS Flight Sim, but that's definitely not the same.

Why did this happen? Might have been dotcom fallout; might have been just a small niche application field. Who knows? The market moved on and now it's a wasteland. Perhaps VR will revive it since it would add a great deal of situational awareness.

In the end, just because a small group wants something (like dumb TVs or Milsims) doesn't mean that companies will fill the niche.


>But if there are no dumb TVs for sale, how do you know if that's the consumer's desire or not?

The same argument has been posted multiple times for small phones. Yet, every time apple releases small phone, they are disappointed in sales.

https://www.macrumors.com/2022/03/28/apple-cutting-iphone-se...


A couple possibilities come to mind:

- Most Apple users want larger screens, which means larger phones; or

- Small Apple phones are not small enough, so there's no point.

About the second point, that's where I am. I've been looking forward to a USB-C iPhone Mini. That was until I actually tried to use a Mini. It's smaller than the regular size iPhone, but still very hard to use single-hand as I have small hands. I want something the size of the iPhone 5. The Mini is just not small enough to make the small screen worth it.


A good rule of thumb is that it hacker news claims there is a huge unserved market for some product, there is almost certainly no real demand for it outside of this website.

I’m not sure I have actually ever seen an iPhone mini in the wild. It seems to be almost evenly split between the pro and the pro max.


> But if there are no dumb TVs for sale, how do you know if that's the consumer's desire or not?

Because there was a period of several years overlap where both smart and non-smart TVs were available. If smart TVs had been a sales flop they would have been killed off like 3D TVs were. 3D TVs were being pushed hard ~10 years ago. It was supposed to be the next hot thing. But it flopped and has been all but forgotten about. Smart TV could have easily ended up the same way.


How much of a conclusion can we draw from that market period, though?

"Smart" sets tended to move from the top of the market downward. This meant that if I wanted a "non-smart" set in a given size, it was likely to be the lower-end product-- often with fewer inputs, a lower-grade panel, or from a firm with an inferior reputation for quality.

This makes it difficult to de-conflate if people were buying a smart TV because they wanted the smart features, or the panel/connectivity/brand reputation.


Smart TVs pretty much completely displaced dumb TVs in the consumer market long before it occurred to anyone to use them for ads or surveillance.

The correct explanation is probably that since modern TVs are inherently digital devices the most sensible way to implement them is as computers running TV software, and once you are building your TV that way the only difference between a dumb TV and a smart TV is the software.


If you let them get away with it, then you will never get a TV work as it should. My next TV would be a dumb one, if I cannot get it, then I'll go for a big monitor instead.


> The fact consumers love something doesn't make it a good thing.

It does make it a good thing for them. Which begs the question: why is it that you get to decide what is or isn't a good thing? Or: why shouldn't people be able to decide for themselves? The answers against the latter are, at their root, paternalistic and elitist.

> they love also facebook

Ah, yes. The old "facebook is as bad as cigarettes" trope. It feels a lot like the claims around TV in the 70s and 80s. "It's rotting people's brains!" But society kept on chugging. It is one thing to object to Facebook's business model. It is another entirely to deem it "Bad For You". Billions of people like using the product and it hasn't hurt their lives. In fact, it has improved them.


But something is seriously wrong with a society where it's impossible to avoid a thing that you consider harmful to yourself just because the larger market prefers it.

It used to be that one of the strengths of our economic system was that you could find something to meet your needs even if your needs weren't the same as the majority.


How is it impossible to avoid smart TVs? I don’t own a TV at all, I just use my desktop monitor. And then there are a bunch of examples in this thread about commercial displays.

It’s not impossible to not own a smart TV, it’s just the mass market caters to what the vast majority want. Outside of hacker news, no one considers smart TVs harmful.

I consider cars harmful and yet hacker news gets up in arms when I propose banning them from cities.


> it’s just the mass market caters to what the vast majority want

All sorts of ways to dispute this assertion, the most easy probably just to point to the existence of the multi-trillion dollar advertising industry


I don't know that this has ever really been the case. Particularly with mature product categories. And most especially for product categories with high barriers to entry in the form of large capital requirements. It was one thing to be able to go to the local candy shop for a chocolate bar if you didn't want a Reese's Peanut Butter Cup, but something else if you wanted a television set.

Are you thinking of an example where that once was true but has changed? I'm open to examples but can't myself think of any that are analogous.


I agree with you; I've noticed the same thing. It seems many niche or small markets are being abandoned in favor of the larger ones.


> It does make it a good thing for them.

This ignores that companies pour billions into advertising, fake research and lobbying to influence consumer behavior.

It also ignores network effects and lack of choice: if all your friends are in Facebook and there isn't a viable alternative to socialize, you don't have much of a choice, besides being left out (which may not be such a bad option but may also make you miss valuable socialization).


why shouldn't people be able to decide for themselves? The answers against the latter are, at their root, paternalistic and elitist.

Is that the same as bad? What is this zealotry against paternalism and elitism? Perhaps you could focus more on outcomes than some social engineering crusade you have, deciding that certain philosophies are automatically "bad".


> It does make it a good thing for them. Which begs the question: why is it that you get to decide what is or isn't a good thing? Or: why shouldn't people be able to decide for themselves? The answers against the latter are, at their root, paternalistic and elitist.

I'm not clear on what your argument is here. Are you:

* denying that there is a fact of the matter about whether, for any item X, X is beneficial or harmful?

* asserting that something's being beneficial or harmful has no meaning apart from signifying present-day user preference?

* merely asserting that users fairly reliably tend to prefer what is good for them, and avoid what is bad for them?

> Billions of people like using the product and it hasn't hurt their lives. In fact, it has improved them.

It sounds like you are making a case here that Facebook is beneficial because it improves the lives of its users—am I understanding that correctly?


Are you engaging in good faith? Your reply seems a lot like [1]. I'll answer your questions if you first answer those that I posed (which you quoted):

> Why is it that you get to decide what is or isn't a good thing? Or: why shouldn't people be able to decide for themselves?

[1] https://en.wikipedia.org/wiki/Complex_question


That is why what we need is not DumpTV, but Smart TV that is sane.


In what way do your arguments not also apply to cocaine?


> Billions of people like using the product and it hasn't hurt their lives. In fact, it has improved them.

I don't believe Facebook or TV are equivalent to cocaine. I don't think your argument is made in good faith.


> I don't believe Facebook or TV are equivalent to cocaine.

Exactly. You were making a broad claim that it is "paternalistic and elitist" to decide what is "good for you" vs "bad for you". If it is paternalistic and elitist in some cases, but appropriate in others, then don't we need a way to figure out what side of that line various things fall on?


> In what way do your arguments not also apply to cocaine?

This is the comment to which I was responding. As I see it, there are two premises here which both have to be accepted (i.e. it is an "AND" not an "OR"):

1) Facebook/TV is analogous to cocaine

2) Cocaine is bad for you

If I reject that Facebook/TV is analogous to cocaine, I reject the entire thing. I was not making a broad claim about people's autonomy vs. paternalism. I was making a narrow claim in relation to two (at worst) benign things: smart TVs and Facebook.


Bingo.


Monetizing my private life is nowhere near in the same category as killing me, unless you believe in some philosophy where privacy is as important as life.

Making an algorithm to addict me is arguably pretty evil though.


Piggyback to this, wasn't it Steve Jobs who said something about how the users don't know what they want or need?


Maybe there is a balance?

We don't have to be 100% either.

We do need to build human trust and relationships, and you can't do that with remote easily. Also, communications are slower and full of paper cuts that will make any task requiring to gather a lot from different people harder with remote.

Those 2 things make onboarding much harder.

Young people are also the one that are paying the most cost from remote:

- they are the ones with the less autonomy, which makes remote either very unproductive or make the task super hard.

- they don't learn anything about politics, which remote hides from view, and maybe reduces a little, but doesn't remove.

- they are already deep in the culture distractions, which is incredibly tempting in remote.

How course, remote work has so many benefits it may very well offset all that. Time will tell I guess.


And EA


and Dropbox


I will never forgive Dropbox. I spent a decade evangelizing them as the way to do cloud file storage to all the tech-illiterate people in my life and then Dropbox decided to limit free accounts to three devices. The sheer number of pissed-off and/or confused phone calls I got from all of those people was enough to make me wish eternal suffering upon the Dropbox executives.


That is basically the dictionary definition of cashing out social capital: be so good that people evangelize your brand, then start aggressively putting profit first once you reach a critical mass of public awareness.


I think they didn't cash-out on social capital. They grew, and became "enterprise first". The recipe is to limit free services and increase the price of paid service, so only big customers and serious users get attracted to you.

Trello did the same thing. They killed their single-user friendly features and moved to enterprise first, gouging serious solo users in the process.

I'm still subscribed to both, but I'm not as happy as before.


The 1:1 analogy is to investment capital: let's say someone started a successful company that got purchased and has now invested the $5mil USD they got paid (the capital) with an annual rate of return of 5% giving them $250k/year.

They could reasonably retire off just the return on investments.

However, if they start using the $5mil to buy houses and cars and whatnot, they are "cashing out the capital". As they spend more and more, the return on investment drops but everything looks great from the outside: they have lots of cash, a lot of "things", and so-on. However, look ahead a few years and they might be left with $500k invested giving them a return of $25,000/year and it's possible that they would no longer be able to retire off that putting them in to a possible tail spin of needing to spend the remaining capital just to pay the monthly bills.

I propose that this is what companies are doing with their "social capital" (which includes the public's impression of the brand and that brand's work on building up their customers). Creating a brand with integrity and values while working to solve a problem well builds social capital. All they have to do is "maintain the balance" (stay true to the values and mission that got them there) in order to keep getting the "return on investment" (continual influx of new paying customers). However, if they choose to start sacrificing values and quality for the short-term gains they can definitely do that. On a quarterly balance sheet it even looks like they are "rich": "We're spending less on dev time by ignoring bug reports and less on servicing free customers while also converting 10% of those old free customers to paying customers. The bottom line is way up!". But because they've sacrificed the values that attracted those customers in the first place new potential customers will start looking more critically, or will choose a competitor, or will even start their own competing service. It's only a matter of time before the company looks at the balance sheet and wonders why income is down. If they are really looking to ruin the company they might even point fingers like "we used to get $250k/yr, but now we're getting $25k and our competitor is getting $225. we must conclude that the market is saturated and we have to go on the offensive against that competitor.", when what they could do is simply accept that they have to start over to rebuild the social capital so they can have the same level of return again (or maybe even take the lesson and work harder to build more capital and have a bigger return in the future).


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

Search: