skysight-inc/HackerNews huggingface dataset:
"It happens" doesn't imply there's any need for it to happen.
>The caller can choose to ignore errors using `%%div(5, 1)` or can propagate errors to the caller, similar to Rust's `try!`, `?` using `%return div(5, 2)`.

>I find this so easy that I'm much more inclined to think about edge cases and handle errors up front. I find when writing Rust the extra setup and management of errors adds a fair bit of tedium (although to be fair, with error-chain and proper setup at the beginning of a project this isn't too bad).

How is this different than say:

5_u8.checked_div(1).unwrap()

That unwrap() is performing the same thing as your %% example, if I understand it correctly.

Are the Error types in Zig on the stack or the heap? By default Rust puts everything, including errors, on the stack, which means that the size of the return type always needs to be known. To make this easier you can return Boxed errors:

fn this_errors() -> Result<u32, Box<Error>> { ... }

And then error types can be very simple. Also, I recommend people getting into Rust really checkout error_chain!, which is a macro that helps in combining all the errors that your library might need to deal with: https://docs.rs/error-chain/0.11.0/error_chain/
Just applying for a mortgage in the UK. Got three different reports from three different companies. Took about 8 hours total to do it and each of them had big issues. One with wrong addresses, another with credit problems because of a company I had no idea about and the other didn't even have the correct spelling of my name...Banks were making decisions on the back of that. Anything is better than that.
ProtonVPN Free Avaiable to Download Globally
Hmm, I'm not sure I quite get your strategy. If you want to support back to Protobuf 2.5, then you'll need to use proto2 schemas (https://developers.google.com/protocol-buffers/docs/proto). Proto2 schemas will support extensions forever (even after Protobuf 3.0), so there's no need to avoid extensions.

You are only using proto3 schemas if you start your .proto file with 'syntax = "proto3;"': https://developers.google.com/protocol-buffers/docs/proto3 But if you do this, your .proto file will no longer work with Protobuf <3.0.

We have been working on some optimizations to help the linker strip generated code where possible. I recommend compiling with -ffunction-sections/-fdata-sections if you aren't already, and -gc-sections on your linker invocation.
C++ has tuple<> for this.
Plaintiff Suing Grubhub Admits Lying on Application, Barely Working His Shifts
How? Honest question. I'm more familiar with the cryptographers behind Zcash.
I'm a normal person. My first attempt at key management was an utter failure, accidentally broadcasting a private key instead of the public one.
Show HN: Super thin iPhone 8 Cases
Not a lawyer (ironically) but afaik there are all sorts of laws governing an attorney-client relationship, and it's possible to implicitly enter into such a relationship by giving something resembling legal advice.
Interestingly the Klamath people have an oral history of the eruption of Mount Mazama and formation of Crater Lake over 7000 years ago.
The overall drop was from 66% of the population to 63% in the last 15 years. But really the drop was from 2007-2014. https://data.bls.gov/timeseries/LNS11300061 Basically an entire major metro area of people who would have worked but don't. The fraction of people on Social Security Disability is only up by 1%, so the other 2/3rds aren't bringing in money. Another way of looking at it is to say that in 2000 only 8% of "prime working age" males didn't have a job. By 2014 it was 11%. A relative increase of more than a third in less than a generation.

The other interesting thing is that women's labor participation is also down. There was pretty much an unbroken increase going back to the 50s, and then around 2000 it started to drop. The thing is, the drop in percentage points (the total number of non-working people) is about the same for men and for women, as far as I can see. So I don't understand where the idea comes from that it's men who are getting hit particularly hard.
The dictionary definition of insider trading. Have fun explaining this one to the SEC.
Pretty much all databases are already a transaction log that gets materialized. Postgres and many other RDBMS take in changes, write to the WAL, then provide tables that are views of the latest data of each row.

If you want total history and the database doesn't support this automatically then you can easily insert news rows instead (like you described) and then just create an SQL view that then shows the latest versions of each row, while also adding views for all kinds of other data access patterns. Companies have been doing this for decades because it's self-contained, fast, and reliable.

Using Kafka and separate processes to do this is deconstructing the RDBMS into separate layers that you now have to manage yourself. Useful if you really have that kind of scale but at 100GB of data, it's just silly. Use kafka as a work queue but leave the database work to actual database software.
Client-side Javascript is executed in the browser, not on the desktop, it is sandboxed, it has no unlimited access to my local data on the disk.
Not click-baity enough?
Although there have been marked improvements recently, the npm project has been crippled by politics. Much of what yarn fixed were issues that technically could have been easily fixed in npm, but could not be due to political concerns.

For example, the npm project was reluctant to make any changes that broke backwards compatibility, even when the existing feature was outright unusable (eg, shrinkwrap). By contrast, Yarn was free to break backwards compatibility since it was a new project, and it's popularity, in turn, allowed npm to finally feel free to start fixing things.

Yarn has helped npm hugely in my view, but it was only able to do so as an independent project. The current version of npm has working lockfiles because Yarn shipped working lockfiles, but every proposal to fix them pre-yarn was shot down out of hand for (in my view) nonsense reasons.

(This helps explain, incidentally, why yarn has had some much support from parts of the npm dev team. They knew, eg, lockfiles had to be fixed, and if it took yarn as a catalyst, so be it.)
Dan Boneh has a course on the subject https://crypto.stanford.edu/cs251/

Lots of cryptographers hate cryptocurrencies, lots of them don't. Alessandro Chiesa is being Zcash for example.
> I don't usually think of structs by the order the properties are declared

In C++ you have to, since it's guaranteed by the language that members are initialized in order of declaration (within the struct). And, like C of course, it also determines memory layout, padding and alignment

> Are structs typically ordered data structures in c++

Yes, and compilers like Clang even let you inspect their memory layout
Sources? I'd add that even if you can show he has no support in the academic world, his framework has been a life changer for me in how I relate to and negotiate with conservatives.
No there is not a law against giving legal advice if you're not a lawyer. It's lawyers who are sometimes prohibited from giving legal advice. Non-lawyers have the usual freedom of speech, restricted in the usual ways.

Claiming that you are someone you're not on the Internet is so commonplace it is hard to see where any trouble would come of it by itself. Again it's different if you knowingly cause harm to others.

I'm not a lawyer. This is not legal advice. Or maybe I am and it is. Who knows.
No: 128 bit address space isn't designed to be hard to scan (see multicast for example.) One of IPv6's design goals was/is to avoid running out of address space - that means a large space. If you naively scan individual addresses then you will not get very far.

Please read up on IPv6 before posting - it's been available for 19 years or so now. I'll grant you that a lot of the write ups on it are absolute bollocks but you should be able to find a reasonably good treatise somewhere. Look for names that you trust.
I did this about 2 years ago with all 3 of the major agencies and in addition to the benefits described in post and comments, my junk mail volume dropped considerably. I don't know if it's always the case but this did not cost me any money.
I'm not trying to say cryptographers hate all cryptocurrencies, but I get why it sounded like that.
Indeed, some films are better on the "big screen" than on a television. But that's a good reason to get an HD projector, not go to the cinema.

I've had a projector for nearly five years now, and I have never once missed going to the cinema. Instead of going out to a rather dingy venue, paying for a ticket, and having to share the space with other people who may not act respectfully of others, I can just torrent Blu-ray images for free and enjoy them in the comfort of my own home.
How else do you expect them to start the cars and open the doors to the houses they bought on credit?
Making a central nervous system for human computing
From the actual descriptions in the various articles (including the Backup and Sync help pages, and the July announcement of Backup and Sync availability), “Backup and Sync” is basically a rename of the Drive desktop app, with more configurability of sync-ing behavior (locations, handling of deletions, etc.)

See, especially, https://support.google.com/drive/answer/2374987?co=GENIE.Pla...
The number of affected people was 143MM, which I think is numerical shorthand for "everyone we've ever known about."
Yeah I had a hard time finding out what this site did.
Yeah, this kind of like/dislike score is not a perfect measure of quality, especially when it comes to personal tastes.
My favorite movies are consistently getting rotten scores, so I stopped even wondering why. And the movies I absolutely hated were rated high. Quite soul crushing to go there tbh :D
How can they prove it was me who waived that right if the data used to identify me was breached by them and potentially publicly available? The snake is eating it's own tail here...
That seems incredibly stupid. The CFO especially would be hard pressed to convince anyone either that he 'didn't know' there had been a breach or define himself as not an 'insider.' If the facts are as reported these folks are in a world of hurt.
Shit. I already submitted and should've read the fine print. I need to un-enroll.
A useful thing of this is also the portability story. Go for example is pretty good as far as I'm aware of cross-compiling to a different target. The main problem would probably be the extra implementation needed, instead of just writing a binding to libc. It also is more popular lately to prefer static linking vs. dynamic for deployment ease too, which not requiring linking to libc may help.

For zig it is not all or nothing of course. It is pretty easy to link and use c if wanted. The following for example asks the compiler to link against libc.

zig build_exe main.zig --library c

One other benefit that zig gets is more compile-time execution opportunity. The math library for example being written in zig means that we can determine `math.log(7)` and use it for compile calculations when using libm we couldn't.
One layer above Stripe
I'm not competent to compare the work, but there don't appear to be any professional academic cryptographers on either the core or research lab teams.

https://getmonero.org/resources/people.html

Whereas the ZCash team includes several people who were well-known cryptographers before ZCash came along.
Adjusted for inflation, earning power is less. Taking my date to a $3 movie in 1992 was a relatively smaller investment than taking my kid to see a movie for $15 today.
For trying to evacuate people in front of a life-threatening storm? That's not reckless. (Granted, the media might paint it that way...)
I'll still add that Homestead and Laravel are amazing.
> I'll bet $5 that signing up for their monitoring service comes with a class-action waiver

It does indeed.

https://trustedidpremier.com/static/terms
Reports. Batch processing. Business logic in desktop applications, provided you have a good framework and a compiler that works for your target environment. (I can't get into too many details for contractual reasons.)

COBOL is English and generally easy to read, and the worst pitfalls are well known. As a result it's also easy to teach to anyone that has the slightest concept of logic. Especially managers, accountants, or other typically non-tech folks that ask for such reports or applications. It's much nicer to write software for folks that understand the limits of the tools being used to create it.
Transactions are encoded into the blockchain to set up a "lightning channel" that incentivize the participants of off-chain transactions to correctly settle the net payments of the channel on the chain later. Only once it's set up on the blockchain can users use it for off-chain payments (which can be instantly confirmed and have much lower fees).

Once the channel is set up on the blockchain between two users and has some amount of bitcoin committed to it, the participants can securely transact between each other with only private communications between each other, without requiring transactions in the blockchain. When either user is done with the channel, either of them may broadcast the settlement transaction which withdraws the committed funds in the correct amounts to each participant. (Every time the participants make a transaction between each other, they create create a new settlement transaction, and a separate transaction which invalidates the previous settlement transaction. These are regular Bitcoin transactions, but they're held privately by the participants instead of being broadcast on the blockchain immediately. If either of the particpants tries to broadcast an earlier version of the settlement transaction, then the other participant can broadcast the invalidation transaction within a certain pre-agreed time, which rewards them the funds as punishment to the defector.)

Then the real fun comes from the "lightning network" part: if Alice wants to send funds to Charlie but has no open lightning channel to Charlie, but she knows that both her and Charlie have an open channel with Bob, then she can do an off-chain lightning transaction through Bob to Charlie, without any risk of Bob taking the funds for himself.
For some, it might be walmart. Previously, on hn https://news.ycombinator.com/item?id=8361329
IPv6 is not IPv4 (FFS.) Read up on multicast.

Do you actually have any experience of IPv6?
Hah, that's actually excellent news for those hoping for criminal consequences. It might be hard to put anybody in jail for their security negligence, but to me it looks like those three have served themselves up on a platter for an insider trading conviction.
I am not at all trying to demonize it.

I guess I stated it in the way I did because, most enthusiasts start thinking that LSD is "the answer" or "the cure" etc etc.. and get super 'bout it and consequently tend to reject the idea of any real negative consequences, because the experience really is truly amazing and even the day after can be even more amazing, in stark contrast of the 'hangover'.

So I just wanted to mention in spite of this, weird things do happen in very rare cases, and this could even be due to the fact that it's illegal and thus not manufactured with consistent/optimum purity.

Both of my friends were quite experienced with dozens of enjoyable trips under their belt.
Oh, please. Yes, most developers never need to worry about the performance of specific language features. But please don't trivialize the work of the people who do worry about it, as if you somehow know better than them.
If you (perceive to) lose control over one aspect of your life, it's normal to try to regain control over another aspect of your life. What he might call an automatic depression would just as well be explained as the person struggling to overcome their internal guilt of not being able to clearly locate their life's contributions in an endeavor. Then it becomes difficult to know if you're just floating, or swimming against a current.
They actually sell trust.

Perhaps they are overcharging, but they aren't serving a trustless function.
What if you cancel the planned trades when you learn of some coming news that disadvantages them?
No it won't prevent you from accessing your free credit scores.
Digital business without customer data
Well, Bayes theorem should let us, in theory, combine several small studies into the equivalent of one larger one.

I'm practice it's harder than simple number crunching due to methodological differences between studies, but it seems a shame to call a study essentially worthless.

I like to be a little optimistic and think, "Data is data and data is good. The challenge is in interpreting it."
Do you see that thing above your post? "noja"? That's your identity. Your SSN on Hacker News.

What proves that it is you to Hacker News is what you type into the password field when you log in.
This is garbage. Rotten Tomatoes are way too positive IMO. I have wasted good money on 95+/95+ movies only to find they were absolute rubbish. A good recent example is John Wick 2. I really like the first one, and based on the RT score I didn't think twice about going to watch the second. Only to find it was the most mind-numbing continuous violence I could even imagine, without the noir of the first one. And there were a string of similar movies that got unbelievable scores only to be absolutely average.

Yes some get terrible scores, and probably deserve it. But the worst crime is all these big blockbuster movies that are rated 98/99 and should be somewhere in the 60s or 70s.

My solution - just don't go to the movies, it has become an ongoing disappointment and waste of time. Wait for some critical YouTube reviews that actually analyse and explain in some depth why a movie is good or bad then maybe consider getting it on DVD or something.
Angular 5 Will Support AoT with Watch Mode
https://news.ycombinator.com/item?id=15196309
I love linode! But, why no remote? :( (let's be honest, who wants to move to Philadelphia...)
It's hard to prove intent.

If there's a history of these execs selling similar amounts of stock in other quarters, then it's probably not insider trading.

If the paperwork trail started an hour after the first meeting where they learned about the breach, and they had never sold stock before, then it's probably insider trading.

Since the truth is somewhere in between, it's hard to say. It's hard to believe that these people didn't recognize the optics of what they were doing. But, that's why we have investigators and courts.
Perhaps Equifax could transition to a key escrow service for those who trust giant corporations more than themselves.
Tackling terrorism with cryptocurrency and AI
"If they punch you in the face your options are:"
"Ok so how do you de-escalate when the perp charges for you?"

In both the scenarios you present, it is far to late to draw anything. By the time the person is punching or charging you from less than 22 feet away (google the 21 foot rule) you do not have time to draw a weapon, taser or baton. Your only option at that point is direct physical altercation. If you try to draw something it's going to get knocked out of your hand during the altercation and then it's a scramble to see who picks it up. As for getting the weapon taken away from you, while it's in the holster, cops really, really ought to be using and training with level 2 or 3 retention holsters. These make it easy (if you train with it) to draw a weapon from a holster on your hip, but almost impossible to get the weapon out when it's on someone else. If a cop chooses not to use a retention holster, that's their choice, but it's trading safety for convenience.

As to the Prevention article, it seems to me that if we want to reduce the number of cops killed with guns, then the low hanging fruit is that we need to stop sending lone officers to domestic disturbance calls. This study makes it clear that DD calls are an extremely risky type of call and police should approach them extremely carefully. " they would be ambushed and they weren't prepared," Swedler says. No less-lethal weaponry is going to solve that problem.

The point I and others are trying to is that there are very few scenarios where using a taser actually makes sense. Most of the time when they get deployed it's as an alternative to deescalation, or to punish a perp for not 'complying'. They're not intended as a substitute for a firearm, they're a substitute for a baton or physically taking down a suspect, and I think the evidence at this point is pretty clear that they are not any better at being less-lethal.

But to get back to the subject of the article, the issue isn't cops using tasers (although there are issues there), the problem we're having is that Taser the company is inappropriately inserting themselves into the legal process, and using bad 'science' and the threat of lawsuits to prevent the actual real-world safety of their product from being analyzed. This is bad and wrong, I think we can all agree.
Perhaps I'm just too used to Gmail, but it always seems to take me forever to work out the equivalent of things like "from:me to:susan in:folder has:attachment".

And in outlook's web interface, this all seems to be even worse. Emails somehow just vanish. Not good.
Hi, Adam from DL4j here. I'm really excited to see this. We will work on supporting this format as well. We have a new pytorch like api coming out (dynamic graphs etc), so this fits nicely in to that.

I know a lot of cynics are looking at this and are thinking this is all politics. Honestly: I am glad something like this exists as a framework developer.

We would like to build an easy to maintain set of benchmarks for perf comparisons and have found that to be hard to do. We were originally going to lean on keras with our model import for this, but if we can get say:

dynet and chainer on board with this as well, I think it will help the ecosystem as a whole move forward.

(If you're asking "why" it's hard, main reason for us was the primary java interface, we are fixing this with a new python interface based on pyjnius)

Overall, I don't think the OpenCL folks will be able to pull this off (the field moves too fast). I feel like this is something the people who actually build the tools should do.

Ultimately, I would be surprised if tensorflow didn't hop on board at some point. A lot of ML models are being built in pytorch first now. No one loses having that easily accessible.
In the past week, I have taken care of 2 patients with multimetastatic cancer. Their history is that basically, they suffered pretty much all complications you could think of from their treatment (surgery and chemo). The US healthcare system went to extreme lengths to ensure that those people are "not let down". Their situation now is that they are dependent on family, breathe through a tracheostomy, are blind, unable to move normally due to shortness of breath and neuropathy, and generally have a dismal quality of life. They still come to the clinic once in a while to have the most recent body part affected by metastasis removed. Yet, those people are not on clinical trials because it is felt (not by me mind, but not my call...) that there are still things to be done with presently known treatment methods.

All that to say, try to walk in a terminal patient's shoes for a bit, and perhaps you'll discover that the cost of increasing lifetime can be higher than you are willing to pay. Plus, we don't have the manufacturing and logistic capabilities to provide every possible experimental treatment to everyone.

Finally, you should realize that a lot of people have financial, academic, or even political interests to incentivize participation in clinical trials. It is precisely to avoid that, that patients must be informed that trials are not designed for one's personal benefit.