skysight-inc/HackerNews huggingface dataset:
As a long-time user of C++ variants with a home-grown tool much like the article’s make_visitor, I think there’s a much bigger problem with C++ variants: the sub-types don’t have names.

If you genuinely want your variant to just be a mildly polymorphic object, this is okay. But you probably don’t. Imagine the classic use of variants for a parse tree:

variant<string, shared_ptr<Node>>

Okay, presumably the string is a token and the Node is a subtree. This is already a bit unpleasant, but at least it’s serviceable. But then you discover that you really want tokens and symbol names to be separate. You try:

variant<string, string, shared_ptr<Node>>

And you lose, because the two unnamed string cases are ambiguous. To work around this, you need to wrap the strings in newtypes, which is quite verbose in C++. And you start to wonder why, after all these years, C++ hasn’t sucked it up and come up with real sum types in the language.

(For those who are too stuck in C++ land, this problem simply does not exist in a language like Rust.)
> Chinese are more free than many Americans

Weird and revealing double standard you got there, comparing "Chinese" as a collective to "many" Americans.

I can think of "many" Chinese who are much, much, much less free than nearly all Americans. Can you? Or do those folks not count.

> It's definitely true that arguing with stupid people is a useless waste of energy.

Indeed.
That text they put up, they’re responsible and liable for. That is not “section 230” protected.
I imagine programmers who do not place a high value on the impact that their tools have on their ability to think through problems effectively.

I am not saying that you are dumb. I am saying that your values clash with my needs.
This clash is so strong that I predict that if I again try to program professionally in php and its frameworks, the interaction would again have a disastrous impact on my mental health, my livelihood, and my marriage.

-----------------------------------

Let's suppose you enjoyed baking bread, but someone rejected your work and told you that gluten gives them terrible intestinal pain. You would have a choice:

1. Conclude they're being overdramatic and be offended by their rejection.

2. Believe their self assessment, move on, and continue with your craft.

-----------------------------------

(They would have a similar choice whether or not to come into a threat about baking and yell at people about gluten)
> Just short of half of the country recently elected a President who openly spouted white-supremacist conspiracy theories. For half the people in the US racism is not a dealbreaker for the highest office it has to offer!

... which is a bit different from saying that half the country is racist. Perhaps they thought the alternative was worse.
Eliminating nicotine from tobacco products could help millions of smokers quit
> Via what mechanism are we testing? Did we send some kids through a good upbringing and some to a bad one in a randomized controlled way, or did we just take a survey and assume intelligence was passed down through genealogy instead of upbringing?

The most informative studies in this area are usually of twins-separated-at-birth, but the datasets aren't very large.
Would IPFS or DAT not suffice there? How is 'another permanent storage, that is a piece of a larger project, better than one that has the sole purpose and focus?
If you need to put in the fallback "else" yourself, with no error or even warning if you forget to do so, it's not much of a guarantee :)

