skysight-inc/HackerNews huggingface dataset:
The last item of an array should be simply arr[-1]. This is very easy to understand once you have played with it for a few days.

Your second example isn’t ultimately about array indices, but is caused by confusion between using 0 as both an ordinal number and as a representation of boolean false.
I was confused when writing a NodeJs script last night which ES* features were supported in the node runtime I had installed (6.9.x).

This blog posts mentioned Node already fully supports ES6.

Is there a table anywhere that lists ES6/ES7 features and which nodejs version supports it natively?

I assume async/await (which I love and use from TypeScript) will only be available in Node 7.x and not 6.x.

The Node.js home-page makes node 7.x look scary unstable, is there any real-world caveats to using it?
Why functions are useful, and how to use them effectively
London’s New Way to Count Tube Riders? Tracking Their Phones
Just this morning I found myself unable to switch between two Google Drive accounts, because both of them had the same domain, @gmail.com.

Signing out of a single account leads to all accounts being signed out. Gmail was launched 12 years ago.

Why, Google, why?
You are making huge assumptions about how people use exceptions, and huge assumptions about the goals of a program.

While you and I may agree that exceptions should be used for unexpected situations, nothing forces people to use them that way. A library programmer may have weird ideas about what warrants an exception. If my application appears to be functioning correctly, I should not have to risk crashing because of something that cannot be proven to affect my program in a significant way. My program may be trying to remain stable (e.g. a GUI for a user), and the user may well not care if my program has encountered an issue if it means throwing out their last 10 minutes of unsaved work. Some programs like CAD tools may run for days, and even partial results with logged errors can still be important to preserve in lieu of stupid crashes.
Got it, didn't realize that, fixed! Thank you.

I sure did ha! Her esty store does very well for what its worth, its getting to the point where its actually going to be worth taking the time to take it to the next level. I'll see if anyone else has more comments on using this service, do some research, and go from there. What I really need to do at this point is just link the owned domain of her shop to her etsy page as a stop gap for ease of use. I'm gonan down that now....:)
I agree that the screen is brighter in the new 2016. I never use screens at full brightness, it bothers my eyes. Emacs is very low power, so it uses a lot less battery than CLion or Eclipse, probably. That probably helps. I don't code to music, so that saves battery also.

Are you saying that 2016 has longer battery life than 2015? That seems contrary to the current scandal.
I'd compare them more to orthotics than running shoes. Some people only need them temporarily until their legs get better, some people need them for the rest of their lives. You still need a doctor, but they help with day to day activities.
Look at the examples.

Math is useful not because it's abstract, but because it's concise and descriptive.

Pattern matching is a much more natural way of thinking for a human than tracing the execution flow; did you ever write Basic on 8-bit computers?

