skysight-inc/HackerNews huggingface dataset:
It is not much in other languages because those languages are old. A lot of the Swift features have been in more academic functional languages for a long time. However it has taken time for the mainstream languages to adopt these ideas. The industry moves much slower than academic niche languages.

But most new languages has some variant of this stuff: kotlin, scala, rust.

I program a lot in Julia which is a script language and it does not have allow you to use null freely either. May seem odd for a language that does not type check at compile time. But it actually makes sense.
RHEL family is XFS-centric, and quite a few distros (including Ubuntu) offer encryption in the default installer.
Building a 22 Megabytes Microservice with Java, Javalin and GraalVM
Better go with Nextcloud than ownCloud. Nextcloud is the fork by the original developer team, and has quite a few nice improvements compared to ownCloud (e.g.: video and text chat, e2e encryption)
Then I apologize. Also missed the nuance as Sgt_Apone
50+ Data Structure and Algorithms Interview Questions for Programmers
The problem I see with a trust model like this is that too often, people treat trust as a binary option rather than a scale. Like, "do I trust my android phone?" is not a yes/no proposition. I trust that it likely reports the time accurately. I do not think it a secure operating system. It has a history of reliably connecting to the internet, though it occassionally gets stuck and I need to reboot it. If I am stuck with a binary view of trust, which so many people seem to do, I either naively ignore the device's failures or I refuse to admit it's successes.
Well, I know that printing stuff to console can be ridiculously slow, so this doesn't surprise me much.
CNN only "looked bad" to people who are already hopelessly biased. Investigating sources of government propaganda is exactly what the media should be doing to any sane person. It's unfortunate though that CNN chose to give the guy an out. The protocol here should be maximum disclosure.
Product Process Approaches and Insights
A fair chance includes a difficult employment ecosystem for everybody. Even a fair chance, likely means they'll be unemployed.
It's nearly 50 years old and still the best model for storing and querying data. YesSQL FTW.
> 50-cent-piece (no name for this?)

That's a half-dollar

Unrelated to your post is two bits == quarter, if memory serves me it's by way if Spain.
A genetic predisposition towards being afraid of predators. The assumption is that if you have 100 mice, and 50 of them show signs of being afraid of cats, then you breed those mice to produce another 100, noting the pairs that produced them. You can then see how many of the offspring are afraid of cats, and select that group to produce the next generation.

Some of the fear of cats will be learned behavior, some of it will be instinct. It could also be that the ability to learn the behavior has genetic links (think naturally smart mice). If you keep this cycle going, eventually you have a group that should be higher than your initial 50% fear rate. It's possible that you can't selectively breed for this, but it's also possible that you can. This is in some ways the inverse of how humans domesticated many different species.
All about the rate of mistakes - even a negligible error rate means millions lost a year.
If nothing else fighting the suit means guaranteed real estate on every major news source for months to come as it plays out
I don't think it's fair to blame leave voters, the whole thing was fundamentally flawed. While it was obvious what remain meant, "leave" was never actually defined, and so open to interpretation.

Forgetting for a second the whole thing was just a ploy to win over UKIP voters, it is ridiculous that this far down the line leave still hasn't been defined. A small part of me thinks that maybe May is playing the 4D chess long-con, and deliberately being as incompetent as possible to drive us to a last-minute remain outcome. Ockham's Razor says otherwise though
It takes a certain mindset on the part of the renter as well. You sort of have to have minimal physical stuff and be OK with moving into a largely standardized serviced apartment. In other words, the apartment is somewhere you drop your stuff and sleep in. It's not "your" place.

There are corporate apartments in the US but these are usually oriented toward people who have their own place but have to spend a lot of time at some different location for a period of time. I don't know the level of service such places typically have.
I mean yeah of course. I was talking about small hobby drones.

Taking it to the absurd, if you get hit by one of those Reapers[0] you might get really seriously injured!

