skysight-inc/HackerNews huggingface dataset:
> So in practice, in an attempt to produce high value but actionable feedback a hybrid approach, utilizing both micro/macro investigation yields the best results.

I disagree. JS is obviously not fast by its nature; the only reason it's fast sometimes is because modern JS engines do incredible optimizations behind the scenes. As such, for real-world performance, writing code that the engine understands how to optimize entirely dwarfs trivia like how Babel transpiled your default parameters. (Even the most microbenchmarked function will run dog-slow if the v8 optimizer bails out.) And if real-world performance is dominated by optimizability, then it follows that microbenchmarks are largely useless unless they happen to get optimized/deoptimized in the same way that your code does.

Incidentally for v8 at least, currently using any ES6 feature (even a single "const" that's never used) causes the optimizer to bail out. So any question of "ES6-induced bottlenecks" is beside the point - it doesn't matter how fast the ES6 feature is if its mere presence slows down everything else.
The numbers in this article are way off. A higher end employee (senior/chief engineer) who joins at say #30 in a company will still have a decent exit on a $250million exit. I say this as someone experienced in this.
Two to three months is crazy. The norm in Canada is two weeks.
If we really need it I'd rather have C#-style goto-label instead of explicit fall-through, which is strictly less general. (But I'd almost rather it be a tail-duplicating macro to begin with, since the feature is so rarely needed.)
I'm not saying this to be deliberately combative, but when you say things like "With all of this said, there can't possibly be that much social mobility." you're favouring a theoretical model over actual reality.

The data in the links I posted say, unambigiously, that if you're born in a poor family in the US, you are more likely to stay poor than someone who is born in poverty in Sweden. That's not a theory, that's what the data says; and it's not controversial data - all they have to do is look at your income tax records and then your parents to see if you've escaped poverty.

You make an argument about the amount of regulation, the disincentivizing force of taxes, the lack of investment, the difficulty in starting new companies. Sure, I can see how that makes sense as a concept. But the concept is clearly flawed, because if you look at the black and white numbers (as opposed to what you've observed anecdotally) it doesn't reflect what's actually happened on the ground.

Despite the high taxes, despite all of the companies that are apparently fleeing the country, despite all of the regulations, poor Swedes with gumption and drive actually have a better chance at escaping poverty than poor Americans.

There's any number of theories about why that is: it's easier to take chances on starting a company when you know you're not risking homelessness when you fail; very low cost higher education is actually helpful in improving your lot in life; having high quality nutrition and primary education regardless of your parent's income helps poor children do better, etc. But those are just theories - who knows if they're right? They're just possible explanations for how things got to be the way they are.

Bottom line is that Sweden (and many other leftist countries) are doing well at making sure the average person living there is being rewarded according to who they are and not who their parents are. The US, though it has many impressive qualities, and though people talk a lot about hard work being rewarded, isn't doing as well.

In terms of your link about immigration, "tens of people" rioting is not the kind of numbers that people should look at when deciding policy. Riots involving thousands of people often happen over sports, yet there's no call for legislation around that. Also, an article describing problems that muslims cause from a site called "United With Isreal" is clearly not a good source of unbiased opinion on the matter.
You know what system I'm describing?
Call switching!

Exactly right!

The "distributed" part of Erlang (including mnesia) was designed to run in a blade-like system where the networking was provided by a physical common backplane among all the compute cards in the chassis.

So, a lot of distributed erlang and mnesia falls apart when dealing with network partitions and resyncs and real-world scenarios that wouldn't really happen on a common physical substrate.

That's why most sane erlang people won't run distributed erlang (gotta love that epmd), they'll run their own TCP servers connecting to external DBs.
I do not use goto in my code. What do I do wrong? :) Ok, I have to admit that I used it on C64 in the 80s.

Anyways, exceptions are sort of gotos or at least they can behave that way.
Somebody should add [2014] to the title.
I started reading it, then realized that it all sounded familiar.
> chosen to go into exile just to do their job

