skysight-inc/HackerNews huggingface dataset:
The correct way would be to use a trailing closure.

Something like

func fizzle() {
lock_guard(mutex) {
if (count_ >= 3) {return; }
count_ = count_ + 1;
}
}

Where lock_guard() might be then something like this, implemented on some utility library:

func lock_guard (_ m:Mutex, action: () -> Void) -> Void {
m.lock();
defer {
m.unlock();
}
action();
}

This is one of the RAII approaches in functional programming, using partial function application and higher order functions, to create new types of operations.
Does someone have a list of countries where credit cards (as opposed to debit cards) are actually popular (apart from the US?) I'm in the Netherlands, and I only use mine for international online payments, and I have it with me as a backup (but seldom use it) while travelling abroad. And even then, it's automatically paid off in full every month, so the credit function isn't really doing much. For the rest I use cash, or have a debit card from my bank, which is accepted in most European countries. As for acceptance, hotels and restaurants, and tourist-oriented shops generally accept it, but otherwise almost no-one. (Edit: added emphasis on credit cards as opposed to debit cards.)
When I was a junior dev trying to get my first jobs, what was frustrating was the range of what 'junior dev' meant. Anything from knowing what JavaScript is to having 2+ years of experience with a JS framework, and having a Github full of interesting side projects.

The latter style job posts were very disheartening to read, and I sometimes wondered how I would ever get enough experience to get a job as junior dev!
Macbook Retina 12 inch early 2016
The talent at GM, Ford, Mercedes, BMW, Porsche, Toyota, Nissan, VW, etc. is immense. The only factor for those companies is focusing it, which all of them have proven they can do.

What Tesla has, is talent + a big headstart. The talent part is not unique at all. The clock is ticking rapidly on the headstart, and Tesla is well aware of that.
I love the ingenuity of drug dealers.
Not as sophisticated as the drug submarine though https://en.wikipedia.org/wiki/Narco-submarine
Is it really that surprising that it's harder to secure thousands of miles than it is to secure a few airport gates?
International visitors are already turning their back on Trump-era America
Of course.

Strictly in the scientific definition of evolution.

Certain genes proliferate more effectively in their environments. Therefore the population evolves.

People imagine evolution to be faster/stronger/better/smarter. Sure, often it's related to that - but it is not necessary.
I praised Loom for its inventive simplicity, and how it avoids text towards direct interaction, and you refute that by referencing Neuromancer, a game with, in your words, a "(comparatively) complex interface."

Neuromancer is riddled with complex text interfaces for every interaction. Every choice demands a read through, along with several text selections to decide from. Here's a video of how awful it is. https://www.youtube.com/watch?v=5tNMdbq_Z7w

