skysight-inc/HackerNews huggingface dataset:
There's probably some truth to this. My mathy friends have a deep appreciation of Haskell. I always try to get into it for a few weeks, marvel at it, grok some new things, then inevitably end up in more "practical" languages (only because there are almost no domains, save parsers and compilers, where Haskell is obviously the "best" fit).

This may describe why: Haskell it built for the sake of itself, it's coherence, it's design. It is first and foremost designed to do things the Haskell way, which may be conceptually pure and "right" but aren't necessarily the most straightforward. In contrast, most other languages exist to solve a problem C++ (performance and control), PHP (a templating language for the web), Python (web, data science), JS (browser), etc. This being my understanding/paraphrasing of what the author is saying.

I think the answer is somewhere in the middle: the good parts of Haskell, selected for pragmatism (strict instead lazy like most languages), with an emphasis on being approachable to users. There's a lot of languages that are almost there. Elm gets the ease of use but strips too many features. OCaml is practical but has std lib split, multicore issues, and is kind of crufty. Go is arguably too simple, Rust is too low-level, Kotlin is almost there but the JVM can't replace languages that can produce straight binaries for the most part. Nim is very easy to write in a functional style and is maybe the most practical language I've ever used. It lacks the support, libraries, and mindshare of the others, though.

What kind of worries me is there is a strong incentive for languages to promulgate themselves into domains they aren't especially suited for, so it's more likely that one of these flawed languages will be Frankensteined into a domain it doesn't really belong and we'll be hacking around those disadvantages in a couple decades. Maybe the real answer is to take a step back and consider what is a middle ground that gets 90-95% of what anybody needs. I'm not convinced that something like Nim or a new language couldn't be 99%, with the 1% of the time being necessary to drop into domain specific languages. If one of the big corps put support and funding into the "right" language, it's not really a difficult job, but it is those damn incentives. How do you fix them?
Haha, no. Those people were phonies! Do you believe that?
I think we can update the story to include a stack of usb-accessed petabyte drives.
If you figure out that A + B = C, do you need to understand how you got A and B to truly have solved the problem? Can't you take this further and say, without understanding every possible underlying system in our universe, we understand nothing?
Dunno. I take significantly less than the recommended amount, and still find that I have significantly more mental and physical energy for everything. I recently tested this when I stopped taking it while on a certain medicine.
You didn't start this flamewar but you fueled it with condescension and got ruder as it went on. Please don't do that again.

Comments need to get more civil and substantive, not less, as a thread gets more provocative. Otherwise we all go up in flames.

https://news.ycombinator.com/newsguidelines.html
It seems difficult to imagine any reasonable means to restrict communication like this, especially government imposed. Alternate possibilities:

1. People eventually tire of mass online communication and use it less. One can hope!
2. The continued abuse of public internet space by interested groups (political and commercial astroturfing, etc.) results in a drastic decline in the quality of public internet content (tragedy of the commons) and people migrate to more niche semi-private communities.
Except that these are not two groups, but continuum. And often time senior does not have all that much experience, but a lot of confidence and read some blogs. And oftentimes junior does know more about something then senior (may be much better in css or framework), but is still not ready to work individually.

In many startups, senior has like 1 year of experience more
and just happens to be controlling "my way or the high way" type.

If you really want to reach someone, you gotta see him more individually then "junior" and you gotta consider whether what that kid might need now is a bit of autonomy and possibility to try things his way - including possibility to do miatakes and learn from them
If you can't do either, you are just micromanager.
You've slightly misinterpreted the point of the previous post, or have at least overlaid some assumptions.

You're arguing against what one might call an objective Bayesianism stance. That is to say that our probabilities reflect our inadequate information concerning an objective (classical) state of reality for the cat.

However the phrase

> Schrodinger's cat is not both alive and dead. We know nothing about its current state, only how probable certain outcomes are

suggests a perspective in which there is not an objective (classical) state of reality for the cat. Rather, probabilities might be seen as subjective assertions about the outcome of interactions with the system. It is meaningless to talk about the cat being dead or alive before looking. This is closer to what one might call a subjective Bayesian stance.
Seems like a facetious over-simplification of what the poster said.

If it's hard (socially) to approach something, because people are hyper-sensitive, then it's simply hard to help those people.

In a lot of Western culture it generally seems accepted to tell people they're too skinny, but not to tell people they're too fat—obviously I don't just mean walking down a street and saying this to a stranger, but in appropriate settings.
`switch (true)` is insane, but it does actually work as the author intended it to in PHP. It just evaluates each of the case statements in order until one evaluates to true, so it's equivalent to an if/else chain.
That would take years.
It's difficult to tell from the article. Unfortunately in the USA the poor don't have the same ability to defend themselves as the rich, and it often skews along racial lines. We also have repeat offender laws that can catch up reformed criminals as well as repeat ones.
The Overmonitored Nursery
I think it's useful to view these laws as a way to get around the standard of "beyond a reasonable doubt."

