skysight-inc/HackerNews huggingface dataset:
I would argue that the state of the global model includes some information about the state of a widget (e.g. selected="true") and some state is unique to the widget itself (hover).

The trick here is how do you reconcile those two states when both have a copy of the data. For instance, the <input type="text" /> holds its own state and you hold the value in the global state. When a user types a character into the input, the input hold a copy of the letter in its "value", and the state is updated with the same value, which then triggers the input to compare its state with that of the global state for equality before attempting to render the value in the global state. Tricky stuff.
This is true in offices too. Anyone in knowledge work claiming to consistently work 10 hours a day either does way too much busywork or is lying.
The author uses the more complicated definitions of the SOLID principles.

These are much simpler to remember:

* Single responsibility principle - A class should have only a single responsibility, that is, only changes to one part of the software's specification should be able to affect the specification of the class.

* Open–closed principle - Software entities should be open for extension, but closed for modification.

* Liskov substitution principle - Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.

* Interface segregation principle - Many client-specific interfaces are better than one general-purpose interface.

* Dependency inversion principle - One should depend upon abstractions, not concretions.

A lot of these principles also tie into other principles such as DRY (Do not repeat yourself).
I was one of those kids with an Apple ][ and in fact I still own it. I thought about setting it up for my own kids (now 16 and 18) years ago to tinker with. But I realized that it wasn’t due to accessibility that they aren’t interested in programming. Times change and my things aren’t their things. If they wanted to program, there’s a lot of modern and accessible environments to start with. They had plenty of friends doing things like LEGO mindstorms or finding other ways to program. I realized they were no more interested in programming than learning how to change a spark plug when I tried to show them that. And it wasn’t because computing (like many other things) has become more complex.

I’m not really even sure computing is less accessible now. Kids find a way.
From comment by StudentStuff, hidden below:

> SCMP is owned by Alibaba, they're far from impartial: https://en.wikipedia.org/wiki/South_China_Morning_Post .
That you are willing to let other people die for the sake of increasing your convenience isn't very compelling.

And I think that's also unnecessary. From what I can tell about Waymo's approach, they are launching with something well below level 5, but where they cut over to a remote driver whenever the car is unsure. It's a smart approach, in that they can offer a level-5 service with level-3 technology. They've turned the technology cliff into a cost-optimization problem, which they can chip away at over time.
Well, from his perspective, as long as he's never going to China, do those camps matter?
Unbelievable. You keep spreading FUD. Literal definition of FUD. Now it's Accenture who is secretly killing the project because they are in pocket of Microsoft. And why is Accenture involved? Because Munich commissioned their opinion. And why did Munich commission their opinion? Because they are in the pocket of Microsoft of course. And why is Munich in the pocket of Microsoft? Why, because Microsoft moved their German headquarters Munich - not for any business reasons - but for secret nefarious reasons. And where did the move it from? Why, from Unterschleißheim a city (suburb) approximately 16KM away!!!!!! Surely no corporation would ever want to move downtown to a major metropolis from a suburb into a bigger office complex. Let me repeat that: this nefarious move you keep using as an example, was a grand total of 16 km, from a suburb of Munich to Munich.

AGAIN, the BIG picture - this deployment didn't turn out to be the success Munich had hoped it was going to be. They could limp along, sure, and I'm sure there are plenty of people who like it, especially the guy who runs the entire project, and the people who are ideological inclined against Microsoft, and the Green party...

I mean Jesus, the only way they could get this LiMux thing to work was by maintaining Windows licenses for legacy software and interoperability, virtualizing Office because OpenOffice/LibreOffice sucks (and it does), and moving to Exchange for Calendar and Email. This is a chimera. It sucks.

There were good reason to ditch Windows in the first place, and now there are good reasons to ditch this Linux experiment as well. That's the big picture.

>I invite you to provide evidence for your assertion that the role of politics in Munich's decision is a "conspiracy theory" and "FUD".

I invite you to provide evidence that your bias has not coloured your interpretation of events. Have fun proving a negative.

(I read all the things you cited - it's the same kind of stuff - high on speculation, light on evidence).
Tabs are a nightmare to deal with when you want to align the columns. Also, I don't consider tabs to be human readable: They are too easily confused with spaces. (Case in point: make)
800 pounds in a couple of weeks... kind of dispells the notion that it's not coming from western countries.
http://www.retroadventures.net/zork-telnet-server/ covers that and as I said, you can just telnet to localhost from the M100.
Cheeze Wizards – By Fred Wilson
Waymo has already come out and stated that realizing AVs as they've been pitching them are much further away than they've previously claimed, and now they've moved to try to become a Tier 1 component supplier to try to monetize at least _something_ for all the money they've dumped into this endeavor.

Additionally, despite driving the exact same corridor for several years, there are still trivial and commonplace scenarios that their system can't handle reliably due to environmental ambiguity (i.e. multimodal human intent).

Though, not to gang up on Waymo here. Probably most programs are stuck/grappling with these problems. You just mentioned them directly, so I picked on them.
Wolfram Alpha at 10
It’s partly due to the popularity of anime.
> That you are willing to let other people die for the sake of increasing your convenience isn't very compelling.

That's how we got the original automobile, and that's been a great benefit to the human experience.

Everything is costs and benefits. In exchange for reducing the amount of very dangerous manual driving that people do, we plug in autonomous technology that's very good, but not perfect. It still saves lives overall.

This idea that autonomous must be perfect or
you're a murderer --- it's simplistic and counterproductive, and following this kind of absolutist thinking guarantees that we'll never get autonomous technology and that people will continue to slaughter each other with manually-driven vehicles.

Taking an absolute stance against dangerous technology might seem good at first, but in the long run, it increases the sum of human misery.

It's perfectionism, not autonomous, that's killing people every day.
thank you. oleg in particular is always very clear and comes from a pragmatic perspective that i appreciate.
People used to blame Toyota for Japan actions, but that kind of sentiment lasts for 5 minutes, and anyways, those Toyotas were mostly made in China anyways.

Likewise, Google has almost zero consumer exposure in China, so all they can do is interrupt their ability to give Chinese companies money for goods and services, which seems like cutting off your nose to spite your face.

The Chinese government doesn't want the west to grow new supply chains and find new manufacturing centers just because of one trade war, it wouldn't be according to their goals.
This is a little project I put together to help ensure that the code examples in my Pelican-built blog are correct and to build a package using Poetry[1].

It's a thin wrapper around Flake8[2] that extracts backtick-style Python code blocks from Markdown files, pipes those code blocks to flake8, and updates flake8's stdout output with line numbers from the original file.

Thanks for looking!

[1] https://poetry.eustace.io/

[2] http://flake8.pycqa.org/en/latest/

[3] https://pre-commit.com/
> I really don't understand why the process has been designed to assume the copyright claimant is in the right from the get-go when it's the claimants that abuse the system.

Money.

If YT's system wasn't designed this way, claimants would file DMCA claims instead. This imposes a significant legal burden on YT; they would need actual lawyers with actual law degrees who've passed the bar to review each contested copyright claim.

The DMCA isn't designed in a way to make an easy path forward for a service like Youtube to operate fairly in a profitable manner. Article 13 prohibits it by law.

Copyright law reminds me of going to my parent's house and being asked to fix something on their computer. It's not this one thing that's broken, it's everything that's broken. I could fix all the little individual things, but it would be a lot easier to wipe it clean and start from scratch.
The information flow, specifically the lack thereof, and even more specifically the lazy/disorganized/maybe-even-passive-aggressive way it was (not) handled, ended up being the primary disadvantage of the remote arrangement for me. If you get a chance to work remotely, make sure management is fully committed to the idea, and to all that it entails. If they subscribe to the "blurt things out and wander off" management style, and people just kind of yell out whatever's bothering them in the office, that's already a pretty bad sign, but see if they're willing to promise to document everything in writing. If they're not willing, or they have any misgivings at all, you're probably better off staying in the office.
Anytime I talk with someone either on the phone, video chat, or in person and we agree on some thing (work, decision, etc...) I follow up with an email confirming that my understanding matches theirs. This isn't CYA as much as making sure we both walked away from the conversation with the same understanding. Many times, the email follow up has brought to light misunderstandings.
You are aware that your cheap little box running DOS or Windows was not the epitome of computing back then? It was a wobbly, underdeveloped side branch dominated by amateurs doing amateur things on operating systems made by amateurs. The professional computing was done on UNIX and VAX. And both were rock solid in comparison.
Unfortunately it’s not a given. Especially in our industry. Doubly so with remote work where you have to make an effort to separate work/not-work lest the two blend together into a state of always working/thinking about work/etc
> Though the installation and the manufacture of these nets cost money (about $10,000 each)

That seems exceedingly expensive for a net and a metal ring to hold it (maybe because drainage outlets aren’t standard sizes?), but I’m impressed with the claims of how effective it is.
The amazing thing to me is that I don't anybody who thought it was coming in the next couple years who based their estimate on anything but hope and magic.

Of course, that's nothing new. We've all been on software projects where the launch date was the earliest day nobody could prove it was impossible to finish. But I'd like to think that investors dropping zillions on companies would have had better due diligence.
That sounds like one big company doesn't know how to do it faster by keeping doing the same things they're doing now.
> I've been part of the group who got asked to give a DNA sample in the Nicky Verstappen [1] case. This was voluntarily, and I reluctantly did this

Great story and thanks for sharing this. I want to answer why I think this is a bad idea however.

First, I would talk to a legal defense attorney before doing this. A famous video about this topic is here https://www.youtube.com/watch?v=d-7o9xYp7eE.

1) The police might have told you it was for one case but it was for another, as the police can lie.

2) The DNA test itself might give a false positive on you or your family members, putting your family to a harsher scrutiny by the police that would have otherwise, and with more judicial justification. In the investigatory zeal they might find other lesser crimes they might want to prosecute just to not be empty handed. In the U.S., they might have charged a family member on a false positive with a ridiculously overblown crime. People have killed themselves over that prosecutorial technique (https://en.wikipedia.org/wiki/Aaron_Swartz)

3) The police could fiddle with the samples and plant evidence if they thought you or someone else did it. (Steven Avery case)

