skysight-inc/HackerNews huggingface dataset:
> There was a post here recently that if you bought pretty much any stock last year, you wouldd profit, so I'm not sure what this is?
It was hard to figure out the real numbers of profit you can have with a single trade and multiple trades on one stock within a year. So many reports say "AMD was the best stock of the year 2019", but when you look at the report it looks like they used a different metric (maybe percentage). So it is just a try to give people a better overview about the numbers.

> Is this just if you bought one share on 1st Jan and sold on 31st Dec?
The anchor link shows the maximum profit, meaning you can buy and sell as many times as possible between 1st Jan and 31st Dec. In the section above you find the analysis for the metric as you said.
I think the gutting of middle America is a big part of it. The most talented people are forced to leave for the coasts to make the most of their capabilities. This hurts both the leavers (like me) who have to built roots from scratch in their new home and hurts the remaining population due to the resulting brain drain. The us-versus-them attitude is then worsened by classist attitudes toward those entire areas based on the population who remain by my fellow “progressives” who will endlessly mock “flyover states” and anybody in them.
>I wouldn't buy food from Amazon

Again, YOU wouldn't. You're projecting.

The argument is that a poor person (in the US) can't buy unprocessed food because they don't have a grocery store nearby.
I'm torn. On one side I do like this idea, on the other hand I don't see a practical way to work on exploratory open source software in some areas where your effort (even if it actually ends up delivering value to somebody) will be rewarded adequately. The existing models (open core, support contracts, donations, ...) may work here and there (although some of those would be invalidated by this suggestion), but compared to a traditional strategy just writing proprietary code it's quite a bit more difficult to make money. And I reckon that is difficult enough as it is...
No - I'm not claiming they are different sections. That would be stupid.

I'm stating the simple - and well-known - fact that the price paid by the person in 17C (aisle) can be quite different from that paid by the person in 17D (also aisle).

I flew over 150 legs last year. Premier status on three different airlines.

Please stop with the ad hominen attacks and learn something about this market.
Not whether they work on compilers/embedded/web/whatever.

Not true! See: salaries for people who know kdb+, that embedded engineers almost always get screwed on comp.
It's a larger crystal, which makes it easier for the salt to pull water out of the watermelon, versus (I'm guessing) just making its way into the watermelon as a dissolved solid.

My understanding for the mechanism by which the salt makes the fruit sweeter is by increasing the concentration of sugars in the flesh that's now surrounded by salted water.

Kosher salt is named for the application of drawing water from meat (which is itself part of the kosher preparation of meat) so it's not too surprising that the salt is also well suited for drawing water from fruits like watermelon.

I use table salt on watermelon and it's great too. I can believe that kosher salt would be better, but I doubt most people would consider the difference immense. But palates vary, so, if you've got both salts around might as well use the bigger crystal.
You'll be happy to hear that, in recent years, the funding for Alzheimer's disease has boomed. My lab does a lot of research in AD and it is probably the fastest growing area of funding by NIH, from 600 million in 2015 to 2 billion this year[0]. Also, note Aging is another real growth area and a lot of Aging programs have AD/Dementia as a sub-focus.
[0]: https://report.nih.gov/categorical_spending.aspx.

[Edit] from 1B to 4B if you count subcategories. Expect good things in the future.
Mental health [1] should be on that list. The amount of suffering as well as economic losses from mental health issues are overwhelming.

[1] Ideally we should work towards broader / more fundamental goals such as "well-being" and "meaning", but that is even more difficult.
Albeit I didn't know about those communes, but I think LGBT acceptance was extremely rapid. The only other change I'm ready to compare it to was slavery and black civil rights: consider that the first state to legalize same sex marriage was Massachusetts in 2004. Over the next 11 years, we reached 37/50 states total, and then in 2015 with the supreme court decision we reach all 50/50.