Others have already mentioned that they don't carry their work into the US, but they, themselves, still travel to the US. This is hardly the "exile" that you want it to be (to prove your point).
No, his explanation is the few-line summary of years of failed experiments in userspace M:N threading.

Userspace is not equipped to make reasonable scheduling decisions that provide any significant performance advantage, and library/language runtime control of M thread register/stack contexts on top of N kernel threads plays absolute havoc with most operating system's standard libraries.

Go works around this by explicitly not calling into libc et al -- all system calls are issued directly. One big problem with that: directly invoking syscalls is supported on Linux, but NOT supported on OS X.

End result is that Go literally must rely on undefined behavior on any system that does not support direct issuing of syscalls.

From my brief review just now, what MS appears to be proposing for C++17 isn't coroutines in the traditional M:N threading sense, but rather, an explicit mechanism (with syntactical sugar) for capturing reachable variables in a lambda (without preserving the stack), and issuing a call to that magicked-up lambda later via promises.

This is interesting if you love the idea imperative mutable promise-based concurrency, but it's not likely to win you any performance gains, and it's useless in the extreme if imperative mutable promises aren't your cup of tea.
Your comment sounded like it only worked because of implementation details in the JS engines. That would have been a much bigger deal than just not liking the style.

Out of curiosity, how would you do it yourself?
Thank you. I did not expect that!
7-8 tv

8-4 school

4-11 tv
Thanks for the support, I can probably make it live by the end of the month I just thought that a lack of image and video support would limit its chances at survival.

The browser fingerprinting idea is a bit more involved. The idea is that everyone is anonymous and the types of people who you seem to like, based on factors like leaving your cursor over their comment for a while, are slowly deanonymized to you. The way browser fingerprinting would work in this scenario is that instead of storing usernames attached to models, we store a few different indicators (like browser fingerprints) and create probabilistic models relating these indicators to the aforementioned models. That way even if we have a completely new user we can create a new initial model for them based on what they might like. I have only just started working on this idea though, so I'm not sure how well this would work in practice and I'm not sure what other indicators I might use.

With this in mind I don't think there would be a reason to spin up VMs and create new 'accounts' because it would just limit your personal experience.
Okay, but a much more readable and maintainable way to achieve this same optimization is with function pointers.

In your example:

void (*[10])() function_table = {
&perform_addition,
&perform_multiplication,
...
}

while(1) {
ins = fetch_next_inst();
*(function_table[ins])();
}

Edit: Seeing it written like this now, it's clear you could save yet another jump by defining a macro for what's in the while loop and putting it at the end of every function call.
"Reference"-style humor is not upvoted on HN, since the audience lacks the common context, and the site doesn't provide a way to hide minor comments for those looking for major comments, which makes them expensive to readers.
Ask HN: Gmail alerts Hacker New digest email as potential security threat
Today when I opened Hacker News digest email - I see an alert from Gmail which says:

"Be careful with this message. It contains content that's typically used to steal personal information"

I don't remember seeing such a message before. Is anyone else also getting this warning ? (Could be a false positive from Google, but is alarming).
If you think the story is inappropriate you can also flag it.
1. Good content, advertised occasionally

2. Heavy moderation

3. Esoteric writing

The first two are pretty simple. The third one is theoretical, based on the book I've been reading lately: Arthur Melzer - Philosophy Between the Lines. It's a dense and exhaustive but compelling history of esoteric writing in philosophy and its sudden disappearance in modern times. Writing esoterically acts as another, explicitly elitist filter because it locks out the people who would reach wrong, unenlightened conclusions.

