skysight-inc/HackerNews huggingface dataset:
Not really sure what the point is but here's my masterpiece: https://imgur.com/4UhleL5
Shopify* has three non-merchant-driven discovery channels now: Walmart, Facebook, and their own Shop app.

I think Shopify is in a much better bargaining position than Walmart.
You know who wrote a book about Marxism? Thomas Sowell, that's who. I always wondered what ate his brain later on.
> Perhaps it's true that we can't be trusted to decide fact from fiction.

A lot of us have seen friends and family lose their minds to the conspiratorial "news" like Zero hedge, Fox, etc. I too thought the internet, and all of humanity's knowledge at your fingertips, would be liberating. Instead it has enabled the ignorant to believe their conspiracies over expert opinions. I for one welcome these sort of moves. Zero Hedge has every right to spread their nonsense and Google/Twitter have every right to refuse to support it.
Well frontend devs love marking their territory you know.
That sounds like harm to the consumer.
1000 books is really not much. After culling, I have 1000 books on my read shelves and easily 200 or so unread books. And that's just what I have in print and doesn't count the music books or the rare book shelf or my wife's two bookcases of print books.
> America in general has gradually shifted towards a view that drug addicts are sick people that need help.

Just a coincidence that this shift happened as more white people started suffering from such addictions?
> You'd think after years of procrastinating and as a result, getting even worse emotions, the brain would learn to not procrastinate in order to avoid unpleasant emotions.

An alternative is that the reinforcement mechanism in the brain only responds to rewards on a short timescale. The reward from procrastination (not having to face xyz) comes immediately. The punishment from procrastination (your job/life is in shambles) comes months or years later. So you end up adopting a policy of procrastination.
Sure, I had a choice, but I would have a better choice if we legally compelled Apple to open its platform.
I believe you can just use `.flatten()` instead of `.flat_map(|v| v)`:

let mut output: Vec<_> =
foo.stuff.into_iter()
.flatten()
.chain(bar.stuff)
.collect();

I might make it slightly more clear what the intent is by doing this:

let mut output: Vec<_> =
Iterator::chain(foo.stuff.into_iter().flatten(), bar.stuff)
.collect();

But still basically the same.
That's silly and fun :)

I can't grok why its getting up voted though.
According to The Federalist, it was actually NBC that got them defunded to remove competition.

https://thefederalist.com/2020/06/16/federalist-co-founder-s...
I think poster was referring to the fact that workplaces are naturally fun of microaggressions regardless of race or sex, so it's easy to point the finger. It's analogous to how everybody's speeding, so everybody's guilty, and anyone can be pulled over (but usually the black person will happen to be the one pulled over).
But I mean, more people would probably pay for it if it's only marked up 30 percent rather than a higher amount. You make the same amount from the web subscription or the in app subscription either way if you just adjusted the prices.
What is a class reductionist?
You make it sound like when those programs and patterns were ended, that the black community recovered overnight. Your post also acts as if the driving ideas of racism that lead to blacks being excluded from or vulnerable to the things you listed ended overnight also. And your post mentions how racism made the social landscape far more adversarial to blacks with things such as the War On Drugs used to target the black community.

Honestly to make such a post, one would have disregard network effects and intergenerational wealth transfer to a malicious level.
Google put The Federalist on notice for racist content
My cousin's husband who is a math professor asked for an earlier edition of this as a Christmas gift in our family's secret Santa exchange while I was in grad school. Since I had drawn him that year, when I saw this on the list I ordered two copies since it sounded cool to me too. Parts of it are still over my head, but it's great reading.
>Originally this returned nil when the price information could not be loaded, but a refactoring caused it instead to return 0 which the client happily used.

Hard to feel sympathetic, as this practice violates the Go convention of adding an additional return value to the function to indicate failure, either of type error or bool, as appropriate.

>Go makes it impossible to create a Maybe/Option type

It's very much possible: https://play.golang.org/p/MCxGcZ-rJRU.

