skysight-inc/HackerNews huggingface dataset:
Why not support Hooks in classes as well? The motivation is correct in that Hooks can help separate intertwined concerns that are currently mingled in the lifecycle calls. There seems a good usefulness in allowing the same cross-cutting inside classes as well as functions.

It would also presumably help avoid a "fork-the-world" situation where projects eventually find themselves having to maintain both HOCs and Custom Hooks side-by-side permanently as the userbase forks camps between the two. Potentially causing a maintenance hazard.

Certainly you can use one from the other one in component nesting, but particularly in cases where maybe a class has an inconveniently complex structure today, being able to refactor say all the state handling code to use hooks without having to refactor all of the side-effect handling code at the same time could be crucial for some projects in adopting Hooks.
If the organization structure is so complex it isn’t clear, then all the more reason for senior-level leaders to abstain from intimate relationships with people they work with, at any level within the org.
This classic clip of the Saturn launch shows three ullage rockets firing before the main (liquid) engine kicks on:

https://youtu.be/jPDkagD50XU?t=95
I think this was "the group of big tech companies with increasing fortunes," which at the time the acronym was coined did not include Microsoft. Anyway this is a popular thing to gripe about on HN recently, but the acronym seems fine to me.
If you created Android which runs on the overwhelming majority of phones today, you probably should get a very good exit package deal.

Imagine how much wealth Android has generated for Google.
From the story on Andy Rubin,

> In Silicon Valley, it is widely known that Mr. Page had dated Marissa Mayer, one of the company’s first engineers who later became chief executive of Yahoo. (Both were single.) Eric Schmidt, Google’s former chief executive, once retained a mistress to work as a company consultant, according to four people with knowledge of the relationship. And Mr. Brin, who along with Mr. Page owns the majority of voting shares in Google’s parent, Alphabet, had a consensual extramarital affair with an employee in 2014, said three employees with knowledge of the relationship.

> David C. Drummond, who joined as general counsel in 2002, had an extramarital relationship with Jennifer Blakely, a senior contract manager in the legal department who reported to one of his deputies, she and other Google employees said. They began dating in 2004, discussed having children and had a son in 2007, after which Mr. Drummond disclosed their relationship to the company, she said.

I was once talking to a retired guy who told me starting companies is hard because "your employees won't stop having sex with each other and your customers are never satisfied." Seems to be true for not only the employees, but also the founders of these companies and, if that weren't enough, it often strays into sexual harassment. It is good that Google is apparently taking a harder line on this, but they should've done more sooner.
Underground Hip Hop Music Downloads – Act a Fool by Born Ready Ft Pastor Troy [e
Software is art, fashion and politics.
Qt is lgpl. Unless I missed something, this should not be a problem whatsoever if you'd like to use the Qt framework and sell commercial software.
You are comparing perp w/ victim stats. You are also comparing female victimization rates w/ Google's population (only 30% female, even less in higher levels where most of these 48 get dismissed from). I also think there are ~90K employees.

One dude can harass lots of women (as is usually the case). These 48 could have very easily been responsible for 20+ incidents each. And there are probably many more perps who have gone unpunished.

That said, male Google employees are probably less likely to sexually harass. They tend to be more nerdy, introverted, and less masculine(lower testosterone, less aggressive).

Edit: I shouldn't have used a word like masculine, whose definition is largely debated. I meant masculine in the hormonal sense.
The evidence for the efficacy of Tamiflu was faked, it doesn’t actually do much if anything.

I’d be more interested on how it combines with elderberry syrup, which ostensibly does actually work.
>This dude set up a "this is for free" sign and then some other dudes just swooped in saying "we'll take all of this" and then just replaced the sign with "$500k".

This loses the important nuance that them swooping in and slapping a price tag on their own use of the implementation doesn't deprive anyone of access to the original on the same terms they were able to access it.

No one has lost anything in this scenario.

>The problem with this is that it disincentivizes the sharing mentality.

Personally, I feel arguing over how people make use of freely shared knowledge does more harm a culture of sharing than usage of said knowledge, even when that usage pushes right up to the bounds of what is allowed under whichever license.
Every situation are different, its matter of balancing risk vs reward.
A common weed unexpectedly produces a chemical almost identical to cannabis’ THC
> Carolina Milanesi, an analyst at Creative Strategies in San Francisco, tweeted: "In a normal world this would mean Rubin is done, but tech has not just been forgiving, some tech sees little wrong with this.

I work at a pretty large tech company, the number of trainings I have had to go through regarding sexual harassment (especially lately) is impressive. I suspect that such standards may not be as common in small and mid sized companies? I think it is going to take pressure from the VC/funding side to draw clear lines in the sand that even the small guys need to abide by harassment rules.
Huh? There are a bunch in the second half of the article.
> That's one game.

The largest game, by a large margin.
>> Health care and education costs are more or less fixed and unavoidable. They're more like fees than taxes, flat no matter the income.

Flat if you are lucky enough to be healthy. Enormous once you actually have an issue, like a complicated pregnancy, or something that requires an MRI.
I think you just write qt, it's already cross-platform.
re: people asking "how is this tricky" or "am I missing something"... really read the Quora answer :-)
The article references the NYT report, saying "a handful of Google executives, including Android creator Andy Rubin, were shielded by the company from sexual misconduct allegations and offered massive payouts to leave."