The actual societal problem -- the one that's been illegal forever -- is robbery. But it's hard to catch robbers. If they aren't caught in the first few minutes, there's a good chance they get away for good.

When the police stop somebody and find a knife on them, they might think "this person is probably using this to stick people up." The legislature can't pass a law that says "conviction for robbery requires now requires only probable cause", but they can try to achieve the same effect by making it illegal to carry a knife.
It's weird, and even harmful in many cases.

A modern goto of sorts: it has performance benefits [1], but not overall readability ones.

switch (x) {
case 0:
doThing1();
break;
case 1:
doThing2();
break;
default
doThing3();
}

vs

if (x == 0) {
doThing1();
} else if (x == 1) {
doThing2();
} else {
doThing3();
}

This somewhat unsafe form of switch-case made it into C, Java, C#, and JavaScript, and cases the great iOS SSL bug of 2014. [2]

[1] https://en.wikipedia.org/wiki/Duff%27s_device

[2] https://nakedsecurity.sophos.com/2014/02/24/anatomy-of-a-got...
This ^^

Exactly right.
Some birds use discarded cigarettes to fumigate their nests
I understood "this community" as in "the FOSS community", not "HN community".
Electricity is cheap in New Orleans and we make video games so the computers all have decent gpus.
You can connect to hubs that auto switch the mining algorithm to the most profitable one at the time.
Yeah, people don’t really know. As far as most seem to take it is knowing the fact, “Puerto Rico is a territory, not its own country”. People on the mainland know that, but not what it means for PR.

People don’t know how the Jones Act effects PR (and Hawaii and Alaska). People don’t know the gaps in representation and resources that PR’s status creates.

Mention “PR” and coworkers are more likely to think “Pull Request”. Puerto Rico is just not on anyone’s radar unless you are from there or vacation there.
Actually the same could be said about Python and the Python way, pythonic programs, etc.
They are demos, using experimental browser technology. Why does everyone on this website expect everything to work for them?
> is an easily refutable, broad stroke statement that fails to acknowledge regional nuances

While it does vary by region, according to this we are at a 20 year high nation wide. I guess it all depends on which propoganda you read.

http://business.financialpost.com/real-estate/rbc-says-housi...

"Home affordability in Canada worst in almost 30 years, Toronto’s worst ever, says RBC"
I disagree. I think that Apple being as big and as popular as they are will continue to attract top talent for both the salary that they pay and the ability to work on projects that a big company like Apple affords. Open source need not apply here but it is still a good thing.
At the Tencent security conference in August, there was a demo of ARM iOS booting on virtualized iPhone6 hardware on x86 Macbook. Video clip was on Twitter but since removed.
Kind of weird posturing considering all of the red on the west side.

He's saying the equivalent of "the east coast didn't vote for Trump" and you're responding "that's a lie look at North Carolina and Florida".

That's not what a lie is. You just have different criteria for the statement being accurate.
We need you to do better than to jump straight to the most generic inflammatory claim than you can make—especially without any support. It doesn't lead to the kinds of discussions this site is for.

https://news.ycombinator.com/newsguidelines.html
Turkish immigrants to the US were/are generally the elite.

Not every place is Germany.
I am rich enough to not need a second job, of which the time I have not working allows me to educate myself on nutrition and cook for myself regularly.
DO NOT, I repeat, DO NOT host serious applications on Hetzner. Firstly, their equipment is incredibly unreliable. It happened three times to me that their server stopped responding due to hardware failures. Secondly, their support (especially their support website) is beyond awful, hard to get, and sometimes even arrogant over the phone.
Actually in the hardware world I see switch(true) a lot. It is very useful for creating a priority encoder. For example you have 3 interrupts with priorities int0 > int1 > int2. Then this code is pretty clean and concise:

Switch(true) {
Case(int0):
// Do stuff for interrupt 0
Case(int1):
// Do stuff for interrupt 1
...
> What voters vote for wealth redistribution? Mostly urban areas.

What do any of those examples have to do with Jante? You think gang violence is because people are trying to stop other people from rising out of poverty, rather than someone trying to rise out of poverty through crime? Please tell me you don't think gang bangers are out there telling kids not to go to school because of Jante. That's hilarious.
Oops, I have a Luftwaffe paratrooper's knife.[0] Yes, an actual gravity knife. But I doubt that I'd ever carry it on the street. It's worth too much, for one thing.

0) http://www.germaniainternational.com/images2/unknown/Paratro...
> You could always insist that the distribution of bodies shown in a magazine follows the distribution of weights/heights in the general population (with some margin of error). And heavily fine them out of business when it does not. Problem solved.

That sounds like an infringement on the freedom of speech, in countries where it applies.