Of course, it's not generic, but I have a feeling that might change soon :)
A broken clock is right twice a day.

See: TMZ and Michael Jackson
Rust has both generics and sun types, and benefits enormously from both.

And sum types aren’t for “radically different types”. You can define an error type to be one of different options (I.e. a more principled error code), or to represent nullability in the type system, or to indicate fallibility without relying on exceptions, etc.

Rust uses all of these to great effect, and does so because these sum types are generic.
> Python is clearly more productive that Perl

Oh please troll. Python is a few years newer than Perl and only has the patina of "modernity" (whatever the hell that is) by virtue of being last to sit at the mainstream table.

> Go is clearly more productive than many things that came before.

Where the fuck are you getting this bullshit from, Sir? What drugs are you on today? Citations???
Initially at least it was mostly loans but I know a lot of owners would rather closer now than close later and have a loan to pay off
Tucker: Google tries to censor content it disagrees with
lol, someone wrote that.
Go is quite a lot different than Java. Go has held to its promise of simplicity and consistency remarkably well. No need to learn groovy to configure Gradle to build your application; just use ‘go build’. No need to learn javadoc or configure your CI pipeline to build and deploy documentation packages. No need to figure out how to statically link your code, it’s the default. No need to figure out how to compile your code ahead of time, it’s the default. No need to figure out how to tune your GC for low latency and low memory usage, it’s the default. Plus Go has value types; Java is maybe going to get them, but they’ll never be idiomatic. On top of all of this are the misfeatures and antipatterns that are pervasive in Java but which don’t exist in ago—things like inheritance, objects, and the “you just want a banana, but the banana has a reference to the gorilla holding it and the whole damn jungle” design pattern. I know, I know “that’s just bad design and you can have that in any language!”—true in theory, but Go doesn’t have this in practice. Nor gratuitous inheritance hierarchies or anything else. And while Java folks don’t have to use those patterns/features if they don’t want to, the must still interface with them because their coworkers probably write code like that and if not your coworkers’ code, then the dependency library and even the standard library.

Go is a dramatically nicer programming experience than Java. There are some benefits in Java however: sometimes JIT is nice and Go has no analog to Spring. But these are very circumstantial benefits and not good tradeoffs in the general case.
Seems wrong to me too, but for a different reason - i would expect a better school to not only attract smarter students, but to also be harder. So it should balance out to the same curve.
There are support for business to pay up to 75% and for small businesses a $40K loan with $10K forgivable. At least in Downtown Toronto, those support won't do much specially because the rent is super expensive. Expensive in the range of $5000 and up for a small restaurant in downtown area. You can also find news from BC, where the rent relief for landlords are not being adopted because landlords are not willing to register for the support and the business tenants are not getting support because of that. News don't say why that is happening but it's something interesting to think about.
Somewhat ironically, the CNBC article is not accurate and ZeroHedge has different take[1].
Also, there seems to be no shortage of adds on the page.

https://www.zerohedge.com/markets/google-demonetizes-zero-he...
> Their commonality lies in the same impulse for vacuous, petit bourgeois taste to launder itself in narratives of nostalgia and cultural legitimacy.

Oh shove it.

I like minimalism because I grew up in a house with 6 tvs for 4 people, and so many tupperware containers that it could take a solid 10 minutes (not exaggerating!) to find a matching container and lid. Finding a lid for a stove pot was of similar difficulty.

So yeah, I have one set of storage containers from Costco (the same set pretty much everyone else has) and one set of pots and pans with matching lids, and little enough stuff that I can mostly find what I want.

Minimalism is nice because it allows people to take control of their stuff, instead of stuff taking control of them. Minimalism is nice because I can go buy a few well made pieces of furniture that will last a long time.

And minimalism is nice because it is a lot easier to dust.

Edit: After giving it 5 minutes of thought, it becomes apparent that minimalism is extremely anti-consumerism.

