skysight-inc/HackerNews huggingface dataset:
That reminded me of my wife's friend who wrote a book[1] about her experience of outsourcing dating. Being a woman she has the reverse problem of too many suitors. She outsourced the vetting process and initial conversation to the hired assistants (yes, plural), with mixed success.

In my experience any kind of scenario where friction is removed (never have been on tinder, but I would imagine it is even more pronounced than a crowded bar) leads to that kind of imbalance. One of tradeoffs that might work for some males is to put themselves into a kind of situations that puts them next to females for a prolonged amount of time. School, work, and neighbours are classic, but that also includes dance schools, sports, and frequent parties with mutual friends. Women are much more likely to spend time with you if they feel like they already know you a bit.

[1] http://datingvandalized.com/
Another possible approach:
https://cloud.google.com/blog/big-data/2017/06/how-qubit-ded...
Out of curiosity, how do you define a long flight? I've found that most Americans call a flight "long" if it's 4-5 hours. But in my circles -- London-based, doing business in Asia -- "long" means 9-13 hours. Which is qualitatively very different.

(Mind, in those circumstances, a choice between being able to stretch out in business class vs. having WiFi in coach would tilt even harder towards the former. But after about 8 hours in the air, I do find a lack of communications really starts to bite.)
This is a depressing read. Here we have a "startup founder" (=relatively wealthy), who isn't that bad-looking, using a complicated script to massively increase his opportunities and he still can't get a date. Is there even hope for the rest of us?
You can be aware of those things in lighter levels of sleep. Some of the protocols used in lucid dreaming research rely on it.
Personally, I love how there is a direct correlation between "Thought Leaders" and spectacular corporate failures.

At this moment the CEO of the Australian CPAs has just been fired after losing millions of dollars. He spent many millions of the member's money hosting a TV show and raising his personal profile to become a "Thought Leader"

Instead of him being paid millions in a golden parachute if there was any justice he would go to jail.
> And C++ can't do delegation

Sure it can. The syntax is a little different, though. And there are a few ways to do it. Here's one:

#include <iostream>
#include <functional>

struct Container {
template <typename Self>
void announce(Self const & self) const
{
std::cout << "these are my things: "
<< self.things << '\n';
}
};

struct Bucket {
std::string things;
std::function <void()> announce;

template <typename Delegate>
explicit Bucket(
Delegate const & delegate,
std::string const& aThings) :
things(aThings),
announce([&](){ delegate.announce(*this); } )
{ }
};

int main()
{
// Container works with anything with a 'things'
// attribute
Container container;
// Bucket takes anything with an announce method
// that accepts a Bucket-like object
Bucket bucket(
container,
"planes, trains, and automobiles"
);
bucket.announce();
return 0;
}
ZeroKit by Tresorit: End-To-end Encryption and Authentication
Nice overview of the pitfalls of C-parsers, their hardening, a presentation of Rust advantages, parser combinators, the nom crate, its usage, the application to VLC and an intrusion detector, the integration with those complex existing C codebase, fuzzing and a few ideas to improve rust for more security.

And I am happy to see the ANSSI here :)
Question as a non low-level developer, and please forgive my ignorance:

How is it that we're essentially 50 years in to writing sorting algorithms, and we still find improvements? Shouldn't sorting items be a "solved" problem by now?
Craigslist often has most of what you'll need every weekend, often in the same neighborhood.
Solugen (YC W17) is hiring a director of business development
Why Are Bird Eggs Egg-Shaped?
How to Avoid the Trough of Sorrow
Verified binary multiplication for GHASH
SimpleLegal (YC S13) Announces $10m Series A
DELET TH- er, I think they hit more often than not. Person of Interest has a lot of duds, but I chalk that up to it being network TV.
Run better social media contests
Haha well he got plenty of dates (150 of them), he just never found that special someone.

TBH I think his problem was that he didn't quality his leads well enough.
BQ doesn't have primary keys. Perhaps you are thinking of the id that can be supplied with the streaming insert? This has very loose guarantees on what is de-duplicated (~5m iirc)
I found it easy to understand and I knew nothing about small talk (examples were in smalltalk).