We therefore know the number of firings does not reflect the total number of people that Google execs know were engaged in sexually harassing behavior, so focusing on the "0.05%" who were fired feels more like misdirection than context.

I don't see how you can conclude that there is or isn't a sexual harassment problem. General emails from the CEO to all staff is usual selectively spun in favor of management, and I don't see why this would be any different.

Consider what it doesn't report: how many reports of harassment have there been? How many were found to be credible? How many have been acted on (or ignored)? Do people trust the system well enough that they will make a report? Do managers get enough EEOC training that they can recognize harassment, and do they feel empowered to intervene?

Also, why do you feel like you have to say you wouldn't call it a problem at all? What's wrong with saying that you don't think it's a big problem, and still acknowledge that it's a problem?

I mean, it's only a small number of dog walkers who don't pick up their dog's shit. I still think it's a problem.
The "we" that is implied holds no power over what someone names something, so it doesn't really matter anyway.
Sounds good. Wanna give it a try? :)
Sure. Also, just as an FYI, because a large number of people aren't aware this is possible: you can pass an object full of action creators to `connect` instead of a `mapDispatch` function. This simplifies the use of `connect`, like:

export default connect(mapState, {addTodo, toggleTodo})(TodoList);

We're about to add a whole big section on dispatching and action creators to our new React-Redux docs site at https://react-redux.js.org - keep an eye out for that. Until then, check out Dave Ceddia's post at https://daveceddia.com/redux-mapdispatchtoprops-object-form/ for an explanation.
Sure, but if you're terminated for cause you shouldn't receive anything. The $90 million was for Google to keep the story quiet and to keep Rubin from working for a competitor.
I got serious enough about metalwork to start buying machines about three years ago, but became interested in such things helping a friend who bought a used CNC wood router on a bit of a lark. Spent about a month generating gcode in Perl, and then decided to learn how to use Inventor.

And now I have several machines that one generally doesn't find in a second-story urban walkup. (Getting a 400-ish-pound lathe up the steps was how I found my limit there.)
Dude, Richard DeVaul has been harassing people for fucking years.

That guy shows up in academic settings and touches and communicates inappropriately and unwantedly with women, especially at MIT. I've personally witnessed this at something as routine as a party with alcohol. His entire mindset is twisted. He saw Star Simpson as a vulnerable target. She wasn't the only person!

His reckoning is long overdue, and I have no fucking clue why people at GoogleX keep him around.

This is the tip of the god damned iceberg. Google is a powder keg of abuse. If they weren't so rich, paying people off as handsomely as they do, it would have come to head years ago.
My word I’ve been looking for a self-hosted alternative to Dead Man’s Snitch for ages. Thank you for this!
I wonder if there's a power generation opportunity there.