It also seems ridiculously difficult to judge and enforce. The government would need to do periodic surveys of height/weight in the country (or get the data from doctors), prove data is correct, set up an office that reads magazines all day, tries to judge the heights and weights of the people in the pictures by looking at them...the more I think about it the worse it sounds. EDIT: Or mandate that every magazine files the height/weight details of every person pictured in every issue with the government.

It's like the premise of some dystopian black comedy or satire.

EDIT 2: No seriously that would be quite funny. "Sorry Bill we can't do that feature on the Indian women's volleyball team, we got Shaq on the cover this month. We're over our height budget"
A monoid is an interface with two operations: one that produces an element out of thin air, and one that combines two elements.

It also comes with a contract, like the contracts of "equals", "hashCode" or Comparable in Java. The contract says that the operation must be associative, and that the element you produce out of thin air must be neutral: when you combine it with another element it leaves the other element unchanged.

One benefit of having such general interfaces is that you can reuse code across a wide range of domains. For example: the Comparator interface in Java can be seen as a monoid, with the "thenComparing" function as the combination operation: https://docs.oracle.com/javase/8/docs/api/java/util/Comparat... You could build a list of comparators and concatenate it, map a function that produces a comparator over a list and concatenate it, and so on.

Another benefit is that you can be quite general when specifying requirements for your functions. In Haskell, the Writer monad only requires the type of the accumulator to be an instance of Monoid. So you can user regular lists, difference lists, or the integers under addition.

Also in Haskell some composite types automatically satisfy an interface if their components do, saving you work. For example, a tuple of monoids is automatically a monoid. Any function that returns a monoid is itself a monoid as well. (Functions that begin and end in the same type can be monoids in a different way: the neutral element is the identity function and the combination operation is composition.)
Very few people had satellite Internet in Puerto Rico before the storm (And why would you? Landline worked fine and was cheaper). And now that it's after the storm, it's very hard to distribute those devices widely, plus people will likely have problems paying for them.
Monoid is a type class, similar to interfaces in Java, and this is what it makes easy: if your code uses the monoid interface of some type then you can swap the underlying concrete type without changing your code, and it still works.

Obviously, you can do that in any untyped language, too, but explicitly defining these contracts makes code easy to manage and understand. And the compiler will tell you if/how you're doing something wrong.
Not sure what you mean. How is it related to Jante?
You mean the US is treating PR like US Virgin Islands and not like Texas? I'm shocked, shocked, shocked that "Oh no, we want not to be a state eff-you!" had consequences.
I'm trying to solve this right now with eul[0]. It's not an easy task.

[0]: https://eul.im
Or Amazon's purpose build hardware/services.

https://aws.amazon.com/snowball/

https://aws.amazon.com/snowmobile/
I get around this by having profiles with extra extensions and profiles with only ad blocking extensions.
No, they don’t want to. But I think it would be advantageous to them to not have Android around.

Potentially they could convert many Android users to open source iOS. It wouldn’t come with the branding, I think it could be to their advantage.

It’s not likely to happen, but I think an open source iOS clone/fork would be nice and could also have potential benefits for Apple.
May be there are lots more people interested in TruffleRuby then MRI.

And that is because people like you, manage to optimize some voodoo Ruby metaprogramming, which many previously thought were impossible, into real fast binary with an experimental; high potential AOT compiler and toolkit called Graal and Truffle. If that is not exiting for any geeks I dont know what is.

If Ruby had an interesting topic title, I assume anyone would vote the post before even reading it. At least that is what I think majority of people would do. They dont vote on the content, they vote on the title.

So the number of vote has some relationship to how many people within the HN community are still interested in Ruby. Late last year we started to see Ruby post with enough vote for the front page, but not enough comment at all. This year there aren't even enough vote for anything Ruby to arrive on the front page.
> Or maybe some people legitimately were concerned for your health?

If this was the case, why specify women and not men, why use shaming techniques that are scientifically proven not to work, why argue that this is to protect the feelings of women as if it is a bad thing, when there is proof that making women feel bad about their bodies with unrealistic media actually contributes to obesity?
A monoid is something that allows you to take two of the same kind of thing and smash them together to be one of that same kind of thing. It also requires you to have an "empty" thing that can be smashed together with any other thing without changing the result.

In code:

smash :: Monoid a => a -> a -> a
empty :: Monoid a => a