I found it helpful - it allowed me to think and talk about structures in more explicit way, so problem solving got easier.

I think it should be read when you already have some experience with project that has some logic in it (e.g. not crud and also not frontend - frontend requires entirely different structures imo) where you had to make decisions about what goes where. It cease to be abstract then (or your brain adjusted to thinking in more structural way).
Comparing a politician who is currently in office to a civilian is unfair. If a newspaper decided not to publish a speech by the leader of Iran because "wiping Israel off the map" is racist; it would be doing its readers a disservice.
Good idea. Possible we are looking too mass market at the moment. Will keep this in mind.
I just renewed my EFF membership and would encourage others to do so as well.
Not "railing against" to be fair to your original point but this study (FiveThirtyEight thinks it's sound) says millennials value democracy far less than their predecessors.

As a % of people who think it is "essential" to live in a democracy:

Born in 1930s - 75%
millennials - 30%
https://fivethirtyeight.com/features/democracy-meh/
Seems it was more a case of the plaintiff not having standing.
> Because it's sort of like hotels.

Great example. Ever checkout without an idea of what your hotel bill is going to be?

> The doctor literally has no idea what you pay.

But if it matters to me, then it should matter to my physician. Most of them will come up with a reasonable response if I tell them "doc, I checked at the pharmacist but I couldn't afford those drugs you prescribed, what else can we do?" Most of them empathize with their patients and come up with an alternate treatment plan if one exists.

I don't think it's good enough to say "well gee discounts and providers and algorithms -- math is hard let's surprise you" because somehow they can figure it out at bill-generation time. At the very least, hospitals/physician's offices could produce a "given your insurance + the nature of your chief complaint, this visit will cost $x, these common diagnostics cost $y/z/w."
frequently the private prison contract contains minimum occupancy guarantees (like 80-100%). Thus government has to either send people to prison no matter what or to face the politically tricky situation when taxpayers' money would be openly wasted on non-occupied "beds".
This is a technical definition in terms of "elasticity of demand": see https://en.wikipedia.org/wiki/Income_elasticity_of_demand . Unfortunately it doesn't agree with what normal people hear when they hear the word "luxury".
Ask HN: Design tools
Trying to find a good list of design tools on Tablets for:

UI Design
Mockups
UML

DrawExpress is really nice for mockups, but there seem to be a thousand other tools released recently.

Anyone using tablets for real work?
Y Combinator Live Stream
It's been a pretty slow, sad unraveling of LANL (and to some degree the other two DP labs). The latest stories are pretty predictable given the transition from UC to LANS about a decade ago (I left the lab after the transition, since it was a morale mess - I really enjoyed my time there for about a decade before the change though). Things were already bad before that - the whole change of management from UC was in part due to a string of safety and security issues. Interestingly, I believe the issues that are currently being reported about have roots that trace all the way back to the last facility for doing that sort of work that got shut down up near Denver (Rocky Flats). The issues today are hardly new or novel - there has been some serious rotting going on within the NW complex since the Cold War began to wind down almost 30 years ago.
Platform9 Raises $22M to Make Open Source Cloud Infrastructure Tech Easier
Wasn't Vista one of the Windows versions that was known for having bugs?
I think it's fair to say that pdqsort (pattern-defeating quicksort) is overall the best unstable sort and timsort is overall the best stable sort in 2017, at least if you're implementing one for a standard library.

The standard sort algorithm in Rust is timsort[1] (slice::sort), but soon we'll have pdqsort as well[2] (slice::sort_unstable), which shows great benchmark numbers.[3] Actually, I should mention that both implementations are not 100% equivalent to what is typically considered as timsort and pdqsort, but they're pretty close.

It is notable that Rust is the first programming language to adopt pdqsort, and I believe its adoption will only grow in the future.

Here's a fun fact: Typical quicksorts (and introsorts) in standard libraries spend most of the time doing literally nothing - just waiting for the next instruction because of failed branch prediction! If you manage to eliminate branch misprediction, you can easily make sorting twice as fast! At least that is the case if you're sorting items by an integer key, or a tuple of integers, or something primitive like that (i.e. when comparison is rather cheap).

Pdqsort efficiently eliminates branch mispredictions and brings some other improvements over introsort as well - for example, the complexity becomes O(nk) if the input array is of length n and consists of only k different values. Of course, worst-case complexity is always O(n log n).

Finally, last week I implemented parallel sorts for Rayon (Rust's data parallelism library) based on timsort and pdqsort[4].

Check out the links for more information and benchmarks. And before you start criticizing the benchmarks, please keep in mind that they're rather simplistic, so please take them with a grain of salt.

I'd be happy to elaborate further and answer any questions. :)

[1] https://github.com/rust-lang/rust/pull/38192

[2] https://github.com/rust-lang/rust/issues/40585

[3] https://github.com/rust-lang/rust/pull/40601

[4] https://github.com/nikomatsakis/rayon/pull/379
I had not heard the term "browsewrap" before this but that part is very interesting in and of itself.
regular expressions work so well people have stopped thinking of them as a dsl and just see them as a language feature.
A Designer’s Guide to Selecting Colors for Your Product
How does this exist ? I like it.
These types of articles often have a correlation vs causation problem. For example, the article says that if you want better deep sleep, then move your bed time to between 9 and 10 PM. Ok, sure the data shows that people who go to bed at this time have more deep sleep, but why? Maybe it is a longer window to sleep in without light/noise? Maybe people with fewer sleep problems go to bed earlier? Is it because going to bed at 9:30 is magic?

What am I supposed to take away from this?
McMansion Hell Responds to Zillow’s Unfounded Legal Claims
I develop software for radio towers. This was a very confusing headline and article. I only figured out halfway through that I was thinking of the wrong TDD.

Test driven development is one thing. Time division duplexing is very different. I'll have you know that the latter did in fact live up to its expectations!

Showerthought: I wonder if our TDD codebase is TDD?
I think the op's point was that plaintiffs with standing can't afford to seek a legal remedy.
Maybe read the opening paragraph of the linked wiki article? It's within the first few sentences.
> It frequently counts me as sleeping when I sit down to watch TV in the evening, or read a book in bed. Sometimes I stay up until 1am reading and it always tracks me as deep sleep from 10pm when I got into bed. I usually take it off for my morning shower (It is waterproof, it just annoys me when washing) and it nearly always counts the walking from bed to shower as a few minutes of restless sleep and the shower itself as deep sleep.

Speaking as a Fitbit Charge 2 user, none of that happens with my device. I don't know how accurate the rest of the data is, but it does track sleep only when I'm actually sleeping.
Nothing really, except the slow moving bulk of bureaucracy and the fact that changing systems again would be a huge expensive task even just to go back to the old system, given that the old system has none of the current cases and may have been entirely removed.
From the 8 year old knowledge I was told by someone in said industry that worked on government nuclear projects..

These mobile nuclear power plants are transportable via classic steel rail way. The reactor is about the size of a normal train car. (Although I'd guess there are many accompanying components too.) The fuel is typically enriched nuclear matter in ceramic like pellets.

A single car of unspent fuel can power NY City for a month.

Big populations impacted that depend on electricity for food, water, and waste will receive these before rural populations.

I'd be interested in the restrictions to the public in such circumstances. Rationed EV charging, no home A/C usage, community cooking centers.
It's said that it's a very bad idea to do that. Women go to those activities to have fun, not for single guys to hit on them.
Unless there is some kind of sensor in the pillow, which can calibrate your sleep. None of these fitness trackers can accurately measure your sleep.
Babylon now supports TypeScript
CML is great and really deserves more attention.

We're lucky to have Andy deep dive into so many interesting subjects (modern JS engines, Concurrent ML), explain them in enthusiastic and well-written blog posts, and back it up with open source Scheme code.

In a previous blog post he name droped Mike Sperber; for reference, here is Mike's implementation of CML using Scheme 48's optimistic concurrency features: http://www.s48.org/cgi-bin/hgwebdir.cgi/s48/file/a4462425629.... I wonder if that was ever used for anything.
You're correct in your assessment, but the parent is correct in their criticism. I'll try to rephrase, though the particular example is not of particular importance.
Regulate operating systems.

When we're trying to protect ourselves from the vulnerabilities hoarded by our government, I think that asking them to regulate the OS might just be a step backward.
I think fair and transparent business contracts are a consumer right.

Insurance is statistical in nature, and contracts should be required to explicitly outline the scope of coverage. If I’m paying $5/m for coverage of manufacturing issues with my Playstation, I expect any manufacturing issues to be covered. I would also expect an extremely unlucky customer to receive multiple device replacements without any change of premium - because the contract and price should reflect the expected failure rate of the device (plus overhead + profit).

In that example, it should be illegal to boot an honest customer after the first failure… the only reason to do so would be because the insurance company set an artificially low rate that doesn’t reflect the ammortized rate of manufacturing issues. In other words: the business is breaching contract by charging me for a different service than I’m getting.

Although, given the clear scope of coverage, proof of malfeasance is justification to both refuse payout and ban the customer.

However, if I’m paying $5/m for unlimited coverage, I expect unlimited coverage. That rate is expected to cover idiots that keep their Playstation on a fireplace, and perfect people that never move the device from a cool location away from vibrations and interference. Again - if I get kicked after the first failure, that’s failse advertising. Of course there are people that will microwave their device for fun and demand a replacement - the rate should include those people, or the contract should not offer unlimited coverage.

Businesses are free to not offer unprofitable coverage, but consumers have an economic right to demand that businesses honor contracts. I’d argue that consumers also have a right to accurate advertising - if the “unlimited coverage” plan has fine text that says “manufacturing issues only”, well, that’s not really above-board.
Are you talking about distributed environment, where network partitions can occur? If yes, then there's Two Generals Problem and "FLP result", that just prove it impossible. So I guess you're talking about non-distributed environment.

In other words, to reliably agree on a system state (whether message id was delivered) you need the system to be Consistent. And per CAP theorem, it cannot be Available in presence of Partitions.

So other people you're referring to probably talk about distributed systems.
It isn't the engine noise that is creating the sonic boom.
If that's really the case then why not drop the ceremony and simply TTD to, "write some tests first."
EFF is a public good, clearly we all benefit from them taking the time to draft this letter. This letter is merely between attorneys but has all of the work required for a legal brief including tons of citations of precedent.

Thanks, EFF!
if author is reading this - unsolicited advice: hit the gym, lose the gut. As for the balding head - shave it! Surprising numbers of females dig it.

And kudos for charity donation! Good luck
This is a superbly readable, detailed account of careful coding. If you ever write code that might be subtle - and we all do from time to time - it is an excellent example.
The British had wanted to continue their period of rule in Hong Kong as the expiration date neared. It was a subject of negotiation between China and the UK in the 1980s. They wanted British rule or even some kind of joint administration. Even Thatcher (hardly a shrinking violet when it came to using force to get her way) couldn't get a deal to continue British rule in Hong Kong. China made it perfectly clear that the British would be leaving in 1997.

And so, for better or for worse, they came to an agreement in the Sino-British Joint Declaration. The British were essentially "consensually kicked out" (as the Brits might say, "mustn't make a fuss" ;) )
Over the years, I've noticed the best way to learn about shell one-liners is to read HN comments on programs that implement trivial functionality.
There are a lot of good answers here, but I'm going to speak up as one CL expert who absolutely loathes and avoids LOOP. You can definitely write anything in CL without it.

To me there are different kinds of iterations. Many are naturally written as MAPCAR/REDUCE because the iterations are all independent. Iterations where there's lots of state carried from one iteration to the next are more naturally written with DO or even using tail recursion, if the implementation you're using supports that (most do these days). The theory behind LOOP is that all iterations are fundamentally the same ("one macro to rule them all" I guess). I think this is fundamentally wrong-headed. I want to be able to see at a glance what kind of iteration it is by seeing how it is written.
The question is this just age (I've seen qualitatively similar things periodically about young vs. old people off and on for decades) or if it's a shift over time in attitudes of young people.
[IANAL corrections encouraged]

The court can't usually just make up international sanctions, it would be enshrined in the law passed by parliament. Fines, prison, material seizure, cease & desist, and other remediations are usually given in schedules.

Usually courts can't order action by third-parties in other countries - if that is available to then it would be bizarre in the extreme that it wasn't in s law passed by Canadian Parliament.

So I was hoping for details of that particular legislation; or an explanation of how Canadian law doesn't have a notion of ultra vires and allows it's courts to demand international actions from third-parties, in order to punish display of a SERP.

Perhaps there some legislation at http://laws.justice.gc.ca/eng/ that will shed light on this?
That's fair, but being able to understand and direct the popular zeitgeist, be it by instinct or intellect, is a very formidable gift indeed. It's something almost none of us can do (certainly myself included), and those who can will always have detractors. I don't see success as a zero sum game, so I'm happy for people who are successful, even if I wish I had their insight.

Total aside, you should check this out when you have time, pretty interesting analysis: https://youtu.be/2THVvshvq0Q
What makes a "pillow sensor" more accurate? Is there anything like that on the market?
My dude, you just inverted what I said after posting a snippy series of Wikipedia links and you're lecturing me about a bad attitude?

Very well. You cannot help me, indeed.
I completely agree. That's what we ended up doing to "remove all those usings." I do admit it was poorly phrased.
The way I usually read Clojure,

(1 2 3)

isn't the printed representation of a list. It's just the printed representation of a sequence, which could be a list, a lazy seq, or others.

I'm not a Clojure expert, but when I use it, it looks like everything that responds to seq? prints in brackets. And so I tend to think of a seq as the fundamental, most important data structure in the language, and think of a list of just one kind of seq. And following from that, the seq? predicate is fundamental and returns true for everything that prints like a seq - which includes lists.

So maybe this seq primacy means it would be more accurate to call Clojure "Lisp like" or "a Lisp descendant" rather than "a Lisp"? I'm not sure.

I like Clojure, I like CL, and I tend to use and enjoy them both without worrying too much about taxonomy. Having said that, it's totally fair and important to ask the questions you asked!

For me, though, the answers to those questions don't make me like or dislike Clojure or CL more or less relative to each other. They're both fun and useful, and I'm glad they both exist. :)
Embedded DSL's are just libraries, what makes something an embedded DSL is that it attempts to be a literate fluent configuration language in the host languages native syntax. If it doesn't use the host langauge's syntax, it's not an embedded DSL, it's an external one.
> On average case data where no patterns are detected pdqsort is effectively a quicksort that uses median-of-3 pivot selection

So basically is quicksort with a bit more clever pivot selection, but only for some cases.
It really comes down to how much accuracy you really need. I use a Fitbit Charge HR and while I'm sure it's not perfect, it gives me a general idea of how much time I spend in bed/sleeping.

I'm sure it's not accurate down to the minute, but I do think it gives me a general idea of how much sleep I get. For me, that's fine, and really all I need.
Restore Missing or Invalid Root Certificates on Windows
The Two Generals Problem deals with communicating over an unreliable channel, as does TCP.

TCP solves the problem by retransmission, similar to approaches illustrated in https://en.wikipedia.org/wiki/Two_Generals%27_Problem#Engine...

Note that it's impossible to solve it completely, and TCP is no different. If you unplug your router, there is no hope of getting a message through. But it's highly unlikely that there is no path between you and your destination (a "partition") so TCP retransmits until it finds one. This would be similar to generals sending messengers until one gets through and a confirmation messenger comes back.
My Highlights of NDC Oslo 2017