For civil rights: we had slavery since the arrival in 1619 (which is the date I hear); we get the emancipation proclamation in 1863 ending slavery; but there are still Jim Crow laws until the civil rights and voting rights acts in 1964 and 1965.

To me that makes the road to LGBT acceptance sound extremely rapid, but someone with more awareness of historical trends in the US should put these into context. In particular when might we say various struggles began seriously, or entered the public consciousness.
In the future, would be great if outsiders wouldn't try to influence what gets to the frontpage of Hacker News. Here is the author of this project trying to push people to upvote: https://twitter.com/Vjeux/status/1219340291603230721

I'm pretty sure I have read somewhere on HN that people should not ask for upvotes. Here is a example of just that happening.

If more people flag the submission, it'll eventually get removed from the frontpage.

Edit: annoyingly, the author (vjeux) seems to have deleted the tweet by now (not sure what the accomplishes?) and I took no archive of it. Life goes on
Thank you for your detailed reply.

It seems that you have all sorts of issues in your life that go far beyond your location in a rural, third world area, and probably won't be solved simply by moving somewhere else -- though having some local job opportunities might help.

I fully understand and can relate to what you're going through. One thing I've been recently been getting really interested in that might help those for whom more conventional approaches have failed is psychedelic therapy (particularly with ayahuasca, MDMA, and psylocibin). I'm not sure if any of that is available where you are, but it might be worth looking in to, or maybe in to some kind of shamanic/traditional healing approaches. The other thing I'm not quite sure about is if these approaches would be counterindicated for someone with bipolar disorder. I'd definitely be careful and read as much as possible about anything you might be considering, and only doing these things (should you decide to do them) under well respected and experienced guides.

Something else to consider is adopting a regular meditation practice. That could help deal with stress and many of the struggles you're encountering. Exercise could help too, as it often provides energy and boosts mood.

Also, I think making deep, meaningful connections with people is important. They could help support you emotionally and provide opportunities for you, and you might also be able to help them.

Aiding others and being of service can be very healing and can help with self-esteem and fulfillment. You can make a difference in people's lives, and that can help lead to something and open avenues for you that are unpredictable for you at this point.

I know you said the people in your area don't seem very likeable to you, but there could be some good, interesting people among them, and it could be worth the effort of seeking them out. Also, often appearances can be deceiving, and someone who might seem off-putting at first glance might have more to them, and that hidden depth could be revealed if you got to know them better.

Finally, I know that when we're really down it's very difficult to do anything and we are strongly tempted to just give up. This tendency is made worse by focusing on the negative things in the world and in our lives. I think this is something like a very negative version of self-hypnosis, where we convince ourselves that things are hopeless and getting worse and worse and worse. It's important for us to shift this sort of self-hypnosis in to the opposite direction.. not in a polyannaish, unrealistically optimistic way, but in a way that helps rather than hurts. Try to focus on what you have that you are grateful for, on the positive things in your situation and in yourself, and on the opportunities in the world around you. I wish you the best.
Er, wasn't that the plot of I Am Legend, "... three years later ..."
It is USD. It might look to high, as the link has the anchor in the maximum profit, meaning you can buy and sell as many times as possible for the given duration. https://github.com/neonmate/stock_analyzer/blob/c25a45bb2f80... will show you the numbers of the profit with a single trade (01/01-31/12).
I don't think anyone suggested that it should be easy to make money that way. It was and likely will always be more difficult. Which doesn't mean it shouldn't be done.
The situation is not any different for an imperative GC language. They don't offer any way of destroying an object, so the abstraction says an object once instantiated should stay around forever. And e.g. the JVM has a setting for this (see the Epsilon GC). Of course you eventually run out of memory and blow up, even in imperative code.

Indeed, even the choice to say have an operation like x++ not allocate additional memory is implementation defined. In Python (and in Java if this is an Integer), sometimes this is an object that is not mutated in place, but rather a new copy is created. This is very implementation dependent. For most varieties of the JVM this behavior kicks in only once your integer is greater than 127. Below it they all share a pool of the same integers. In those cases x++ is only a constant space operation because of GC, not because of imperative semantics. It's all black boxes everywhere.

