skysight-inc/HackerNews huggingface dataset:
> I've worked on multiple large projects, and while type
> errors are a problem, they aren't in the top 5 classes
> of 'most commonly reported bugs in production' - not
> if you have tests and a sprinkling of sanity checks, anyhow.

My claim is that Pythonists are completely unaware that almost all of the errors they experience could have been avoided by just informing the compiler about what type a value is. I find it peculiar that people prefer writing tests to verify type correctness (a lot of work), rather than just having the compiler check it through simple type annotations. I say this coming from Python, having moved to to Haskell. Two diametrically opposite worlds in terms of type strictness.

I think sprinkling type annotations all over the code is much preferable to writing test code. We have a type system such that the compiler can produce the code needed to check types, rather than us having to write this code in a test.

In my humble opinion, humans shouldn't have to write test code. If you can't get the compiler to generate the test code you want - by constructing the types carefully - you're wasting a lot of time, because you have to write both the implementation, and a second implementation which tests the first one. So every time you do a rewrite, you also have to rewrite your tests, so that the two match. Double work.
Personal referrals.

But the real success in treatments now tends to be self education. Not WebMD I mean reading the actual research papers to evaluate what options would work for you. Know yourself.
Semi-relevant xkcd: http://xkcd.com/1486/
Wow $5000/mo for 2000rps, just for the application servers? That's absurd.

I think we're paying around $2000/mo for our app servers, a database which is over 2TB in size, and we ingest about 10 megabytes of text data per second, on top of a couple thousand requests per second to the user facing application.

I don't think we'll be turning to Heroku any time soon. Sorry if this seems like a pissing contest, just giving some basis for comparison.
Instead of "embracing transparency" it should say something like "embracing transparent business practices". Someone landing on your site for the first time won't know what you mean by "transparency" especially when the first company listed on the page is named "Ghost".
Basic implementation of the parallel Borg MOEA
If possible, cut a word.
Save Over 90% on the Entry-Level Python and JavaScript Programming Bundle
I had a college friend that was a helicopter pilot in the reserves and shared this little tidbit with me: Rotor-craft maintenance per flight hour is typically around 4 hours. Really crazy to consider.
In Russia, Saint-Petersburg fiber is in every home. In one year (i guess) government remove old phone and replace it with fiber + router in almost every apartment in the city. I think doing fiber is not that hard if you need to make it.
I found this article very unsatisfying due to the lack of key details. This reads like a blog post tailored for an audience of folks with pointy hair.

As far as I can tell, they went from Hadoop mappers pulling logical backups from the DBs using python and mysqldump to ... Hadoop mappers pulling logical backups from S3, which were pushed there by scripts running on the DBs, probably still using mysqldump. Although I have no idea, since there are no details. Are these backups physical? Logical? How is the 12 hour big table problem solved by this approach? Why was there a limitation on the number of mappers usable by the old approach?

And what of the old system's DB failover problem? Nothing that can't be solved with a script that is failover aware! Nice. No reason to have dedicated ingestion slaves that aren't, you know, master candidates, when you have scripts that can restart themselves.
There's a very important metric they have left out of their data on settings for each test run: WEB_CONCURRENCY. While this will be different per app it will make a big difference to the performance. They mention they had 67 processes on 10 p-large dynos, but why 67? Did they do some separate testing to prove that was optimal?

In my experience it should be tested as an independent variable (to dyno number and type) to optimise performance.

I will however 100% echo that it is never worth scaling on shared tenancy dynos. In my experience the combination of noisy neighbours and random routing means you'll very likely end up with worse performance by adding shared tenancy dynos.
How are futures handled for open() and disk i/o?
Humorously this looks a bit like Apache Wicket, a Java-based client/server UI framework which has been around for about 10 years: https://wicket.apache.org
It is a difficult field I'd say only out done in complexity by nutritional science. What works for one person fails on a dozen others.
> "The chance of making progress toward real democracy is often not seen as worth the risk for external parties (especially external elites); locals, of course, may have different calculus. "

That's a very true observation but that doesn't mean that elites will always get their way and prevail over the masses.

The masses can sometimes secure victories at their expense, albeit short-lived in most cases, and force them to change their mind and adopt their ideas.
Best Stocks Screener based on semi-structured attributes search
This looks really impressive. I'm curious what the story is around propagating errors through chains of futures. Traditionally future libraries don't pay much attention to that which can make debugging excruciating, which it doesn't have to be. But then rust does errors differently so maybe it's less of an issue there?

