skysight-inc/HackerNews huggingface dataset:
Are you familiar with Rust, Haskell, C# or JavaScript?

All of these allow creating new extension methods of existing types, albeit by three different methods.

I'm assuming that your "2001.to_year - 1" is "the date time for 2001 minus 1 day"

rust (traits)

(pow::<BigInt>(2u8, 1000).digits().sum()
(2..10_000).amicable_numbers().sum()
1901.to_year().upto(2001.to_year() - 1.to_day()).days().iter().filter(|d| d.mday + d.wday == 1).count()

Haskell (type classes)

sum . digits $ 2 ^ 1000
sum $ amicable_numbers [2..10000]
count $ filter (\d -> mday d + wday d == 1) [year 1901 .. year 2000 - day 1]

C# (extension methods)

BigInteger.Pow(2, 1000).digits().sum()
Enumerable.range(2,10000).amicable_numbers().sum()
1901.ToYear().UpTo(2001.ToYear() - 1.ToDay()).Days().Where(d => d.mday + d.wday == 1).Count()

JavaScript (changing prototypes)

bigInt(2).pow(1000).digits().sum()
_.range(2, 10000).amicable_numbers().sum()
1901.to_year().upto(2001.to_year().minus(1)).days().filter(d => d.mday + d.wday === 1).length()
Still, in the same way that wages are adjusted by both sides of the labor market, why aren't work hours adjusted too ?

You see those kinds of adjustments with female employees: there's a decent amount part-time work and no-overtime in that segment, especially at families with decent income.

But not so with males. And often, for males with the privilege to work less, their job is their identity. So it's natural they like going to work.

But if the stats of this Gallup survey[1] are correct, that 70% of Americans hate their job, the reason clearly isn't love, but necessity.

[1]http://www.nydailynews.com/life-style/majority-u-s-workers-n...
Likewise, through Middle School., High School. University, and my first three-and-a-half year work experience in China, I read incessantly. I probably averaged two or three books per month (typically nonfiction, initially popular science but increasingly technical, with several textbooks of various subjects thrown in for good measure) for... about fourteen years. That leads me to estimate about 420 books in that period, which roughly matches with the size of my “read” bookcase.
I wish I knew how to fight this idea that a project is its code, and not its community and values and expected future. GNOME 2 is certainly not the same GNOME 2 as it was 10 years ago, despite the code not having gone everywhere. Something like MATE might be, but its difference from GNOME 2 lies precisely in its existence as a community with values separate from the GNOME community and values.
VirusTotal doesn't show anything. Can you provide url & sha256 of the installer?
I can't be the only one here is getting tired of these political rants?

If you need social proof of your views there are better places than here to obtain it.
"And, behold, I will deliver you up to the programmer tendency to build overelaborate castles of abstractions."

--- King James Programming (http://kingjamesprogramming.tumblr.com/post/136036727910/55-...)
I’m sure this has been said before, but iPlayer is a bit of an abomination, but the content is excellent. The BBC have this weird thing where content expires, which is annoying.
I rate that up there with my local library that lets you ‘borrow’ books digitally, but they ‘expire’ after a couple of weeks. If you forget to ‘return’ them you get a notice and a reminder to destroy them. How did this happen?
Causally?
Typing up notes is far from unethical or undesirable. Our responsibility is to make sure the product focuses on the right things like dietary restrictions or visit history, to reward for loyalty and provide a great experience
The case against the FCC's Net neutrality plan (2009)
>Basically, the popular news media is a pretty poor source for new scientific findings, especially for anything that relates lifestyle to health.

Well, you have a good point there. But often times the truth takes a long time to come out. And comes out in bits over years. For example, I quit eating white sugar in 1995, and for many years people got literally angry with me because I wouldn't let my kids eat the stuff, or I wouldn't eat the dessert. They thought I was insane or the worst parent ever.

Today, there are other parents in our community who do the same. Doctors have told a number of my friends to not eat processed sugar because it damages arteries, etc...

With social media? Listen to Simon Sinek, he explains the pheonomen on the biochemstry and drug feedback in our bodies from social media and how bad it is for our youth.

One day I saw my oldest daughter sitting with a bunch of her friends. They were all ignoring her because they all had ipod touches, it broke my heart, so I let her get one. It was a big mistake I didn't repeat with my other kids. She got hooked on social media and is barely just now (after years) starting to get away from it.

But I agree, the news usually messes up health related information.
Show HN: Sundown – an alternative to Markdown
Yes. Here's one example https://www.sciencedirect.com/science/article/pii/S027795361...
The nature is very similar to yours, except I use another social network as a content provider. I use a combination of the top ad networks and optimize placements based on payouts for a particular country. I do try to pop every page.
WeWork wants to turn kindergartners into entrepreneurs
Most of us spend 90% of our time reading other people’s code. So even though writing a concise and elegant formula in J might be a satisfying puzzle, I personally don’t want to deal with the cognitive burden of point-free style when sifting through my colleagues’ pull requests.
More fundamentally, you want to be able to distinguish the representation(s) of true from false as efficiently as possible, so to work on most machines the choice is either zero vs nonzero or negative vs nonnegative.
In the author's example of the geometric mean, shouldn't the function return an error if any of the numbers were negative? Because the program shouldn't be sending negative numbers to that function to begin with so he/she should maybe get some hint that one of those functions producing said numbers isn't working properly. And if there are no positives, I sure as hell don't want a divide by zero error bringing the program to a complete stop when I could just simply display "Could not calculate geometric mean, check the inputs" to the user.
By the time most people realize the site is not responsive or nice looking, they have will consumed about 80% of the content they will ever consume on it. No point in making it more responsive. It’s a diminished return.
Even if this is true, the way you deliver insults probably sets back the message.
I just finished listening to "The Like Switch" [1] and it covers a lot of ground on how to hit it off with people. It starts with non-verbal behaviors to look friendly to people when they first see you and then slowly transitions into how to make them like you more when talking to them.

I'm on a holiday now and I'm trying to apply some of the things I've learned. I feel like I'm getting good results. A lot of the suggestions are similar to what I've read in other books; especially the "How to win friends and influence people", which signals to me that these things are core principles rather than tricks found out by individual authors.

One thing I've learned from these books. All of these techniques need you to have a degree of self-confidence in-order to apply them. That's something I'm working on right now, but overall I think these books (and similar ones) have a lot of good info to offer for shy non-communicative people like me.

[1]: https://www.audible.com/pd/Self-Development/The-Like-Switch-...
I don't get it either.
Neither see the supposed (objective) "errors" in the language design.

Why not have both raise/rescue and throw/catch when the used are different. And why not have both methods, functions and closures? It is for different things... Why read docs when you have irb and can pretty much inspect everything you need.

All the comparisons with java... I hate it, much rather use ruby style OO than the horrible boilerplate hell that I remember from java.

Problem with ruby is not that it is not java, it is imho sometimes it is too easy and forgiving - letting you do crazy things like unintentional meta programming, and not catching errors until runtime. Other problems with ruby is complexity and the lack of clear spec (lookup what happened to the rubinius ruby spec project).
> Too math-like! A step-by-step procedure might be simpler to understand.

A step by step procedure is exactly a mathematical process. Mathematical notation is just a shorthand for some procedures so you don't have to spell out every single step every time. You'd be well served by learning them!
I dispute that corruption is inevitable and propose that its origins lie the violation of a foundational moral at the heart of most religions:

In Christianity, this is the commandment: Thou shall not steal.
In Buddhism, the precept is more explicit: Do not take that which has not been freely given.

If we live in a society where the majority of people are willing to violate this rule by directing the state to steal from those who have more and redistribute to those who have less, those who are being robbed will naturally seek to find a means to defend themselves and their families from the predation of the majority.

Being outnumbered, they do not have the votes to defend themselves at the polls. Naturally, they will use the resources they do have. They can bribe those who are tasked with committing the theft. This is entirely rational.
No matter how many prohibitions against corruption are erected, those who are being preyed upon will seek to defend themselves and there will always be people willing to help them, especially in exchange for cash.

The origin of corruption lies in the decision to violate the prohibition against theft.
The violation of the prohibition against theft creates a need for bribery which would not otherwise exist. When a need is created, market forces will move to ensure the need is met.

One way to create a society free of corruption is for the majority to voluntarily commit to the prohibition against theft and to enforce the prohibition against those who choose to violate it.

I would further propose that this could lead to a more general replacement of zero sum games with positive sum games. This, in turn, would serve to further accelerate the rate of innovation and thus speed the rate at which all,human needs are met.
When trust is strengthened, instead of seeking to meet our needs at the expense of each other, we are naturally more willing to work together to solve the larger problems which afflict us all.
Overstock Founder and Economist de Soto Partner on Blockchain Property Registry
I would love to have access to deer meats in the us.
I used to be a doctor in the NHS, and have worked on a medical startup also, so I’d like to think I have some relevant perspective and experience with respect to patient safety and confidentiality.

There is a lot of hand-wringing in this article, with no reasonable attempt to discuss the balance between possible benefit and possible harm to the patient.

A lot of the paper argues that there was no direct care relationship between deep mind and each patient, and that the data transfer was therefore inappropriate. I disagree, and think in the future we will see many algorithmic systems involved in direct patient care. After all, you could pay an army of clerks to review the notes and results (I.e. patient data) of every patient at the royal free hospital, run it through an algorithm (paper flowsheet), then notify the doctor that there might be impending acute kidney injury, leaving it to the doctor to make the clinical decision about whether there was in fact AKI (true positive) or not (false negative), like we do with EVERY piece of information we get when assessing a patient. That could have been done any time in the last 100 years, without anyone being concerned about the appropriateness of it.
Deep mind was essentially doing the same thing on behalf of the doctors at the hospital.
The risk of harm and the regulatory framework should certainly be considered and developed, but it has to be weighed against the potential benefits, same as every other medical advance (and setback) in human history. Listing a whole bunch of potential dangers is an easy way to write an article that gets attention, but I’m more worried about articles like this unreasonably impeding progress in the field of “algorithmic medicine” than I am about Deep Mind and the Royal Free’s approach to this, at this exploratory stage.

I would feel differently if there was an identifiable business model that conflicted with the interests of the patient, but I think at this super early stage we should err on the side of exploration, not restriction.
It has dramatically. I have plenty of friends working full-time desk jobs that actually "work from home" 3-4 days a week and do maybe 1 or 2 hours of work over the whole day.

Everyone else is browsing reddit or instagram all day in the office. Just ask any redditor.
My yearly reformat
Boots.com is currently throttling access to shoppers
Pro tip, never keep receipts for computer gear you buy. If my spouse knew how much I spent in "then" dollars for IMSAI's, S100 systems, Apple II, Mac's, Lisa's, etc. instead of investing them in some kind of bond/stock/retirement they would kill me (for the insurance money).

It was expensive to be a pioneer, I think it was worth it, since it helped a long successful IT career. But other may not. There are posts later on going "I paid that for a car!" but to pick up an extra $100-300 a week makes it good in the long run.
>(had trouble getting the native email functionality to work)

Interesting. Did you manage to solve that? I had tried out a good number of Rebol features earlier, including some Internet ones [1], but do not remember if I tried email and if it worked or not.

[1] Pretty cool that you can do many Internet operations in one or a few lines of code, and also I like the functional / Lisp-y aspects of Rebol (and hence Red), and the minimal syntax.
I've been using http://writeapp.net/notesexporter/ for Mac's Notes app; happy with it so far.
I think what's more relevant here is Marx's theory of alienation.

In order for people to work less hours at their job there would have to be strong local communities and a kind of socio-economic framework to support constructive, productive and satisfying activities outside of their day job. Things like improving or fixing up the neighborhood or your own household, political activism, caregiving, teaching, citizen science are all examples of things that one could do not for money but for the benefit of the community or the betterment of society. But due to the capitalist mode of production people are alienated from each other and the product of their labor so much that they think of work as a commodity to be traded for money only. And rather than doing these things as a way of finding fulfillment and building communities, people contract others to do it for them for money.
To be able to say something is an error in the sense the author uses requires the ability to determine objective, rather than subjective, correctness. The author asserts, incorrectly, that there is some objective correctness in choice of interacting language features and their interactions. No such thing usually exists. It is all subjective at some level. It is not more or less wrong to choose one spec for a language feature over another. It is just taste. The closest you can come to objective correctness or incorrectness is incorrectness of an implementation in implementing a language specification or inability of a specification to correctly describe behavior.

Ie given a precise definition of how a language feature should operate, does it operate that way.

Most criticisms of programming languages, including this one, try to take the fairly abstract goals of most language features and pretend that they can show, objectively, that the feature does not meet the goals. The problem, as mentioned, is that most of these goals are very subjective. So are the criticisms. They are not saying "Ruby claims to have the following algebraic specification for modules, but I prove that is impossible" they are saying "here is my subjective interpretation of the following be goal Ruby has. I can objectively show it does not meet that goal"

Such a thing is still a subjective criticism, not an objective error.
This quote made me smile.. Thanks OP! Happy holidays!

> Just in case all that wasn’t enough to convince you about the superiority of the functional gospel, take this threat: FP will displace OOP, so start thinking along our lines our you will eventually lose your job
You can't unilaterally upgrade bitcoin?

what purpose would there be in making it a fork of bitcoin?

Ethereum uses an addresses system, which is kinda needed for the smart contract system, while bitcoin uses an unspent outputs system.

Also, the proof of work system is rather different, and the block times are shorter.

To make it a fork of bitcoin instead of having its own genesis block and all, would require a bunch of extra work without providing much benefit.

Why would it be a change to bitcoin?
Haha, you could say I've come full circle. :-p
But do you understand quantum weirdness? How would you describe it?
I'm mixed on currying. It really increases expressiveness, but it does allow obscure point-free composition styles that can look like line noise.
I dont have a clue why this is getting rekt, someone help me out pls
>Neither psychiatry nor psychology works so reliably

I agree, most of the shrinks I dealt with were a mess, and could hardly help me.

>That argument is literally just you trying to insult/offend people.

I didn't mean to, and I regret posting that, as I really don't believe that it would help. And yes, I meant it as an argumentative point, that if you can't control your own actions, your likely a danger to society. Which really isn't a good argument to make in this context, and was a low blow.

>...you are still solving disagreement with insults...

The thing I taught my family, that didn't get mentioned here yet, is that I taught them how to be wrong and sorry. This solves almost every problem in a relationship.

I did it openly in front of everyone in the family. And when I screw up, I gather my family together in one room, and I openly apologize in front of all of them. I state clearly what I did wrong, and that I was sorry for it. I don't make an excuse for it, I just say sorry.

It doesn't mean there aren't fights, that will never change or end as long as life has difficulties and stresses. It means that our fights are more about what is actually wrong, not about being personally hurting towards the other person.

And when I go over the line, I apologize, and now everyone else in my family does this too.

>Society does not side with people who have problems, except in very few circumstances anyway.

Not in a good way, but society certainly likes to give excuses for keeping our problems as they are, or blaming someone else for them. Or at the very least, making us feel like we can't solve them ourselves or with just our friends and family.
Given that you hear a lot about engineers (not to say managers) retiring in their fifties or even earlier, I’d say that people, over their lifetimes, do work fewer hours.
i.e. it's still not too late to jump the ship you sank with all that syntax bloat (which, we might add, you can bring with you - we built an even bigger boat this time)!
Timer went down to zero, then reset to 40 minutes... what the damn hell?
Do you have a source for that? I thought Google only broke the APIs when people tried to clone Cchromecast functionality in another device form factor, or create an emulator for a Chromecast, not just implementing the normal "Cast to" functionality.
What worries me the most about freelancing, or being a small 3-person shop, is retirement.

A 3-person shop might not be sustainable if me (1/3) decides to retire and has to pay someone to keep it afloat. And that is, if I find such a person. I also have to make sure that whatever service I provide, will keep making sense in ~30 years.

Saving might work in countries with stable economies, but you still have to set aside quite a bit of money -- and should you outlive your saving, you're in trouble.
The key realization for me was that the phone-plan-at-13 isn't really optional, the kid needs it to stay competitive with the median kid
The one line version is: the internet creates isolation (by removing our need to leave the home, even for work) and therefore loneliness. It's anti-computers (called home terminals in the article) because it disturbs the home as a refuge from work--a place for leisure (in front of a TV-- not the work-like home terminals).

Keep in mind, this is when most people were still not connected (or even had a computer), there were maybe 20,000 websites worldwide.

So this is a pro-status-quo position... arguing against the change that was beginning to occur from computers becoming widely available.

I think it's hard to read because it's a translation of this: https://www.mediamatic.net/en/media/inline/2016/12/14/8_2_am...
Hmm. If you have a measurement of zero, you still have a measurement, which is more different to having no measurement at all than it is to having a measurement of 1. Especially if you are measuring centigrade!
I'm not arguing against examples. I'm arguing against using colors to make up for the inability to understand abstract structures. In my experience, the people who argue for this are usually “math educators” who don't do much mathematics themselves.
Isn't that basically saying "it fails in the kind of cases that wouldn't even be possible in a statically typed language"?
a) unequivocally no! I am not sure what I mentioned caused you to believe that.

b)Yes, enriching the data is a key part of our offering but we are very transparent in our data practices and take this job very seriously.