It seems that Pyret is much closer to OCaml (there's a direct comparison in the examples), but with a less mathy syntax. It's also not statically typed. So it should feel much more like Scheme, or, well, Python: you can easily write imperative code, with explicit loops when you want to, etc. But it gives you the nicer data model, the one that combines the natural feel of "objects" and the conveniences of Hindley-Milner-ish types.
On Monoliths, Kubernetes, and Monitoring: Transitioning to Docker at MLS
OTRv4: deniable authenticated key exchange and better forward secrecy
I think that's a very valid question. I think Pyret is attempting to reach out to people who may not view Lisp's favorably and still convey many of the valuable concepts. Whether or not it is the right approach or if it will translate properly is yet to be tested.
When dealing with MVP on Android, how did you deal with dynamic view creation?

Right now we are working on a rearchitecture and are finding that creating dynamic views in the Activity/View requires business rules we are putting in Presenter. But the Presenter doesn't have context.
If. That's the key word. Even the FBI isn't sure. The CIA yelling "Russia did it" on all rooftops is only a sign that it's a last-ditch effort to prevent a Trump presidency. This whole rigmarole is hilarious to watch, especially when it comes from the country that invades other countries for "democracy".
I've worked in the mental health field for years and remember believing that a sense of purpose and good social support was more important than the medication and that the medication was not necessary and harmful. Knowing what I know now, there are some diseases, mostly those involving psychosis e.g. schizophrenia, where med adherence is vital to a person learning how to cope with their disease otherwise they can't function and it is certainly not a character failing.

I haven't read the book in this piece and not to knock on journalists but there are things about mental illness you just won't learn without exposure to it and actually working to help people recover. There is a massive problem with over prescription and this idea that mental illness can be 'cured' with medications and medications alone which is absolute flummery (but if you look at what medications bring in the most revenue, the fact this persists shouldn't surprise you).

Biggest take away is that you shouldn't view drugs as necessarily bad as this piece implies. They aren't. When you have a patient who is so depressed they can't get out of bed or another whose auditory hallucinations intensify to the point of violence the drugs are necessary but they aren't a cure. Getting over mental illness requires social support but it does at times also require psychotropic meds.

And don't get me started on the bullshit pushed by pharma a few years ago that people in pain can't get addicted to opiates. I loose it almost every time.
A surprising Python quirk
Fundamentally, if you use their backup service as well for critical services is that at least reliable? Rackspace was.....lackluster.
The timing of this makes it seem politically motivated. I've seen plenty of fake news on my liberal feed. Things like 9/11 conspiracy theories, anti-vaccination stories, stories about the dangers of genetically modified foods, etc.
Scientists Say They Can Reset Clock of Aging, for Mice at Least
That first pause being preceded by what? "Go"? A button press? A pistol shot? All surrogates for "0".
For what its worth, would you be comfortable elaborating how long you have used them and what kind of things you deploy there?
How NYC’s budget works
As I got older, I've had more and more trouble focusing. I also started to suffer from confusion. The scariest part was when I was talking to someone about a technical subject, and suddenly what they were saying literally stopped having any meaning. I just couldn't understand a single word they were saying. I saw and heard them speaking, but didn't understand any of it. This lasted only a short time, but it happened a couple of times.

I then started taking DHA and CDP Choline, and all of the above symptoms went away. I was back to "normal". Through experimentation with stopping and restarting both DHA and CDP Choline, I figured out that it was the latter which was responsible for the change. There were days when I'd forget to take the CDP Choline and then later in the day notice that I felt I had trouble focusing and then realised, "oh yeah, I forgot to take the CDP". Starting to take it again would relieve the symptoms. This happened more than once. I also went for months without taking either supplement, where I'd run out and procrastinate on getting a refill, and sure enough, I'd go back to having trouble concentrating. Then I'd finally get a refill of CDP and I'd be able to focus well again. All of this has convinced me that CDP really is working for me.

Later, due to some other health issues (not related to cognition) that I've had, I took a good hard look at my diet, and found out that many health issues that I have and have had in the past could very likely be due to various vitamin and mineral deficiencies. Though I've always known that my diet wasn't really healthy, I never realized how much of a profound effect the lack of proper vitamins and minerals could have on my mental and physical health.

I started eating a lot more healthily (in particular, eating lots of fruits and vegetables, which were almost completely missing from my diet in the past), and taking supplements for some of the nutrients which I was still not getting adequate amounts of from my diet.

As a result, I feel much better, have a ton more energy, feel in a better mood, and have no problems concentrating.

I strongly encourage you to take a hard look at your diet to see if you're missing or low on any essential nutrients, and consider supplementing those (or, better yet, getting them through eating more nutritious food). It can really make a world of difference.
You might find this useful. http://node.green/
Neither country has debtor's prisons anymore. That dark chapter in our history has past, fortunately.
Thanks, very interesting data set. Shocking to see India went from 1% Ipv6 to 22% in just a period of 6 months or so due to Reliance Network.
I'm rewriting all of my large amount of RethinkDB client code using PostgreSQL right now (including using their JSONB and LISTEN/NOTIFY functionality), and loving it.
This isn't too surprising, as a paid G Suite user my 'help' experience was better than that of the free version (at the time) but it was still sub-par to the support Microsoft gave for even small businesses that bought 15 licenses to Office.

The killer is that Google still has not cracked the 'support people who don't like to use computers but have to' nut and it is very very hard for them to get there. Until they can get there I don't see them making either serious inroads or serious cash flow from any consumer facing app/device.
If you're unwilling to let go of your pre-conceived notions of what syntax is supposed to be, sure. I find clojure code really ugly, like it secretly wants to be javascript but can't commit to it. Pure s-expression code is very pleasing on the eyes once you get used to it.
Do Adults with HFA or Asperger's Differ in Empathy and Emotion Recognition? [pdf]
He writes his name as something like Dÿkstra, but everywhere else it's referred to as Dijkstra. Does anyone know how this character (combination) works?
Good question! Pyret does not translate to a class hierarchy. Pyret dynamically allows dot lookups on both objects and ADTs. In the type checker this means that an ADT permits dot lookup on any field that all variants have (in this case, `name`), as this will always be safe.

Additionally, Pyret's type system internally tracks each of the different constructors as a refinement on the type. With the animal example this would be represented internally as something like

Animal%(is-elephant)

if the type is known to only be an elephant. Though this is not used everywhere it could be right now it is part of the system. This means we have room to do things like if-splitting e.g.

if is-elephant(x): ...

would be able to treat x as an

Animal%(is-elephant)

in the body rather than just an `Animal`.
I understand why making a different IDE for every language is good for business, but I hate having to jump around to a different program for every different language I use, especially when pretty much all the IntelliJ derivatives are the same but with different plugins using the same plugin architecture. It seems redundant.
Yeah I mean the cost has always been there but this is the first time I recall lots of media coverage around the reality that incidents like this can cost billions, seems like it's finally sinking in.
If you're looking for a lightweight Evernote alternative with markdown, real-time collaboration, and wiki-style organisation: We're building Nuclino (https://www.nuclino.com).
Large files are a no go on Atom. I still use sublime for those.
I have to agree with you, Python does really have lots of magic things, such the for loop, list comprehensions and generators, to name a few.

I also teach programming for a living, and, for instance, I usually have a hard time explaining to students what a for loop over a range() means for having a index. The problem is that there are a lot of things going on behind a for-each (which is what the for loop on Python does) and it is hard to explain that to newcomers. On the other hand, for loops in languages like C are simpler to explain to newcomers, as there isn't much hidden from you, and you don't have many alternatives for iterating on an array.

I would say that the higher-level benefits of Python are best understood when you have some experience with lower-level languages such as C/C++ or Java. For students, if they have time, I would say that they would benefit pedagogically by learning a simpler language with less functionalities. If not, I would say learn Python, but expect to not understand everything at first.
Active Directory lock-in is huge as well.
Why do you think it doesn't? If I'm getting a free hand-out, I don't need to work as hard to get the necessities, which is why I go to work in the first place.
Have you looked at the tools with atom's go-plus plugin? The debugger uses Delve.
FCC Chairman and Free Internet Champion Tom Wheeler to Step Down
There's more to it; making whitespace significant makes it harder to read in print and when presented with non-monospace fonts on-screen. Even without these caveat, it's still a bit harder to visually process. It's like the = vs == problems. It's easy to get right, you almost always get it right, but it's close enough to cause errors and requires extra concentration effort.

Other lisp-ism: gratuitous abbreviations. Is 'lam' instead of 'lambda'. Given its teaching claim, that's two layer of understanding required of students: to know what a lamba is and to connect that lam stands for lambda.
Does it matter what the motivations are if they are using the same criteria for filtering all kinds of fake news?
arr.indexOf("thing") > -1

... this one is hardly related to zero-indexing. If indexOf returned 0, this would be equally inelegant.
When this was discussed previously, I made an in-depth comment on it there, which I'll reference again here: https://news.ycombinator.com/item?id=8851408
Bike shedding as I understand it is more about non-experts arguing endlessly about some trivial detail because everyone can understand it and has an opinion.

What's happening here is experts arguing about minutia that feels important to them, but looks trivial from the outside.
In the US sometimes auctions are used, but it is not the norm for most markets. Usually the seller will hire a real estate agent, who helps the seller determine what to ask for the home. Then, the sellers agent will be responsible for listing and marketing the home. The cost of marketing is usually paid by the real estate agent, so that can be part of why the commission would be so high. Back in the day when there was no Internet and listings were primarily advertised in newspapers and special directories, marketing was probably a much higher cost.

As far as the buyer goes, they will usually have a buyers agent to help with showings, negotiations and to coordinate the process. An offer is usually contingent on several things- the main ones being 1) home/pest inspections; 2) Appraisal, 3) Financing.