About the naming though, I was a little disappointed. Out of future, deferred, and promise, "promise" is the better term. The two others imply that something will happen later which is misleading because it's fine to have promises stick around long after they're fulfilled.
Well, the entire human race is inadequate to run a marathon in less than 2h so far...
You are mixing rhetoric into your argument. Nations make agreements between themselves and bodies like the UN, and violating these agreements can be called legal. War is not the breakdown of social order, often order continues within the societies of the belligerents. We may say that an act of war is legal if its declaration and conduct does not break any of the nation's agreements.

When a country decides to break its agreements it is more useful to say that there is no strong rule of law in international relations, rather than that there is no law.
Reviews of Amir Najam Consulting in Covington, WA
My 2GB VPS can handle that ~2k rps easily at a tiny fraction of the cost.
Writing is art. You will not find many good rules of the kind you're looking for.
How to scale your Rails app to 2000 reqs/sec? TL;DR Spend $5k on dynos. :S

Rails and Heroku: two things that don't really seem like good value these days.
I think you may be on to something here. I have always wanted to be a programmer, but for a long time may attempts to learn a number of different programming languages came to nothing.

This all changed when my wife finally got sick of me bemoaning my failure and persuaded me to take on a part time computer science degree. Ok, there were a couple of other reasons to do it, but in essence I was scratching an itch.

The courses I studied during the degree not only gave me a direction for my learning, in that I had to produce the required program to meet the requirements of an assignment, but I also learned that there is a lot more to learning to program (or code if you insist) than just learning the semantics of the chosen language.

I think there are a few things that those who want to learn how to code (ok you win) need to keep in mind.

- Programming big things is really hard. You are not going to be able to build anything more than a fairly simple application without a lot of work and experience.

- You really need a purpose for learning. Without this, you will have followed the bouncing ball on a bunch of exercises and still not have any idea why you have done it.

- You need to make mistakes. Without making mistakes you will again just have followed the bouncing ball on a bunch of exercises. It is when you have to find what you did wrong that you start to learn. This is not a typing exercise, you need to understand what you are putting on the screen and the only way to do that is to make mistakes and fix them.

- You need to be willing to hack things around. Don't just do the exercises, they are just typing practice. Take the code you have written in the exercise and do something different with it. If you are playing with graphic routines, see if you can make it into a simple game, or make it draw something different. If you are playing with text, see how many ways you can put the a set of words together that make sense. Play with your code, this is meant to be fun. Remember how you used to feel when you were playing with Lego when you were a kid and see if you can capture that same feeling. Ok, Lego was a lot more forgiving in how you put it together, but you will learn a lot more once you start playing with programming, than you will ever learn from following exercises.

The parent comments that they have to learn a bunch of libraries to do anything useful. Start with something simpler, you don't need to do a full GUI application in the first week. See if you can make something that works just from the command line. There is a lot of very useful programs that work just by digesting a text file and producing some output. Yes you will eventually have to learn a number of libraries, but remember you have to walk first.
It's fast on my Nexus 5 too.
Show HN: Modern, geeky blogging platform
Ghost Browser
China's Hybrid Spaceplane Could Reset the 21st Century Space Race
> Can we just create a community standard of plain-jane HTML to separate it from all this "publisher" junk that AMP stands for, and then build a gigantic web ring and a search engine and all that?

These guys might be a good first step: https://indieweb.org/
Do you ingest that through rails? Maybe you do, IDK! But srsly, comparing different use cases as apples to apples is not very informative. I could give you our numbers at 300rps REAL peak and tell you we pay at least a 2x for our hosting.. But that tells you nothing about our latency percentiles, CND costs for MANY TB/month, burst capacity at reasonably latencies, etc. And that's not accounting for the fact that certain CRITICAL code paths have different bottlenecks depending on who hits them due to lock times. Different workloads, different companies, different requirements! Don't be so dismissive!
Android (SGS7 edge) here. I wouldn't call it slow. It's just different from the normal scrolling. And unpredictable. And frame skips sometimes.
These clever data exfiltration techniques are interesting. Not to discount these latest researchers' efforts, but the lesson is that if you're within sensory physical proximity of the hardware, data exfiltration is possible. This is an extension of the the axiom that once an attacker has physical access to a computer, it's no longer secure -- it's clear that physical access need not always be access to the computer's internals.
Most AWS instances over a certain size have pinned cores and you'll see very little steal time unless something is up. That said, something might be up! I've seen it and the big players(netflix) monitor for this and re-prov accordingly.
How to Burn Video to Blu-Ray with Sothink Blu-Ray Creator
Plus they are optimizing for a platform that may change without giving them enough time to adapt. At their scale, running their own servers is also important because you are not at the mercy of anyone (except at the mercy of hardware and OS people, but who isn't?). Being able to adapt and upgrade at your own pace is important.
Alcohol on the ground causes less problems than excessive CO2 in the air, and still better to recycle the problematic CO2 in the air than increase its volume by burning oil from the ground.
Helicopters, like all flying machines, have much stricter safety regulations while also being extremely low volume. This means that for every part that goes into a production aircraft R&D, tooling setup, and testing will far outweigh the cost of materials, machine time, and assembly. This is very different from an a car where the cost of goods sold (materials, manufacturing, and assembly) is many times more than the sunk costs.

For example, if I wanted to make 30 complex six layer PCBs it can cost on the order of $9,000 at $300 per board. Realistically, $8,000 of that is the cost of labor for setting up all of the machines for the production run but if I wanted to make 1,000 of them the price can drop to $30 or less per board because the static setup cost is now spread across many more units. In aviation, every part is essentially custom and not made very often so you have no choice but to pay that huge overhead every time someone orders a chopper unless you a) batch together manufacturing (large inventory cost and risk) or b) maintain the machinery so that it's always set up to make your parts (large capital equipment underutilization cost). Either way you've got overhead that costs much more than the parts and is unavoidable. If you're lucky you can buy the machining equipment and save lots of money by renting out time like Boeing does with their multimillion dollar five axis machining centers which make very precise turbine blades for a variety of applications like power plants and dams. This rarely makes sense for a business to do however, because then they've got two businesses to worry about.