(I recommend the book, it is a slow read though. I'm only about halfway through it.)
Solar Impulse, a solar-powered airplane, completes historic, Transpacific flight
Sell software directly from your own website.

software you write all by yourself.

Lots of coders do this, some are brilliantly successful. The ones that dont make money dont know how to Read The Fine Manual.

For example, SEO is not a black art, it is well documented.
Racism is hijacked nowadays in the USA, it almost exclusively means white racism against blacks. The original meaning (discriminating against any "race" by any other "race") is greatly lost. If you want proof just go to twitter and look up some of the recent threads about Rachel Dolezal case.
Authentication with Angular and Node
The incarceration rate is 5x higher, not "the rate that Blacks commit crimes" as you falsely assert. Tone down the racism, it isn't very becoming of a member of the HN community.

And the capitalization of the Whites/Blacks just makes you come across as Dylann Roof.

Take a chill pill and try to find sources when you want to make assertions.

https://en.wikipedia.org/wiki/Statistics_of_incarcerated_Afr...
I'm completely baffled to see that a bunch of imbeciles happily work for free for this company and help them make money through ads.
Ask HN: How much is too much payload for a webpage?
With tons of JavaScript Libraries, Extensive CSS Frameworks and "Cover" pictures a webpage/app can get quickly become very big (payload). How much is too much?
Yet, besides it's not so much about utilizing it all.
Yeah. I mean...

First off, the attraction of React, to me, is mostly based on being able to write maintainable, testable, reusable, easy to reason about code when working on large, complex webapps. Yeah, React has relatively high performance—at least when compared to a sluggish framework like Angular when writing those large apps, but that's not even the core selling point (as far as I'm concerned). But okay, part of the attraction of React could be summed up as "better performance than Angular on complex applications", and I guess a benchmark proving (or disproving) that would be nice to have.

That's not what we got. Instead, this guy tested the raw performance of some very simple code compared the sort of vanilla code you'd never ever ever write in the sort of app that React (or Angular) is actually designed to help with. So...yes, React is slower than vanilla JS at stuff that vanilla JS is faster at. Shocking.

I'm struggling to think of a less meaningful way to do the analysis.
Ask HN: Is Google abusing its monopoly by advertising in Chrome?
Google is advertising it's own services on Chrome's default new tab page. Today, they're promoting Google Play Music for example. Is google pushing the legal limits of their empire?
He's talking about racism specific to black people in the US.
I have a copy of The Americans on the table in my office. I can't count the number of times visitors have idly started flipping through it, only to get mesmerized and ask to borrow it.

It's an amazing work of art that only gets better with age.
They're not exactly rich, Reddit doesn't share revenue but its expected that they have yet to get into the black.
One neat example that comes to my mind is how some package managers use SAT solvers to resolve package conversioning conflicts.