https://www.exploretock.com/terms
https://www.exploretock.com/privacy

c) Improved revenue comes with increased visit and spend, that happens only if the customers get a great experience.

The practice of taking notes is something that every restaurant is doing. What we make sure is that they capture only the necessary information. Every customer controls their public information through their profile page and can choose to remove it if needed.
>entertain themselves into extinction

Do you think this is an actual possibility? For ours or any other sort of civilization?
Following his own logic, then you could also argue that Apple not recalling its broken iPhones is also a matter of incentive = avoiding negative PR.

So to be consistent, he should admit that in both cases Apple is in the wrong and user-hostile. Apple could avoid the issue for the majority of users by increasing battery size and quality (Samsung has said that its S8 battery will only drop 5% of its charge after 3 years, for instance).

Instead, Apple chooses the easy and more profitable way out - degrading users' performance, which coincidentally also happens to get users to buy iPhones more often.

There is a false dilemma not just between "conspiracy vs not conspiracy", but also between "performance vs battery life", a dilemma manufactured by Apple itself.
Actually had reindeer roast with mashed root vegetables and lingonberry for Christmas Day dinner today - highly recommended :)
This is very much true. I built an ecosystem around Google because they work fine (usually).
Rebuilding this for, say, Microsoft would be a tremendous effort.
I would be interested in seeing some more examples of that kind of jobs
Interesting prefigure of Tinder in there, too, I thought.
And, quick, what's the type of
(.) (.) (.) (.) (.)

How about
(.) (.) (.) (.) (.) (.)