People are so used to cheap mass manufactured goods that many don't realize just how much more it costs to make anything custom.
If you'd look you'd find plenty of evidence of the sort that you think doesn't exist. Try a popular book like Against Depression as a starter. I think that the existence of such evidence also invalidates the rest of your prejudices that you express.
Sadly at present Postgres has absolutely awful mysqldump support (It's not even on their roadmap) so I doubt it would be a good fit for Pinterest's environment.
> Today's web isn't slow because of HTML's features, shortcomings, or other properties; it's slow because of excessive reliance on client-side scripting [...] Turning off Javascript vastly improves pageloads

Sure, disabling JavaScript will improve pageloads. However, are you suggesting clicking a link and waiting for an entirely new page to load is good UX?

Good UX is instantaneous feedback, client-side code is a requirement... Unless you want some kind of enormous super-spec that is supposed to encompass anything anyone could ever wish to express in pure markup. In which case, good luck getting that supported and rendering quickly.

The whole point of JavaScript (or any client side code, including mobile apps) is that it vastly improves UX.
You know it's odd: in all those years I spent helping my dad with his knees shot from zoloft induced weight gain or waking my roommate up because she drank too much to counteract the stimulants they prescribed to balance the benzos or sleeping next to a partner with a permanent, random, violent parkinsonian tremor caused by antipsychotics, I never considered doing a frequency analysis against the myriad of unrecommended non-psychiatric drugs and treatments out there.

Unfortunately, neither did any of their doctors, it would seem.
This an intro, conclusion and 3 paragraphs that don't say much more than "HTML is shit because people don't specify image size and this irritates me".

I can't tell what's worse: this post, or the fact that people are responding to it.
Per minute? The only reason why one would measure requests per minute is when the number of requests per second is ridiculously low.

And it is... Seriously, 2,000 requests per second is considered fast in the Rails community?

The JVM achieves several orders of magnitude that before the JIT even kicks in.
> We (as a species) have been growing exponentially in an unsustainable manner.

This is a myth.

In fact birth rates are decelerating at an alarming rate and actually starting to decrease in some parts of the world. In a couple of decades, population is projected to begin decreasing worldwide. Many governments are creating programs to encourage procreation to try to hold off the inevitable death spiral most countries will experience.
Jonathan Blow (creator of Braid, The Witness) also has many interesting talks on indie game development. Here[0] is his talk on prototyping games.

---

[0]: https://www.youtube.com/watch?v=ISutk1mauPM
Not sure why I'm being down voted here.

Its nontrivial to build it. I see the developers saying it's got a beautiful UX, and I'd love to play around with it, but Not everyone can devote as much time.
India’s ascent: Five opportunities for growth and transformation
It seems obvious to me that the reason for the decline is drones. If you want to look at something from above, it's now $200 instead of $2,000,000.
So the client downloads the data twice? First embedded in HTML and then via an additional request?
Link says there are no jobs found.Was that very quick or there's some problem with it?
And what would be the degree of accepted violence by Christian extremists, historically?[1][2][3][4] Can we even begin to compare it? Subtly narrowing the definition of "violence" to "suicide bombers" alone serves a political agenda.

[1] https://en.wikipedia.org/wiki/Inquisition

[2] https://en.wikipedia.org/wiki/Crusades

[3] https://en.wikipedia.org/wiki/Christian_views_on_slavery

[4] https://en.wikipedia.org/wiki/Christianity_and_antisemitism
Reliable Ordered Messages
Might be specific to the Galaxy — Samsung still forces its own browser on phones instead of the stock Chrome other manufacturers rely on.
Matrimonial app
I mean the kind where we swap genes. A lower birthrate doesn't help much. Genetic engineering exists, but we can't change how our bodies have already developed quite so easily.

I think occasional increases in brain plasticity may be more useful to change society itself (assuming you can get people to do something that alters their brains). That may not be necessary of course.
In other parts of the world where manual transmission is still popular, the leftmost pedal is the clutch. Shifting the accelerator to the left would be an instant recipe for disaster on the roads.
The FSF's First Annual Report
I had no idea companies like Exodus Intelligence existed. I see a few government agencies in their client list. The whole business seems pretty shady to me.

Can anyone realistically estimate how many "zero days" Exodus Intelligence possesses and distributes? I have no idea...
Feature request: it would be nice to be able to communicate with the indie developer within your website. Maybe though a comment section at the bottom of the page or a community FAQ.

Anyways, nice website I will come back!
Looking forward the rss feed ;)
> You cannot share news links with anybody using the browser share option.