How is that more simple?
Selection bias. The cartels using trebuchets aren't getting caught.
Largely (wasn't impassible) because of the Belgians' reluctance to create and man a significant defensive barrier against German aggression.
Evercookie – A cookie that undeletes itself
3/4 of recent jobs gave me a macbook. Between jobs and away from my desktop, I use a refurbished HP junker. Laptops are disposable and too severely compromised to make good investments. Anything that can run emacs, git, offline docs, and shelling out to a real computer will do.
What do you mean by standard feature? HWE kernels were already introduced after each Ubuntu release.
​The Stress Test: Can a wearable really make you calmer?
Maybe: There is this "disorder" called Marfan Syndrome where your limbs, fingers etc become longer than usual. And it seems to help with physical and Musical performance, e.g. Phelps is suspected of having it, Paganini had it, and guitar virtuoso Paul Gilbert (who I'm very envious of) also does. Now the question is, does superior athletic and musical performance lead to higher reproduction? Also, Marfan's is linked with a risk of heart disease, so this might hinder progress. It's definitely an experiment that evolution currently performs.
Without doubt the study was puffed up by the West-Coast Ivy "Stanford" brand name. If this study were carried out by "East BumbleFuck State U." it would have gone into the trash heap of history. Clear cut case of empty prestige-worship.
_Wow_, that is truly impressive. $3.7k for a ~2x1.5m² RGB (!!) display - and no added costs (besides a like <$50 interface controller setup). Nice!

Hmm. I wonder what the weatherproofing (particularly heatproofing) on these things is like. I know of a time/temp display high up on a building (probably around 1x1.2m²) that is constantly corrupted, I'm wondering if it's the 40°C days around here (Sydney Australia) that keep hitting it...

It's fascinating watching how QR encoding shifts and changes data - some of the time updates just adjust a few pixels, some of them adjust the whole barcode. I wonder what the source data for each frame was (but not terribly so).

So... if I understand right, these are line-buffered? You send it a line's worth of data, hit "go", and it redraws that line? 240FPS is good, wow.

One question: in the first couple of "ticks" of the second hand on the first clock video, I noticed how there appears to be a minor bit of "LED bleed" where some of the LEDs don't switch off for a couple fractions of a second. Curious, I had a look at the video frames: http://imgur.com/a/EVYB2. Is this an intrinsic problem in the driver system or perhaps a camera or encoding/compression glitch?
Imagine memes on Hacker News.
There's no way I'd visit the USA these days
> It's the ICQ of a different 3 years worth of teenagers

Snapchat is already 6 years old and my mum joined it last week to keep up with all her friends and family.

That's the thing with the bear case, you're right 95% of the time because most businesses fail but you never have to justify or be accountable for the 5% of times you're wrong.

HN history is littered with pessimism about tech companies - Facebook isn't worth $30 billion[1], Facebook isn't worth $50 billion[2], Facebook isn't worth $100B[3], Uber isn't worth $10 billion[4].. Snapchat isn't worth .. repeat. rinse.

[1] https://news.ycombinator.com/item?id=1719975

[2] https://news.ycombinator.com/item?id=2062145

[3] https://news.ycombinator.com/item?id=4002857

[4] https://news.ycombinator.com/item?id=7911560
Aah that better explains what you mean!
Jv16 PowerTools 2017 4.1.0.1681 Portable with License Key Free Download
> Full disclosure: I do not have a GitHub account, nor do I intend to ever have one. I have taught some introductory CS.

It seems like a curious decision to never intend to have a github profile. I'm interested to hear your perspective for that.
Maybe they should have had another set that had their usual diet for comparison just to ensure that they are not making their observations on cannibalism. As one can take the study to mean if cannibals chose young for their dietory needs they would survive 10% longer except in the case of mice however.
Ask HN: This may be off-topic, but have you lost a lot of weight?
I hope this kind of thread is acceptable here. If it's not, mods please removed it.

I have a blog/website-thing on the side, a weight-loss motivational site similar to Reddit's /r/progresspics. This is purely a passion project(I'm struggling with getting my body in a decent shape as well). I really think that that sub is priceless, but I want to try improve on it's concept and keep my posts more information-dense and action-orientated.

I'm also using the site as self-education project for learning how to build an audience, nailing down exactly what an audience wants, and about content creation in general.

So to get to my questions;

* Do you visit weight loss motivational sites like /r/progress pics?

* What do you hope to learn/find there?

* What don't you want to see?

* Do you have some advice for me in general on how to create a site that will help people with their weight-loss attempts? How can I approach the site in a way that would be most beneficial to the people looking for advice and inspiration.
Sync and Manage iCloud Contents Across Multiple Accounts
Me? Since 2001
I had the same feeling in the beginning. It seemed to me so hard to have the credentials asked by a junior job requirements and felt very discouraged.
Who slowed us down? I want my monolith back
Naica's crystal caves hold long-dormant life
Homo Deus: A Conversation Between Yuval Harari and Azeem Azhar
Well, yeah. I've never been a huge fan of the US but would have liked to visit it some day - several snowboarding destinations and Silicon Valley would be nice to see, at a minimum. However I have no desire to spend my tourism dollars encouraging a science denying, racist, regressive, aggressive and generally delusional administration. I hope things soon change for the better. In the meantime, there are plenty of good ski fields in Europe :)
Lattice-Based Data Structures for Deterministic Parallel and Distributed Prog [pdf]
I mean yeah, we really should just leave the border wide open since after all, if you can't stop border shenanigans 100% you shouldn't bother at all. Might as well remove all our border patrol agents as well since a non-zero number of people still get through despite their presence.
Awful? Those few minutes of example show more player agency than the entirety of Loom combined. This is not a novel criticism- it was one of the main complaints levelled against Loom when it first came out.

There's a difference between text you read, and text you have to guess at/type (ie, the find-the-synonym frustrations of Infocom games).
If you're one of "today's welfare recipientss" (as is the question in this sub-thread) you'll have neither convenience and good medical care. And usually not much time or use for the internet either.

And "power" is not about having "peasants bow", it's about having an impact, and being able to influence things.
I think the specificity is misplaced in the context of the article. In the first place, he didn't even create a credit card - it was a charge card, where the whole balance needs to be paid off in a month. Secondarily, without charge and debit cards paving the way, would we even have debit cards today?
I cannot even be bothered to read the article. Of course we didn't stop evolving - how on earth could we?

If someone claimed to possess evidence that we did stop, that is a paper I should read with interest.
Uber's India rival Ola has a culture problem
I saw some odd concepts in this article.

Robots are stealing jobs? Maybe they are used to replace humans in a job which they can perform better, faster, and more economically than humans, but the only robot I have seen stealing was a vending machine.

Tax the robot? Robots typically have no income. If the robot fails to pay tax would it be locked in prison where it could power down until its sentence was served? Robots typically increase the profit of the company which uses them and that company pays taxes on its profit. With the progressive tax system we have they pay tax at a higher rate. It would seem that there is already a tax on robots.

I worked for a company that made automatic label applicators which would apply an adhesive label to a box coming down a conveyor. I have helped install these in manufacturing plants where the employees were extremely hostile towards us. The person who applied the label in the past was no longer needed in that position. My response to them was that in the majority of businesses where I had installed a machine, they took the people who had applied labels and started another production line, increasing their output. If their company failed to do so, it was an issue that they needed to talk to management about. I got the definite impression that they intended to sabotage the machine.

Many years ago I had the idea that it would be possible to make general purpose robots with most of the capabilities of a human. These robots could be used to build a factory which produces more robots, then a factory which produces e.g. shoes, then pants, then cars, and then mining and agricultural robots. With no labor cost involved it would be difficult or impossible to compete with them. With fewer people employed it would become increasingly difficult to find consumers for the goods produced and the manufacturer would be left no choice except to provide a basic income for all people. Those who want to rise above a basic income would need to engage in design work, developing new styles of shoe, pants, cars, etc. They would be compensated according to the demand for their particular design.

If the robots are capable of repairing themselves or other robots it would still be necessary for a human to monitor the overall operation to preclude the possibility of a malfunctioning robot "repairing" other robots to malfunction.

We are still a long way from having such general purpose robots but the use of robots is already taxed.
> they have a "wild" category for hardware/exotic demos like this.

Revision 2017 has a Wild competition coming up in mid-April as well:

https://2017.revision-party.net/compos/other
>But there was a bigger concern: “Will the decree—easily interpreted as a deep hostility to the world beyond America’s shores—put off global travellers?” Two weeks later, it has become clear that the answer is yes. Hopper, a market research firm, looked at online searches for flights into America, comparing the final weeks of the Obama administration with the first weeks of Mr Trump’s presidency. It found that these searches had declined by 17%. The overwhelming majority of countries studied showed a drop in interest. The most notable exception was Russia, which has been accused of meddling in November’s presidential election in Mr Trump’s favour and colluding with members of his team. Searches for flights to America from Russia increased by 88%.
The overall 17% decline, Hopper found, was much larger than the 1.8% drop that occurred between the same two periods a year ago, leading the company’s top data scientist to tell the Los Angeles Times that it is “hard to see any other short-term significant events that could be related,” other than Mr Trump’s assumption of the presidency and his travel ban.*

As far as fluff pieces go, this is one of the fluffiest. A mere 2 weeks after the decree, based on internet searches and no actual numbers, not controlled with anything (except last year's results), and with the bs hint at Trump as "russian led" -- whereas an explanation (assuming the numbers are correct" is much more obvious: that a President who is not openly cold-war hostile to Russia might bring in more interest for tourism from there.
Many of us who like Rust also like Swift, and there are many Swift team members who have contributed to Rust.

What I do wonder about it is Swift's plan for things like tiny binaries (no runtime), no standard library, zero-cost (or predictable cost) abstractions...
Busting the Myths of Accessibility
I don't know how much small businesses contribute to Facebook/Google's bottomline, but one of the big advantages of Google/Facebook is that creating ads and landing pages is easy.

Just put together a few stock photos, add some copy, pull a free landing page template and you're good to go.

I'm not a heavy Snapchat user, but it seems to me that small businesses will struggle to create creatives for Snapchat ads. Nearly anyone can write, but very few are actually comfortable with a camera. Most small businesses also don't have editing chops or even the sheer creativity to put together a compelling Snapchat ad.

Much of Snapchat's value seems to be in driving top of the funnel awareness, but I'm not sure most businesses have the capacity or even the need for this.
Pinterest List of Top Group Boards… in Every Niche
The Superforcecasting Playbook for Product Development
I think this argument is the real justification :

"Memory ownership model: an (opt-in) Cyclone/Rust-inspired memory ownership model is highly desired by systems programmers and for other high-performance applications that want predictable and deterministic performance"

I think it could be used to implement mechanism such as dispatch queues, which are for now implemented in C.
Buy Blackberry Smartphones Online
Check out the largest collection of blackberry smartphones online at tigmoo, It is providing the best quality & outstanding features of smartphones with an excellent prices.
https://www.tigmoo.com.gh/smartphones/blackberry.html
How to Hire PHP Programmers for PHP Web Development?
I wonder how the gentiles feel about being fondled.
How big is the media space. It's becoming dominated by Facebook and Google and Apple and Twitter. Snapchat would be number four. All media companies. Can the market accommodate another big player? Definitely.
> Loom was novel for its lack of violence

Bishop Mandible's death wasn't exactly non-violent:
https://www.youtube.com/watch?v=WEQ6Kx0wY0c&t=1h23m29s
Running and Managing LOTS of Web Apps on a Single Azure App Service
Push for Diesel Leaves London Gasping Amid Record Pollution
I was planning a road trip including an intersection with the solar eclipse this summer with my gf, but we've put it off in large part because of Trump. Anecdotal but whatever.
Loom was the single most formative game for me as a child. Though I readily agree that it didn't make me care much about the game world. To me that doesn't even seem like an important goal of art. A more interesting goal is offering the viewer a new way of relating to the real world, and Loom somehow succeeded at that for me, much more than Sleeping Beauty that it cites as an influence. There are many other fun perspectives that I've absorbed through art, but Loom was among the first.
> does superior athletic and musical performance lead to higher reproduction?

Is this really the relevant criterion here? As long as it doesn't lead to badly reduced reproduction, these properties will remain within our human gene pool, and that's all we need to evolve.
Hunched Over a Microscope, He Sketched the Secrets of How the Brain Works
I'd like to see New Orleans, Chicago, Los Angeles, Portland and Seattle, but staying out of the country until there is a more sane government. My partner saw his family in US the last time on Christmas and is also not going back until things get better. All my friends and family has been talking the same, so I guess the article might be right.
A Line in the Sand
You do not understand what a typeclass is or how it's meant to be used. If you are redundantly restating a single thing in a Haskell program, you have taken a very wrong turn.

Give me a single example of something that it turns out is truly better expressed through inheritance, and you will be on the shortlist for a Turing Award.
Hardly surprising given that international travel, especially for leisure is exceedingly sensitive to perception of the news. It takes a long time to build up tourist numbers, but a small incident can cause the sharpest falls immediately.

But I'd argue that even before the Trump administration, the USA was immensely difficult to travel to for anyone in a country that's not part of their visa waiver program. USA is one of the few places to require a transit visa even if you only connect at one of their airports and visa arrangements have exorbitant fees attached to them. They have a perception abroad of having stressful border control - even so for Canadians who arguably enjoy the easiest access to the US compared to any other country.

It certainly doesn't help to have higher minimum salaries for work visas and a possibility of being kicked out after completing a degree on study permits, which affect business and student visitors respectively. And finally, dealing with American companies from abroad can be a huge resource commitment as you often have to adopt American standards and clearances in parallel to other internationally adopted schemes or your own local one. But for a long time, the costs justified the prospects of visiting, simply because of the access you get to American markets. With Trump adopting "America first", a lot of people will just not bother deal with travelling to the USA anymore.
Storytelling is a really valuable skill. However, it seems to me that it is one of those abilities that some people just seem to be born with and that it is inherently difficult to learn. Can anybody offer anecdotal insights into whether or not this is something that you can become good at through practice?
DeepMind just published a mind blowing paper: PathNet
Based on the read-write characteristics of every website I've ever built I'd say "mostly read-only" is a pretty good characterization.

Even things like forums have many, many page loads than new posts.
How is this different from any other large company?

Not disagreeing with that behaviour being toxic to society, but I highly doubt that this is specific to banks. In particular, I don't see a direct connection between dealing with financial products and not caring about your customers or users unless forced by law to do so. For example, Google didn't even provide a reliable point of contact until forced by law to do so, which is something I've never heard of a bank.
You can get an 80 inch TV for the same cost and roughly the same dimensions.

I am curious to understand what this can offer that a TV can't
When I grew up, I was influenced by media like Knight Rider, A-Team, MacGyver and other TV shows. Oh and documentaries about the Great Canyon and other beautiful areas. I loved (american) English. I always had a dream to visit the USA. Not to live the "american dream" and get rich but just to experience the culture and scenery. During the past 10 years though this desire has completely gone away. This is due to the political climate and disrespect for foreigners privacy. I never went there even though I could do so easily. I travelled all over Europe (easy, being a EU citizen) and now traveling a lot in Asia.

I know of several businesses that have chosen not to send their staff to the USA anymore to trade shows or clients. My company used to send someone to a media summit every year. Last time they declined the visa for that person without providing any reason. It makes no sense. The focus is shifting: the US used to be the biggest market that everyone strived to cater to. Not anymore. Banks are more and more reluctant to use USD, Euro is preferred. When I go to a bank anywhere in the world I suddenly have to fill out a questionaire about not being a US citizen, having no phone number there, never having lived there and on and on. I have nothing to do with the US so why are they bothering me with this crap? Imagine if every country requested such a thing, you'd sit there a week answering questions. Oh and banks in Asia are starting to not take on US customers at all from what I heard.

When even people like Adi Shamir (the S in RSA) are having issues obtaining visas (https://fas.org/blogs/secrecy/2013/10/shamir/), something must be completely wrong with the way immigration is handled.

I hope the USA can turn this ship around, right now it looks like it's heading directly for the iceberg with full throttle.
Five Key Moments from Snap’s I.P.O. Roadshow Video
Direct link to Pixar In A Box : The Art of Storytelling

https://www.khanacademy.org/partner-content/pixar/storytelli...
Anecdotal of course, but I've travelled to the States multiple times per year in recent years, for work and especially for conferences. I'm planning to avoid the US entirely now since immigration there was already intrusive and unpleasant, and it's probably about to get significantly worse.

It's a shame, because most of the conferences I'm interested in are there or Europe, and Europe is very far from where I live. Unfortunately any measures that get pushed through now (e.g. requiring social media passwords) will probably take a very long time to get rolled back post-Trump, if they ever do.
Huh. I guess ignorance of the law is an excuse.
A critical analysis of Laravel