So real estate deals do fall through often enough. Maybe somthing is noted on the inspection- the buyer might ask the seller to pay for a repair, and the seller decides not to. FOr example, when I was shopping for my first home we found a nice little place, I was little concerned about a few things with the roof, but I made an offer contingent on an inspection (as well as the other things noted above). My offer was accepted, so I had it inspected. The roof was really the only concern, the inspector felt that it should be replaced. I told the seller about the problem, and they decided that they were not going to pay anything towards a new roof, so we mutually agreed to nullify the contract.

Later I found another home- it passed all inspections, but the appraisal came in $900 less than what I had offered. The seller was going through a bankruptcy and had to have the sell approved by the bankruptcy judge, and since they had already approved it at my asking price, it was not worth delaying the closing over getting the price reduced $900, so the bank and I agreed that I would just pay an additional $900 down at closing to bring the debt/value ratio to where they wanted it, and we closed. (If it had been a more significant proce difference, that may not have worked out, resulting in another voided contract.)

In other cases, financing may not come through- the lender will pre-approve the buyer, but that is not a guarantee- the lender can decide they don't want to lend on a property due to the condition or something else, they may discover something during underwriting they weren't aware of about the buyer, the buyers situation may have changed, or the market conditions for loans may have changed (interest rates increased); all of which may result in a denied loan, and thus a voided contract.

Real estate agent are supposed to make this all as smooth as possible and help inform buyers and sellers to minimize the risk of any of these things happening.