Quell quakes and generate electricity at the same time.
There are no overland backbones to my knowledge. At least not in the continuous sense - I suppose you could patch together a web of adjacent country networks. Country internal there is a pretty good web of them, mostly to connect cellphone towers.

In reality everything goes via the submarine cables though. It's easier than fighting through the landrights of 6,000 miles of sometimes shaky countries.
Ask HN: Best alternate client to web-based Gmail? Now that it sucks
With the most recent update to web-based Gmail, it is super janky and it feels like the interface gets in my way. I've started to dislike writing emails now.

What are good alternate clients that still get all benefits of Gmail, but with a fast productive interface?
Plug for my company Yuri https://www.yurigameai.com/

If you're interested in using ML techniques to create AI for your games please reach out!

I'm an ML scientist and video game designer and I'm looking to make it as easy as possible for game designers to use AI in creative ways in their games (e.g: drop in replacement, automatically adjusting the difficulty of levels and more)
All of these comments are valid, but this is easily the most reddit-esque thread I've seen on this site.
Even in the absence of harassment, it's still a clear violation of professional ethics. At the absolute least, it creates a conflict of interest.
> Look, again, I'm NOT doubting that any of this is true. In fact, as it's coming out of the WSJ, I'm pretty certain it is true.

So you are "certain the article is true", then why does it matter that the companies used to have some tenuous corporate relation over 5 years ago?

With how consolidated media is nowadays, especially news media, this really is nothing to see here.
Isn’t it pretty simple to just say that Page and Brin shouldn’t have ever dated anyone in the entire organization?
I think people will stop being NIMBY when people stop being inconsiderate to others and I only see that trend skyrocketing right now.
It's very crudely stated, but there's a bit of a truth to it.

Suppose that "susceptibility to opioid abuse" is a trait that's distributed throughout the population; some people are very susceptible, and some people are not very susceptible, but there's still an independent, individual factor that is separate from e.g. cultural/economic/social angst/uncertainty/etc., the availability of opioids, and so forth.

When there is a breakthrough in one of these external social factors--either opioids become a lot cheaper and more available, people slip into greater levels of despair, whatever--more people are going to abuse opioids. Fair enough. But not everyone is equally likely to abuse opioids even given the exact same circumstances, so most of this increase in opioid abuse will be concentrated in the chunk of the population that was more susceptible to it all along.

Once the opioid epidemic goes on for a few years, the people most likely to abuse opioids--and, for that matter, the people most likely to die from opioid abuse--will die. And so, if the underlying social causes of opioid abuse stay the same, you're going to see fewer opioid deaths, because the people who would have died already have.

Since this isn't necessarily a genetic trait, we probably wouldn't see this effect persist on the order of generations, but on the order of months to years there's definitely a survivor bias, so to speak.

There isn't necessarily any moral judgment in here, either. I mean, there can be, if you're a jerk about it, but the math itself doesn't work out any differently for "susceptibility to opioid addiction" than it does for "susceptibility to flu", and so if there's an epidemic of either one of those, odds are that, barring intervention, the epidemic is going to kill whoever it's going to kill and then move on. (This isn't cause for complacency, either! Some epidemics can kill huge supermajorities of the population if you just let them play themselves out, which is the true story of how the West[ern Hemisphere] was won.)
MSVC supports the Clang front-end, but its optimizer and backend are absolutely not deprecated, as far as I can tell (Microsoft employee here, opinions are my own, no private info disclosed here, etc).
> They tend to be more nerdy, introverted, and less masculine(lower testosterone, less aggressive).