(And thinking about this a bit more, there's presumably also the opposite case: if you add a branch for a type that's not a member of the variant / remove a type from a variant without updating all the visitors, it'd just happily compile with no indication that anything is wrong.)
It’s not going to scale at all. There were three hour lines just this month to get the rapid test, and we’re months into this.

Unless the federal government gets real with it, and releases an app that leverages scheduling systems to mass coordinate a roll out, this too will be a clusterfuck. The healthcare administrative staff (your standard hospital/clinical administrative staff) is not innovative enough at the moment to adapt to the challenge.
> How is it any less eliminative for decentralized services? If you have a private moderated forum (e.g. HN), or even a small one with only 5000 users, that's still more than enough to attract spam and trolls. So the small forum operator deletes the spam and the trolling.

That’s not decentralized. That’s just small. With decentralized services there is no entity to sue. It would be like trying to sue a torrent. You can’t.

Imagine Chase Bank vs Bitcoin. If you want to se Chase Bank, you can. If you want to sue Bitcoin you go pound sand.
As a manager, your job is to manage people to get results, and if you are insecure enough about managing those people that you feel you have to enforce some sort of idiotic one size fits all policy then you shouldn't be a manager and should resign yourself, immediately.
The first page was leaked. The environmental angle was a significant part of it, particularly the claim that environmental and financial costs ‘doubly punishes marginalized communities’.
I stopped using PowerPoint for presentations long back. What I use now is LaTeX with the beamer class to make classy professional looking presentations. This looks like another good alternative to try out.
First, I'm not arguing :-), just sharing. If I'm using fossil, I just do. Fossil is built by the people behind sqlite, and issues, wikis, etc... all of the pm stuff is baked in. Tickets that are referenced in check-ins are synced. This improves on github: if another dev has worked on a ticket and their branch hasn't merged yet, the ticket update is visible. Fossil also allows for heirarchal management structures, and so on. Incidentally, fossil's timeline is incredible.

Not saying that fossil is going to replace git/github. Probably not, but there are ways to solve simple information management problems that don't require a centralized, subscription service. By eliminating that, you open the door to much innovation... In the meantime, I've got a pull request or two to review over on Github.
> Nothing is stopping anyone from starting a competing business, and offering a better deal to the workers.

Nothing except not having the capital to do it.

> There's no objective way to say how much "work" is worth

Fortunately I explicitly said at the beginning that my argument wasn't going to involve talking about the value of work at all.

> everyone would just reject his founding

Literally every country up until that point except perhaps Athens had been a dictatorship of some sort. Democracy doesn't just happen -- you have to make it happen. There was no presupposition that everyone should have equal rights before then; that was the innovation of it. There's no reason why that same innovation couldn't be extended into industry.

> Anyone can start a business on a different principle

And anyone can start a country on a different principle. But you have to have a lot of resources to do so, and unless you found it on equality, it'll be terrible for most of the inhabitants. So, given that we have a government to regulate society, I see no reason to let people found businesses based on principles which will lead to such gross wealth inequality.
Have you tried using reader view? At least firefox also remembers the zoom level.
I’m not talking about being able to download an album actively. I’m talking about Spotify using up all my devices storage to store their own cache, songs I listened to but didn’t select to be downloaded for offline listening.
I'm not sure what the commenter's setup is, but I have one that (at least mostly) achieves the same thing. It is a combination of a few things:

1. Redirect all outbound DNS traffic to your own local DNS server (as described in the link in this post)
2. Return NXDOMAIN for well-known DoH domains [1] (as well as "use-application-dns.net" for well-behaving software like Firefox [2])
3. Block traffic to well-known DoH providers by destination IP address [1]

[1] https://github.com/bambenek/block-doh
[2] https://support.mozilla.org/en-US/kb/configuring-networks-di...
Taxation is only theft in the US, in the rest of the world you get something for it (health care, free education).
Phosh?
> Of which Rust has backends for all them, even the web via wasm.

Are those backends officially supported on consoles? Do all those consoles have libraries and tools (profilers, debuggers, etc) that support Rust?
Installing HashiCorp Vault on DigitalOcean with hashi-up
I like it.

Add PDF export and I'll use it.
Add PPTX export and I might pay for it.

Also, less contrast editor UI would be nice.
Philosophical Justifications for Torture
what blockchain are you using?
The man macros for roff/troff/groff are not even particulary complicated. Anyone with half an hour to spend learning them, could write a man page without needing additional tools.
Self-referential data structures are a code smell in non-GCd languages, and I think I have neither used or written a doubly linked list since university.

You can do both in unsafe rust though. But you probably shouldn't no matter what high level non-GCd language you use.

/Another ex-cpp-master-race guy who has been impressed with Rust
> This was a meme a few years ago: a 1800s era Harvard entrance exam, and Harvard was the easy school

And thank goodness we've moved past such facile exams. Few of those questions test any sort of understanding, comprehension, or synthesis -- the hallmarks of the so-called "deep reading" lionized in the above-linked article.

There's no call to analyze a logical argument or to make a persuasive argument of one's own. The vast majority of questions amount to memorization and recall. The only thing truly tested here is whether the applicant was of the proper social class to have had the privilege of a preparatory school or private tutoring.
...meaning they end up pretty small: my debt was about 250 000 SEK -- very roughly $25k -- after 5 years of university. Combined with the monthly stipend that everyone gets, I was "self-supporting"; my parents didn't have to (and wouldn't have been able to) pay any money out of pocket for my education or living expenses during that time. And now I pay around $1k total on that loan every year. I could pay it off faster, but the terms are so good that I'd rather use it to lower my mortgage, or invest it.

