skysight-inc/HackerNews huggingface dataset:
Combining switch statements with destructuring [1] can be very useful:

type ASTNode = { tag: 'BinOp', op: string, left: ASTNode, right: ASTNode }
| { tag: 'UnaryOp', op: string, arg: ASTNode }
| { tag: 'Literal', value: number };

function evaluate(node: ASTNode): number {
switch (node.tag) {
case 'BinOp': { const { op, left, right } = node;
return evalBinary(op, evaluate(left), evaluate(right)); }
case 'UnaryOp': { const { op, arg } = node;
return evalUnary(op, evaluate(arg)); }
case 'Literal': { const { value } = node;
return value; }
}
}

[1] https://ponyfoo.com/articles/es6-destructuring-in-depth
ISS solar arrays produce more power than that, plus they're literally from the 1980s. We have far more efficient and lower mass designs.

You should use Ultraflex or similar as a standard. Instead of the ~7W/kg you used for ISS arrays at Earth orbit, you'll get ~150W/kg at Earth orbit:

https://www.orbitalatk.com/space-systems/space-components/so...

We have commercial satellites that also use much cheaper arrays with much higher efficiency.

Using 30 year old solar tech with a very mass-inefficient design is putting your thumb on the scale of such a comparison.

I like kilopower and am a fan (it really helps for super deep space missions that currently have to rely on the tiny amount of Plutonium-238 we have and can make), but we're going to use a LOT of solar power on Mars just as we do today.
That's good to know. I usually just add a warning suppression or two.
But it seems to me that if GitHub failed her in its practices, she was a victim. Why wouldn't she be?
I'm also interested in this topic. Most European countries, esp. the new EU members have very bad demographic outlook. I'm really interested in what may happen next.
I've been using GlassWire: https://www.glasswire.com/
The department of defense actually has a group that produces favorable news pieces for local news. Can't remember the name of it.

After Vietnam they made some decisions about how and when they would deal with the media. Journo's "embed" with troops. Staff officers give commentary on cable news. We don't see bodies of American's or anyone else. No one pushes back on the idea that "smart bombs" still kill bystanders.

Don't even get me started on the whole "special forces can do anything" message that they have been pushing for years.

One of the problems is that any level of criticism is immediately taken out of all proportion.

All of that being said...Warrant officer? That's cool. Like helicopters and stuff? I'm an Air Force brat.
Five Ways to Ensure Your Tech Business Survives
How do we vouch for a post to be unflagged?
I think for years women felt they didn't have a voice, so it's a bit of a tidal wave right now. Hopefully this flood will elicit enough change to make the changes needed so we hear less of it in the future for the right reasons.
This one way street also extends to the way Coraline's accomplishments at GitHub are presented in the article.

There's all of this talk about all of the code she pushed and all of the popular features she wrote, but there's no context as to whether or not those things were the metrics by which her performance was being measured, e.g. what her management was expecting her to do. So when the negative review is mentioned, we're supposed to be shocked by it. Certainly she is shocked by it. That doesn't mean she should have been.
This is the case at a lot of places.

I know of global banks where billions of $ gets moved about by updating Excel spreadsheets.
hey peter,
Am living in the US (BayArea) on H1-B and my Green Card has just started - literally just started by submitting the documents via the employer's attorneys.
If I want to start my start up, what are my options ? As a single founder ? As a co founder ? Should I be employed in my own company giving myself salary ? And is starting a company while on H1B even possible ?
Well the cool thing about horses is they're technically self-driving. You can fall asleep on a well-trained horse and it'll get you both home. If you're driving distracted and are headed straight for a tree, the horse typically won't smash itself into a tree. When surrounded by lots of other horses (in a charge, for example), the horses will run as if they were in a herd and won't trample eachother.
"I've never heard of a PIP working out and both the company and employee being happy "

At least where i've worked, they work out about 50% of the time. That tracks with the PIP's i've been involved in.

I can also give you anecdotes if you like, but i'm not sure you care.

"This practice seems pretty common in California, but given California is an at-will employment state, I'm not even sure why.
"
I'd agree plenty of PIPs are written and delivered at various companies as a cover your ass.

