Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

> People aren't going to stop buying it as long as it's the only option!

Then that's it. Game over. Until buyers stop buying what's already out there, vendors don't have an avenue to sell any kind of replacement. Fortunately, your view is quite disconnected from reality. In the real world people talk, negotiate, and work to satisfy the buyer's wants and needs.

> It's not about reminding you not to buy, it's about banning people from selling. You know, as they already do for dangerous stuff like Kinder Suprise in the US…

Not to mention illicit drugs. They, of course, straight up vanished from the US as soon as it became illegal to sell them. Oh wait.

Let's be real: If someone is buying, there will be someone ready to sell. The law ultimately has to compel the buyer to back away. You can say the onus is on the seller, but you're just looking at the opposite side of the same coin.

> Yet there is one.

Meaning that if I decide to keep my clocks on a constant schedule it's straight to jail for me? If not, how does that relate to a law that would penalize you if you sell (or buy) plastic-wrapped food? In this part of the world, at least, if you want to ignore DST, go nuts. DST only exists because the people just do it, not because there is some legal threat that keeps them on the straight and narrow.

> and this kind of amount of coordination is the exact reason why we've created the State in the first place!

If the state is democratic, the people have to coordinate first. Without such coordination, there is no way for democracy to take place. Once the people have coordinated their will, they can just do it. Like you point out with DST – at least to the extent of its existence in my part of the world – you don't need a law to force people to do what they've already decided to do. They can just do it. Simple as that.

Such laws are useful for keeping the minority dissenters in line with the will of the majority, but in this case once the majority has stopped buying plastic-wrapped food, it is highly unlikely there will be a compelling business case to serve the small handful of people who want to see the world burn. I mean, even if you don't give a rat's ass about the environment, are you really going to go well out of your way to buy plastic-wrapped food? Not likely. You're just going to buy the food the same way everyone else is. It will be cheaper and much, much, much more convenient.

The previous commenter's idea of an authoritative higher power forcing the people to bend to his will is great and all, but doesn't work with democracy. If a perfect world sees that government be a democracy, as the prevailing consensus seems to indicate, then that idea is out the window in said perfect world.

comment 2y ago · link · parent

> And where am I supposed to find affordable food not wrapped in plastic?

The same place you expect to find it when you outlaw food wrapped in plastic. It's not going to disappear until people stop buying it. You can create a law to remind you to not buy food wrapped in plastic, or you can just not buy food wrapped in plastic. So long as the population is on board with the idea of not buying food wrapped in plastic, there is absolutely no difference.

If you are suggesting that the population isn't on board and everyone other than you is quite happy to keep buying food wrapped in plastic then a democratic government would never create such a law in the first place, rendering the entire discussion moot. That would not be in alignment with the will of the people. Democracy does not serve individual whims.

comment 2y ago · link · parent

If only the people had chosen to enact a law that made it illegal to sell you food packaged in harmful packaging that you had already decided not to buy. I mean, you'd still be dead, but you'd have 56 days of satisfaction knowing that your voice was heard.

comment 2y ago · link · parent

> We're talking about negative externalities

No. Not sure why would you would choose to reply before reading the comments, but since you have... we are quite explicitly talking about at least one consumer expecting food packaging to degrade within a similar period as the food contained within, with a suggestion that an authoritarian government in a perfect world would recognize that as a good idea and force it upon the people.

But the general consensus seems to be that, in a perfect world, governments are democratic – a notion you do not seem to discount.