Thanks to this system, I got the opportunity to do what I wanted, and society gets another well-paid software engineer that can pay lots of taxes. Win-win!

(Edit: corrected debt from 300 000 SEK to 250 000 after checking)
It’s not nuking the internet. It’s just nuking this horrendous abomination that we’ve created. Just because the internet today exists a certain way does not mean it has to stay that way forever.

We can make decentralized financial transactions. We, too, can make decentralized internet a thing. When 230 was created we didn’t have these technologies or ability to do this type of thing. In late 2020, we do.
you are writing like HN is much fairer and upstanding than other forms of social media. there is nothing different here, if you step outside of the blind faith of corporate fawning and startup hustle or bring any challenging opinion you get shadowbanned
IMO, it’s germane. “I quit. My last day will be sometime in late Dec.” “We’ll pay you and recognize your employment through that date, but you are relieved of all duties effective immediately” is quite different from “Nope; your job ends today.”
Another option is to gradually replace parts of the C++ with Nim code set to output to C++. As such you get the advantages of a high level, low friction language with fast compile times and move semantics, ABI compatibility with C++, and a really nice FFI. You can import or export functions and so on between the languages, use any C++ libraries in Nim (or visa versa), and even directly emit C++ from Nim if required.

Gradually porting like this lets you keep using your code base whilst introducing new or overly complex stuff in a language that's faster and easier to write (usually ends up with less than half the LoC of the equivalent C++ but often way, way less than that). Metaprogramming is also very nice, easier to reason about and perhaps most importantly, even with lots of macros doesn't noticeably affect the fast compiles.

Another advantage is once you have some Nim code you can choose to change the target to C or ObjC (or even JS or LLVM) so you're actually increasing portability.

This all depends on how you rank 'maturity' of course. Nim's been around for longer than Rust and Go IIRC, and it's been rock solid for me but you may have different parameters. It certainly helps being able to directly use libraries for C and C++ if you can't find an appropriate Nim implementation.

Edit: For contrast, consider the challenges in the article for variants in C++, then the equivilent object variants in Nim:

type
MyVarKind = enum mvkNumber, mvkString
MyVariant = object
case kind: MyVarKind
of mvkNumber:
num: int
of mvkString:
str: string

var myVariant = MyVariant(kind: mvkNumber)
myVariant.num = 1
myVariant.str = "Oops" # Error: 'str' is not accessible using discriminant 'kind' of type 'MyVariant'
Test positivity does not map one to one with people. If someone takes two tests, you get two positives.

Also, acquired immunity might not be forever. Could be possible to get reinfected.

And you have a very optimistic understanding of how many vaccines can be manufactured and distributed, I would guess.
Show HN: I built a content tool for Founders and CEOs building personal brands
You could put these behind overloaded operators and use them like the variant type.

