skysight-inc/HackerNews huggingface dataset:
If you were observing humans but couldn't interview them, could you say they were acting with empathy? There are all sorts of "acts" that appear to be empathy from the outside but end up being in both parties best interest. Even acts of heroism and selflessness end up helping to hold together our society but it's often hard to feel what the other is feeling. Even when I consciously try, I suspect my attempts at empathy fall short - but it's still important to try.
>A score higher than 1.0 indicated that more of the beverage remained in the body as compared to water, while a score lower than 1.0 indicated a higher excretion rate than water.

Then solid foods that need to be digested to get out the water would score even higher on this index. Condoms full of water would have an infinite score as the water would never show up in the urine. What I am saying here is that this is a stupid way to measure "hydration".

Speaking of stupid, why does HN have so many of these pointless diet things on the front page?
"chaohuan" perhaps means "超幻" in Chinese.
Heh. In a recent overhaul of my site, I considered taking these pages down. But they do still get a reasonable amount of traffic, and I hate broken links.

Thanks to amelius for the "Tcl the Misunderstood" link. I agree with that, for the most part. I haven't written Tcl in many years, but I don't think it deserves the reputation that it has.
The HTML comparison was referring to the python bytecode rather than the language. A more apt comparison would be CISC vs RISC processors, where the V8 IR is more like a RISC processor.
Thanks a lot, this never blipped on my radar, but I love the schemish feel behind the project.

ps: th.c is one fun name I failed to anticipate.
The researchers found that rats rarely opened empty cages, or cages containing a toy rat.
I also use screen, but once when I wanted to automate something I found out that tmux was easier to script.
Can you describe the types of language and culture? Or have resources to look into this further, I find it interesting.
There are ways to do it, but I can't say more...
I feel certain that in the near future we will discover animals are a lot smarter and more emotionally developed than we currently realize, and future generations will look back on our treatment of them with disgust.
Thanks for the recommendation!

You can access Ramit Sethi's content directly here (no need to subscribe to the mailing list): http://insider.iwillteachyoutoberich.com/blueprints/
I used to use GnuCash to track everything, all credit card purchases, mortgage principle and interest...literally everything about my finances. But now I have reduced my footprint to the point where I spend substantially less than I make, so tracking everything like I used to do seems pointless. Using something like mint.com can be a way to get something almost as good as GnuCash with much less effort. But I never felt comfortable giving them all my online banking passwords, so I stayed away from that.

As far as spending goes, I buy just about everything with my Citi Double Cash credit card which pays 2% cash back on all purchases. I have an automatic transfer that pays the balance in full every month, so I never have to worry about late fees or interest payments. Any other bills, deposits, etc that can't be put on the card are set up as automatic deposits/withdrawals, so managing everything takes essentially zero effort. Almost all of this stuff happens via my CapitalOne 360 (formerly ING Direct) high interest savings account. They give me instant transfers between that and my 360 checking account as well as have a feature where overdraft on the checking account gets handled with no fees from the savings account. This means that I am able to keep the vast majority of my cash on hand in a savings account, so I maximize the returns of that money too.

Since my spending habits are now naturally restrained and I'm not concerned about tracking where my money goes what I do now is my own simplified take on a cash flow report. Every month I record in a spreadsheet the balances of all my cash accounts (two checking and one savings account). I also record the sum total of any deposits I make to investment accounts. I don't record the actual value of the investment account because then there would be lots of fluctuation due to the market. All this takes me like 5-10 minutes every month. From these four numbers I can derive a very accurate picture of exactly how much money I am saving every month, and when I subtract this from my actual after-tax paycheck amounts, I know exactly how much I'm spending.