[0] https://en.wikipedia.org/wiki/General_Atomics_MQ-9_Reaper
I'd recommend using resinOS as the base. And then running your application inside a Raspbian container.

That will give you a read-only resinOS (based on Yocto. meta-resin layer). If you rpi is connected to the internet, you can use resin.io to remotely push application container updates and access the pi over a vpn.

https://docs.resin.io/learn/getting-started/raspberrypi3/nod...

Disclosure, I work at resin.io in the OS team on meta-resin.

The base resinOS is open source. And we are open-sourcing the rest of our stuff in due time as well.
This is an engrossing documentary. While watching this documentary, the back story of the coach escaping to the US is also amazing. I wondered who played who in this documentary.
Musk has explicitly admitted that the "funding secured" was actually based on conversations with the Saudi sovereign fund, which appear to have been at a stage where they were still negotiating conditions (such as building a Tesla plant in Saudi Arabia). All the SEC has to do is show that the conversations with the Saudi fund did not constitute a verbal agreement to any reasonable observer (which means, were Musk to believe that he had a verbal agreement, he was being reckless in that belief).

This isn't a case where someone committed a crime and carefully tried to hide their actions; this isn't a case that hinges on misunderstandings of the law. It is a case where someone essentially said "this is a final decision" and later clarified "by final, I really meant this was in preliminary stages, but I'm confident it can be finalized quickly."
> If resource was peace and privacy (those aren't resources), and they were zero-sum

Not to say I agree with your dubious attempt at bringing 'silence' into the fold of 'resource'.

When you start mining silence by the barrel from deep space, then we can start treating it as a commodity resource.
2.
> I'd like for doctors to focus more on the keen observation and decision parts and would not mind automated transcription of doctor / patient interactions to be reviewed and possibly have a summary forward (but not replacement of actual data) added by other staff.

The patient history we track isn't a literal transcript: it's a transcript of what we find pertinent from our clinical interview and observations. The word "pertinent" there is key; it's intimately and inseparably attached to our decision-making process and diagnostics. Think of it as a persuasive essay. The facts and the deliberation are what a medical historty is, not just a list of data. Med students spend half of med school learning the very basics of this.

> That might be an opportunity to hire/train other types of staff and gain experience in a more concrete way; much like the source article wants to make it easier for potential experts to grow in to a job.

In learning hospitals, we already have residents and med students doing this. And then an attending will come and do it again, because we're better, and this is a learned skill built around our clinical acumen, not a literal transcription.

> If there's a typical outcome given an input it's important to document the decisions that affected the selection of non-generic courses of action

The combinatorics of medicine are too huge for "typical input." That said, we justify all of our decisions, so that someone reviewing our actions can decide whether our behavior - the outcome - was justifiable given the input. The "reviewer" tends to be someone in our own specialty, though - replacing this with something standardized and codified would require, literally, encoding the entirety of medical reasoning. It's a bit beyond modern EMRs.
Not the OP, but one thing that springs to mind when talking UIs and web/native is the use of breadcrumbs online. For example, if seeing a list of all other notes in the same folder isn't a key use case, an alternative could be to hide that list but make it visible when activating the list's parent. This reduces the noise so the individual note can be focussed on.

Having said that, I suspect the use cases of notes are quite varied, so a one-size-fits-all approach might not be straightforward.
Hmm... say dumb stuff on Twitter, get billions of dollars worth of free press. Worked for our POTUS.
How is it spin? The metrics for Tesla were/are not promising and they were already being looked at by the sec for potential fraud regarding those metrics
Ok, when has it ever been a good idea to piss off the SEC? They offer you a deal, let you off rather easy in exchnage for some symbolic concessions after you did something not to smart resulting in some unwanted stock movements. And then you tunr your back on that deal, and the SEC. What exactly do you expect will happen afterwards?
Ugh, its that bad on iOS. I never wish for people to have to go through the process of changing their App Store country. It's a painful, buggy process with a horrible UX.
What is your recommendation based on? Why don't you trust Cloudflare but trust Quad9?
> Funding was secured in the sense that the potential buyer had the funds

Refusing the settlement was stupid. Not only is he likely to lose, almost any defense will rely on him showing he didn't understand the words "funding secured" which will then open Tesla up to shareholder lawsuits.
In which we learn again that listeners of Rush Limbaugh are, still, the least-informed people on earth. Also apparently Rush Limbaugh still exists. Look: if someone spends decades ranting about how you can't trust anything anyone says unless it's him, that tells you a lot.
You know the first amendment explicitly guarantees freedom of the press for the purpose of the press being involved in the political game. The media was far far far more biased in the early days of the country than it is today. Newspapers were flat out run by and for political parties.
Here is what CNN printed:

>CNN is not publishing "HanAholeSolo's" name because he is a private citizen who has issued an extensive statement of apology, showed his remorse by saying he has taken down all his offending posts, and because he said he is not going to repeat this ugly behavior on social media again. In addition, he said his statement could serve as an example to others not to do the same.

>CNN reserves the right to publish his identity should any of that change.

https://www.cnn.com/2017/07/04/politics/kfile-reddit-user-tr...
The woman who accidentally ticked: 'I am a terrorist'
I remember how objective the New York Times was in the early 90s - they would follow the facts wherever they went and in depth - it was a great paper then.
True. And showings.
I find CNN's behavior completely reasonable.

Basically, they investigated and then showed gasp discretion. Yet, people somehow think they did something wrong?

The issue is the implication, that if the guy had not apologized they would then do something. Instead of only doing something if the guy started sending death threats or something.
Ironically, barring him for two years and appointing two new independent directors would probably be a huge win for Tesla.
Didn't know about the fork. Thanks for the suggestion, will check it out.
Good luck with that line of defense.
Things bounced back petty quickly. It only took about 80 years for us to start having access to good beer again.

More seriously - I don't think organized crime went away. It was a big problem before prohibition, and it continued to be a big problem after. However, it may have been weakened by the loss of an extremely profitable revenue source. Alcoholism dropped precipitously during prohibition, and started coming back again after it ended. Given that the US has a huge problem with drunk driving, one could probably make a cogent argument that, with the repeal of prohibition, we replaced a relatively small but sensational amount of organized crime with a large, but relatively socially acceptable, amount of disorganized crime. One might presume that other crimes that tend to go hand-in-hand with alcohol, such as domestic and sexual assault, also got a boost from the repeal.

I'm not sure how well any of this applies to marijuana. With marijuana, the worst (non-government-imposed) externalities seem to be related to how gangs behave when they're financed by the illegal marijuana trade. With alcohol, the organized crime was a problem, but the worst problems seemed (and seem) to be a direct result of how people behave when they've been drinking.

One common thread, though, is that opposition to both bans seems to be a reaction to government overreach as much as anything else. The penalties being handed down for alcohol possession were every bit as outrageous as the ones we see for marijuana possession nowadays, and that played a big part in public perception of the law.
Rosanne blamed Ambien, and I wouldn’t be surprised if more public figures do. It’s a convenient scapegoat that doesn’t injure their reputation like admitting hard drug use or alcohol abuse would.

Musk couldn’t have been thinking straight when he sent that tweet, but we’ll likely never know the real story. I think that’s OK, he’s entitled to some personal privacy too.
This seems like it's an essentially universal constant for Musk, whether he settles or not. Being in the news is not difficult for him, so it hardly seems likely that this was an important variable in the decision. Nor does it seem like the decision will affect his ability to get in the news.
Good work Kenton Varda getting his initials into the product name!
Kubespy: tools for observing Kubernetes resources in real time
CUDA 10.0
While I think dyld is probably short for "dynamic load", I initially read it as 'Dylan Language Deamon" when I read the phrase 'shared dyld cache'.

I know Apple was heavily involved in the Dylan language several years ago. Does anyone know if Swift was influenced by Dylan ?
4 Ways to Model Polymorphic Associations in Rails 5
Aggretsuko, the Japanese anime tackling workplace bullying
It’s amazing to see the implications lay out first hand of a single manufacturing defect. Intel was the undisputed king until 10nm and now they are gasping for breath in the competitive environment. The stockholders must be extremely discounted that a single process change could remove such a massive competitive moat around their business
I don't disagree, but I am skeptical that they received the same chance as someone without a criminal record. Whether intentional or not there is probably some bias in the hiring process when you know they committed a felony or whatever it may be.
Is this what you get to do if you’re a billionaire? Fight lawsuits?
It was a couple years ago, but I spoke with one of their engineering managers about Swift adoption within the company. His response was that it was being used for new apps/projects, but not so much for existing codebases.

Having worked on a large Obj-C codebase that began adopting Swift, there are definitely some headaches involved in Obj-C/Swift interop, and you often aren't getting many benefits of Swift unless your new code has few to no dependencies on / is not depended on by Obj-C code, unless you can refactor it into Swift.

Given how quickly it seems they've been forced to ship, I can understand not wanting to deal with these issues, or not having the time to address them.
ouch. That sucks.

You could run Fedora in a container on your Yocto base using resinOS.

I wrote more about this in another comment. https://news.ycombinator.com/item?id=18093336
Thank you! Lots of super cool stuff coming out of CF these days, the pace is hard to keep up! Not that it's a bad thing necessarily :)
not parent, but features of Swift that I _really_ miss when working in other languages are:

- rich enums - (https://appventure.me/2015/10/17/advanced-practical-enum-exa...)
Much of my code is now encapsulated in the enum, where it logically belongs, instead of distributed throughout some class that consumes the enum.

- highly expressive pattern matching - (https://appventure.me/2015/08/20/swift-pattern-matching-in-d...)
Swift's pattern matching is especially powerful with a switch statement. I frequently bundle multiple values into a tuple and switch across them, which allows me to flatten many if-else pyramids, and makes control flow more obvious up front.

- Optional - (https://developer.apple.com/documentation/swift/optional)

- Protocol extensions - (https://docs.swift.org/swift-book/LanguageGuide/Extensions.h...) Other languages use things like abstract classes or traits to implement this behavior, but I find protocols to be much more composable.

- The standard library - Swift's standard library is really well thought out. Many standard types have been built on top of highly reusable (and easy to reason about) types or interfaces that provide enormous utility when I adopt them in my custom types. Examples of this are: Codable (https://developer.apple.com/documentation/foundation/archive...), Equatable and Hashable (https://developer.apple.com/documentation/swift/adopting_com...)

There's more than that, and Swift is definitely not without it's shortcomings, but those features have fundamentally changed how I reason about code. I frequently find myself wishing I could reach for similar tools in other languages.
The magnetic field will tend to concentrate in the iron, meaning it shouldn't propagate as far.

Same as using Mu metal for magnetic shielding - https://en.wikipedia.org/wiki/Mu-metal
I don't think it's fair to blame leave voters

They actively chose something that you say was poorly defined but which was widely understood to be a very dramatic and potentially dangerous shift for the country. If you can't blame them for picking a poorly defined option out of some jingoistic notion of what the UK should be, what can you blame anyone for?
I'm Sly's author. There is CL specific functionality, most notably an inspector, a debugger, and a REPL that are not very well covered by LSP right now. That said:

1. I've heard of an experimental microsof-sponsored DAP (Debugger Adpater Protocol) which is similar to LSP and uses some of its underlying transport mechanics.

2. I have another Emacs extension, Eglot (http://github.com/joaotavora/eglot) for LSP. It follows roughly the same implementation patterns as Sly, so if you like one you might like to try the other.
the iron enclosure was meant to contain the explosion not the field.
Kubuntu Cosmic Cuttlefish (18.10) Beta Released
It's likely that they'll make money just on flipping the houses in many cases and even in the lemon case it will not be a total loss. Even in the very worst case, where the house absolutely cannot be salvaged, the lot is worth something (I think the lot is around half the value of my property, for instance). If the house just needs more extensive repair than expected that's a smaller loss.

From the perspective you're talking about, the risk to an individual buyer of missing some serious issue in an inspection is far greater than it would be to a company buying up homes left and right, and they've minimized this risk by focusing on a relatively specific slice of the market (newish houses with no serious known issues and with a value of $250-500k).
From a tiny bit of experience, I know that industrial electromagnets (think of the ones they use to pick up steel at a scrap yard) often have an iron/steel housing that is used as a "return path" for the field. The front face of the magnet has a field that projects out into the air, but the field on the back face gets channeled into the housing.
>waste over 2 years of politicans' time, distracting them from working on things the UK needs handling.

Its actually precisely the opposite.

Berxit is distracting the populace so that politicians don't have to fix things have been broken for quite some time.
It looks like it was a short-term experiment (way shorter than the lifespan of a single individual). The actual paper indicates the "bootcamp" lasted 18 months. And they had a control with two pens, only one exposed to the predators.
Ask HN: How to legally guarantee privacy in a SaaS product?
Every so often, a "privacy-focused" SaaS product comes along that makes lots of promises about what they won't do with your data. While the intentions are usually good, the problem is that there is no straightforward way to verify the claims of a hosted product.

As someone who is developing a privacy-minded product like this myself, I've been mulling over how to establish trust with my users in this situation. Surely there must be a way to offer the convenience of hosting whilst still offering privacy peace of mind?

Having an open source version of the hosted product is not enough, because it is not verifiable that the open source version is what's being hosted. Privacy policies and terms of service don't appear to be enough either, because as we've seen, they are easily violated or vaguely worded.

What I've been considering is something that acts similarly to how service-level agreements function, where if the SLA is violated, the customer receives a refund. This "privacy-level agreement" should somehow guarantee that if the established privacy policy is violated, the customer is entitled to some form of monetary compensation or can otherwise take legal action.

Unfortunately, I'm not a lawyer, so I don't know exactly to what extent of the law such an agreement can be enforceable, so my questions to the HN community are: how feasible is such an agreement, and what are some alternative solutions to this trust problem?
This specific implementation does.

What's stopping firmware from patching GRUB to patch the kernel to do things it's not supposed to do? There is nothing inherent to Linux that makes it invulnerable to this kind of thing.

If you can't trust the underlying hardware or firmware, you cannot trust the machine.
Maybe against this specific vulnerability, but with firmware (e.g. Intel ME) running in ring -3, it could in principle inject itself into any (ring 0) kernel.
Vice really needs to hire some proofreaders.
No, it's not backwards. It's very easy, even for a biased source, to make information in an article seem non-biased. Therefore, it's imperative to view the content of an article within the framework of by whom it was published.
Android I've done for embedded apps, by using immutable data flows only, Optionals everywhere, and very careful debugging for memory leaks. Go to a screen, force gc, go back, force gc, memory before and after should be the same, we'd find leaks of as little as 4kb this way, and it was every bit as excruciating as it sounds.

It's weird using Swift and realizing how much of that trouble we went through is avoided just by not using a GC'd language
I'm not sure why you have been downvoted.

A referendum is a survey of the population. Most rigorous surveys, never ask a simple Yes/No question to the final objective. A survey questionnaire has a detailed set of questions which considers various aspects of the final decision. Ideally, these questions should be discussed and ratified within the parliament. Then, based on answers to these questions - you can have a next round of discussion in the parliament. You can decide to make your final decision for Yes or a No.

It's almost as if we are intentionally ignoring all these years of progress made by science to solicit public opinion.

Please note, I'm not talking about Brexit but the act of indulging into a referendum in general.