The distinction here is between GC and non-GC not functional and imperative.

In a deeper sense our conversation is a sort of category error. Immutability and mutability are both examples of language-level semantics that are implemented in many different ways. Mutability can be implemented by an immutable underlying system (the prime example of this is Copy-on-Write file systems) and immutability can be implemented by a mutable underlying system. The implementation layer has its own set of semantics distinct from the semantics of the language itself.

The whole spark that drove all this, is that at the moment of update immutable structural sharing is generally not implemented with mutability, which while never explicitly stated, was what I guessed galaxyLogic was getting at (their questions all seemed to stem from this assumption). Mutability may come into play later, but at the time of update, there is no mutability. I emphasize this, because this is not how React works.

With React you're correct that each update to the virtual DOM results in ultimately a mutable update to the real DOM. This is not how structural sharing with immutable data structures works. There is no such one-to-one correspondence. It is generally not the case that, e.g. there is a single mutable array backing a family of immutable data structures with complex book-keeping to maintain a facade of immutability (although of course if you wanted to you could implement it this way). The virtual DOM by itself is often implemented with structural sharing but that's a different story.
Sort of, but not smoking, diet, and exercise get you pretty far on cardiovascular disease.
Temperatures of 37 C and 36.6 C are barely distinguishable with an ordinary thermometer, and both are within the normal range of human body temperatures (37.32-38.76 C).

www.ncbi.nlm.nih.gov/pmc/articles/PMC6456186
I so enjoy the color based navigation.
Fortunately, the paper shows that this particular treatment doesn't attack normal cells, but it may cause trouble longer term (which is one reason additional safety studies are required before human trials).

Also, I'm pretty sure there is already an increase in autoimmune disorders after current immuno-oncology (IO) treatment. Patients should certainly have that information before treatment.
They have to calibrate for ambient light still. At least, that's true for radiology.
"王 means prince, king, or vast" is probably an error caused by confusing 王 with 汪.
That's a poor paraphrase of "recent studies suggesting [testable IQ]'s mostly from the mother".

https://books.google.com/books?id=8zVXDwAAQBAJ&pg=PT138&lpg=...
I used it for only one task but it was worth the price anyway--I needed support for both VGA and monochrome on the same machine. As the years went by there were fewer and fewer monochrome cards and the cards became worse and worse at playing nice together. It eventually reached the point where we couldn't find any that would behave--I ended up stepping through the initialization code for the monochrome (which was in ROM, no breakpoints otherwise) and noting exactly what it told the card and reproducing that in my code. (By then 100% of my screen writing was in my code, the lack of that capability didn't matter.)
I just don't want to store my passwords in exactly the same way everyone else does. I'm not a high value target, so my threat model is a 3rd party getting screwed / screwing us. Just a little bit of customization should be enough to throw off whatever tools attackers will build to mass harvest.
Psychology research is certainly important, but not in the same way as cancer research.