In any event, the really ugly part is matching, not construction or assignment.
It's always curious that the same people who see fascists everywhere want corporations and governments to have the power to censor, without considering that fascists might gain control of these institutions.
this isnt even about the tech. He just doesn't want free speech/unrestricted speech because he's afraid others who don't share his views might be convincing in their argument. People like him are exactly the reason these technologies are so important. He hasen't lived in counties where they shutdown the internet on will to prevent people from getting information, or outright jailed people for saying anything negative about the patriarch on the internet.
the slug's are unique...so I didn't want just anyone to make a profile....there is a github option you can look into that ....what is the hesitation to using github..can you tell me ??
I stopped reading when I realized it was just some random idiot whining that people are allowed to read things he doesn't approve of.
> The recently released Mank is … a disaster of a film, probably Fincher’s worst

Could you elaborate on this? The general critical reception of Mank seems positive.
The problem here is that AI and race now intersect in non trivial ways. It’s like having privacy as political discourse when you are scanning emails for marketing purposes. There’s a line at which not having the discussion is equivalent to taking a political stance.
Not that it matters tons for a media center, but, for general knowledge:
Chromium variants with the Google removed or deactivated are both more secure AND private.
As the article says:

- you can write 10LOC to have a lambda visitor. Idk why the standard doesn’t do this for you but it’s not a big deal

- sum types are super useful and your language will want some sort of niceties/extra characters to deal with them (and all options will be better than unions which are an unsafe mess)

So ... what’s the big issue? C++ is complicated? It’s a language designed to give the programmer full control when they want it. You don’t have to constantly use every bit of it.
if the software running in all this IoT crap was free software users could control the data that goes thru their network, right?
Robo-surveillance shifts tone of CEO earnings calls
You are assuming that the market place of ideas selects for correctness rather than virality.
Modern mathematics emerged from “The House of Wisdom” in the 13th century
Unfortunately, this is not what the science says in 2020. See for example the graph at https://youtu.be/OBCciGnOJVs?t=1250.

More parameters is inherently better, with the knowledge we have now.
Anyone with full text access?
Why would you write your own basic data structures when the standard library provides them for you? I haven't written an implementation of a doubly-linked list by hand in a very long time.

If your point was about explicit ownership being a little more tricky with self-referential structures, that's true, though the existence of std::collections::LinkedList shows that it's entirely possible to manage these structures and at least you still get the benefits of explicit ownership for the structure and the data within it.
Do you really go around unironically calling people "SJWs" and moaning about people being "Woke"?

That's a bit sad.
C++ has several package managers, of varying levels of maturity. Here's a few:

https://github.com/conan-io/conan

https://github.com/microsoft/vcpkg

https://github.com/cpp-pm/hunter

Another option if you're on Linux/BSD is to use your native package manager. C++ packages are usually included in those repositories. You also may be able to install Brew, Nix, or Guix on any given distribution.
Information Civics – What’s the point of a decentralized Web
Unions discriminated by type could be useful in Rust, especially if you could use them without declaring the union type explicitly. It'd enable something like `Result<..., IoError | ParseError>` without having to manually create a union type, implement the appropriate traits for it, etc. Unfortunately it opens a can of worms related to type identity, so I don't expect to see such a feature soon.
If I were especially wealthy, sure. Ultimately, the only way we can judge our actions is by their consequences. If I'm a middle-class person, giving another middle-class person extra cash won't benefit them much more than it hurts me. If I'm wealthy, the situation changes; I need each dollar substantially less than other people do.

But frankly, I'm not interested in moralizing individual's actions at all. I'm not interested in going "oh Jeff Bezos is a BAD PERSON for X Y and Z." I think that's silly. I want to use the legislative system to raise is taxes and put his money to better ends whether he likes it or not. Whether Jeff Bezos is "good" is entirely irrelevant.
This article mourns the loss of something that only has ever existed among a very small minority of any population in recorded history. Deep Literacy, as the author defines it, relies on the luxury of time that most individuals around the world do not have. It is the great disconnect between academia and the rest of society. This article took a very large amount of my time to read in proportion and relation to the point it was trying to make. It could have easily been 500-1000 words, but it was written in the scholarly tradition of more is more. It did not value the readers time.

