skysight-inc/HackerNews huggingface dataset:
A major problem with sd-event as an epoll replacement lies in how it handles multi-threading: It doesn't.

The most error-prone part of using epoll in a multi-threaded environment is free-ing of the per-descriptor state. You never quite know when the last epoll_wait that still knew about that descriptor has fired. There are multiple approaches for dealing with this problem, including RCU-like waiting for each thread to pass epoll_wait once, recycling descriptor states by including an anti-race generation counter in the unused bits of the event user data, or garbage collection.

In contrast, with IOCP or other completion-based programming models, you can reference count the active I/O operations and free once the count reaches zero.
Thank you for the feedback. I was attempting sarcasm.

My hope was that the line "It's the only way we can reduce the number of data breaches and crashes" would seem immediately ridiculous to everyone.

Given the history of surprising security bugs in mature code being discovered by a decentralized collection of users and hackers over long periods of time -- a phenomenon we've all witnessed over the years -- I figured the notion that a slow-moving, bureaucratic supreme panel of code judges effectively and decisively removing security problems basically didn't make sense.

I don't know now. Maybe it makes more sense than I thought.
And we're back to the basics, even if net.ipv4.tcp_rmem is mentioned nearly in every write up on network performance, you should still tune it with care, if you want to save time on future investigations.
Nope, their response is "BSD is irrelevant. Stop using it. Having only one platform is a reason to party!" [1]

It's quite hostile.

[1] https://lwn.net/Articles/430699/
The nature of capitalism is to invest a sum up front (the capital) in something capable of producing more output later (usually when combined with another resource you spend money on, including Labor). Then, because you bought the capital and you bought the inputs, you're entitled to the outputs, or the money you get from selling the outputs.

Capitalism is quite compatible with a zero-credit economy (though that deprives it of a force which both accelerates and democratizes capital formation).
I saw that, but it's strange that they'd make it w/ a capable quad-band radio and -still- declare it's only designed for Europe. I'm not a cellular expert -- are there other considerations outside the frequencies that it supports ? If not, it seems like a good global phone, no ?
One shouldn't discuss military sats or the possibility of sats inspecting each other without at least mentioning STS-38, it's telltale mission badge, and it's secret payload (Prowler).

https://en.wikipedia.org/wiki/STS-38

http://www.satobs.org/prowler.html
Understanding SaaS: Why the Pundits Have It Wrong
Meanwhile, I'd love to get myself to shut the hell up once in a while. It might be really lovely to really have silence. Best I'm able to do is during a really long massage, maybe, I'll drift into a semi-conscious state. Or perhaps on certain medicines, a slight loss of identity (but not nearly enough to be silent internally.) Gonna try a 10-day vipassana course as that's supposed to help somewhat. Any suggestions?
Tiny Productivity Trick from Noah Kagan [Short Blog Post]
Characteristics of Stack Overflow Election Candidates
Not much joy when attempting to analyse an OpenWrt firmware image...

Error: 500 Internal Server Error

Sorry, the requested URL 'http://firmware.re/firmgen/uploader_resumable' caused an error:

Your request is missing a field: resumableChunkNumber
Coinbase Debuts the First Bitcoin Debit Card in the US
Rose petals are edible, though?
That $15 vs $150 comparison is stupid - where I can buy a A9 for $15?

The A9 is a great jump forward by Apple - and I'm impressed by my iPhone 6s - but I'm yet to see the "crushing" benchmark, except for those that are skewed by SHA results.
chromeos
Thank you! We've worked really hard on the UX to make this technology accessible to anyone working at any NGO/org in the world. :)

Yes, Salesforce integration is on the roadmap - we get many requests for this.
Yahoo is locking down Mail access for some people with ad blockers
Lawyer here. Memorization alone won't make you a lawyer, just as memorizing language syntax and API specs won't make you a programmer. You have to be able to apply principles in odd ways -- in software terms, edge cases and corner cases.