"Buy less stuff! Buy a few high quality items that last a long time! Don't get doilies for your couch arms!"

No wonder American furniture retailers took forever to get on board. Heck up here in the Pacific Northwest it is still hard to find good modern furniture stores. Back when I graduated college and started outfitting my apartment, Ikea was pretty much the only show in town.
It works because it's clean, not fussy, not overdone. And it's approachable and retro modern.

It better than 70s overcrowded earthiness (imbued with smoke) and accented with avocado greens.

I' like to see their take on sunken living rooms though.
It's not about learning from the customers.

It's about learning the disconnect between what the customers report and what the actual problem is. It's about learning what the field technicians have to deal with and how the service actually works.

Cable, DSL & Fiber internet are much more complicated services than anyone gives them credit for.
[joke removed]
I don't think anything is actually stored on IPFS is it? There must be a centralized server somewhere with the actual data. IPFS is just the file system, not the storage.
I was at a tesla store talking about a used tesla and asked "If I buy the car, can you remove the badges?"

and the tesla guy said "We cannot do that. We cannot remove anything that was there where it was crash tested."

(I think it was an excuse, but... wat?)
If you read up on how Hey claims to work, spam has to be invited in.
I've never seen those claims about heavy usage of empty interface in the real world, and in the few case we have it, there is type assertion that is safe and well known.

As for the second example I don't think it's a language issue but more a programmer one, how Rust would have saved you in that case, anyone could have returned 0 for the price instead of a proper type. Using Rust doesn't magically turn programmer into good ones. You still have to know how to properly design your code and best use the language and its features.

I'm often reading code in various language and I'm baffled at what a giant lib.rs looks like from someone that never really used Rust.
I've done this to one of my pet projects (thankfully unreleased). It just makes debugging/editing on the fly more difficult.
I'd love to unwind the mess. But that'll take days fixing I caused in minutes!
It's a big foot gun.
TIL about Dream Catalogue. I've been browsing through so many albums I would have never otherwise have heard about. Thanks a ton. Love this site
>the recordings need to be unmodifiable/undeleteable by the user and immediately available to law enforcement.

That would be a 5th Amendment violation, and possibly a privacy matter.
Not sure if I understood your comment, but for sure the employees once having nowhere to go back will be more "available" in the market just like many others in similar situation.
For some reason it made me feel that this could have been a minigame inside Game Boy Camera... The trippy factor is similar, thanks!
Interesting bit from this video: Yesterday's Tucker Carlson 20min show intro (found here[0]) was the most watched hour of prime time TV in the country yesterday.

[0]: https://www.youtube.com/watch?v=22j_OhbnW20
Even if this worked, it would just mean that smarter people don't see the ads, but they're not the ones who are most affected by them either.
Why don’t we just have the government come out with “Five Year Plans”?
Zerohedge hasn’t been popular since the last financial crisis. Barbara Streisand effect incoming...
I look at ZeroHedge at least a couple of times a day. I typically look at the FT and then ZH when I get up in the morning, along with various other financial sites. I never look at the ZH comments but I do think it an outrage Google having the power to crack down on free speech and that anti trust action and Section 230 review is long overdue. We are at a dangerous tipping point where free speech is being cancelled, other super wealthy thanks to section 230 firms (ie Twitter) have the temerity to editorialize and 'fact check' (ie provide a 'correct' opinion on) posts of users they don't like.
BigTech has greatly overstepped the mark and I look forward to them being reigned in.
nice job! looks good, written in python
I think the 1619 project makes some really important points, so please don’t misconstrue this as a broadside attack on the publication. But the article on capitalism was a hit piece motivated mainly by the author’s (a guy named Ed Baptist) own political views: https://www.wsj.com/articles/the-1619-project-tells-a-false-....

