skysight-inc/HackerNews huggingface dataset:
For completeness, Java is basically the same:

List<String> strings = new ArrayList<>(List.of("apple", "cAt", "cat", "Dog", "apple", "dog", "Cat",
"Apple", "dOg", "banana", "cat", "dog", "apple"));

Set<String> seen = new HashSet<>();
strings.removeIf(s -> !seen.add(s.toLowerCase()));

strings.forEach(System.out::println);

EDIT How much copying does each implementation do?

The Go version only copies in the cleanup pass he doesn't show, so it copies each surviving element once, and no other elements. The Rust version makes a new vector, so it does the same minimal amount of copying (well, moving). The C++ version uses remove_if, and the documentation doesn't specify how it does the copying [1], but knowing what C++ people are like, it will probably do the minimum of copying too. The Java version hits some truly hoopy code in removeIf [2], which does the same minimal copying, but does allocate a bitmap and walk the array twice, in order to support predicates which want to look at the rest of the list.

I would say all of these reflect their language's values. The Go code is efficient, but only because the programmer has to write it all out longhand, so there is nowhere for inefficiency to hide. The C++ code is (i think!) efficient, because C++ implementers value maximal efficiency in their libraries. The Java code sacrifices a little efficiency to allow its users to do silly things safely.

[1] https://en.cppreference.com/w/cpp/algorithm/remove

[2] http://hg.openjdk.java.net/jdk/jdk11/file/1ddf9a99e4ad/src/j...
> Well you see, I would hate to live in a world where it became socially acceptable to talk about human sexuality
...
> I think it is a very personal subject, and maybe I'm wrong, but I feel like you'd get less freedom in your sexual life if everybody was talking openly about it.

I think this highligh the problem: in our society, sex is something special. It should not be.

Sex is like eating. It's a normal, regular part of life. There is nothing special about it. It's nice, it's fun, it's good for you.

The fact most people see it differently is a big blocker, and creates so many issues in humanity.
Could you please elaborate more on io_uring vs libos? I would like to understand more but I don't really know how they compare...
Am I going mad I only see two booster landing in the video?
I think it's more likely that we would peruse spinning space habitats to simulate gravity regardless of whether zero gravity has long term and irreversible negative effects on the human body. I don't think it'll be quite necessary to genetically modify anyone.
Neither is Hacker News.
Yea, it's pretty rare to find identical twins, and rarer still to have one of them enter a space program. Hopefully we'll see more volunteer for research like this in the future.

It is certainly a bad sample size, but it's a start.
Any sufficiently lagging indicator is also a lacking indicator.
European soccer leagues goal distributions
Inflatable tent, pitched in one minute
> A friday night just reading all kinds of odd books to learn new things

I think that's just you(nothing wrong with that), a man i used to know has it he'd rather just party(nothing wrong with that either).
> What do you do if you're in a Go project and need to implement this, though?

Learn from your mistakes.
Yes, there are some lang team members that want to change this policy, but it is not the current policy. Those changes were for soundness fixes.

You can see how controversial that RFC was, and for that exact reason.
I'm not sure people used HLLs to write compilers at that time.
We use it at my company for several products. There is something magical about running a lightweight OS on a Cortex-M4F or Cortex-M7. It is how I imagine the early Linux days.

You get to write device drivers and dig into the OS internals. There is even a port of the uIP TCP/IP stack that can be used with development boards such as the Nucleo-144.
Most of these suggestions will help a bit, but with a few exceptions,they are largely individual answers that involve you coping, alone or with a therapist, with the problems of the broader society.

Joining a group of people working hard on one of these issues can be really empowering and hopeful. Use those skills for good! Code for the capitalists by day (for now, learn from them) and for the people and the planet in the evenings or on weekends.
Unplug from internet.

You don't need to know about middle eastern wars, african famines, gun related crimes in the US. All you need to know and care for is right now + right where you are. Focus on your local communities, improve things there, be a good friend, a good roommate, a good colleague, a good gf/bf, &c.