For mental health, what's primarily needed is more access to therapy.
Sometimes when reloading doesn't work, I select the URL in the bar and hit enter, which does a... hard reload, I guess? And that works. At any rate, yeah, it's so broken.
Thumbs up, but at least on macOS both is equally fast :-(
"Biting the hand that feeds IT"
It strikes me that you'd use up STDIN, STDOUT, and STDERR pretty fast that way.

One could make an unprincipled exception for them, of course. And SQLITE would still need the special-casing to prevent using low-numbered fds. But this would prevent other problems and is worth considering.
Ontology for the life sciences: genes, proteins, diseases, all expressed in OWL
Fair wages, health care, and stable retirement are a utopian wishlist now?
I've never used LastPass, why do people use it (or other password managers) instead of the built in browser password manager?
Probably you are using clang, right? As mentioned, clang does the idiom recognition even at -O2.

Try at -O1.

If it's still fast at -O1, I guess the libc++ implementation is different (AFAIK clang uses libstdc++ on Linux but libc++ on OSX).
Ask HN: Are older devs more resistant to adopting new tech?
I've noticed a lot of comments here recently from self proclaimed tech veterans talking about how they won't even look at new technologies until they've had a few years to mature, or complaining about new patterns/paradigms that put engineers enjoyment/productivity ahead of raw compute performance. Is this a systemic thing? I'd imagine after 20+ years of writing code a certain way, I would be loath to completely changing my approach, but I'm concerned that this could be a source of (potentially justified) ageism in the industry.
The premise of this post is that dual-licensing --- offering a piece of serverside or on-prem commercial software under (A)GPL terms, with a proprietary license available for firms that want unrestricted usage --- is "seedy". It's not clear to me how that premise is justified, and Kuhn's claim that the model has failed to increase software freedom seems totally unjustified.

At the heart of Kuhn's argument about "seediness" seems to be CLAs, which is where a third-party developer using software under FOSS terms is asked to sign the rights to their modifications over to the original vendor. If CLAs were coercive, this would indeed be seedy: FOSS developers would be getting baited into contributing to commercial products. But CLAs aren't coercive; the AGPL requires only that you meet the requirements of the license itself, not that you sign away your rights to your own modifications. People sign CLAs because they want their modifications upstreamed, and to avoid maintaining forks, not because they're legally required to do so.

Meanwhile, the kinds of software we talk about when we talk about the AGPL are overwhelmingly things that used to be (and in some cases in large part still are) closed source proprietary products. It's a little hard to imagine a closed source distributed database taking off in 2020; 20-30 years ago, to use Kuhn's framing, the opposite statement would have been more valid.

Fundamentally, software offered under the AGPL is almost always developed under the model of a single commercial vendor doing most of the heavy lifting, and, usually, all of the initial lift in getting a piece of software to the point of viability. It's hard to see how these vendors are taking something from the community by releasing their products under the AGPL when their alternatives would certainly be either a fully closed-source proprietary release, or no release at all. Kuhn writes as if licensing and advocacy decisions determine the economics of software development, but if the last 30 years has been an experiment conclusively demonstrating anything, it's that --- at least for the kinds of serverside code we're talking about --- no matter how you license it, companies paying software developers are what gets software built.

I have strong opinions only about the AGPL; I don't pretend to fully understand the ramifications of MongoDB's SS GPL, nor do I support the SS GPL unreservedly.
Insanely Cool Gadgets That Are Going to Sell Out Soon
Brand New Asus Chromebox 3 Mini PC. $200 and Free Shipping
> if you wanted to make a cross-platform desktop application that doesn't look native

I'll just mention that the announcement (which is now down) and the readme mentions spec2:

> Spec 2 (preview) - UI building framework with multiple backends

The announcement (main hn link) mentioned spec2 and native look together.
> The only way to prove your algorithm's robustness is to generate random data and test it on that.

I would never to that. This algorithm appears to have worked well on EURUSD daily timeframe candlesticks data. It would be ridiculous to assume that it can work well on a random set of data, like global average temperatures daily or rate of births worldwide. Or even prices of oil or other currency pair.
I have spoke to many people who have said that they feel that work has replaced their social life, myself included to a degree. It also means that people don't want to move on in their careers as they get too comfortable with their work family and pass on better opportunities. I have a coworker who passed on a great opportunity just because he really likes working with everyone. A close friend had to be prodded by his wife to apply for better positions in other areas to advance his salary. Another friend's wife refuses to get a better job because she likes her coworkers so much.
Netflix had happiest US employees in 2019 workplace survey
I'm fairly decent at finding flight deals for my side hustle site, I know where and when to look (for Australian flights especially). I have some automation scripts (using python/selenium). But this takes it to the next level! Bravo, bravo!
This potentially is a huge step forward in curbing plastic pollution, but only if China manages to enforce it. Despite the previous ban on ultra thin and a fee on regular plastic bags being in place since 2008, their usage still remains ubiquitous everywhere from street vendors to large supermarkets.
I turned 16 recently. I doubt psychedelics treatment is available here legally let alone allowed for underage people.

I am still restricted by a lot.
I do meditate. Making deep meaningful connections is pretty hard if not impossible now. I haven't done it once even when I wasn't this terrible. How am I supposed to do that now?
Yes. Mental disorders account for many years lost to disability. https://www.nimh.nih.gov/health/statistics/disability/us-lea...
So if I understand correctly, to reformulate in my own words/views:

while the "big data" (datasets) formed and thus owned by big-tech, big-ads, big-brother, etc. may be instrumental to build at-scale solutions for real-world usage (for profit, knowledge, control, whatever actionable goal),

fundamental research itself, as done in universities, can move forward without these datasets: using what's publicly available is enough.

Did I read this right? It would effectively add much needed nuance to the common perception that big data is necessary to train innovative models, that there might be some sort of monopoly on oil (data, the 'fuel' of ML) by a few champions of data collection.
No, because m+expressions are syntax and logo has a different syntax, and because Mathematica is a successful use of something much closer to m-expressions.
https://www.ischool.berkeley.edu/news/doug-tygar-tributes
Why Johnny Can't Encrypt: A Usability Evaluation of PGP 5.0 - https://people.eecs.berkeley.edu/~tygar/papers/Why_Johnny_Ca...
Music from Data
It's how rough.js approximates hand-drawn sketchy lines. It looks great in some cases, okay in many others, but if they diverge too much, it looks weird. I think the intent is to evoke the style of sketching where everything is stroked multiple times with short lines.
This is what I like to hear! People die daily from cancer, treatments like this with promise should be an option even if it's a long shot, the people are about to die anyway, it can only do good, for them or for science.
The thing that always bothers me about these sort tests is that once I got out of college I've hardly ever sorted numbers, either because the data isn't numeric or the API I'm calling does it for me.

I'm sorting text, or I'm sorting dates. Or I'm doing a compound sort, where it's dates, then text, then numbers. It's rare to me to see a benchmark where the compare() operation is accounted for. It is not difficult at all for the complexity of the compare() operation to trend toward log(n), causing an algorithm with a tighter upper bound on number of comparisons but high constant overhead to perform better.

I presume we can vectorize string comparisons at this point? How would we handle compound sorts with SIMD operations?
This is great news! I spent most of my career writing in C and C++. I've been waiting for the 2038 bug to become a 'thing' so that I can emerge from retirement and charge people $700 an hour to fix their broken systems, just like Fortran programmers came out of retirement to fix the Y2K bug.
I was taught that real numbers were countable before learning what computables numbers where. "There's a set of countable numbers that includes every real number you know and doesn't include handwavy concepts" was news to me.

Personally, I never found the diagonal argument intuitive. The proof with the nested open intervals in a sequence was easier for me to understand, but that's probably because I have more of a background in CS.
Beyond the video...Depending on what was stolen, if it is likely to be sold, then monitor craigslist, offer up and FB garage/yard sale groups in your area.
> In 2016, I flew home to PA from Boston specifically to vote against Trump in a place that mattered

this is illegal if your residence is Boston.

Congratulations, you committed a felony.
"Even a fix now proposed for the Max has similarities with the past: After the crash near Amsterdam, the F.A.A. required airlines to install a software update for the NG that compared data from the plane’s two sensors, rather than relying on just one. The software change Boeing has developed for the Max also compares data from two sensors.

Critically, in the case of the NG, Boeing had already developed the software fix well before the Turkish Airlines crash, including it on new planes starting in 2006 and offering it as an optional update on hundreds of other aircraft. But for some older jets, including the one that crashed near Amsterdam, the update wouldn’t work, and Boeing did not develop a compatible version until after the accident."