Under a democracy, if he stands alone in that desire of short-life packaging, nothing is going to change. No business is going to cater to his unique want (well, maybe if he's exceedingly rich and is willing to pay disproportionally for it) and government is not going to act on the wishes of one person (that would be undemocratic). If a majority of people share in that desire, though, then businesses would face pressure to provide when consumers make that choice clear. Any business that fails to comply will suffer the consequences of lost profits. The people can enact a law that prevents themselves from buying the product they already don't want to buy, but that doesn't accomplish anything. They've already decided they don't want to buy it!

Democratic government is useful for cleaning up minority groups who try to act against the wishes of the majority, but in this particular case you have not even made clear why the minority would be stuck on buying 'forever' packaging or what businesses would gain from catering to the minority. People don't care about food packaging that much. Once the majority are buying short-life packaging, the small number of people who want to watch the world burn will be priced out of the market anyway. As such, there is no need for government. The people can just do it...

...and if they don't, that's the end of it. Magic isn't going to swoop in and save the day. The democratic government is nothing other than the very same people who have already decided that, in this scenario, they don't want to do anything.

But maybe what you're really struggling to say is that democracy wouldn't be found in a perfect world? Fair enough, but I'm still not sure that's the general consensus.

comment 2y ago · link · parent

They already acquired Alien Blue, the (once) most popular and beloved mobile Reddit client. How much more goodwill does the company need?

comment 2y ago · link · parent

> You cannot buy something that doesn't exist or is otherwise unavailable.

Of course you can. Facilitating such a thing is Kickstarter's entire business model, as an example. You can also refrain from buying, communicating to other people that "I'm not buying your product unless you..." which gives really strong incentive to do things differently.

It's not like government is some kind of magical thing. It's just people. And in the case of democratic government, it's the very same people.

comment 2y ago · link · parent

> In a perfect world where governments are competent

Yet the general consensus seems to be that in a perfect world governments are democratic, and therefore beholden to the will of the people, not authoritarian like you suggest. But if the will of the people wants to see a change in the use of plastic, they don't need it to flow through government, they can simply change their buying habits.

comment 2y ago · link · parent

Did you miss that we're talking about humans, not purpose-built robots? If you, a human, can handle building houses, you can handle doing anything. We're quite an adaptable species.

comment 2y ago · link · parent

If you have the wherewithal to be able to build a house, you can do any job out there. So, without a compelling offer, why work in construction? Everyone and their brother will happily hire you to do something else.

Perhaps the government could be more heavy-handed, only allowing immigrants into the country under force of building houses, but that goes against Canadian culture, not to mention that other industries who rely on immigrant labour would cry fowl and the Canadians working in construction will feel attacked. Not going to happen.

The only real way around it is to see Canada's job market crumble. When building homes is the only work available, then you'll see people begging for those types of jobs (Canadian citizens included). But when there is work elsewhere, most people are going to go elsewhere. Building homes is not exactly compelling work – at least not at the going rate.

comment 2y ago · link · parent

> Do this by building like mad

By whom? Things aren't quite so bad now that higher interest rates has scared many people away from building, but prior to that contractors were booked up years in advance. There was nobody else to build more than what we were already building.

Sure, the old adage of "just pay the workers more" might work to attract more workers into home construction, but then the cost of housing needs to go up to pay them...

comment 2y ago · link · parent

> especially since Canada has a lot more land than the US per capita.

Unless you want to live off by yourself in the isolated tundra, the land anywhere close to civilization is highly sought after farmland. Farmland values is the even more interesting story in Canada, having increased at a rate eclipsing the growth in housing prices over the past 15 years or so. Cities have become so expensive largely because sprawling out into that farmland has become so much more expensive as compared to the historical norm.

comment 2y ago · link · parent

As mentioned in the "Go To Statement Considered Harmful" paper, goto is good as long as it is bridled. The goto horror stems from unbridled gotos.

Pretty much every language created in the past 50-some-odd years, encompassing effectively every language you will actually use, enforce bridled gotos, so for all practical purposes there is no bad use of goto.

comment 2y ago · link · parent

It is neither stealing or counterfeiting, it is copyright infringement.

comment 2y ago · link · parent

While certain estimations can be made, it is impossible to truly know if work is worth doing until after the work is already done. As such, workers have to make a choice:

1. Do the work and find out. If the work was worthwhile, they'll reap the benefits in spades. If not, they are left with the detriments.

2. Sell the work at a discount to someone else who is willing to find out.

Most workers opt for #2 because they don't care to find out. They want the guarantee and are happy to let someone else suffer the consequences when things go wrong, even if that means letting someone else indulge in the rewards when it does work out.

comment 2y ago · link · parent

> labor has to organize our own capital

But then labour becomes the business owner – exactly what they don't want to be. Labour chooses to become employees because they don't want the headaches of owning and operating a business. They just want a steady paycheque and let someone else take the risk.

comment 2y ago · link · parent

My observation is that it is the ease of seeing people that leads to loneliness. The midlife crowd are off driving their kids to a different sporting event, or what have you, every day of the week. It is so easy to see people that they never stop to see the same person twice, so to speak, and thus the repeated engagement required to form friendships isn't likely to happen.

If we look back at older generations, who notably lived in far less density than what is common today, they by and large had less trouble with loneliness as the difficulty in seeing people from limited transportation availability meant that they could only ever get to know their closest neighbours, which meant that is who they saw over and over, and that lead to friendship.

comment 2y ago · link · parent

Except housing has become considerably more dense. It wasn't that long ago that most people lived rurally. Today, nearly everyone lives in an urban area.

comment 2y ago · link · parent

> Academia is first and foremost a network and a means to gatekeeping

Yes, exactly. The gatekeeping and networking are facilitated by it being absurdly expensive hobby. Nobody wants to network with some random nobody from the slums. They want to connect with people who come from wealth. The bloat works to keep the risk high, pushing away those who aren't in the right class.

comment 2y ago · link · parent

Where would the market fit be for a university to buck the trend? Those who want to fund research will hire the researchers themselves in order to retain ownership and control. Those who want to learn for the sake of learning turn to the internet. There is no money to be made here.

The money is in selling sports and status. The students want to be milked as a care-free willingness to be milked is what establishes the status. An efficiently run university doesn't reflect well. It's the glitz and glamour that gets people's attention (especially employer attention).

comment 2y ago · link · parent

> Not every language is unrepentantly unsound.

For sure. Coq does a decent job, but it's also a complete bear to use. Tradeoffs, as always.

> I continue to identify a confusion in this thread between a property of the languages, and a property of particular code

Go on. The original statement was that C and Go do not have type-safe enums. But there is no evidence of that being the case. The types are safe.

Indeed, the types are limited. An integer type, for example, cannot be further narrowed to only 1-10 in these languages. But the lack of a feature does not imply lack of type-safety. It only implies a lack of a feature.

comment 2y ago · link · parent

> C’s type system is unsound

Along with every other programming language under the sun. A complete type system is not exactly an easy feat – especially if you want it to be usable by people.

> We cope with this by referring to some code as “not type safe”.

Value constraints are an application of types, so yes, if C/Go had value constraints then violation of those constraints would leave it to not be type safe. But they don't have value constraints. Insofar as what the types can constrain, the safety is preserved.

It seems all you are saying is that C (and Go) do not have very advanced type systems. But that shocks nobody. Especially in the case of Go, that was an explicit design decision sung by its creators. You'd have to be living under a rock to not know that.

Was there something useful you were trying to add?

comment 2y ago · link · parent

> Why should value constraints be pertinent here?

Because that's where it is unsafe: You can introduce a value of the same type that is outside of the enumerable range. You cannot introduce a value of a different type, though. It is type safe.

Yeah, any language with a type system worth its salt has value constraints, but if you choose to forego them as C and Go have, you're not going to bother adding them just for enums. It would be kind of silly to leave developers with a noose to hang themselves with everywhere else, but then think you need to tightly hold their hand just for enums.

In fact, I'd argue that if you are short on time and need to make compromises to reach a completion state, enums are the last place you would want to take the time to add value constraints. The types more often used would find much greater benefit from having value constraints.

Case in point: Typescript. When was the last time you cared that its enums behave just like C and Go? Never, I'm sure, because it having value constraints everywhere else more than makes up for it. Giving up value constraints for safer enums is a trade you would never consider.

comment 2y ago · link · parent

> Stop defending childish, modern idiocy.

Found the busybody.

comment 2y ago · link · parent

They are type safe. They are not value safe, but neither language supports value constraints, so that isn't unexpected.

comment 2y ago · link · parent

You can't have closed enums without value constraints. Yes, some languages have been lazy and provided value constraints only for enum types.

Which is an interesting choice: Give a noose for developers to hang themselves with for every single other type other than enums – the types they are going to use most often – and not think twice, but then go full on helicopter parent when using enums – the one type that isn't particularly interesting.

It's a neat parlour trick, don't get me wrong, but I guess that's why almost all of the popular statically typed languages since Pascal (C, C++[1], Typescript[2], etc.) didn't bother with closed enums. They put their time into features that actually mattered to developers instead.

[1] Added later in life, granted.

[2] Ironically, does support value constraints except in the case of using enum.

comment 2y ago · link · parent

> we want to define the values that make up the set. For example, 'type boolean = true | false'

Sure, or, more relevant, `type monthOrdinal = 1-12` or `type email = {string}@{string}`. Any advanced type system will allow for that, of course, but Go does not. It does not even pretend to claim to be an advanced language. It has, quite explicitly, chosen to not be.

Yes, you are right that if Go had value constraints then an enum type could utilize those constraints, but, again, nothing to do with enums themselves. You are confusing unrelated features.

comment 2y ago · link · parent

Go types do not support value constraints, no. That has nothing to do with enums, though. That's a different feature altogether.

comment 2y ago · link · parent

> C does have enums.

Then again, so does Go. Go doesn't have an enum keyword like C, but that isn't what defines enums.

comment 2y ago · link · parent

No, Go enums are definitely separate types. Sure, technically there is also an integer (or some other base representation) hidden in there somewhere, but that's what an enumeration is. Without that you don't have an enum.

comment 2y ago · link · parent

Typescript has actual enums. They behave just like Go's (for better or worse).

It's not clear why Rust got confused.

1
606162
256