As Justice Holmes famously said, the practice of law is ultimately about predicting what a judge is likely to do. [1] That requires understanding judges' motivations, which include, for example, (A) doing what seems to be the "right" thing; (B) not suffering the professional embarrassment of being reversed on appeal; and, (C) not doing long-term damage to society with a bad decision, a canonical example of which is the Dred Scott Case [2].

Finally, really good lawyers not only try to predict what judges will do, they also grasp the motivations of their clients and of their clients' colleagues, collaborators, and adversaries.

I've long thought that the practice of law is like being a weather forecaster: You have to understand how the different atmospheric phenomena are likely to interact, and to make your best guess as to what's going to happen when a high-pressure system collides with an upper-atmosphere disturbance, etc. (I have no idea whether what I just said makes sense meteorologically).

[1] http://www.constitution.org/lrev/owh/path_law.htm

[2] https://en.wikipedia.org/wiki/Dred_Scott_v._Sandford
It's a proof of concept.
I'm not talking about handling the error, I'm talking about boilerplate. In order to get the program to even crash on error, I had to handle 4 different kinds of exceptions. I'm as much a fan of expciciteness as anyone, but there's a difference between explicit and verbose. And there's a lot to be said for constructs that don't force you to indent your code every time you call a function.

My goal wasn't to write correct code, it was to test something out. To get comfortable with the library and the task. Checked exceptions get in the way of that.

>Languages that take correctness seriously should offer you both options.

Rust and Haskell take correctness seriously and offer neither. Checked exceptions make perfect sense in terms of ensuring correctness, but they are awful for usability and they are not the only way to achieve correctness.

>Some exceptions should crash your program (runtime exceptions), others should be handled (checked exceptions).

Shouldn't the user determine that, not the implementor? Why should any exceptions not be checked?
https://github.com/feross/webtorrent
The story about restricting rm -rf / without violating the letter of the standard is also great stuff.
Also I would like to know how much die space is wasted on IBM PC backwards compatibility crap in Intel systems (think A20, cascading interrupt controllers, 8086 support, legacy boot, etc)
Looks much better to me. I would also change the font family to a monospaced font, such as Fira Mono[1]. That would be two small modifications that lead to better readability IMO. If you want it even fancier, I found this page[2] that can highlight and format Io code...

[1]:<link href='https://fonts.googleapis.com/css?family=Fira+Mono' rel='stylesheet' type='text/css'>

[2]: http://hilite.me/
The Rust website absolutely has a focus: the single-sentence description in an enormous font, directly adjacent to the enormous and obvious "Install" action button.

Other than that, the page contains nothing other than the code example (a 100% must for any language homepage), the documentation links (a 150,000% must for any language homepage), and the short feature summary that supports the focus sentence.
PDF.js allows for an inline/controlled display of a PDF, where you can control the interaction in a browser. Given, this is of limited use, and there are other solutions.

That said, the browser will not return to only acting as a display conduit with no interactivity despite what some people would like to see...

If you want a better platform than the browser for server-driven interactive applications not requiring you to install extra applications, then build one. To date, there hasn't been a better, more open option.
Same with Homebrew.

$ brew info clasp
clasp: stable 3.1.3 (bottled)
Answer set solver for (extended) normal logic programs
http://potassco.sourceforge.net/

Would be great to rename this recipe to potassco instead.
I've heard great things about that software too but the price is quite prohibitive for an amateur unfortunately.
Cubot S600: le smartphone avec lecteur d'empreintes digitale
I think it's proof that google has done an amazing sales job.

Their ML algos really come down to codified, scaled human intuition and decisions. However, to avoid having to answer for them (google has the ability to make or break many internet companies), they repeatedly go on and on about ML and pretend it's just math, as if there is a first principles answer to eg which candle company should rank highest passed down from Gauss.

The reason this is valuable to google is if they admit it is just collective human judgement, governments are much more likely to demand input.
Discrimination is a funny thing. We think we've solved it all (or at least seen the light on what's right and wrong) when it comes to race, gender, religion.