I would say that SAT solvers (or SMT solvers, depending on the problem domain) are applicable to almost any kind of problem where the first thing that comes to your mind is implementing a brute-force search using backtracking. SAT solvers implement lots of tricks that are likely to leave naive backtracking algorithms in the dirt (knuth's chapter covers lots of them)

One silly example I like is the time I used a SAT solver to find the solutions for a little Flash puzzle game.

https://github.com/hugomg/hexiom

My favorite part is how I could add some symmetry-breaking predicates to greatly speed up the solver on highly symmetrical problem instances. Those instances are very hard for hand-written algorithms and a SAT solver let me work around the symmetry problems in a highly declarative manner.
That's an additional pointer-chase per loop. And more function prefix / suffix work. In actuality, I suspect that it'd be optimized out - but you cannot say "you cannot do X because it relies on compiler optimizations" and replace that with Y that relies on compiler optimizations.
A downvote is the voice of your opinion. If you don't have the ability to downvote, well, that should tell you something about whether HN wants your opinion.
I've found something a little different: Americans who berate America at every chance they get, always pointing out how Europeans have solved Problem X and we are so dumb for not adopting their simple solutions.

Of course, one only needs to look at what is currently happening in the eurozone to realize Europe isn't perfect either.

The reality is that problems that may look the same on the surface have nuances that make them very different in Europe and America, and there are a lot of smart people working to solve them on both sides of the Atlantic.
Reddit revolts after site lays off “Ask Me Anything” employe
For proprietary software, other than per-unit or tier/SaaS, what would be more viable? Artificial scarcity can only be exploited so far, especially with a highly saturated sphere of competition.

Now for free software, where there is zero marginal cost for redistribution and no information restrictions are enforced, there's some experimentation going on with quadratic base pledging (multiple people pledge a low base amount, e.g. 1c, and for each individual the base pledge times the number of pledgers is what is deducted). This is being done by Snowdrift.coop: https://snowdrift.coop/
MOOC's have been shown to be ineffective most people dropout, and if you learn from an MOOC its unlikely you will hit most of the concepts, I think I have seen that when I worked as a tech recruiter for a year, there were tonnes and tonnes of iOS "Developers" who learned from coding shoppes and mooc they never make it past fizz buzz or even building anything more sophisticated then a twitter api call app.
Show HN: Trigrad, a novel image compression with interesting results
“Our cards are opened at an almost 100 percent rate, but email is probably two percent or marked as spam. So there is a huge value proposition there, because sending out 500 cards might be more effective then sending out 2,000 emails,” says Wong.

Except that email is free...
See https://en.wikipedia.org/wiki/Race_and_crime_in_the_United_S...

How is stating the truth racist? I think you are the one who needs to "take a chill pill".

EDIT: You need to scroll down in the wiki article to get rates for specific crimes. E.g. from the Homocide section: the offending rate for blacks was almost 8 times higher than whites.

EDIT 2: And regarding capitalization, see http://english.stackexchange.com/questions/173974/are-white-... It's not just murderers who capitalize Black and White.
1 is a long confusing extended metaphor, not an explanation of the search issue.
s/will still/can/g

Your experience, while fortuitous and probably well-earned, is far from universal.
Define "decent".
Firemacs: Emacs keybindings for FireFox
Love the classic HNer combination of wrong and know-it-all.
This was solidified for me years ago: back when people used to get worked up about Apple vs Android[1], any talk about the negatives of restricting browser choice, keyboard choice, etc was met with "not everyone wants a platform that they can completely hack to run Gentoo lol, most people just want a phone that works". Hearing people say that on HN without even a hint of self-awareness of the actual danger of arbitrarily limiting choice on a platform was shocking, but I got over it years ago.

[1] For the life of me, I have never understood how childish one has to be to have an _emotional response_ to something like that. Whenever people would ask me my opinion and I'd state why I chose X over Y, they'd project "Wow you really hate Apple" onto me for some reason.
C is the fastest, with C++ approximately the same

There's no C++ features really being used here besides true/false (which basically gets treated as 1 and 0 in most compilers[1]) so there shouldn't be any difference between the two - even the generated code should be identical. The C++ code even uses printf instead of cout, which is one area where I would expect a difference. Thus I'm surprised by the large difference between C and C++ at the low end.

[1] On x86 and other ISAs with flags, booleans can be returned in them, which is an optimisation that I haven't seen compilers do (yet) on x86. It's common on embedded ISAs like 8051 though.
Via Xcode and only if you have the source code. Doesn't quite work for people trying to distribute apps that aren't allowed in the app store.
I would like to see the numbers of the Python code compiled without modifications with Cython.
urm, a bit of a bad decision to have it say "Open this website in a desktop computer to download Aether, or join the mailing list, so you'll be reminded." with the desktop computer part bolded and italicized, like I'm an idiot that needs to be walked through these things. I'm using firefox on linux. I get that there may not be a linux client, but do your client sniffing better.

Edit: Wait, no, you have linux binaries, your github says so, so why don't they show up on the main site?
I haven't checked to see if there's an MX (or other) RRs for that zone, but just because there isn't a web page (or something more than a "parking" page) doesn't mean he's "doing nothing with it".
Well I feel silly. I looked in the dashboard several times, but the "valid cert required" was a CA-issued one, I thought. Cool!
> The ones that dont make money dont know how to Read The Fine Manual.

Can you elaborate, do you mean that making money selling software from one's own website is a well understood and replicable process? Not trying to argue, I'm genuinely curious.
It's rather obvious (even if you're unfamiliar with the source) that he/she's not comparing browser choice to literal slavery of the user. The only absurdity here is your choice to take the most outrageous possible interpretation of his comment and then write a comment entirely focusing on this imaginary transgression.
PyPy is on the graph (dotted mustard line between Javascript and Ruby).
"Apple in 2015 is exactly the same company as Microsoft in 1998." OK, gotcha. Substantiation would be nice to see, but I'm not going to hold my breath.
No, he's asking you to back up your claim. If you're going to make a statement like that, you should be prepared to provide some information. Dont make others do the research.
Should be titled, "Attacked from Within (2009)" (per the actual article title)
It should be self-evident how wrong this is from the fact that UIs (web and otherwise) from (e.g.) the early 90s are pretty hideous (and much harder-to-use, in many cases)[1]. One has to balance between building for the present and moving the ecosystem and its capabilities forward.