But where I am, and what I do, they are used as a hopeful wakeup call with some formal tracking and feedback mechanism.
Really. As you say, there is no point if there is no hope of improvement.

(I know how cynical HN is, of course, so i don't expect this to be believed)
And yet GDP per head continues to grow.

Funny that isn't it. It's almost like the Japanese have invested in robotic automation, high quality public infrastructure and using older people to best advantage.
Programmers aren't really well known for their inherent skill in writing. It seems like the content, rather than the delivery, is the more important thing here.
Forget Excel: This Was Reinhart and Rogoff's Biggest Mistake (2013)
Show HN: I made a website to connect you with speakers of different languages
>https://en.wikipedia.org/wiki/Electra_(radio)

>Data rates up to 1 Mbit/s

That's a bit of a problem. It only seems to be a relay for other spacecraft and small surface craft. Much more data will need to be exchanged between Earth/Mars when humans are involved (weather, video, entertainment, collected data, software, etc.)

You'd probably want several brand new satellites dedicated to communications for an initial colonial undertaking.
For your information its still the number one communication platform for inland shipping in the Netherlands :)
Since the coverage of terrestrial tv requires the first three public channels to be accessible for free any one can get this information using DVB-T receiver and read it. The coverage is quite a bit better than 4G as well.

Plus we have a smartphone app and website to view it on too :).
http://nos.nl/teletekst#721 -> Notice to skipper information.
Thank you so much for your kind words and advice. It means a lot to me. I will definitely remember these words as I build on and receive feedback :-)
Saudi Arabia ‘foremost’ funder of UK extremism
She could have applied for Advanced Parole, exited the country, and came back legally (with inspection). It still can be done, however, now with Trump, it's a lot more riskier since nothing is certain.

Once she enters with inspection it would have been a lot easier to resolve her situation.

http://www.nolo.com/legal-encyclopedia/daca-recipients-how-a...
It's interesting from Darwinian perspective; that as a species we've produced a system that could select a "less fit" candidate. I wonder if there are other examples of this type of behaviour in nature or if we're the first?
I don't really intend to promote this yet but anyway here's my in-progress TCP/IP stack implementation:

https://github.com/ambrop72/aprinter/tree/master/aipstack

It is written in C++14, is platform-independent and works within a single-threaded reactor environment. Microcontrollers are the primary target for example the stack does no dynamic memory allocation at all. I consider the TCP part to be "pretty complete" at this point, it even has PMTUD which lwIP lacks. The TCP code is also quite commented.
> It seems to be free to downvote or upvote, so economically it would make sense that there are no repercussions.

Since there is no cost to downvoting, it is cheaper in terms of time and effort to--anonymously!--censor opinions than to express them. It's doubly bad because, in order to acquire downvoting privileges, you must first express enough "correct" opinions, which makes the system self-selecting for certain views. It's a fundamentally broken system, because it incentivizes the wrong things, and it's why I stopped commenting here....oops.
Yes, you can argue that warranties are overpriced, but if everyone factored the price of the extended warranty into every purchase they made, then manufacturers would naturally be forced to reduce the cost of the warranty, by making their product either more reparable or increasing initial quality.

> Finally, people are hyperbolic discounters, they are myopic in a way that hurts their happiness, so a regulation that encourages longer-term thinking may help them in the long run.

Here it may just be my Yankee self-reliance talking, but this smacks of the worst sort of paternalism. Arguing slippery slope arguments is in itself a slippery slope, but why stop here? If buying a bigger TV is not going to make me happy (or make me unhappier) then surely a regulation should exist to prevent me from buying it.

When there are significant externalities (like leaded gasoline) then government regulation is easy to justify. When the externalities are second-hand (the reduction in demand for product longevity causes reparability to become a secondary concern for manufacturers) then I'm more inclined to err on the side of "let the customer set the price of their own risk", rather than "let's just increase costs for everyone because it may or may not have a net societal benefit".