A monoid is a property of things, not languages, so the idea of "a language without a monoid" doesn't really make sense.
Funny that for other stuff it usually takes 100 years to be considered antique.
Victim-blaming, classy.
Right, so it is definitely a fork from Chromium (or at least the devtools seem to match an older version of Chrome's), and agreed completely with regards to config tweaks, but I definitely see a huge speedup versus using adblockers (ABP+UBO+PB) in Chromium, including on local dev sites with no ads/privacy to block. It (at least seems to) render much, much faster.

Always take non-indie benchmarks with a grain of salt, of course, but given that their CEO is the developer of JS, it's probably not too much of a stretch to imagine that this is a true or mostly-true claim from their main website page[1]: "Brave loads major news sites 2 to 8 times faster than Chrome and Safari on mobile. And Brave is 2 times faster than Chrome on desktop."

I haven't tried installing chrome extensions in it yet, but if that works, then Brave is definitely my new browser. It seems simple and clean; a worthy successor to both FF and Chrome.

1. https://brave.com
>> Is the slow down part a real thing?

They don't necessarily have to slow down competitors. They can just leave them at today's available bandwidth and speed. So ten years from now only companies who pay the toll, or ISP's own content, will stream over multi-gigabit connections. All others will be stuck at 2017 rates.
Junior is just a title, nominally it means you aren't experienced enough to work undirected. You could have amazing C++ language knowledge and still be a junior. You could also have very little but be skilled with another language. Even at a senior level you can get jobs outside of your immediate language experience. The difference being that a senior is expected to have enough experience to quickly pickup the language without too much mentoring and not need help with much else work wise whilst a junior might need help in all sorts of domains. Almost everyone regardless of level requires some onboard taking on a new job.

As an aside you should look at someone in aggregate rather than purely judging them by something dumb they did. If we all got judged so harshly on our silly mistakes or quirky knowledge gaps no one would be fit to program professionally.

And yes one of the things you will do at a senior level is mentor others in language use.
I have B.S. in Statistics. And you cannot tell me lies. The map you are showing is shit because it doesn't show persantages. As you go to west the persantage for CHP increases. HDP in south east is another story, they are ethnic Kurds.

Also most of the population is consantrated in western costs.

http://fotocdncube.gazetevatan.com/vatanmediafile/HaberIciRe...
Both anorexia and obesity are symptoms of the same problem: society projecting unrealistic body imagery

It is interesting to note that several centuries ago, when far more of the population was underweight, being somewhat overweight or even obese was considered the ideal. Now that the average weight has increased significantly, it seems the "unrealistic body imagery" has gone in the other direction.
> You could always insist that the distribution of bodies shown in a magazine follows the distribution of weights/heights in the general population (with some margin of error). And heavily fine them out of business when it does not. Problem solved.

That magazine will go out of business. No one remembers how much of a flop Dove's products endured when it tried to advertise them with real bodies?
It’s possible that this might help security researchers find/fix bugs.

It may help other developers understand how iOS works.

Overall, I think it’s unlikely to be hugely useful, in terms of actuallly using it for anything.
> Haven't we learned anything from Iraq War? If a country is not submitting your requests and taking care of their own business is enough to be painted as dictatorship.

You can watch the moment Saddam seized power on YouTube. He walks into the parliament then starts having people dragged away by the army as traitors while he smiles and smokes a cigar. Within minutes people are standing and saluting, screaming his praises over the commotion, saying they would do anything for him as a way to beg for their lives.

The descent of democracy to fascism in moments, it's one of the most chilling things I've ever watched.

You can argue the case for war was full of holes. You can criticize its execution, debathification, or the more than a decade of chaos the country has faced since, and how the US has failed to live up to its commitments there.

There are thousands of critiques you could raise where I would shrug, not bat an eye.

Iraq was just "painted" as a dictatorship though? How many political opponents does one have to summarily execute to qualify as a "real" dictatorship for you?
+1 on this.
First day for interns and junior devs is to write testcases and setup a proper debugger. Fresh graduates do not come with an understanding of testcases - usually they have heard about "The Social Network", Steve Jobs or Linux Torvalds. Everyone wants to rewrite the codebase .

Its when you lock them in a room with testcases and a debugger that understanding dawns.
Every Single Cognitive Bias in One Infographic
The thing about the Python way is it is dogmatic but it is also very practical: it's dogmatic about being practical. For loops and list comprehensions are more familiar or easily explainable to many programmers, so Guido kind of hid map/filter/reduce instead of leaning on them or having alternatives like other languages (Cloure or JS).

I've got friends who I'm not sure can read that are able to understand Python. Haskell isn't like that.
Could you please not include personal attacks in your comments?

https://news.ycombinator.com/newsguidelines.html
Only some US citizens know that Puerto Rico is part of the US or really know what a US territory is. Most people here think you need a passport to go to Hawaii or Alaska, let alone Puerto Rico.

The fact that they have no representation means there is no vote to win so politicians don’t care. And the fact that they don’t pay federal income tax is justification to completely ignore them.

Honestly, at this point I expect another storm to roll through before the end of the season and a mass emigration to NYC or Miami.
I'm reminded of http://www.paulgraham.com/cities.html (and I was curious how much people who've lived in each place agree with the descriptions of the messages, and how stable they are over time).