[1] Note that this is an overlapping but different discussion from "the web was created for serving static pages and it should stick to that"
I think arthurcolle's point is that most people believe our justice system is inherently racist; poor minorities do not have access to the same financial means for legal resources, they are not given as many breaks as rich white people, etc.

His concern seems to be that your stated source focuses on "offending" which implicitly infers that they are caught and charged by law enforcement.

Your assertion was about "commit[ing] crimes" while your fact is about "offending" or charged or convicted with crimes.
I am not sure about if 2 actually would hurt performance in the real world. Remember the whole "must appear to be in order" thing. If the compiler knows that it doesn't change things if they are out of order, it's free to rearrange them.

Note: things like this are part of the potential advantages of static linking.
As such, there's nothing preventing any of the optimizing compilers from optimizing the entire program to essentially print("pi<num> = <num>").

That has clearly not happened here. If it did, you would see a flat line regardless of n. Nevertheless it is a good idea to make it e.g. take n as a commandline parameter, even if only to make testing different values easier.

Ditto, time to load interpreters is included, whereas time to load compilers is excluded.

You don't have to load the compiler every single time you run the program, whereas that isn't the case with an interpreter.

Also, note that the output is different in format for the different languages.

It's performing a single output operation at the very end of the computation. Any difference in that would be completely lost in the noise as n increases and the computation time dominates.

On a different note: he mentions PyPy in passing but doesn't post benchmark numbers

PyPy is there between JavaScript and Ruby:

https://bjpelc.files.wordpress.com/2015/01/graph3.png
Speaking of talking about poetry with Vulcans, do you want to cite those bugs? I'm curious, because I've developed against Mobile Safari for years, and never actually had any particular difficulty; granted this has been mostly personal projects and little of it has entailed the use of bleeding-edge web technologies, but I'm still rather curious about this "antiquated, buggy monster" side of Safari that you seem to be seeing.
It seems to have been added after I made the comment.
The author brings up things that a lot of people might not know such as whites generally over estimating the age of black youths.

The problem is he then goes on to assume every negative experience with a white person is because he is black.
To be honest hiring or promoting is probably similar so I wouldn't bash him.

It's just unfortunate that the way we "fix things" is never fair. I'd rather we be transparent in the hiring, promoting, and salaries. I'd rather we attempt to fix the social pressure issues.
What kind of an explanation are they expected to give for a termination? Any details would typically be kept private. I've been reading this saga all day and can't figure out what they did wrong, unless you factor in speculation about the reasons for termination, which of course portrays Reddit in a bad light, but even then they don't come off looking evil, just a bit tone deaf to the mods (who collectively strike me as a pretty entitled bunch)