This. I want the user to know they are on my site and be able to share the URL when they want to. Google News, admittedly the only implementation of AMP I've seen so far, fails in making visible that basic unit of the Internet -- the URL.
It is easy to criticize in retrospect. If HTML was not what it is, we may never have reached where we are and said ok we need to step back a little and figure things out for the multitude of consumption mechanism.
Maybe what dingo_bat means is that scrolling the AMP pages works fine, but scrolling the news.google.com homepage is janky. (Which is what I also notice on my Android 5.0.1 phone running the latest Chrome.)
If it loads quickly, why not? My connection is a sub 3ms ping to the nearby datacenters, what exactly is the bottleneck?

It's not to say there isn't a place for SPAs but I would argue many of these would be better suited to being full fledged desktop apps instead (better performance and snative integration).
I've followed, and sometimes participated in, variations of this discussion since 1989. I wrote up an article about this topic on the Yakking blog, recently:
http://yakking.branchable.com/posts/comparative-freeness/

It's not a useful discussion that will ever go well, so I'm not surprised it's a big subthread on HN.
For many pages, loading an entirely new page is perfectly fine UX, and way better UX if the alternative is dynamic loading and all kind of performance-eating ad scripts, scroll hijackers, ...

If your site is a traditional content-heavy website, you need to load a full page of content with both ways, it doesn't matter that much if you are loading the skeleton around it or not, and there is way less chance of accidentally breaking something. I don't need instantaneous feedback that you have begun to squeeze content through the pipe (if I'm on mobile the content will take time to load anyways, on a wired connection you can deliver a full page quickly enough)

Sure, real "apps" are a different thing, but they are not the ones people typically complain about being overloaded with scripts.
Yes, you're right. I was thinking aloud about how it could be made conforming, in principle.
If this was open source software the answers would be "Don't use if it you don't like it" or "It's open, why don't you fix it yourself?"
On my case I wanted it to have stayed as plain interactive documents.

I contribute to this goal by only allowing native applications on my devices, unless I don't have any good alternative to switch to.
Indeed, the klipse plugin has access to DOM elements.

What ideas do you have for kids?

I have tried to do something for kids here: kids.klipse.tech

The klipse plugin concept is explained in details:

1. http://blog.klipse.tech/javascript/2016/06/20/blog-javascrip...

2. https://github.com/viebel/klipse
It's a spectrum with that scenario at one end and at the other end: everyone paying exactly the same amount regardless of age, car, location gender, previous convictions etc.

I think that tailoring the premiums based on the driving style is fair, and would give bad drivers the option to improve to reduce their insurance, with the nice side affect of making the roads safer. It isn't going too far down the slope to do this.

In the extreme, it would mean everyone would need to become a safer driver or not drive at all, which is probably a good thing.

They will become safer drivers then pay a small premium to cover them for chance accidents like a collapsing bridge or a blown out tire.
There is a practical application for recursive memoization:

http://blog.klipse.tech/lambda/2016/08/10/y-combinator-app-j...
The new California digital currency bill: How Coin Center is responding
In Scandinavia everyone is already guaranteed a certain amount of income by law. If you can't get it by working, then it is provided by welfare. I don't see UBI being any different.

But you're right. I don't know how people in the US would react. Maybe they would see it as an evil tax from rich to poor and never accept it. However, I'm arguing that it doesn't have to come with any extra tax burden.

There is an UBI experiment starting in Finland in 2017. If it proves to be successful, then I have no doubt that it will be implemented elsewhere too.
Maybe think about traveling internationally, and doing some of this in your downtime on the road. You'll learn a lot seeing how things are done in other countries.