I don't trust that regulatory authorities are above the myopia and are truly able to see long-term more than anyone else.
Watch this video of a crash test between a 1959 Chevy and a 2009 Chevy:

https://www.youtube.com/watch?v=joMK1WZjP7g

The '59 Chevy gets 13.5 miles per gallon. [1] The '09 Chevy gets 25. [2]

Yes, modern cars are more difficult to maintain than older cars -- they require more specialized equipment to maintain, parts are more difficult to replace, so on and so forth. Modern cars are also incredibly more fuel efficient and safer to ride in, and much of that is enabled by the same engineering efforts that make cars more difficult to maintain.

1) http://www.automobile-catalog.com/make/chevrolet_usa/full-si...

2) https://www.fueleconomy.gov/feg/noframes/25483.shtml
The experience she relates reminds me a hell of a lot of the way my previous job ended, which amounted to a handful of offended people uninterested in (directly) talking, and (my direct) management largely uninterested in reconciliation / facilitating. All of the problems she relates are with people who are not directly communicating with her, usually after she's directly communicating with them. Whereas, according to the story she relates, everyone who actually engages with her likes the experience.

Over all, it paints a picture of GH where the management (and many / some employee) are not fans of directly dealing with problems, which, IMHO, speaks to people who don't do it often enough. Most of the time, when I (or others who've related stories) "turn" to directly deal with a people problem, it turns out not to be much of a problem at all. It's only when you try to deal indirectly, or not all, that things go south and eventually explode.

Interestingly, all of the people at my last company that I had this issue with were in the Bay Area, and I didn't have this issue with folks in other remote offices.
Here's what's in warnpush.h: https://github.com/ensisoft/newsflash-plus/blob/master/newsf...
He does sound like a crotchety old man, but at least he's being sincere. If you look at how much pollution a personal car makes, would you believe that the owner of the car wouldn't find it his right to still drive?

Everything we do on this planet has some sort of environmental cost, especially the way we all live. I don't own a car myself, but I don't like being on some sort of high horse, since I know the food supply chain relies heavily on fossil fuels. One of the reasons I ride bikes is to lessen my environmental cost, but it doesn't remove it entirely - it's a small percentage. What I DO have a right is going, "Yeah, you know, I'll NOT do things that are environmentally destructive, if I can (and I hope you can, too)". Some of that could be protesting, or helping lobbying for anti-pollution laws, etc. It's not a very good atmosphere (sic!) for that right now in Washington, unfortunately...
You've described a unikernel. Check out MirageOS and HaLVM; they're very similar to what you've described.

One interesting thing I've noticed about these kernels is their tendency for full-stack language integration a la Lisp machines and Lisp OSes like Genera. For example, Mirage integrates strongly with programs written in OCaML (the home page describes the project as a "library operating system") and HaLVM with Haskell. A quick search shows unikernels for Golang (Clive) and JS (Runtime.js) as well.
Even "No Captcha" is rather annoying as I'm almost ALWAYS asked for additional input. The checkbox alone never does it for me. Why do I seem so bot-ish?
> I wonder how Thiel has managed to avoid these Alinsky playbook tactics so far.

Partly by being gay, partly by "that shoe dropped a while ago." He co-authored a book titled The Diversity Myth: Multiculturalism and the Politics of Intolerance at Stanford in 1995.

Per wiki:

> In 2016, Thiel apologized for two statements he made in the book: 1) "The purpose of the rape crisis movement seems as much about vilifying men as about raising 'awareness'" and 2) "But since a multicultural rape charge may indicate nothing more than belated regret, a woman might 'realize' that she had been 'raped' the next day or even many days later." He stated: "More than two decades ago, I co-wrote a book with several insensitive, crudely argued statements. As I’ve said before, I wish I’d never written those things. I’m sorry for it. Rape in all forms is a crime. I regret writing passages that have been taken to suggest otherwise."
Location: Montreal, Quebec (Canada)

Remote: No