Overcome the negative bias [0][1] of your brain, and if you can't handle negative news stay away from them. There is enough bad shit happening in the world in a single day to feel like shit 24/7 for the rest of your life.

You'll be out in <80 years, enjoy your stay on this flying semi spherical blob of dirt, you don't have to be part of the rat race.
Quit the city, enjoy the slow life of the country side. Or do the opposite, move to SF and join a startup.

[0] https://www.psychologytoday.com/us/articles/200306/our-brain...

[1] https://en.wikipedia.org/wiki/Negativity_bias
Living a values-driven life in the face of dark emotions
Just like you can f* up HTTPS when you have Strict Transport Security, you can f* up DNSSEC. While I don't really like current DNSSEC implementations, this is not DNSSEC's fault really. The idea I do like, that recursive resolvers can't tamper my resolving - that the recursive resolver is left out of the trust chain.
This is very interesting! I was wondering what the lack of more LGBT (specifically gay) subreddits is due to and why they are grouped the way they are? What I mean is I know there are are a number more gay-related subreddits and I found it interesting that while straight porn got broken down into it's categories all LGBT porn was lumped together under high-level categories (ie. gay/lesbian/transgender/etc).

Edit: Look like I misunderstood what "nsfw_data_source_urls" really was (I thought it was a list of urls to specific images, not a list of subs broken down like it is). I thought it was used to train not the source of the categorization. Given that I understand the grouping more.
No because it's Ted Unangst writing about "Removing Array Duplicates", the guy who added string arguments being comma-splitted at run-time instead of using safe and fast bitmasks to new OpenBSD API's. So we know already that he has no idea what he's doing, and shouldn't be let to any important API in serious projects.

But he writes like he has an idea what he's doing, so I had to explain the common cases for this problem. Using tombstones is a special case and you need to be lucky to have such a special illegal value available. Most cases don't allow it, esp. in strongly typed languages.
Do you know/understand how this study deals with regression to the mean? I can't figure it out from reading it.

Also, what exactly is SciRep?
It’s an improvement on bleach enemas
Is SciRep the equivalent of "Op-eds"?

As for one of the senior authors filing a patent for commercialize probiotics for autism, shouldn't there be a mandatory disclosure in their papers that have a conflict of interest?!
Not much, it is like saying that Google outcompeted Apple in mobile world.
This is very, very true in my experience. After years and years of trying out all, I keep coming back to a list of tasks in a sheet so I've combined the two. It's just so easy to reconfigure or query. And with Google Sheets on my phone, it is portable. Add an IFTTT note widget to add a row to my sheet and I've got instant capture. Finally, you can do whatever you want with it using Google apps script (e.g. send reminders). It's hard to beat. Despite all the capabilities, I still keep it simple and focus on capture and review. I could switch this to a list in a text file or on paper very easily and maintain the core of my functionality.

I always think "people built cathedrals and pyramids without all this fancy software, it isn't the key to getting things done".
It doesn't make sense for service workers to need to keep running after I have closed a tab. I then need them terminated for sure. No exceptions.
On the live stream, the video feed cut out for the landing of the third (middle) booster.
The law isn't perfect, in any country, and that's never going to change. We need to vote for leaders who will reform it in the direction that we want.

But the fact that some people get away with crimes doesn't mean we should ignore all crimes and adopt a system of anarchy.
Here's a link to the actual paper:

https://hal.archives-ouvertes.fr/hal-02070778/document (PDF)
The Expanse series kinda touches on this. In those fictional books, those raised in space (Belters, Luna, etc.) are often taller being raised in lower gravity.

Kim Stanley Robinson also kinda hits on this describing people who are raised on Mars. I highly recommend the Mars trilogy; best Sci-Fi I've ever read.
Operatives aren't protected and they don't even need to give the spook a trial - summary execution is allowed for spies and saboteurs but most governments usually find capture and trade more productive.