The article tries to stain American capitalism by claiming that it originated in plantation slavery and provided the capital that made America rich. The article rests on a superficial and fallacious parallelism that tries to equate slave owners lashing slaves to work harder with capitalists pursing ever increasing efficiency. And the author, being a sociologist and not an economist, commits massive math errors, overstating the economic significance of slavery by a magnitude: https://www.thecollegefix.com/cornell-scholar-cited-in-nyts-... https://www.aier.org/article/the-statistical-errors-of-the-r...

> Coates’s numbers come from Cornell University historian Ed Baptist’s 2014 book The Half Has Never Been Told. In a key passage in the book, Baptist purports to add up the total value of economic activity that derived from cotton production, which at $77 million made up about 5 percent of the estimated gross domestic product (GDP) of the United States in 1836. Baptist then committed a fundamental accounting error. He proceeded to double and even triple count intermediate transactions involved in cotton production — things like land purchases for plantations, tools used for cotton production, transportation, insurance, and credit instruments used in each. Eventually that $77 million became $600 million in Baptist’s accounting, or almost half of the entire antebellum economy of the United States.

See also: https://www.nationalreview.com/2019/08/1619-project-new-york...

In fact, slavery kept the south poor (as economic theory would predict—you can’t make a society richer by enslaving labor; that makes the society poorer even if it enriches a minority of slave owners). Productivity and ultimately industrialization took off dramatically in the south after slavery was ended: https://www.econlib.org/archives/2014/09/ending_slavery.html
> I feel obsessing over types is often just a form of procrastination, as it feels more interesting than the real work that needs to be done. This seems to be a bigger issue in Rust because the type system is powerful.

This is interesting, because I generally feel like getting the types right actually IS most of the work that needs to be done, and once the types are correct the implementation code just follows from the available operations necessary. I've never used Rust, so perhaps it's different in this language (I understand memory management is quite onerous there?), but this is how things feel for me in C# or TypeScript.
Where is the actual data kept? if IPFS is just the file system then where is the storage?
Aside from cleaning and lubrication, a lot of "doing maintenance" is still throwing away old material and bringing in new. Just being selective about exactly which part is at the end of its duty cycle.

People talk about it like there's something wrong when, at any given time, a few microservices are being rewritten. But I would expect that for a sufficiently large machine, on any given day a few parts are being replaced.
Or a widely publicized and plausible parallel construction.
Google is not a monopoly in ads networks, it has less than a half of ads networks market share.
Because even with generics, you are not able to express "or"; two different choices of types that have _different_ APIs. With generics, you can express n different choices of types that have all the _same_ API.

It's a good software engineering principle to make control and data flow as streamlined as possible, for similar data. Minimize branches and special cases. Generics help with this, they hide the "irrelevant" differences, surfacing only the relevant.

On the other hand, if there are _actually_ different cases, that need to be handled differently, you want to branch and you want to express that there are multiple choices. Sum types make this a compiler-checked type system feature.
Surprising Small Business Ideas
> How much shared experience does a professional class recent immigrant from Asia actually have with a working class African-American?