Willing to relocate: Yes (I can legally work in the US & Canada since I'm a dual US/Canadian citizen)

Technologies: Python (Flask), Java, SQL (PostgreSQL), JavaScript, R, MATLAB, HTML, CSS

Resume/CV: http://ajgaba.com/Aaron%20Gaba%20Resume.pdf

Email: Aaron.Gaba@mail.mcgill.ca

Website: http://ajgaba.com/

GitHub: https://github.com/ajgabz

LinkedIn: https://www.linkedin.com/in/aaron-gaba-aab35334/
Reminds me of Cookie Clicker: http://orteil.dashnet.org/cookieclicker/
The cost of accessibility depends upon many factors.

If your design starts with accessibility in mind, the costs can be minimal. Keep in mind that the use of small and low contrast elements is a design decision. If the decision is made to use large and high contrast elements from the start, there should be no difference in the development costs. Making it possible to scale pages for pages where things are laid out spatially is far more difficult and incurs much more testing, yet costs can be reduced if the decision is made from the outset. Even the more difficult factors, such as captioning images and videos, can be eased if planning is done ahead.

The problem with arguing that it's 'mathematics' is that there are many variables involved in the equation. If the variables use values for poor planning and design decisions, the result is going to be a much higher cost. If the variables use values for solid planning and design decisions, the difference is going to be much lower. Of course it also depends upon the media being used, so it is very difficult to use that equation to make generalizations for all cases.
At some point an equivalent product could be offered as a replacement. Or parts could be replaced. The cost of this will be reflected in the price of the warranty which also serves as a down payment for a replacement product. But still, the producer will have an incentive to do an honest assessment of the longevity of the product via the cost of the warranty. Too low will cost the company and too high will shy away the consumer.
Charlotte, NC + Senior Full Stack Engineer + Full-time ONSITE + competitive salary, options, benefits

AddShoppers was recently recognized as the second fastest growing company in Charlotte as well as a Best Place to Work (two years running!).

We’re building a large-scale SaaS platform that's changing the way millions of people shop every month. We are an indispensable partner for companies such as Hanes Brands, American Giant, Moscot, Jockey, and thousands of others -- powering their onsite marketing to drastically increase engagement and conversions.

"Be a great human" here: https://www.linkedin.com/jobs/cap/view/388531445
> if you venture away from the west and best coasts...

Typo, editorialising, or both?
I, too, am severely chromatographically challenged.

At a former employer, I wound up being a part-time guinea pig for our UX staff - to the best of my knowledge, we were the only major SCADA player to have dedicated GUI colour schemes for colour deficients.

The downside? A number of phone calls to our support hotline made by customers who had accidentally switched to, say, the tritanopia-optimized palette. They generally went along the lines of "Geez, did you guys hire some colour-blind dimwit to do your displays?" -"Matter of fact, we did." -"Oh."
You're right. It's also something employers can't dress up often for legal reasons. E.g. you can't be vague/fluffy/nice about the reason for putting someone onto a PIP. So if your company culture is kind/gentle, then it can seem like a HUGE abrasive shock to have one appear.

There are of course some people who are a) actively assholes and b) genuinely oblivious to the rules applying to them. But you gotta believe they're in the tiny minority in the world.
> she dismisses PRs or code reviews because made by white males.

I didn't see this and can't find it. Can you point me at where this happens?
> Most of them from Jainrain, which has publicly said they don't care.

A good reason to use a different lib, IMO.
Good question! I'd like to know this too. O-1 holder here, how hard is it to get a more permanent status? What are the downsides in staying on O-1?
From 'Not in My Backyard' to 'Yes in My Backyard'
This is super-cynical.
If you want to get rid of them, you don't have to have success criteria at all.

You could just document the behavior that makes them want to fire them ("you smell funny") and followups in an email, and call it a day after a week or so.

Having success criteria when you just want to get rid of someone means if they do succeed, but you still wanted to just get rid of them, you are worse off as an employer :)
> I wonder how Thiel has managed to avoid these Alinsky playbook tactics so far.

Because your conspiracy theories aren't real.
Not sure what you mean. Either the project is effectively dead, or ended, after the arrests, or its technically continuing though for all intents and purposes is over. Or it ended a while ago and that's why it's a scam?