4) The lab might fake results if they are in tandem with the DA (https://www.nbcnews.com/news/us-news/epic-drug-lab-scandal-r...)

You are gambling with your life and the life of your family members when you make that choice. And if you were so sure a family member of yours did not do it, then the police could have come to the same conclusion on their alibis and physical state of your family members.

Even if you believe non of that is "likely to happen" there is a risk you are taking in exchange for a very small benefit (feeling good about assisting in a real investigation). And I assure you that if you had asked that, in exchange for the dna sample, your family and yourself have absolute criminal immunity for any case not related to the Nicky Verstappen, no DA would have signed off on that.
I agree with the sentiment, but only popular channels are going to be targeted like this.
Linux/HelloBot (another ELF bot malware from China actors)
Like Guantanamo?
You can install F-Droid or microG if you prefer; you don't need to use GApps.

Apart from that the other options you have, are (in random order): /e/, PureOS, KaiOS, SailfishOS, Ubuntu Touch, Plasma Mobile, postmarketOS, among others.
http://sci-hub.tw/10.1016/j.joule.2018.11.021
Yes! This is something that took me longer to learn than it should have. Even if the call went well, send a followup email briefly summarizing the discussion and end with actionable things.

I find phone or in person much better to gauge tone and emails can more easily be dismissed.
I've done the same with my Amiga 600 / 1200 with a PCMCIA Ethernet Card and Miami.

http://www.retro-commodore.eu/network-installation-on-the-am...
$90/month is really not that much, it's like an m5.large on AWS which is pretty much the minimum for a medium/high traffic website. Well, I guess the scene might have changed since they introduced t2 unlimited, but that would only take it down to $40/month. Support costs are still there for a $5/month user.
I always wondered what would it take for a company to develop an alternative mobile operating system?

To me the combination of Android and iOS always was the perfect mold around the business of high-end mobile phones.

Android is given away for free; but to make a truly great end user experience hardware and software needs to be integrated. Like it is for iOS. But that requires an enourmous investment; and there is no "natural" piecemeal way to grow there as your business always would be competing with peers that use the "free" platform.

But this gives Huawei, a massive and capable engineering company, no choice but to build an alternative.

This is an extreme situation; but hopefully there will come some true innovation out of it.
Why C++ Is Popular
No software is perfect --- and that goes for the wetware in our heads too. Why would you want people to keep dying on the roads just so we can avoid shipping imperfect-but-still-superhuman autonomous driving vehicles? We need a more nuanced outlook than "Disengagement! NO RELEASE!".
Tuned Mass Damper
1.25 million people die in human driven traffic per year, 37,000 of those in the US.

SDCs should only need to beat that safety level, not be perfect.
ML Ops: Deploy TensorFlow Models with Istio on Kubernetes
Google borders on insane with lacking any sort of manual support.

For example, when you are a paid G Suite customer - you'll need to dig hard to find their support number. Then you'll need to click several buttons making it clear you still need support. You also need to then generate a PIN used to access the phone support.
The Ukrainian Hacker Who Became the FBI’s Best Weapon – and Worst Nightmare
A Simple Crime Led to the Invention of Plastic Money
I'm from that area, in the suburbs of Naples, and left 25 years ago, but my family is still there. Yes, there is a higher incidence of cancer in the region and, most likely, chemicals play a central part in that, but a good chunk of cases is for lungs and bladder, which also correlate with the sadly large number of smokers. (The smoke and the utter lack of consideration for others makes any visit home an exercise in frustration from day one or two.)

This has been going on for a long time. At some point in the early 90s, a cousin and her friends went biking away from town, passing through an industrial area. Even though the weather had been dry, there was a big puddle on the side of the road and she tried to make her way through it anyway. It turned out to be some toxic smelling and sticky substance. She had to get rid of her clothing AND the entire bike, whose gears and chain had become unusable. Even then, the assumption was that pollutants were being hauled mostly from factories in the North, not just from the South, and dumped in the region.

Most deaths I hear of are due to cancer. There might be a bit of selection bias at play, though. A case that was in the news recently was a seven year old girl that lost her year-long battle. Then there was the 17 year old who looked pregnant, but turned out to have a very large benign tumor. Those are shocking and heavily discussed, but I don't think rates in that age range are actually much different from the national average. It's from 60 on that the real numbers look very bad.
>people you need to actually talk to and help customers - something Google has basically never done before

As a google advertiser this made me laugh.

At the same time I don't think expense will be a setback for autonomous vehicles. The reason being that if vehicles are fully autonomous there would be no reason for any individuals to own them. It would make more sense to have them operate like a taxi service. This is because without the costs of having to pay for a driver, it would be cheaper to just order an autonomous vehicle whenever you need to go anywhere than it would be own your own vehicle.

Just from an efficiency standpoint it is terribly inefficient for each person to have a car. We're not driving most of the time and the only reason we have our car sitting in the driveway is we need it to be available should we need to drive. With autonomous cars, my car could on it's own drive across town to pick up other people when I'm not using it. The reason we can't do that today is because of the additional logistics and costs involved in transporting my unused car from my driveway to the driveway of the person across town who needs it. This problem would not exist in a world with autonomous vehicles.

To me, it seems likely that a world with autonomous cars would be a world where the majority of vehicles in the world are owned by services like uber.
Good points. And I'd add that most things we've automated are things that have been routinized in a way where people conform to the system, rather than the other way around. E.g., a ton of software development has basically been, "take this paper form and make a computer do the paperwork". The hard part was already done for us when everybody got trained to be subservient to the bureaucratic process. So societally we have this limited sense of how quickly computers can take something over.

Real-world things like cars and domestic robots are much harder, because those domains are ones where people come first. As you say, key elements could well be AI-complete.
What a weird country, on the one hand they want to save environment from plastic pollution.

On the other one tho.. invest in coal power plants, which will only make drought issues bigger.
Definitely interesting. I have a couple questions:

1. Quite confused about actual use cases, could anybody come up with an example?
2. The way I see it, it's kind of a way to have run-time "macros"?
3. How much overhead does this have when shipping the code to the user?
4. Would it be difficult to implement something like this for Rust? I can see special syntax to define the functions, would it make sense to add language support for this feature?
How I invest USD 10k in 2019 (as a former McKinsey consultant)
At this point I speculate a lot are on iOS to avoid android, and vice versa. Any offering that hwei makes will surely not move the needle from either camp, but it’s good to see some new competition
I think I understand the general point, but in this particular case the default is obviously you can't mess with a dead body.

You can't go to a cemetery and dig up corpses because "they didn't opt-out of grave-robbery". I would say that the body naturally falls under the concept of private property, which is why it is heinous to desecrate bodies and their belongings when people die.

What's crazy to me is that this problem looks so easy to resolve: if you want organ donors, pay for them. A form of reverse insurance: that will get you people in.
HN really should auto-convert AMP links because many HN users still post those.
> "THz" is basically a synonym for "long-wave infrared."

Yes, but this says nothing about whether the spectrum is smooth versus a spike, which could make a difference. Anyway, I think it can be a mistake to hide behind known mechanisms, while the empirical evidence shows that something else is going on.
I didn't say linear, but devil's advocate, isn't that roughly how humans learn? We start out as "pre-intelligent" little creatures who, slowly, methodically, with help of others, develop aptitudes and learn about the world. Learning in fact continues in this manner your entire life should you continue... slow, incremental progress requiring teachers, peers, trials/ errors, crises, 1/3 of your life being unconscious in sleep, etc., in the absence of which no learning at all may happen ... and the bot may potentially have greater computation constraints than humans under current technologies, as the brain is far more efficient than any computer today.

I'm not convinced that each of the arcs, elementary intelligence --> average intelligence --> super intelligence, wouldn't be painstaking and roughly linear.
Knuth's Up-Arrow Notation
Show HN: Clubman – a booking platform for ski clubs