Not a fan of you making this up based on perceived stereotypes and then using it to justify an argument. I do agree that these numbers are complicated and require analysis on data that we probably don't have access to.
I prefer using UTC for both because I live in a timezone with Daylight Savings and multiple OSes always step on each other's feet and each adjust the time on their own and then you're three hours ahead.
The program includes talks about other layers that Apple is developing. Does anyone know if they are planning on open sourcing any of those layers in the future?
Artificial intelligence controls quantum computers
They are frowned upon because the power imbalance creates difficulty in giving consent (and high school teachers usually means statutory rape issues). Same reason for doctor/patient and many other situations where power imbalance exists.
It's interesting to me that the discussions in this thread treat performance and ability to work with others as distinct. In a team-based work environment, one's ability to work effectively with others is a critical aspect of performance. If an employee engages in behavior that frustrates, annoys, or confuses others, performance suffers, particularly in any role above entry level, where leadership, communication, and mentoring ability are part of the job description.

On the other hand, I find it very strange that the article describes a sort of 'post-mortem email' that goes out to dozens of people that describes the failings of the (now-departed) employee. That seems like it would cause more problems than it would solve.
> It is probably at least 100,000.

no need to guess. the second quarter results for alphabet inc says 89,058 employees.

https://abc.xyz/investor/pdf/2018Q2_alphabet_earnings_releas...
> Because their focus is clearly PlayStation, Xbox and PC, not even Nintendo hardware.

> There are plenty of other AAA studios using Unreal, Unity, CryEngine.

Blizzard's focus had been on Mac in addition to Windows. With the switch to Metal, they're probably abandoning it. FrostBite means that EA AAA games probably won't either. Ubisoft didn't release Assassin's Creed Odessey on Mac. And even looking at Unreal Engine 4 games, only Fortnite and a twoer defense game have been released for Mac. Looking at CryEngine, no games have ever been released for Mac. So where is all this AAA support for Metal that you're talking about?

To lead you to water, Mac support is a nice to have so that their in house tools work with the artists' platforms they're used to. But they don't care enough to finish out the QA, or put in any work to make the game actually shippable on that platform. The switch to Metal means that you can't justify it with "well we can just support OpenGL and get Mac for free" like they used to.

> Maybe you should check again the names of some studios using Unity, ever heard of Nintendo and Microsoft?

AAA is about the games, not the studios. Name a single AAA game on Unity.
Quantum Computing Must Be a National Security Priority
> Some woman dated him and then decided she was "coerced" (how?) into doing something she late regretted. Given the modern notion some women have developed that they can change their mind about whether an act was consensual at any time

jesus. With all due respect dude, this is incredibly retrogressive and I suggest you reevaluate your personal views on that.
Using company funds to hedge against personal risk is shady and selfish, even if it might technically be legal. It’s as close to embezzlement as you can get. I can’t imagine explaining to investors why I needed to loan myself company funds for a fucking vacation home, for my mistresses no less!

But whatever, executives are Gods who can do no wrong and deserve 90 million for sexual harassment and assault, and they deserve company loans for vacation homes for their whores. What a joke!
CNBC version: http://www.cnbc.com/2018/10/25/google-ceo-memo-says-48-fired...
There is <10ms between the two so either would have been feasible.
New plans aim to deploy the first US quantum network from Boston to DC
It's more like "use it until there's another product that we can sell at equal or higher profit. Then get those old organophosphates (now cheap) banned by backing critical research that was previously blocked."
CreativeDrive Acquires CGI, Content Tech Startup Decora
Blizzard Announces In-Game Client for Spectating Overwatch World Cup
Give me a place with good reverse engineering/copyright laws, legal medical cannabis (long story) and I'll move tomorrow (if only)
Well, it looks like they have a patch [syspatch64-001_xserver] not sure which fix they chose.

[edit] a tweet for @OpenBSD said: We're currently preparing errata and a security advisory for today's Xorg issue that allows arbitrary overwriting of files as a non-root user. You can run "chmod u-s /usr/X11R6/bin/Xorg" as a temporary workaround until the fixes are out.
Fine, three-word metadata header, two-word comment!
The issue is (used to be) that they'd develop the Windows drivers, and publish them... on their website. Whereas the Linucies would bundle pretty much all the supported drivers on the install disk.