The article as up right now has a title that says it's over, but did not have the same headline when I added my comment :-(. Also says it's effectively over as a result of the arrests which it didn't before. Unfortunately the NYT does not have a policy of always indicating edits. So this may have made my comment look odd.

However FWIW the NYT typically won't use the past tense, and in particular the perfect, for topics which are ongoing. US Civil war? Sure. Bernie Madoff? Possibly, possibly not, depending. People having just been arrested gets a present, or at best imperfect tense.
Hi there, I made this site because I wanted to find pen pals to practice French with. While HelloTalk exists, I didn't really like how it worked and it lacked a web interface which I really wanted.

This web app won't be very useful if you know nothing about a language, but if you have even a beginner level it's incredibly useful to chat with fluent speakers.

I'd appreciate any feedback, as this is the first real website I've launched :)
Ha, no. It should have been "Site visit-cum-lunch", i.e. a visit that is also a lunch, but someone didn't quite enter it correctly...
Even just using Tesla's numbers, it's unlikely they can ramp up production.

They currently produce ~25K Model X and S per quarter, and they're having supply issues with battery packs. (see the other, recent thread on them)

How in the world are they going to be producing 20K Model 3s by December, without cannibalizing their more profitable existing sales, and judging by their own previous growth rate and demand problems?
One of the seasons of 24 (second?) had a launch event in Washington with Rumsfeld and other high level members of the administration on the stage.
As another comment points out, GDP can increase even as population declines, thanks to robotics and automation which make each worker more efficient. Demand for real estate (housing) is the wild card -- does it fall broadly (as one would expect) or does it bifurcate into desirable urban areas (where prices continue to rise) and undesirable rural areas (where prices continue to fall)? In other words, even as absolute population shrinks and there is theoretically more room, do the remaining people spend all their resources trying to crowd into the same dense urban areas? So many other industries key off of housing that this, to me, seems like the cornerstone question to answer when predicting what the future economy looks like.
The question then is, will the world your children inherit be better or worse for people such as yourself holding their tongues.

These free speech rights we technically have were not acquired without cost--on the contrary, they came at enormous cost in blood. Now we refrain from defending them because doing so might inconvenience us.

Of course, it's easy for me to say this, sitting in front of a computer writing vague comments. Food for thought, especially for Americans the day after Independence Day.
I was going to make this comment on the parent comment but you really tee'ed it up for me perfectly.

Not doing basic accessibility on the web is just mental laziness, plain and simple. I have to strongly disagree the the implied point in your post that it requires investment of any significant time.

You can get 90% of the way to "good" just by picking appropriate font sizes and colors, doing halfway sane IA, and probably most important just using semantic markup. Adding text info to images, aria tags, etc are very minimal efforts if you simply have it in mind as you work.

None of those things require any extra time except that people need to care enough to read some documentation and watch a couple youtube videos which is a one-time up front investment of 1hr or so (not saying you are an expert after 1hr but you can definitely do "ok" with 1hr of research and learn as you go from there). a11y gets more complicated when you start doing heavy js with custom realtime interactions but even then you can get 70% of the way there with very little effort and it is a bit of a red herring because how many people are really working on fancy modern SPAs in their day jobs?
For those, like me, who find the writing style somewhat annoying, this is the part of the article that relates directly to the title:

> Imagine the situation Florence Nightingale confronted in the Crimea. Everyone knew that, in a war, soldiers get shot. Everyone knew that people who are shot tend to die. What they didn't know was that the vast majority of deaths in the Crimean War weren't caused by wounds at all -- they were caused by diseases like cholera and typhus. Thus military leaders didn't implement the basic sanitary precautions in field hospitals and military barracks that would save lives by stopping the spread of disease.

> Florence Nightingale saw the problem, but she needed her own ammunition. So she counted the dead, collected the data, and displayed it in a polar area diagram.

> It was a credible, clear and compelling display of the causes of death. And suddenly the problem was no longer too abstract to ignore. It was fixable.

> That is how a woman -- a nurse -- took on the top brass of the British military and won.