Not much, but the shared experience they have is as a basis of the color of their skin is what is visualized when calling them a person of color. And historically, that has been a big deal (e.g. anti-miscegnation laws in the US and huge amounts of racial discrimination in India's colonized past) – big enough that a lot of people think it's important enough to have a shared label.

> And, might not recent immigrants from Asian countries have shared experiences in common with immigrants from Europe?

Sure! And using the term "immigrant", we would classify their shared experience as such. A recent "professional class immigrant" could be a person of color having something in common with a working class African American, and something in common with the Italian immigrant.

It's like Gmail v/s traditional mailboxes with folders. An email can have multiple labels in Gmail. So can a person in real life.
Yes, I totally agree. The qualifier "for large enough p" should be added.

For anyone reading this who's wondering about the NSA attack, some details can be found here: https://weakdh.org/. Circumstantial evidence that the NSA did what that website describes is given in the research paper there.
Agreed. My parents garage is messy and overflowing - mine is not. Simple as that.
Wonderful! I love that city so much, it feels like home away from home every time I visit. Sláinte!
did you generate this reply from hncynic?
>...Why do we have to talk about everything bad before we talk about one thing that's bad, especially when it comes to black people?

Sanitizing discussions of race is something people have always done when it comes to Afrian-Americans. Notice the progression goes from African-Americans -> Systematic Inequality of Treatment -> Systematic Violations of Basic Human Rights -> Everybody. The intersection between race and power in this country is textbook White Fragility, so the go-to move is to "All-Lives-Matter" it
I have been using Bootstrap for 8 years now and I am very thankful for your work.

Removing jQuery dependency is a big move, one that is welcome too.
Distractions Make You Creative
"there’s one set of COVID rules for the rich and the protesters, and another set for religious groups and “normal” people"

I feel like comparing the anti-lockdown protests with BLM is a talking point that was distributed from some central source, because all of a sudden a whole bunch of people popped up and started hammering away at it, including on HN. It raises all sorts of questions, none of which are answered by yet another article pretending it's a compelling original thought people need to be informed of.

I personally am not 100% sure it's Russian propaganda, but it's blatantly someone's manipulative party line, and it makes a paranoid person wonder what influence the source has with any of the protesters, right or left.
Something similar happens in the original Macross as well.
I'm willing to bet that

businesses that pay Google to advertiser

is not a homogeneous whole.

So it seems plausible that Google could put ZeroHedge in a bucket tagged with, well, whatever seems appropriate, and let advertisers decide. If they wanted to. Which they appear to not.

And here we are.
Sorry. Either you are ignoring facts or you have not noticed at all. The point is if an article is about Rust it is quite unlikely that Go will appear in discussion but if it is Go discussion Rust will appear with almost 100% certainty.
I was once working at a startup in the south bay area, where "white developer" was not one of the people who was able to do what we wanted, as an engineer, for a startup which had a tech foundation. This was a big problem for most companies.

The thing is, this group had really terrible problems in the first place.

Most startups are very different from the valley because of the nature of technical talent. But the people who come from the valley are pretty good at what they do.

The problem is the lack of culture.

In most companies there are only a few minorities:

* There are enough great tech people that want to start their own companies.

* Some have to get a job as a software developer, because there's a strong market saturation of smart people right in the first place.

* There are few places a tech founder can get to start a startup.
Let's take Rust's hash map entry api[0], for example. How would you represent the return type of `.entry()` using only a class hierarchy?

let v = match map.entry(key) {
Entry::Occupied(o) => {
o.get_mut() += 1;
o.into_mut()
}
Entry::Vacant(v) => {
update_vacant_count(v.key());
v.insert(0)
}
};

I view sum types as enabling the exact same exactness as you describe in your last line; especially since you can easily switch/match based on a specific subtype if you realize you need that, without adding another method to the base class and copying into the x subclasses that you have for implementing the different behavior.

[0]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entr...
Only issue in your rationale is that the savers are usually the ones who own the "Capital". I'm not in the circle but my boss social economic strata, his type of people are buying Ferraris during Covid. Not sure how can an average household can afford to spend $250K for a car like that now. But there are MANY of those in Canada doing it NOW.

Not trying to insinuate anything here, but I'm giving you some data points to show that it's not just a matter of moving money from spenders to savers, but there are other things involved.
Also insanely expensive.

Do you know how much it costs to write 3 MB/second to EFS? How much does it cost to read 26 MB/second from the same EFS volume?

That's $1,400/month.
Anecdotal but this is what I have seen across multiple companies and startups.
I will be surprised if 10% of Facebook users opt-out.

People who the real side of facebook have already moved
Have you checked the CFM of server fans? Servers have much better cooling that a desktop, that's the reason they sound like jets during normal operation.
That's interesting, thanks for linking your comment.

I believe it 100%, which is why I tried to discount my own claim too ("n=1" etc).

>We don't see the world as it is, but as we are.
Unsupervised Learning via Total Correlation Explanation