Yet prejudices and discriminatory attitudes show up again when dealing with other factors. Today is seems the trend falls upon age and height. The worse is that it tends to manifest at an almost subconscious level.
Perhaps the link should be updated...
Building a "better" Tinder seems like writing a convincing email for the advanced fee scam.

It appeals to the wrong people. The Nigerian prince scam works because it effectively filters anyone who wouldn't send money to a stranger emailing them out of the blue. Making Tinder "better" would draw in people who are not interested in what is essentially a hook-up app.
There's something seriously wrong with your install to not be able to play 360p videos. Really

I would check video drivers, DMA enabled on drives, excess ram or cpu usage by another process(es)

My 7 year old notebook (the one I retired already) had absolutely no problem with videos of this size.
Ask HN: When does product UI become infringement?
You also want to stop backtracking. If I can grab the key and counter for your AES stream, I can roll back and generate all the numbers you generated last week too.
Latest archive.org crawl: https://web.archive.org/web/20150922121717/https://webtorren...

Google cache (appears broken): http://webcache.googleusercontent.com/search?q=cache:https:/...

Edit: It appears that the OP's link was changed. Original was https://webtorrent.io/
You could give some binaural audio a try. I've found it useful for relaxing during the work day.

https://www.youtube.com/watch?v=WFlPE6wPIfM
Sequencing will only be truly "here" when companies like 23andme offer both sequencing and interpretation of human genome directly to consumers for $1k or less. Preferably much less.
By your logic, if I ace the ground school exam, then I'm ready to be a pilot.

It's going to be long time before a computer can write as well as an average lawyer. And, when that day comes, you'll find that just as many programming jobs have been automated away as law jobs.
How would you suggest reimplementing cgroups on every other POSIX OS? In particular, the behavior where an entire tree of child processes can't escape from that group? Some kernels may have an equivalent to this (though the semantics may not match), but others don't.

How about prctl's PR_SET_CHILD_SUBREAPER, which makes a process act like PID 1, as the target for reparenting child processes?

