skysight-inc/HackerNews huggingface dataset:
I'd second this comment. I found lack of movement to be the problem for me. After several hours in front of the computer coding, browsing, whatever, I'd find myself feeling zombie-like and brain-fogged. I got inspired by the Walk and Code blog post[1] and bought a walking treadmill for work. Bye-bye zombie feeling.

I work in an open office environment, so I needed one that was quiet. I bought the Rebel Treadmill 1000 and it's so quiet me and my office mates can hardly hear it over the sound of the HVAC system. Not affiliated with the company that makes them, but I heartily recommend their treadmill if you get in the market for one.

[1] https://8thlight.com/blog/doug-bradbury/2010/02/25/walk-and-...
> it seems like the most flat-footed approach to preventing double-frees (never let two functions access the same memory, even those that can be trivially proven to run sequentially)

This might just be a case of needing non-lexical lifetimes. I'm not sure about that, because I don't know the details of what issues you ran into.

> Beyond that, when defining a struct type that holds a reference, you have to know at definition time the lifetime of that reference, even it may vary from instance to instance (sometimes I want the struct to own the reference, but sometimes I don't).

The main issue I run into is when I want a struct to own a value, and for that struct to also include a reference into that value.
I also visit the office kitchen 10 times a day, fill up a glass of water and go back. I don't necessarily finish it, next time just spill the remaining and refill. I believe developing these habits helps avoid burning out and other desk work consequences such as RSI.
Yes but it's a significant commitment. I work full time and take one course a semester. It's definitely doable but occasionally very stressful.
I'm not sure a it follows that a perfect understanding of how our body functions leads to a cancer switch.

Mostly because cancer tends to be associated with dysfunction and it isn't necessarily the case that dysfunction can be externally corrected.
The API Cornucopia
> tbh I haven't looked into PostgreSQL as a direct competitor to ES in the text search space, mostly because I have quite a lot of ES experience of things like aggregation for faceting, stemming and textual analysis, and I had a (perhaps incorrect) assumption that PostgresSQL was less capable in those more specialised areas.

I think your assumption is/was correct. And I'm a postgres dev, so I'm biased as hell...
+1. I often have anti-pg approach opinions that I think got me on some sort of "downvote him" list.

Also my upvote doesn't seem to work. First I had impression myself, then asked fellow HNer to see if I'm wrong and my downvote for his comments didn't go through.

Thanks for upvote though.
Show HN: Firebase realtime database with gtk apps in elementary os
I think under the current administration we cannot expect the US to be a leader in this area.
I thought that the defining attribute of an old-growth forest is that it is in relative stasis in terms of the distribution of trees (i.e. in carbon balance)
I have found the link to the original paper: http://dx.doi.org/10.1016/j.cub.2012.12.034
> Also, sites are a very volatile medium. I often bookmark pages with interesting information to read later, and it inevitably happens once in a while that a site went down and I just can't find the information anymore.

I had the same experience and that's why I made a browser extension that archives pages when you bookmark them. (https://github.com/rahiel/archiveror)
Evolution of the Heroku CLI: 2008-2017
99% of their code will be ordinary CRUD plumbing, dealing with orders and integrating with other systems. The algorithmic code is the fun part, and they've had years to tune it.

This is just self-congratulatory PR, trying to persuade potential investors that's they're a hard tech company.
I've had a tendency of entering prolonged periods of focus throughout my life, and at this point I can feel my brain almost optimize to the task at hand, there is a type of shift.

For example, I played and performed music seriously for a period of time (no singing), and it was pointed out by a close friend that any performance that lasted more than an hour and my verbal center would basically crash. It would take at least 30 minutes or even hours before my brain would be able to start talking like a normal person again. Prior to this point in time I had purchased a pocket dictionary which I carried around, seemingly to combat this issue.

At present, when I have been working on something particularly engaging at work my wife notices because my ability to communicate does suffer.

It is interesting that you noted 3 days, just because I recently heard a researcher talking about how getting away for 3 days can have a cognitive benefit: https://www.rei.com/blog/camp/the-nature-fix-the-three-day-e...

As was mentioned, getting checked out by a doctor does sound like a prudent step.
When the US government invested a billion dollars into a project to simulate the brain with computers this is exactly the throw-back project that crossed my mind.
> Folks, stop, you are reinventing cgo now.

This is a good thing because `cgo` is really bad. No ALSR, always forking. These are completely _insane_ defaults, it manages to be slower then the JNI [1] which is an FFI from a completely managed stack based VM universe! Not a _compiled_ language.

Somehow a compile language calling a static binary manages to be slower then a dynamic language's runtime calling a static binary...

`cgo` isn't doing _anything right_. It is doing a lot of things wrong.

[1] https://lwn.net/Articles/446701/
I agree. But it is really tough to actually play openly, and tough to know when others are playing openly.

Enough time has passed that experts have had time to comprehend the original document, and it seems like James was only pretending to play openly. He misrepresented a lot of the science and put his own spin on it.

A great answer by an evolutionary biologist on how James was absolutely wrong on almost every point he made:
https://www.quora.com/What-do-scientists-think-about-the-bio...
Man, I really miss FTP. I remember when you would just FTP to the site you were using and grab a binary from their /pub/. Mirrors were plentiful, and FXP could distribute files without needing a shell on a file server.
And it's easy to forgive cowards when you know you would be one. The point is neither. I don't know what I would do were I in Shen's shoes (I may be even less prone to action than him) but that has no bearing on what his inaction is. It's cowardice. It's not even like he's some chinese everyman, he's rich enough he could get asylum.
Agreed, it's easy to let things go when there's no disincentive to do so.

Plus, I tend to be more project-oriented, so I quit learning stuff once I've built up the toolkit I need to solve my particular problem. I'm sure a lot of other people are the same way
Hm, my breathing also varies somehow when I'm thinking. I'm not sure of the details, because it never happens when I'm thinking about my breathing!

I've occasionally pondered obtaining some kind of fitbit for lungs to see if I can spot said 'variation' on a graph. I'm not really sure I'm not just making it up.
I love the taste, and even the most popular drink around here ("mate") has caffeine. So quitting would be hard.
Get on the omscs-study slack. It's really helpful (and fun). Good luck!
Scott Adams, Donald Trump and the Ethics of Persuasion
Why you maybe shouldn't care about that p-value
The Righteous Mind: Why Good People are Divided by Politics and Religion by Jonathan Haidt

I cannot recommend this book enough -- I'm halfway through it and it's a very accessible overview of work done in moral development psychology that (for me) shed light on how people come to believe the things they do so strongly. It's increasingly relevant today, and was a bit of an eye-opener for me.

Has anyone else checked it out? Curious to get your thoughts -- I'm not done yet and once I finish, I'm doing to dug through the primary sources he cites.
We have an in house system built from ground up in Python and use ortools (https://github.com/google/or-tools) to power the core of the algorithms.
Could be that you over eat or under eat while working. Or are snacking on something you have a food allergy to. Could be that you're not getting enough exercise. Could be an environmental factor like mold. I've had all of these issues at one time or another resulting in brain fog.
Ugh. Fixed. Thanks.

But I really would want to read the ANTLR4 vs PCs article. I'm very happy with ANTLR4. But tools is tools.
Plus some companies (which will remain unnamed) are unable to use cash parked overseas for US purposes. But they can borrow against it at low interest rates for capital.
Could just be simple brain exhaustion from prolonged concentration (I occasionally feel something similar, usually after back to back heavy coding days and I'm running low on sleep).

Like others are saying, a few things that might help: stay hydrated (water, not coffee/soda etc.), get a good night's sleep ahead of intensive coding days, don't eat crap food at your desk and don't stay in the "zone" for 6+ hours without getting off your chair at least once and doing something different for 30-45 mins (ideally involving fresh air, outside of the building).
BTW, here's just one way that you can reproduce the problem with iOS Safari (there are many others) - simply highlight any text in iOS, tap "Look Up" and then hit "Search Web". Safari opens a brand new tab for Google, for every search.

That's how my wife ended up with 276 open tabs in Safari and that's why it was slow on her iPhone.

If you don't think that's a problem, then I don't know what to tell you except: You're wrong.

With Chrome as the default, the user would see all those tabs and close them. Furthermore, if you think Apple is doing any of this to help the user have a better experience, you're even more wrong.

Anyway, maybe you don't talk to your grandparents as much as I talk to mine, but mine constantly have problems with hidden functionality and lack of options in iOS. Don't even get them started about printing from iOS.
I don't mean physical aggression, I mean verbal bullying. And I may be projecting other "similar feeling" posts to yours too much.

But the kind of behavior I'm seeing now is a bit saddening. I remember when HN guidelines said something to the effect of "Instead of saying 'C++ was created after C, idiot' you can shorten it to 'C++ was created after C'". But I see posts in the tone of yours which say something like "The left has isolated incidents of violence by deranged people, blasted by leaders on the left while the right has much more dangerous and common events which seem to be supported by the leadership. To put these two together is disingenuous and could only be done by a fascist.", where that last sentence could just be left off.

The issue is assuming the absolute worst of everyone you talk to online that doesn't hold your opinion. Maybe the poster just has ignorant friends/family and really doesn't know any better. Maybe they have opinions right now that they're going to be really embarrassed about in 10-20 years. But if you immediately group them together with people like Hitler (didn't this used to kill the thread?) then you give up any hope of educating them (or, more importantly, other people on the fence who are reading the exchange). So I have to wonder what is even the utility of such posts except to signal to others which camp you're in.
I think it depends if you're interested in knowing how to solve these problems, or simply in solving them. If the latter, there's a bunch of commercial solvers out there. I won't name any for fear of an adverse reaction :0) but a trawl through the first page of Google results for 'optimization solvers' would probably work.
Thank you for clarifying your original point.

I don't think that 8 right wing extremism homicide events over the course of 2 years shows that _half the country_ are right wing extremists.

Just like how 5 Islamist extremist homicide events over the same period of time don't show that all Muslims are extremists.
PostgreSQL is very capable at stemming and textual analysis, but the issue as you likely know starts with large amounts of data – because then you suddenly need multiple replicas, and that’s where the issues start.
Fair question. Throwaway because I don't want my personal comment history to be tagged as "the opinion of a Google Engineer". It's a card that I don't like to pull out in discussions, but it's relevant here.

Also the personal stuff to some extent. Point is, I gained a lot from the program, but it hurt me in other ways and money is the least of these worries.
> but OP was arguing that it was going to be better in _all_ cases.

I wasn't clear to me if haskellandchill was claiming that Haskell will be better, or if Haskell is more complicated. I assumed they meant it's more complicated than Rust, but now I'm not sure.
FYI: that’s not true. Jobs never wanted publicity for his charitable efforts. The bulk of his fortune went to his foundation when he died. His widow manages it now, basically doing the same thing as Gates.
An invite only for designers because the barrier to entry is so low it makes sense.

Not sure that would work or is as helpful in this case. The community seems more friendly than most and the general goals of many are to learn something new, powerful and fun. If you build a community around those themes I think it will attract the right crowd.
Nice! A Mazda Miata Engine!
Here's [1] the official press release from Amazon.

Not sure what's up with the weird URL, I got there from Amazon's `About` page.

1: http://phx.corporate-ir.net/phoenix.zhtml?c=176060&p=irol-ne...
Bitcoin has risen more than eightfold in past year
I ain't a historian or a philosopher or an economist, but at 37-year old with a relatively eventful life I have the ever-accumulating feeling that the whole system is rigged against everyone except the people at the very top.

Most of us aren't scientists that record their every impression and what it was based on so I can't really tell HOW that feeling grew and solidified in me, but it's a fact that it has been a background observation of mine ever since I hit 12-13 years old, long before being educated on the global economics, wars and social systems.
Wikipedia also hit pretty hard by link rot, nice thing there at least is that volunteers can try to fix it
> It’s using HackerRank, a web platform that trains and grades people on writing computer code

What is HN's opinion on HackerRank and the like?
I saw Precious in two different theaters in two very different areas around Philly (I know, but both of my dates wanted to see it separately and they were cute enough not to say 'no' to). The first was in a 'white' off the main line. The theater was really silent and the film had a very somber feeling to it. Not a good date movie in the end. The second time was in a 'black' area closer to the city. It was a much better date movie. The audience, mostly black, interacted with the film loudly and actively. The scene where the TV is dropped on Precious' head from a few stories up was not a terrible event of violence, at least not as much, in the 'black' theater. The audience was yelling at Precious to get out, to move, to not just sit there. In the 'black' theater, Precious was not a passive victim, she was responsible for herself and a real person with real action, not a vessel to represent the grinding poverty, obesity, racism, and raping of inner-city America. It was a much better movie with audience interaction, she was real, not a thing. You just have to be comfortable with that kind of theater and you have to try to participate with it too. Life is created by us all together, not 'for' us to consume.

http://www.imdb.com/title/tt0929632/
Sounds interesting, we might look into this (I'm building a messaging platform for my employer, and I have my own videochat attempt - this complements both).

I see it's only Facebook and Telegram ATM, we're using another platform that does Twitter. And the holy grail would be Whatsapp (the day Whatsapp opens up the API they're going to rack up money).
It's the precedent, really.

Donate $1B, and only $100M is used for the actual solution of the problem while $900M sits accumulating more wealth.

The vacation home comes 7-8 years later, after the money has been "washed" a few times.

This would be like me automating commits at a startup with some hardcoded boilerplate commit messages to make it look like I was working the full "expected" day while in actuality, I was completing everything in 20 minutes.

In the end of the day - malaria is being eradicated. This is GOOD.
However, your "Foundation" actually profited while doing it and sets the false narrative that it took sacrifice to achieve such means.
This is disingenuous in two ways:

(1) A $100M task is now seen as a $1B task.

(2) Brings into question the charity ideals. We, as peasants, are supposed to look up to this sizable donation if we follow media sentiment. I donate to charities and kickstarters of my own - the difference is I'm poor and I'm not making money off these donations. Its an actual sacrifice.

There are sites like charitynavigator that help those who would like to donate check how valid a cause really is, but when you are talking "Foundations" where the amounts are in figures
No, but they might be able to convince the guy that flashes the firmware. That would be cheaper anyway.
> me being depressed is just me

I think you're missing a subtle but important distinction. Yes, it's you, but it's not just you. There is no "just" you. You are not a unified whole, notwithstanding that that's how you perceive yourself. That perception is an illusion. You are in fact more complicated than that. At the very least there is the conscious you and the unconscious you. There is the part of you that has agency and exercises free will (or at least has the illusion of exercising free will) and the part of you over which that first part has no control. That's the part that keeps your heart beating and your lungs breathing and rolls your over in your sleep and feels pain when you break your arm or eat ghost peppers. Depression, like other forms of pain (and pleasure BTW) originates in that second part. The part of you that has agency can't decide not to feel pain. The only thing that part of you can do is to interpret the pain differently and act on it differently.

> Finding the cause of depression I wasted years of thinking on already, let alone curing it. It doesn't work. So better deal with it. Which is basically what Stoicism teaches us, btw.

I don't see how anything I said contradicts that. Just because you find the cause of a problem doesn't mean you can fix it. In this case it's the exact opposite: it's the realization that you can't fix it that helps you deal with it because you can stop beating yourself up for not fixing it. Feeling emotional pain is not a failure on your part. It's just the way part of your brain works.
DuckDuckGo Traffic Is All-Time High (James Damore Effect?)
Server-side rendering please save us.
OP runs an iOS app founderchronicles.com "Easily find and follow your favorite startup blogs"

Last week OP got called out for copying blog content without consent from the authors. Multiple users said it's copyright infringement https://news.ycombinator.com/item?id=14957047

I take it with a grain of salt to see OP asking others for favorite blogs.
Can anyone give a practical example of what knowledge he would earn that would help him in his current profession/job/career? (Aside from a degree/credential that he could put on his resume.)
This isn't even close to being true. The Russians alone have more than enough to destroy a single US carrier.
Liftoff Subscription Apps Report 2071 [pdf]
The units are stocked with commonly sold items - like phone chargers. So I suppose it's possible that dildo sales in an area are frequent enough to justify their being in there...
I experience something very similar. It turned out to be at least in part from eye strain induced headaches ("computer vision syndrome"). I started paying more attention to ocular health, including following the recommendation of a comment here [0] and lowering screen brightness. It does seem to be helping.

[0] https://news.ycombinator.com/item?id=12582810
>it took me a long time before I realized I needed glasses.

I'm rather astonished how relatively poor my eyesight had become before even thinking I might need glasses. Boil the frog, I suppose.
> Once you have enough members to cover the rent & employees, it's almost all upside.

> but the idea that gyms are "all upside" after the initial equipment purchase is badly misinformed.

I'm not sure how you read what GP said, but if you reread it you'll understand that the mistake was on you, not them being misinformed.

Emphasis added to both their post and yours to highlight.
The linked to document is unavailable, but there is a google cache of it:

http://webcache.googleusercontent.com/search?q=cache:bZt3Y3m...

Which is not that bad in Google translate.

Essentially:

Blockchain when requesting wheelchairs
Blockchain is a new technology whose impact is compared to the arrival of the Internet. The Quality Institute of Dutch Municipalities (KING) organizes pilots to investigate what Blockchain technology can mean for municipalities. Stichtse fought with the research question whether Blockchain is useful when requesting a wheelchair. The pilot shows that Blockchain can offer many benefits. For example, the process of requesting issue with Blockchain is faster and more transparent. Residents with Blockchain have more views on the status of their application, as with Track & Trace in a mail package. In addition, the administration around the application becomes a lot easier for all parties.

On the original page there is a link to a dedicated site:

http://hostedby.frogjump.nl/blockchain-magazine#!/stichtse-v...

where there is a link to an actual .pdf (largely in English):

http://cdn.instantmagazine.com/upload/6826/blockchain-sticht...

with a detailed process analysis from which it is clear how the "blockchain" has actually no meaning/usefulness in the whole stuff the "problem" (or "non problem") can seemingly be solved by much more traditional technical approaches (which is the article Author's thesis).
OK, that is bizarre; visit usgovernmentspending.com site on mobile and the chart says US FY2016 spending on Defense is 17%. On desktop, the chart says 21%.... In any case, as a percentage of federal income tax it does seem that defense is around 25%.

"U.S. discretionary spending" is simply spending which is authorized annually instead of authorized by laws spanning multiple years. It doesn't seem to be a highly meaningful categorization if you are arguing about where your dollars are going -- the dollars don't care what year they were authorized to be spent.

Separating out payroll vs income taxes -- in other words recognizing the different tax rates for "earned" vs. "unearned" income -- is not entirely irrelevant, because dollar for dollar your capital gains taxes will be spent more on defense than welfare, but it's still no where near 50% of your capital gains taxes being spent on defense.
Looking for any instructors/TAs?
I appreciate your feedback, but I don't go to movies, to listen to everyone else scream, and carry on over it.
Yes, the scope is rather immense, https://en.wikipedia.org/wiki/List_of_Carnegie_libraries
> And there you go

I had to downvote you, you should definitely leave that out of the discussion.
I think it's amusing that it's no longer "My Computer" and now it's just "This Computer". The computer is no longer mine I guess, which aligns with Microsoft's push for subscription models.