Are there more distractions now? Certainly, but it is an elitist view to act as if this impacts the amount of deep reading your average citizen of any given country partakes in. If anything, the proliferation of smart phones will increase base level literacy among the masses globally allowing more individuals from more diverse backgrounds the opportunity to one day have the opportunity to engage in deep literacy.

What we are seeing now is more people engaging in conversations and debates that were previously relegated to the elites—academics, politicians, aristocrats. Are their opinions impacted by their lack of deep literacy? Certainly, but their opinions always have been, their voices just weren’t heard quite so loudly before.
Again that's very similar to arguments made in the 16th century. "Take away the magistrate, and let loose the bridle unto the unruly multitude... virgins shall be deflowered, matrons ravished, old men slain in their beds...." Despite all this, it's hard to be sad that freedom of speech eventually won out in Northern Europe.
If you're getting them for $50, they're either a gift, or knockoff pens being filled.

They might be filled with something quality, who knows?

If you're interested in discussing further, feel free to post a brand/label/the seal led box mandated by Cali.
It's like green marketing. This is extremely obvious to basically everyone.
https://jkms.org/DOIx.php?id=10.3346/jkms.2020.35.e415 is about a study on indoor dining and airflow and how infections occurred at a distance > six feet because of direct airflow from the infected to the infectee.

Here's the conclusion from the study that was linked: "Droplet transmission can occur at a distance greater than 2 m if there is direct air flow from an infected person. Therefore, updated guidelines involving prevention, contact tracing, and quarantine for COVID-19 are required for control of this highly contagious disease."

Walking by someone is an interaction measured in seconds. If that person is infected and shedding via aerosol then a plain cloth mask does not offer much protection. The cloth mask would offer some level of protection if the infected was shedding via droplets from sneeze/cough/etc.

If there's direct evidence that wearing a mask on my walk around the neighborhood offers significant benefits then I will reconsider. To this point, I just haven't seen anything that supports this behavior.
These dress codes are necessary, but not sufficient, for being a member of the upper class.
Seems like it starts to get weird if your forum gets millions of chess posts each day, and you pick the posts like "this global conspiracy is why the deep state is trying to ban chess," "how i saved my life by defeating a axe-murdering grandmaster (he is coming for your children too!)," "the 100 sexiest chess players," for the first page of your forum because those stories drive engagement and get you more clicks, and banish the other forum posts to page 103173.
Strange you say that because React is one of the most unopinionated frameworks in the space. What problems did you find it tried to solve that you wouldn’t have encountered?
Or alternatively the gui-based procmon
> Anyway, the culpability for rubber-stamping this paper is on the person who rubber-stamped it, given that short approvals are commonplace. Saying "You should have known that this approval didn't really count, so it's your fault for going through the normal process and not realizing it should have been abnormal" is nonsense. That's literally the job of the reviewer, and if the reviewer can't do that, someone else needs to fulfill that role.

This is key, and I don't see it being mentioned as much in other comments. It was approved.
A very strong argument for free speech is that it's the only schelling point that allows for stable peace. When one side in power starts censoring its opposition, the other side rightly sees that as an attack and is likely to react with violence.

Eventually the group in power loses it, and the cycle is likely to repeat, only with sides switched.
Identical mechanic occurs with religious tolerance. It appears western societies are going to be forced to learn old lessons all over again, paying with blood, again.
nvm found it. It's something I've never heard of called `arweave`
(In)Effective Use of Time
Thanks. I’m playing around with popos this weekend.
Modern C++ isn’t all that portable either.
Honda cars sold in the US use an indirect system that works exactly as he described, so it must be allowed or Honda has gotten away for years flagrantly violating the law.

NB: if you have one of these systems be on the lookout when you get your tires changed; a lot of chains will try to charge you for the tpms sensor when you don’t even have one.
Googlers are waaay too comfortable with their message board system and if they stay there long enough and keep interacting with it they’ll get burned
Using apps to prevent deadly police encounters