Precisely because the vendors only write Windows drivers, if it's supported on Linux it's probably in the kernel tree.
" and there is a group of employees that will lead this effort by learning and working with the new technologies, and there is another group that will actively oppose taking responsibility to learn about the new technology, and may actively work to sabotage or slow down the process. "

And I have seen groups that would like learn the new tech but never get involved by management.
I fast approximately 120 days of a year, or every 3rd day. Have done it under the guidance of my doctor friend, so it was systematic.

Some are water only fasts, others are water + fruits only fast and very few (2 days a year) are no water/no food fasts. I have received incredible benefits: feel lighter, better sleep quality and if I can say so, this is my form of meditation!

PS: Doing it under medical supervision initially is critical.
V8 the JavaScript runtime, not SPARC V8. It turns out I was wrong about that part too.
If you're thinking of taking a look, I particularly enjoyed Lecture 7 of this series. The practical applications of Fourier analysis in image recognition/filtering/processing are really quite amazing.

Plus, if you're at all curious about the technical details for how exactly something like Night Sight is implemented on the Pixel, understanding what Fourier transformations are and how they are utilized is vital.
Trump Proposes to Lower Drug Prices by Basing Them on Other Countries’ Costs
I don't get it, what are you suggesting?
The pH will change only very slightly if you add CaCO3 to distilled water, because CaCO3 is very poorly soluble. I also agree that adding CaCO3 to seawater would not sequester carbon dioxide. But releasing basic metal cations via weathering silicates like olivine will sequester carbon dioxide. The difference is that the starting olivine does not contain carbonate, whereas in your example there is already carbonate in the starting CaCO3.

Schematically:

A) H2O + CO2 <=> H2CO3

Equilibrium favors left hand side, but water exposed to atmosphere becomes slightly acidic from right hand side.

B) Mg2SiO4 + 2 H2CO3 => 2 MgCO3 + SiO2 + 2H2O

Equilibrium strongly favors the right hand side. But the reaction is strongly kinetically hindered with naturally occurring large lumps of rock. This is why it will take a very long time for natural silicate weathering processes to absorb the extra CO2 that humans have recently added to the atmosphere.

C) CaCO3 + H2CO3 <=> 2 CaHCO3

Equilibrium favors left hand side, but limestone can be solubilized from right hand side reaction at a low rate (or faster in presence of high CO2/water concentration).

Note that the metal in the silicate of the left hand side of B can be various alkali and alkaline earth metals, but magnesium dominates in olivine.

EDIT: "CO2 Mineral Sequestration Studies in US" by Golberg et al appears to be the best reference to the thermodynamic and kinetic aspects of magnesium silicate weathering that I can easily find outside of a paywall.

https://www.osti.gov/servlets/purl/1208898

This paper is focusing on a different way to accelerate weathering: apply wet, concentrated, hot CO2 to crushed silicates. The olivine-crushing proposal discussed here on HN takes a different approach to accelerated weathering: crush and disperse larger quantities of silicates, but do not try to heat or pre-concentrate the CO2. Just let the ambient conditions of the atmosphere and oceans work on crushed rock (this is still far faster than natural weathering).

The key takeaway from this paper is on pages 3 and 4: magnesium silicate carbonation is exothermic (thermodynamically favored). Once magnesium silicate reacts with CO2, it would take more energy to undo the reaction and put that CO2 back in the atmosphere.
This reminds me of a similar project: "Learning to See in the Dark". They used a fully-convolutional network trained on short-exposure night-time images and corresponding long-exposure reference images. Their results look quite similar to the Pixel photos.

http://cchen156.web.engr.illinois.edu/SID.html
There's a pretty nice implementation of this sort of idea in atom (I only played with it tho): https://imdone.io/
> That said, male Google employees are probably less likely to sexually harass. They tend to be more nerdy, introverted, and less masculine(lower testosterone, less aggressive).

Citation for either point that Google employees are "less masculine" (whatever that means) or that being "less masculine" has something to do with being less likely to sexually harass?