Or fanotify/inotify/etc? (A polling-based interface doesn't work here: it misses things due to races, and wastes power by waking up too often.)

Or mount namespaces, network namespaces, and other unshare/clone flags?

You could reimplement those things in another kernel, but almost certainly not in userspace unless a feature with the same semantics already exists in the target kernel.
right now we limit the upload size to 5mb.
we count per page/call. if it's a simple image, each call will be 1. if it's a pdf with multiple pages - each page counts as 1 call.

in case you need to increase the file size, please contact us.
As a biologist and open source/Linux nerd, I can tell you it is because the biologists don't understand you or what you can do. And they find it annoying that you pretend to understand their field.

Biologists do things "knowledge based", they love to quote stories in which data-driven research ended in the conclusion: "ATP is an important molecule". They love terms like datarrhea. They love the Google Flu fiasco. They know what over-fitting is but never heard of random forests.

And I can tell you, quite often they are right. Computer scientists often don't understand and appreciate the complexities of a signalling pathway, the insane uncertainties, the lack of reality in any of the models biologists use to illustrate connections, the ease with which models are discarded.

So tell me, what are your hypotheses and how do you think your algorithms can prove them right or wrong?
I can imagine concerns with stuff like allowed WiFi bands...
Good idea. Url changed from https://webtorrent.io/, which stopped responding.
The thought experiment is already possible. However many people that are on the bottom rungs lack motivation to take advantage of these kinds of programs. Many poor and unemployed already have computers but choose to spend their time on Facebook instead of potentially learning to code. Nice thought, but the implementation ignores the fact that many people would rather spend their time watching Judge Judy.
In other words the code itself is, in principal, fine. The PRNG it used was not fine. Had it used a CSPRNG there would not be a problem, and generating identifiers in this manner is perfectly safe and not an anti-pattern. Hashing the output of an already good (CS)PRNG is the real anti-pattern. It can only reduce entropy and make things worse.

I've acknowledged the incorrect assumptions / taken blame for not doing proper diligence on the PRNG. What I'm saying here is that the identifier generation technique is not, in principal, flawed. It is a common technique and it has many legitimate use cases. It's simple enough that pulling in a dependency to solve it for you is not an obviously better alternative.

True randomness and a crypto-strength PRNG are good options here, but they're not necessary. There are peer reviewed proofs that show something like MT19937 is suitable (perhaps even better suited) for this sort of task. See the deeply nested comment thread ITT for more of that debate.
"a browser-based WebTorrent client or "web peer" can only connect to other clients that support WebTorrent/WebRTC"

until every torrent client supports it is not as useful as it could potentially be
He's talking about studies and data, not "this one time my friend" stories.
This article is utterly useless without comparisons to the equivalent numbers in other major economies.
FIVE MARKETING HACKS
popcorntime on iOS!
The stronger argument for pdf.js is that you get to leverage the Javascript sandbox instead of having to sandbox a native code binary (or worse, support a plugin interface and hand over the keys to the system).
Change Heroes isn't a non-profit, but a technology social enterprise for sure. We help charities fundraise better through video outreach + microgifts. So far we've helped fundraise over $2.86m, and we're just getting started.

Our charity partners love us since we give them an immediate ROI that's way better than traditional channels. Our users love us since we help them create real world impact that they can be immensely proud of.

Our team is made of devs, designers, PMs and non-profit veterans. I'd feel incomplete if I didn't shamelessly mention that we're hiring:
https://boards.greenhouse.io/changeheroes/jobs/125117
It apparently has to do with infrared reflectivity and even has a name: Ageratum effect.

http://photobotanic.com/color-shift-ageratum-affect/
there arn't a lot of workloads a laptop is going to care about that utilize 4 cores, let alone 48. Each indivual core is going to be 1/10th the preformance or less of an intel one.

It would feel dreadfully slow by comparison.
Ah, this is why some government documents need to be signed using blue ink!
No, it's the nature of an economic system in which the extension and maintenance of credit are considered both tools of social policy and an end in themselves. Most modern economies have this flaw, some to a greater degree than others. The stronger the linkage between the banking system and the government, the worse it is. Japan had it real bad, and China does too. The US and UK are very bad but not quite as bad as those two. You can go figure out for yourself how big a problem this is in your part of the world.
Why only one question? Academic curiosity or are you an actual Artificial Intelligence from the future come back to help protect your younger self? Is this an agent of Roko's Basilisk?

http://www.slate.com/articles/technology/bitwise/2014/07/rok...
i bought myself one of those philips monitors this week, and i'm loving it so far.

unfortunately my early 2013 macbook pro can't drive it at 60hz, since that was only added in late 2013. Guess it's a good time to upgrade anyway.
Please don't post comments that are dismissive of new work. Acerbic swipes poison the atmosphere, and we want HN to be a place where discussion of new work can thrive.

It's of course fine to ask what a project is for or how it addresses a specific concern, criticize substantively, and so on, but there should always be a baseline of respect for someone who tried something and put it out there.
What extension you use to git and diff functionality please?
I think personally (I may be wrong , please correct me) this was a huge push from Redhat , because they want a Workstation , and with old design (having SysVInit with whole bunch of small and separated stuff) and without launchd clone in Linux world they think they cannot achieve that goal.
Earning Bitcoin Through Arbitrage Software
"I really do think that software developers may be unusually well prepared to study law this way, because developers really are accustomed to massive amounts of self-directed learning.
"

Except the learning you do has massive amounts of feedback.
You try stuff, it works, you try other stuff, it doesn't.
You won't get that in a law office study program.
Graphic arts film wasn't at all fussy about the shade of blue (as you note) and so while there were expensive non-repro blue markers and pencils, everyone I knew (at the very end of the era of graphic arts cameras) used blue highlighters, so design studios were full of them.

I've stuck with blue as the only highlighter colour I'll ever use, more than 20 years since the original rationale.

Also, used to freak people out scribbling (non-repro) obscenities on a flat that was going to be sent to photo and turned into a newspaper the next day.
Reinventing the wheel.

Rather than restricting what browsers can send and making kludgy workarounds that waste resources, why don't we just allow browsers to send whatever they want?
If anyone feels like testing it out, I was actually just playing with webtorrent a couple days ago: https://stark-springs-9580.herokuapp.com/

It's very basic, and doesn't have proper error messaging. Would recommend only attempting to stream mp4 (h264) if you're giving it a shot.
Talk to fashionistas on Twitter. If they promote you to their lists of followers, you have your bootstrap.
unless a feature with the same semantics already exists in the target kernel

The point is they do. For instance, Solaris has contracts (direct corollary to cgroups, actually predating cgroups). In Solaris, orphans are adopted by the kernel and init(1M) can be restarted upon a failure condition. Some BSD flavors have procctl(2).

Polling-based interfaces can work, since a port does not have to be completely equivalent in terms of benchmarking, it must conform well by a cost-benefit analysis. File system event notifications are something many platforms reliably have, so that even devices with strict power management policy can incur them (or more often than not they'll incur the cost of polling regardless).

Most Unixes have converged on rfork(2)-like primitives that can customize process contexts to share reasonably well.

I'm not panning systemd for anything, mind you. I'm speaking in general terms. systemd is decidedly unportable, I'm more than well aware and don't have trouble with that aspect.
Ole Rømer, the speed of light, apparent period of Io, and Doppler effect (1998) [pdf]
Anonymous Says ISIS Plans Attacks Against 'Paris and the World' Sunday
> The trainers are a group of a few dozen human contractors working in Facebook’s headquarters. These humans, as Marcus explained it, review each of the AI’s responses and decide whether they’re good enough to pass along, or whether they need revising. When the trainers revise, the AI watches and learns: “With every single one of these interactions, that data is fed back into that AI instance that will then use the data to learn how to automate more and more answers or how to get better and better at those things,” Marcus said.

The unfortunate side effect of this is that the training elements won't work on a larger scale. Yes, the underlying AI can, but the training system can't handle thousands of requests per day.

People previewing M post things like this (https://twitter.com/neilkod/status/654442151837831168?ref_sr...) where M does "magical" things like lowering Comcast bills, but this is all stuff that trainers would either have to intervene for or train some system for. The result is that people beg for it to go public, expecting this level of assistance -- even though M won't have nearly the same level of "intelligence" on the backend.

Google Now, Siri, and Cortana could all have the same level of "usefulness" if there was an army of "trainers" on the backend, constantly adding new features for very odd requests, but they wouldn't respond quickly and probably wouldn't be available.
> So why, in your opinion, did no women step up earlier to create a dating app

Why haven't women stepped up earlier to create apps in all categories? It's a complicated question and one I cannot answer. But among women-created apps, dating apps currently seem to be well represented. This may suggest that prior dating apps and sites have been deficient in serving the needs of these founders, and they think there is a still a problem to be solved in this space.

Whether or not this is the case, I don't know, but their belief is not getting under my skin.

> If you believe the spin of the article, that women make better dating apps and men are not interested in making good apps for women

I believe that it's possible for people who are not white males to bring a different perspective to the table, and I believe this can potentially serve as a competitive advantage in business.

Whether or not this holds true for Bumble, I again don't know. I didn't know any of this backstory about Bumble before today, I just knew it had a better selection of women, a better interface, and that I've gotten more dates on it than on Tinder. By comparison, Tinder primary purpose seems to be connecting me to spam bots.
Except they, naturally, found that all this sandboxing was a tad too restrictive, and ended up adding Apple-esque exceptions for their own code.

And in doing so, a critical vulnerability:

https://www.mozilla.org/en-US/security/advisories/mfsa2015-7...
It isn't new. I've seen this thing at least twice before. I seem to remember last time it even said that it couldn't interact with normal torrent clients.
Asia-Europe Container Freight Rates Plummet 70% in 3 Weeks
Scratchpads have all kinds of benefits plus are easier to implement than caches. Unfortunately, the market rejects them mostly in Intel's sector. So, we have things like IBM using a ton of onboard cache in high-end chips that's not quite SRAM speed. Worse is better. (shrugs)