I agree that with modern technology the current commission structure is probably not optimal, though.
Normally I would agree, but in this case it improved my experience.
I would expect that behaviour from any political news fact checker, humans being what they are.
Use -Os to check. Compiler turned recursive function to loop.
I built https://mvpaas.com to solve this problem for myself. It's a hosted solution so it may not be what you're after, but it sets up my landing page, user auth, subscription management/card handling automatically.
I know. This almost feels even bigger than politically motivated. This seems to me like a full on attack on the open internet. How quick before Edward Snowden is producing fake news and a new generation doesn't trust him?
Speedtracker – Open Source Performance Monitoring
This is very difficult to argue empirically, and I don't claim to know what's going on in students' minds. In particular, I don't know what "most people in the world" struggle with, just those students in the middle, high school, and undergraduate courses that I've been involved in.

As a concrete counterpoint of _friction_ between what students may have as background and what many languages do that relates to language choice:

Many math teachers we work with use the word "variable" to refer to a name that can change per-instantiation of a function or expression by substituting a value. But it doesn't make sense mathematically for x to be 5 "now" and 6 "later". So writing

x = 5
x = 6

is in some sense expressing an unsolvable system of equations.

Math variables and traditional (mutable) computer science variables are very different things. This provides an _immediate_ tripping point in vocabulary if you want to, say, teach computing in a math or physics class (or leverage that background). So we make a conscious choice in Pyret to dissuade multiple definition of the same variable, or mutability of a variable, to hew close to definitions we can leverage without creating extra conflict and confusion between concepts.

That particular point may differ in different contexts, and deeper studies are definitely needed to figure out what kinds of "notional machines" are easiest or best for students to build up. There may even be more to say about addressing this particular example. But this is a little perspective on concrete reasons for some of these choices.
It's anandtech, it will be accurate. I'll now go one by one through each of them and count where the FX is faster: 17 (out of 86). Okay, that is even more than I thought. However, the differences where the FX is faster are most often very small, apart from the benchmark Linux-Bench 7-Zip, while the other way around the differences are often very big.

The FX has the potential to be a fast processor in specific workloads. Yes, that fits to what you said. Certainly not when single-threaded, but in multi-threaded workloads it can still be fast. But faster than the i5 it is only very rarely (which, yes, is less harsh on the FX than I was in the comment above). It is a pity that its potential (4 years ago it compared to a weaker i5) could not be used in meaningful ways in common software.

By now it is clearly not a good choice anymore: It uses more energy, depending on what you compare it with it is more expensive or costing the same, and it is on an old platform (AM3+) that won't see further updates.

> They're evenly matched on other tests (e.g. Handbrake & "Agisoft PhotoScan

No. We don't seem to have the same benchmarks. I'm looking at http://www.anandtech.com/bench/product/1709?vs=1646, where the i5 is clearly faster in the Agisoft and Handbrake benchmarks. It is mainly in the artificial multi-threaded benchmarks as well as Linux 7zip and Linux OpenSSL that the FX can win. For games the FX is almost always behind, but often close, however, those are partly limited by the gpu and thus not too meaningful.

> If those results are accurate, they do seem to support that AMD FX CPUs are still competitive with new Intel CPUs in the same price range.

No. They mean get an i5: Way better in single threaded workloads which is what counts for 90% of software, faster in realistic multi-threaded workloads. Get an FX if all you do is run OpenSSL and 7zip under Linux, or if already having a good AM3+ board (for that scenario it still is good enough).
Ask HN: Dealing with depression and unemployment: what should I do?
I have been trying to get my first full-time job for a little over a year now, to no avail. I would estimate that I've applied to 60-100 different companies in this time. The best I can get is a programming test or phone interview, followed by silence. I have the skills necessary for an entry-level job, but I guess that I lack the means of showing that to employers. You can see my resume here:

http://cyorir.com/resume.pdf

and my hackerrank profile here:

https://www.hackerrank.com/cyorir

I am self-taught in most topics (C++, Perl), but I also spent 3 years studying at Northwestern University (although I couldn't complete my degree - I was suffering from depression at the time, and I have spent the past year treating it).

Nevertheless, no company has yet seen sufficient value in me as a candidate to give me an offer. Incidentally, I've mostly applied to entry-level or low-level positions, both in the Denver area and out of state. So I am wondering if you have any advice for me. Should I try to keep looking for a full-time job, or should I try something else? Should I try looking for an internship, even though I'm no longer a student? Should I apply for re-admission to Northwestern, now that I have working medication for my depression, and try to finish my degree?

I just want a job, but to be honest I'm not sure what the path forward is anymore. Even though I now have treatment for my depression, it seems like it's only viewed as a liability by employers. I can try to explain it to employers or hide it from them. I've tried both, and it seems like neither works.
Shh... don't give them any ideas.
Yes!

I swear I googled for something like this and came up empty multiple times. Thanks!
I can't help thinking organised religion was /the/ way to create a local community. Unless the state steps in and "forces" locals to gather regularly (in the way fear of god "forces" worshippers together) there's little reason for family X on road A and family Y on road B to meet, let alone shared experience for them to bond over.