The information I get from this report tells me the only number that really matters for early retirement: your savings rate, as a percentage of your take-home pay. From this you can get a really good idea of how long it will be before you can retire (https://networthify.com/calculator/earlyretirement).
The article links to the study it was based on which tested more drinks: http://www.ncbi.nlm.nih.gov/pubmed/26702122

> Total urine masses over 4 h were smaller than the still-water control after an oral rehydration solution (ORS), full-fat milk, and skimmed milk.

> Cumulative urine output at 4 h after ingestion of cola, diet cola, hot tea, iced tea, coffee, lager, orange juice, sparkling water, and a sports drink were not different from the response to water ingestion.

I don't know where the Hacker News submission got "orange juice is more hydrating than water" from.
I imagine the best solution is to stop using the Facebook news feed. There are better way to get information . I had no idea people still regularly check their Facebook
Eh...

cat<<eof > float.py
import itertools
s = sum(itertools.repeat(1.0, 100000000))
print(s)

$ time python float.py
100000000.0

real 0m0.602s
user 0m0.596s
sys 0m0.004s

time python3 float.py
100000000.0

real 0m0.603s
user 0m0.600s
sys 0m0.000s

$ time pypy float.py
100000000.0

real 0m0.211s
user 0m0.088s
sys 0m0.004s

That's with no warmup for the pypy variant (or indeed the other python variants). Or, slightly more "robust":

$ python -m timeit -s "import itertools as i" \
"sum(i.repeat(1.0, 100000000))"
10 loops, best of 3: 594 msec per loop

$ python3 -m timeit -s "import itertools as i" \
"sum(i.repeat(1.0, 100000000))"
10 loops, best of 3: 592 msec per loop

$ pypy -m timeit -s "import itertools as i" \
"sum(i.repeat(1.0, 100000000))"
10 loops, best of 3: 68.2 msec per loop

Pypy actually does pretty good here:

$ cat float.cpp
#include<iostream>

int main() {
double s = 0;
for (int i = 0; i < 100000000; ++i) {
s++;
}

std::cout << s << std::endl;
return 0;
}

$ g++ --std=c++14 -O3 float.cpp
$ time ./float
1e+08

real 0m0.237s
user 0m0.236s
sys 0m0.000s

Note that the C++ code use a loop, not a lazy generator. Apparently they may be coming in c++17 as proposal N4286.
> The guiding principle behind the new hydration index is that some fluids last longer in your body than others

Is that all there is to it? Could it not happen that some drink caused the water supply in the body to decay as normal, but then continuing to even lower levels than before, for example?

> Lawrence Armstrong, a hydration expert

One wonders how there can be such a thing as a hydration expert if not even these basic things have been known until now.

> But don’t forget that milk has many more calories than water, so don’t overdo it, either.

A bit beside the point, perhaps: What caloric content is there in water? Can it be said to have any at all? It makes you think about how to define it, really. On the one hand, we don't typically think of the energy as coming from the water, but in the other hand, water must be present for us to extract the energy from other molecules. In a situation where energetic molecules (but not water) are already present, then, it is the consumption of water that causes an increased amount of energy to be made available to our bodies. Similarly, a battery contains energy, but not until we add cables to connect it do we get access to it. In a sense, it is the addition of the cable that contributes the energy.
(Maybe the real rats smelled like food, were a sign of food, etc.)
But...but...my life is like that macromanager Lol. Don't worry, sometimes I'm also doing micromanaging. I'm not trying to tell imperative is bad, because I'm still using it when I feel FP is not efficient.

I wrote that article to introduce FP to anyone who wants broaden their knowledge. By knowing another paradigm, we will get the right tools for the right jobs, right?
This is a terrible article about a study with really poor conclusions.

Are you more "hydrated" if your stomach is carrying around fluid for longer?

They test how much healthy young men pee out 2 hours after consuming something. The problem is, it's a dumb test. That 2 hours is pretty short when it comes to how long it takes things to empty from your stomach. With a full meal, your stomach would be a little more than half full at that two hour mark.

Just water gets dumped from your stomach really quickly, 50% in 10 minutes. Here's the rub... while it might not be sure based on the study design, it seems there's a real good chance that the only thing going on here is people carry milk and pedialyte around in their stomachs longer. That's it. No extra "hydration" no health benefits.

It would be akin to saying drinking 1L of water right away is more hydrating than drinking it in small increments over 2 hours. Is it more hydrating? Or did your body just have less time to turn it into urine?

The big assumption being made is equating "hydration" with how much fluid you didn't pee out after two hours. If it's not tied to some set of health metrics (and really if it isn't tied to a long term health study) it should say absolutely nothing about conclusions an average person should take.
No, I wasn't aware. Thank you for pointing this work out. This is exactly the kind of thing I was hoping for. Wonderful!

I can't wait to see what you have planned.

I was thinking after I posted my comment, that it'd be cool if someone could produce a fuzz tester that used both the specification, and the fact that you can turn the Linux and NetBSD network stacks into libraries (libOS and rumpkernel respectively) and co-engineer/evolve the spec whilst also finding and fixing bugs in both the network stacks.

Excited by what you'll be up to!
Show HN: Let us code
I built a text chat app for learning programming: letzcode.com

This is meant to be a less cumbersome and more engaging way to introduce students to the basics of programming.
>After all, if you drink a cup of water and then immediately excrete half that amount in your urine, you haven’t added eight ounces to your water supply, but only four.

Seems like pretty flawed reasoning to me. The aim isn't to keep the liquid inside of you as "water supply".

Unless you're dehydrated in the serious sense (survival situation, diarrhea etc) there isn't really any need to drink something special. The body does an entire satisfactory job of balance electrolytes and getting rid of waste via urine if you just drink enough water.
Be careful with the advice that tells you how to get rich by saving a bit of your income and not buying the things you can't afford. The only person it will make rich is the author of the book. Your average person in the US makes $29K/year. Subtract taxes, rent, insurance, transportation, food, utility bills, medical bills, and you're usually left with close to nothing. Even if you're a developer who makes $150K, you can probably save up $50-60K/year, if you live extremely frugally. So it will take you 17-20 years just to get to $1M, assuming you can inflation-proof your savings. And I don't consider $1M in savings "rich" - it's not enough to retire without worrying (medical bills will go up as you age).
Location: London

Remote: maybe

Willing to relocate: no

Technologies: Python, Clojure, Go

Email: flagzeta@gmail.com

Site: http://flagzeta.org

Ideally looking for contracts or a position that gives me a chance to learn what I don't know. I have a ton of experience in python / django, and still quite a bit in other tech stacks as I like to try them all :)
Clickbait includes generalizations or provocations in the title like 'everyone thinks..' I see sites like Forbes, Fortune, Qz, Vox also incorporating these elements, and it's kinda annoying but I guess there is so much content online these days , that you need to tantalize people to make that all-important click.
1994? How about 2016 and I'm still living in a nightmare - my company uses tcl ("legacy" scripts). No matter how many times I tried to approach the language with an open mind there is no other language that grinds me down as much. If you think passing a variable name in a string to a function and then using upvar to access it is an acceptable way of returning values then have I got good news for you - we have languages with a sane way of doing it today (heck we've had them for longer than tcl has been around for)! I die every time I have to look up which order arguments come in because of how inconsistent it is, and oh, is it append or lappend or some other crazy keyword? People at the office had this for decades and they still have to use a cheat sheet. Why... There's perl, python, bash, anything god, please, make it stop.
>Coconut water is supposedly quite hydrating as well

Is it? I like the stuff sure, but clever marketing and dubious blogs aside I've not seen anything supporting this.
Please let us know if you find a reference to that - I've not seen anything either way (other than perhaps eg: cython piggybacking on the syntax for its own use - but not something strictly speaking "in (c)python". That said, according to: https://www.python.org/dev/peps/pep-0484/#rationale-and-goal...

"This PEP aims to provide a standard syntax for type annotations, opening up Python code to easier static analysis and refactoring, potential runtime type checking, and (perhaps, in some contexts) code generation utilizing type information.

Of these goals, static analysis is the most important. This includes support for off-line type checkers such as mypy, as well as providing a standard notation that can be used by IDEs for code completion and refactoring."

So optimization doesn't appear to be a non-goal - as much as not a primary goal?
Not because of JIT, but because of refcounting GC. Also the JVM probably loads (and does, or at least is prepared to do - http://www.azulsystems.com/blog/wp-content/uploads/2011/03/2... ) too much crap. (And probably the jigsaw and modular and whatever OpenJDK projects will help with that.)

Furthermore, Python is not really memory prudent either. PHP is much better in that regard (very fast startup time, fast page render times, but a rather different approach).
Just Don't Do It
Download Linux Mint 18 Sarah
Scary if they're so smart :)
> The well grounded Rubyist (I'm on Chapter 13 yay!)

What is your proficiency in Ruby, and why are you reading this? I am asking out of curiosity because I am a Ruby newbie and have just completed Learning Ruby the Hard Way [0] and am looking for something to pick up next.

[0] http://learnrubythehardway.org/book/
>(and by "harmless" I mean "dark psychological horror with a death toll rivaling _Game of Thrones_")

SPOILERS!
Distribution Release: Linux Mint 18
Any script language is slow
The DOJ spent the past three years pursuing the broader case of Apple's collusion with the book publishers — the publishers immediately settled but Apple kept appealing. Those appeals were finally exhausted earlier this year ( http://www.nytimes.com/2016/03/08/technology/apple-supreme-c... ) so the DOJ might now take the opportunity to tackle Apple's other anti-competitive tactics.

Spotify shouldn't have to spend millions to push it. It's a criminal matter not a civil case. The DOJ is duty-bound to investigate complaints.
Does anyone have the full list of the 15 countries that wanted to remove the text that the article mentions? From the article it links [1] I can find:

Russia, China, Saudi Arabia, Qatar, Kenya, South Africa, Indonesia, and India

[1] http://www.theregister.co.uk/2016/07/01/un_officially_condem...
Secrets of the London Library
I would probably be considered high income/moderate wealth. I started tracking everything with Quicken back in the 90's when I realized I was just pissing it all away. I switched to MoneyDance when intuit started screwing with the Mac version of Quicken, and it does what I need. I track and categorize every expenditure and every account: cash, asset, liability, retirement, college, investment. I learned to do this from the book, "The Millionaire Next Door". They had results from a study they did that showed people who spend more time watching their money tend to have more of it over time (i.e. even if they started with little). After a while it becomes routine. I spend collectively 1-2 hours per month working on my finances.
Python has had some surprising costs but some well-known cases have straightforward work-arounds.

For example, at one point, the way you called a multi-dot function actually mattered (not sure if this persists in the latest Python releases). If your function is like "os.path.join", the interpreter would seem to incur a cost for each dot: once to look up "os.path" and once to look up "path.join". This meant that there was a noticeable difference between calling it directly several times, and calling it only through a fully resolved value (e.g. say "path_join = os.path.join" and call it only as "path_join" each time).

Another good option is to use the standard library’s pure-C alternatives for common purposes (containers, etc.) if they fit your needs.
Can this submission URL also be updated to the above? Why go through Slashdot for this?

Also the actual resolution from the article: https://www.article19.org/data/files/Internet_Statement_Adop...
A Reactive web client for tldr-pages (ES6/FlowType/RxJS/React)
>I don't know where the Hacker News submission got "orange juice is more hydrating than water" from.

They didn't just read the abstract like you did. There is a link on the page you hyperlinked to for the full text
Sort of off-topic but:
What companies (or researchers?) [if any] are working on animal-related technologies? I.e. animal eeg, [non-decorative] animal wear, apps for animals etc.

It deeply fascinates me but seems like it's somewhat unexplored in general. I only remember some company working on VR for animals.
It's not really a solution, as it creates the 0Ø problem.
The doctor privilege angle is overblown. That's a shortcut, but you just need to be squeaky to get similar results. I think that instead of trying to create the fantasy that medicine is some sort of open market, we need to do something else.

My wife went through a series of medical procedures that are time sensitive, expensive and require a bunch of expensive speciality medication.

The pharmacy is impossible -- mail order only and dedicated to being obnoxious. Their aim is very obvious -- push prescription fulfillment into the next month, quarter or year. I'm sure bonuses are tied to this, because their stupid behavior wastes money... On three seperate occasions drugs were couriered to my wife (as in, a dude carrying a box got on a plane and took a cab to my home from the airport)

It's dumb behavior that results from applying market incentives to one stakeholder. For want of a $1000 drug, a $15000 procedure could be rendered a waste.

Some party should be given a "project manager" type role, and be responsible for overall patient outcome.
Why is the OpenJDK runtime half the size of the Oracle JDK?
Eh-he-hem.

WHO THE HELL DO YOU THINK I AM!

Gurren Lagann will always be the best explanation for galaxy-scale astronomical anomalies, just as the Getter Emperor will always be the best explanation for planetary-scale anomalies.
This question sort of pops up in Ender's Game, doesn't it?
>Speaking of stupid, why does HN have so many of these pointless diet things on the front page?

People are really interested in their health. Lots of "hackers" would be super-interested in information that gave them conscious and definite ways to improve themselves.

The problem is that there's very little real information out there.

This study, if were framed properly, would have been at least mildly interesting.

Stomach emptying of fluids depends on the type of fluid... urination frequency too. Thirsty but don't want to pee all the time on a road trip or hacking marathon? Drink milk! Hack your body!

But instead they had to link it with "hydration" which is bollocks. It's not clear that anyone should care at all about hydration unless vigorous exercise or extreme heat is involved because your kidneys do a pretty good job, period.
It almost seems like something happened and it was some kind of text about administrative work that accidentally slipped in.
No, that literally is just a troll

https://reddit.com/r/RedditArmie/comments/2g29ft/the_youtube...
I hope it's okay for a shameless plug here. I use YNAB before but have been creating my own solution for about a year or so. It's here: https://www.everypocket.com. I'm outside the US and the online banking systems are not very good at personal finance, plus I have about 3 accounts in different banks for different purposes, so I can't use bank's solutions.

I'm a big supporter of manual entry for the extra clarity on what I've been (and will) spending on, I know many people find it cumbersome.
Tech folks as a general rule are extremely ignorant about nutrition and health and tend to believe anything that seems science-y. Unfortunately.
That's probably because of the values and morals of our society mostly and not from a lack of empathy, heroism or selflessness. We inherit those values and pass them down to next generations. I think it's from the way we were raised and the way most of us raise our children. "If you do this, I will reward you with that"...this thing is from our childhood and sits at the root of mostly everything we do.

There are exceptions that make the rule I'm sure of it but our ego always tells us "it's not purity", "they can't be better than us", "they have a plan" so it's hard to distinguish. My 2c.
Just one little gem found in valhalla's source code: Generic array instantiation
"what if I won't be able to get 3 leads by the end of the week? What is more important, getting 3 leads or getting something by the end of the week? I don't know."

If you won't be able to get 3 leads by the end of the week, it means you get Nothing.
I can highly recommend the book "Ravens in Winter" that shows just how complex and advanced the social structure is of these birds.
Some communist rats you got there!
Location: India
Remote: YES
Willing to relocate: YES
Technologies: PHP, Go
Email: dharmmotyar@gmail.com
Yeah, but not the test subjects.
Neat! I'm pretty tied to the ledger format but I'm not confident that C++ ledger will be around forever, so the more implementations the better.

Do you have any plans to support automated transactions? I use them quite extensively.
We've already demonstrated that some animals stand well above the capabilities we've historically attributed to them. While I don't share your enthusiasm for an improvement in human behavior as a consequence, I believe the nature of such intelligence is entirely too obvious to be ignored entirely. :)
The correction:

“Empathy and pro-social behavior in rats” by I. B.-A. Bartal et al. (9 December 2011, p. 1427). On p. 1428, the last full paragraph of column 1 was incorrect. The paragraph should be replaced by this corrected text: “All female rats (6/6) and most male rats (17/24) in the trapped condition became door-openers. Female rats in the trapped condition opened the restrainer door at a shorter latency than males on days 7 to 12 (P < 0.01, MMA, Fig. 3A), consistent with suggestions that females are more empathic than males (7, 12, 13). Furthermore, female rats were also more active than males in the trapped condition (P < 0.001, ANOVA) but not in the empty condition (Fig. 3B).”
didn't

https://www.freebsd.org/cgi/man.cgi?query=sed

http://man.openbsd.org/OpenBSD-current/man1/sed.1

http://netbsd.gw.com/cgi-bin/man-cgi?sed++NetBSD-current