One thing I have wondered about is why we haven't seen any organized crime trying to claim uniformed combatant protections - they already have several process steps in many cases.
Let’s Build a Simple Interpreter. Part 2. – Ruslan's Blog
Does 5G Make Dollars and Sense?
What Wall Street Warming Up to Apple Says about a Recession
I do not really like the fact that this feature can only backup keys server-side, so I did not enable it.

I do however have a keys backup dating back some time, that will hopefully restore some of my encrypted messages.
But basically, I understand that every encrypted message was at risk of being lost, so it's not that big of a deal.
What does that have to do with imaginary roads in space?

I would also not consider a planetary rover to be a “space vehicle”. Being on a planet is rather the opposite of space.
Craig Wright Threatens Libel Suit In Letter to Bitcoiner, Demands Apology
And he died 15 years ago, this bit was from the 1980s probably. Things have ALWAYS looked terrible. In the 70s and 80s we grew up worried that at any moment the world would literally explode (USSR Nukes) and we made it.

I felt the same way in my 20s, eventually I realized that people have been worried about the same stuff for decades. I guess the only thing I can recommend is thinking about historical context. Somethings are worse now, somethings are better. Focus on the better things. Turn off and tune out "the news" for sure, especially TV news.
Could the block of wood be considered a communication device if you write on it to communicate with your passengers?
He actually made the same gut bacteria connection to autism patients that this new research found. His paper had to be personally signed off by the 13 other researchers working on it. It was retracted by the publisher due to a conflict with a sponsor but was never scientifically denounced. He then checked the safety records around the vaccine and said he cant recommend the vaccine based on the testing. There are tons of people currently associated with him and you can hear him out any time with any number of recent appearances
The lower value is of type &String because the argument to filter is of type &(String, String) and the pattern match needs to propagate the &. The reference is only valid for the body of the filter closure (that is, it is &'short String, for some anonymous/unnamed lifetime 'short), but it is being put into a set that expects &'static str (the explicit type on the let line). The &String to &str type coercion is fine, but it's not correct to treat the &'short as a &'static (the short one is potentially invalid after filter's closure returns).

Changing the type annotations won't make this compile, because it is actually catching a real bug. The iterator is lazy and the full pipeline is executed for each element at once: lowercasing, inserting into the set, inserting into the Vec that's the result of the collect, and deallocating the lower string. This last step is the key/danger: if the HashSet held references/slices to the lower strings (instead of owning them), those references would become dangling immediately and future look-ups into the set won't work right/will trigger undefined behaviour.

The problem is a little clearer (and mostly fixed) if you simplify the code slightly by removing the two map calls, and instead call to_lowercase in the filter directly:

.into_iter()
.filter(|string| set.insert(string.to_lowercase()))
.collect();

This form is a type error, that can be corrected by changing the type annotation to be HashSet<String>, or even removing it entirely and letting type inference handle it. The HashSet owning the strings is the key, so they only disappear after the entire iteration is complete, not after each element.
1. Depends on the new project, of course. Just like any language.

2. Same thing. You can construct an example that breaks any language in existence.

3. Yes.

4. Yes.

5. Yes.

6. You’re using an idiosyncratic definition, so yes, it’s not the same. Backwards compatibility is about the same thing continuing to compile, not about changing things and expecting it to still compile; that’s forwards compatibility.
>How do the people of HN overcome the sensation of Weltschmerz, which translates to the feeling that the world is hopeless and lost.

Watch anime.

>Famine, murder, terrorism, climate change, radicalism, fake news

TV is cancer, throw it away.
Just delete all your nyt cookies.
There's another school that says sex can be much more than eating. To reduce it to a normal activity is cynical. Yes, like pizza, even when its bad, its good. But it can be much more than just 'good'.

So go ahead and talk about it like its just tennis or something. I talk about stopping at McD's too. Not very interesting, nothing special.
> However, having lived pre- and post-Slack period ...

Perhaps I am (really) old, but pre slack is a blink of an eye ago.

Also we are, sadly, not yet post-Slack.

> ... I can't say that Slack has worsened the situation. When there wasn't Slack, I had people coming to my desk to ask the question (vastly more distracting). We had meetings for tiny questions and they stretched far too long. The culture of company that is far more responsible than any single tool.

You're describing a work environment that bewildering appears to exclude email, or the option to explain to people how and when to use email.
This really looks good for launch costs long-term.

The Heavy costs $90 million per reusable launch with a 64,000 kg payload, or $1400 per kilogram.[1]

Current versions of the Falcon 9 and Heavy can fly ten times with virtually no refurbishment between flights.[2] The only part they throw away is the $7.5 million upper stage.[3] Their expendable cost is $150M and they haven't really started reusing yet, so if they actually reuse each rocket ten times, they have a lot of room to lower prices; ten launches would be $($150M - $7.5M) + ($7.5M * 10) = $21.75M per launch, or $334/kg for the rocket itself. Launch cost won't be quite that low because they also have labor, fuel, and so on, but it looks like they can get well under $1000/kg just with the Falcon Heavy.

The larger and fully-reusable BFR should do even better.

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

[2] https://www.space.com/spacex-falcon-heavy-triple-rocket-land...

[3] https://www.nextbigfuture.com/2019/04/spacex-recovered-6-mil...
Disclaimer: I work for Webex Teams, another collab tool.

I think a lot of this depends a lot more on the expectations of the whole group. This needs to be defined at an org level and well understood by everyone. It's not so much the tool as how it's used.

There is now a continuum of interactions:

- FYIs that are put out in a topical chat. You get to those when you have a moment, when you go through your unread rooms to catch up. Same for topics that you are only peripherally following. Time is not of the essence there. Zero interruption here and no expectation for you to be always listening.

- Topical chats where you are @-mentionned. This is where a conversation that you're not actively following suddenly took a turn where your input is sollicited. But since you see the topic of the room, you are in control about whether it's worth an interruption. The group's expectation is that the person that was mentionned will join the conversation IF they are not in the middle of something (assuming the topic is not alarmist).

- New rooms that got created around a topic or you getting added to an existing room. Basically it's similar to the above, where you're getting dragged into a conversation.

- 1:1 chats with specific requests. Again, it depends who it's from, you triage based on origin. But the expectation is already managed at our group level.

In all these modes, you can chose to accept the interruption or defer it. The deeper your work, the more likely you can defer it. We can operate like this because we have the nuclear option we can always use when it's actually needed: PagerDuty. This brings a few benefits: the person paging a team or another individual is aware that they are putting a burden of urgency and there's a recorded audit log of that page. So it's not used lightly.

Once you've accepted the interruption though, you still get to control its modality.

- Very often, a "hey, quick question" can turn into something WAY larger than the requester could imagine. That's when we point them to creating a Jira ticket, effectively punting a synchronous interruption into an asynchronous unit of work. Or you can tell the requester to schedule a meeting to work more deeply on that. (Related topic: ALWAYS have at least one day where it is forbidden to schedule meetings, accros the whole org.)

- If the request is about an urgent matter, we just do an instant video meeting within Webex Teams. That converts long drawn out chats into quick visual meetings where the nuances are better expressed. Because in a long chat, the mind is already interrupted, so having to wait for typing and confirming nuance ends up taking a lot of time.
We're currently using Level now and it's definitely different from Slack. I think the biggest issue we have with it at this point is that it's still in active development.

It's also missing a lot of things that you take for granted with Slack. Things like auto-link expansion and third-party integrations of any kind.
This isn't "most of the cries", it's a specific article, and not just by some rando.

> The Justice Department has been enamored of this conspiracy approach since the time of the Pentagon Papers. In that case, Richard Nixon’s DOJ attempted to enjoin the New York Times and, later, the Washington Post from publishing a forty-seven-volume Defense Department study of the history of US relations with Vietnam from 1945 to 1967, which had been classified top secret. I led the team of lawyers who defended the Times in that case.

[..]

> Should Trump’s Justice Department succeed in prosecuting Assange, the only safe course of action for a reporter would be to receive information from a leaker passively. As soon as a reporter actively sought the information or cooperated with the source, the reporter would be subject to prosecution. National security reporting, however, is not done by receiving information over the transom. It is naïve to think that reporters can sit around waiting for leaks to fall into their laps. In a recent interview, the longtime investigative reporter Seymour Hersh told me that he obtains classified information through a process of “seduction” in which he spends time trying to induce the source into giving up the information. If he isn’t allowed to do that, he says, “It’s the end of national security reporting.”

> It’s clear that the Justice Department believes such “seduction” creates a conspiracy between the leaker and the reporter. In its prosecution of the State Department employee Stephen Jin-Woo Kim for leaking classified information about North Korea to a Fox News reporter, James Rosen, the DOJ stated, in a sealed affidavit, that it considered Rosen a “co-­conspirator.” The DOJ filed the affidavit with the D.C. District Court in 2010 to gain access to Rosen’s email, which showed him persuading Kim, asking for the leak time and time again until Kim finally relented. The affidavit was unsealed three years later, to the shock of Rosen and many other journalists. When Fox News angrily protested that Rosen’s First Amendment rights prevented him from being a co-­conspirator, the Obama Justice Department assured Fox that it would not prosecute him. If this type of conspiracy theory were to be applied in a criminal trial, a court would end up examining every effort by a reporter to obtain information. It would criminalize the reporting process. Reporters and their publishers would argue that the First Amendment protected news-gathering efforts such as Rosen’s, but the result would be in doubt in every case.

> If reporters can be indicted for talking to their sources, it will mean that the government has created the equivalent of a UK Official Secrets Act—through judicial fiat, without any legislative action.
My comment was meant to agree with you and to point that the study seems to include patients that have "autism-like behaviors".
you can just unplug from social media and news sites for this(add adblock for those obnoxious current event clickbait).

for eg i didn't even know those boeing flights had gone down til they got mentioned in a gaming podcast i listen to(it was relevant to the topic - freemium games)
Isn't Twist just threaded email?
Declining remarkability of temp anomalies obscuring perception of climate change
Show HN: Interactive Fretboard for Guitar and Ukulele Players Built with D3.js
Hello HN,

I created this tool to learn fretboard notes as well as chord and scale shapes. I also wanted to improve my knowledge of music theory so I wrote all code related to theory from scratch instead of using libraries. While the latter is only beneficial for me, I hope that others find this tool useful for making music. I'd love to get your feedback.

One issue I'm aware of is that for non-diatonic scales (e.g. minor pentatonic) the shown triads are not correct. I just leave the triads for the last selected diatonic scale. What would you do? Hide them?
Show HN: Grassmann-Clifford-Hestenes Geometric Algebra in Julia
#Woosh
I can't wait to see what disingenuous statements he makes about a config failure.
> Slack is asynchronous.

You are describing a proprietary, expensive, intrusive, demanding rewrite of SMTP.
I've never seen any company use completely different software or hardware for each redundant instance of a service, so it's a pretty good bet CloudFlare isn't doing this either.
How many would have been expected to get cured without any action at all ? (because Autism does mostly resolve itself, either "for real" or because the patients learn to mask it well enough to "not have symptoms")
what card do you have and what do you get 10% back on?
Amazon has raised the bar to the point that poor experiences that happen under the aegis of the Amazon brand are unacceptable.
It’s clean and simple

How so? What is the Web Components equivalent of <include src="footer.html">?
The only time I ever see positive views on Slack here is when Microsoft Teams is brought up :D
Sounds credible, up to the point about the cleaning lady... If he realized their importance, why would he not be able to work out the equations again, possibly with Feynman’s help?