skysight-inc/HackerNews huggingface dataset:
> performance was always a lower consideration when it came to utilizing graphql

That's strange, because I thought the main selling point was to consume only the data you need. The client specifies exactly which fields it wants. Then it doesn't over-fetch. To make things higher performance.
Different, but in the spirit of prior art, my state gives $2 per adult to spend on party campaign funds. (This is chosen at tax return time.)

[1] https://incometax.utah.gov/contributions/election-campaign-f...
Should also use kernprof - https://github.com/rkern/line_profiler - to see which lines in that function take the most time.

Oddly, none of the techniques listed would help that slow_program.py function since kernprof says that 99.8% of the time is spent in:

s += num / fact

One comment about "# Fast:" / "from re import findall" -- That's not fast. Sure, it reduces a getattr lookup, but it's much better to pre-compile the regex than to pass it in to re.findall() each time.

Now, re.findall() does cache the last 100 or so regexps, so it probably won't re-evaluate the regex each time. But really, pre-compute that regex with "_my_pattern = re.compile(regex) ... _my_pattern.findall()" and avoid even that cache lookup.
I also messed around with Airtable a bit and I do agree that it's a very polished experience. Interestingly, I've noticed that there's actually a large amount of real estate agents who are sick of Salesforce and are very hyped for Airtable. They're waiting for Airtable to add some essential features Salesforce has before jumping ship.
I know nothing about waxing cars but don’t you actually need the hose? Wouldn’t the actual solution be to get to Home Depot without the EZ pass, or buying it instead of borrowing it.

This is to say that you should do the necessary steps but no more?
I made a website that helps you name your startup or website
No excessive carbon taxation will happen. No significant or global emergence of digital currencies (not including regular "electronic" dollars or euro). Meat may become more rare along with fish (due to still unregulated in 2030 overfishing and acidification), but there will be no or almost no lab grown food. Mass surveillance will propagate even more but privacy will not succeed or become sought by majority.
Yeah (2) seems most likely to me.

Semi-advanced civilization like ours is relatively common but almost always depletes it’s resources and collapses.

Any civilization needs a lot of energy to grow. Energy is generally dangerous.

Climate change and ecological collapse seem to be hard to avoid for any civilization wired for growth and advancement.
He seems to make a contradictory point... he complains:

> iOS 11 dropped support for 32-bit apps. That means if the developer isn’t around at the time of the iOS 11 release or isn’t willing to go back and update a once-perfectly-fine app, chances are you won’t be seeing their app ever again.

but then he also says:

> To have a healthy ecosystem you need to go back and revisit. You need to occasionally throw stuff away and replace it with better stuff.

So which is it? If you want to replace stuff with something better, that means the old stuff won't work anymore... or, it will work by placing a translation/emulation layer around it, which he describes as:

> We put virtual machines inside Linux, and then we put Docker inside virtual machines, simply because nobody was able to clean up the mess that most programs, languages and their environment produce. We cover shit with blankets just not to deal with it.

Seems like he wants it both ways.
I don't know what DOTS is an acronym for, but if Mike Acton is involved I guess the first two letters stand for "Data Oriented"?
Electron security best-practices should allow us to work with Webpack
One reducer holds the user's criteria, another holds the ajax results. The second one can't access the first one's state to confirm if these results are the correct ones to store, it has to be done in a thunk in the action.
This is incredibly negative. You could make the same comment about any public form of communication. Speeches, articles, heck even a Twitter post.

This is an absolutely destructive viewpoint in particular for all those brilliant people who do interesting stuff but never think they are ready to share their story just because they are no Jimmy Fallon. Being bad at things in the beginning is part of every journey.
Watch a lecture by Peter Zeihan on YouTube. His entire thesis is the US is becoming isolationist. But yea I agree with you about China.
Get diagnosed for adult ADHD.
It just a lazy analogy for many useless talks. Btw, I LOVE talking about my vim config in a small setting like a 10 person meetup just because I LOVE vim and like to be with like-minded people. But I'd never do a public speech on it because it's no achievement and more important: my vim config is not my identity (maybe a bit ;)
> people overestimate what will happen in a year and underestimate what will happen in a decade.

Last decade seemed like the opposite. So much happened every year, but nothing changed over the decade. The biggest change seems to be the expansion of aggrieved classes to include almost everybody. This only applies to “the West” of course. Changes elsewhere are perhaps striking.
How Leptitox Helps You Reduce Weight?
It sounds like he did have goals but was okay he didn’t reach them. Those are still goals.
They mean other's advice. Does one own one's advice?

I could be wrong too. :)
> when GQL initializes the entire record in memory

GQL is an idea not an implementation. I don't believe there's anything preventing actual software from optimising this case. Or am I missing something here? The query defines what you're asking for so extra data does not necessarily need to be fetched.
It's very interesting to consider what would be required for a minimal industrial complex that supports microprocessors. My intuition is that it would be much smaller than "the full Earth industrial complex". Seems like a question that is actually answerable with research, and potentially important too as a hedge against our current industrial complex collapsing.
> You can live a spartan life on $12,000/year in many places in the midwest and not die of poverty.

I live in the Midwest, and this is simply not an accurate description of Midwest finances. These people who live on $12k/yr are either already asset rich (i.e., own their own house/car/etc) or are having their friends/family/roommates or the state pick up some of their living expenses, in one way or another. If they don't, they are literally dying of poverty.

According to the US Census Bureau, a $12k/yr income would put you below the poverty line, even for a single adult with no children living in the Midwest (Michigan).
Who knows what proportion of it is distributed. Money isn’t the only wealth. A high trust society with an open and accountable government is far more “wealth” for the average citizen than getting a check every month.

And if the Saudi king decides to stop the payments or kill you for speaking out against them (see Kashoggi assassination), what good is a few thousand in oil money while the royalty splits the billions with the US.
Conway's Law (which of course is not really "law") would suggest the last option is the most likely. Given that other game engines don't really have this issue the other two options seem less likely to me too.

[0] https://en.wikipedia.org/wiki/Conway's_law
You focus on and make assumptions it's indexed rows and that ~20ms average for a database call is "suspicious" but you're not concerned about the 400ms flamechart for graphql-js doing validation shown in the thread?

graphql-js is the reference implementation of GraphQL, so it's not any random library.
Honestly, that seems like an overstatement. The same could be said for anything finding its way onto the internet that doesn't represent you at your current best. Maybe if you're a really bad speaker/writer/etc. and, for whatever reason, think you will never get better you should be cautious about doing anything that will expose you online. But I'd suggest simply improving might be a better approach.

In the case of speaking specifically, if you don't start off giving maybe so-so talks at a Meetup, you're probably never going to get better.

ADDED: To your example. So if your first C++ code doesn't hit it out of the park, you should just give up?
Start lifting weights and exercising.

Note this is not dependent on some historical events happening like Apple stock or bitcoin. If you aren’t into fitness now I highly recommend you get into it.
That the Godot scene editor is made with Godot seems to be an excellent example of how eating one's own dog food can exercise and improve the basic technology.
Our stove broke towards the end of 2018 after nearly 20 years. I went to buy a new one, really was difficult to buy anything that wasn't an electric one. So I spent money on getting one of the better ones because I didn't want any problems. It's been broken and needed a repairman to show up twice since purchase.
https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Ao... is the list of soundness bugs. They are considered major, but they’re more compiler bugs than something broken in the language itself. They are taken seriously, but bugs will always happen. Some need upstream fixes, too, so that can take a while.
The Gershwin estate was the other big force lobbying for the 1998 copyright extension, besides Disney of course.

I guess United Airlines doesn't have to pay royalties for its theme song anymore.
Okay, but we're talking about UBI, and in UBI systems, there aren't any people that are just barely over the threshold.

I don't really see folks resenting welfare. I see a whole lot of folks who have probably never experienced welfare, though, and who are ready to judge those who do receive it. I don't consider this a reasonable line of thought, though, but rather an indicator of bigotry and poor empathy.
Solar wrecking the economics for nuclear looks unlikely to me: https://en.howtruthful.com/o/nuclear_power_can_replace_coal_...
(2005) in case you're confused about the "five years ago" remark
> First Tesla's Model S Plaid edition was announced and seen racing around the Nurburgring.

Hrm, does the Model S Plaid come with a free tow truck or is that an optional extra: https://www.thedrive.com/news/29946/porsche-taycan-laps-brok...

> Those reservation holders who's commitment so far is only a ~$3k refundable deposit are going to have second thoughts.

Are they? Let's see what actual Taycan owners think about it so far: https://electrek.co/2019/12/21/first-us-porsche-taycan-owner...

And let's see what the performance is like compared to a Model S:

https://www.thedrive.com/news/30467/watch-a-porsche-taycan-t...

https://www.youtube.com/watch?v=Uum9nffLasQ

But don't worry about it. There's a number of EVs which outperform Teslas.
Unity is both free and subscription based.

They make older versions of the engine available in their management app, and projects are linked to a specific version unless you explicitly upgrade.
> Yak Shaving is the last step of a series of steps that occurs when you find something you need to do. “I want to wax the car today.”

> “Oops, the hose is still broken from the winter. I’ll need to buy a new one at Home Depot.”

...

> So, what to do?

> Don’t go to Home Depot for the hose.

This analogy is rather awful. The takeaway I'm getting from this is "if you hit an obstacle, stop trying." Surely that isn't what the author is trying to tell us?
I have to be careful about what I describe, but I don't think people care about speed or performance at all when it comes to tech, and it makes me sad. In fact, there are so many occasions where the optimisation is so good that the end user doesn't believe that anything happened. So you have to deliberately introduce delay because a computer has to feel like it thinks the same way you do.

At my current place of employment we have plenty of average requests hitting 5-10 seconds and longer, you've got N+1 queries against the network, rather than the DB. As long as it's within 15 or 30 seconds nobody cares, they probably blame their 4G signal for it (especially in the UK where our mobile infrastructure is notoriously spotty, and entirely absent even within the middle of London). But since I work on those systems I'm upset and disappointed that I'm working on APIs that can take tens of seconds to respond.

The analogy is also not great because MPG is an established metric for fuel efficiency in cars. The higher the MPG the better.
There was a smattering throughout about areas where the US lags. There was a lot of discussion around #6 but I found #3 to be quite interesting, esp. the last sentence:

> Conversely the US becomes increasingly internally focused and isolationist in its world view

I wonder what are some people's thoughts on this - specifically if they agree and what are some of the potential impacts to US citizens and abroad (influence, wealth, industry leadership, etc)?
I think the idea in the analogy would be to just use a bucket and the broken hose as a good enough solution... Like find alternatives if the right path ends in a yak
Maybe there have been corrupt wolves in sheeps clothing... but the word "republican" and the word "democrat"... the "republic" is the very few set of rules which usually limit what the government can do, and the "democracy" is all the oodles and oodles and oodles of legal code on the books. So, if the parties respected their names, republicans would be for smaller gov, and democrats for more gov. I would say modern day "libertarians" resemble the republican name most truly.
Also the ability to drive the truck, at least to some degree from controls at the back of the truck. In my neighborhood there are too many parked cars to be able to let the robotic arm do everything. I often see the driver at the back of the truck moving it forward and hoping off to position trash cans where the robotic arm can pick them up.
"Bubbles happen when everyone in the market is stupid.

No. Bubbles happen when interest rates are low or via other mechanisms ( QE, etc ) excess capital is created."

---

Nobody has or can define a bubble.

Nobody can see 30+ years into the future.

Right now, 30 year treasury bonds are paying about 2.3%.

If the capital markets are efficient, then there is no free lunch, so you can expect returns of stocks in the next 30 years to be essentially the same or about zero if inflation stays low and all nominal income will be from dividends.

Is that a bubble in stocks or bonds? Well, I think what will determine if people call it a bubble in hindsight is if inflation goes up and interest rates as well. But that is not expected by most.
Yeah, if anything, central banks have been clear that cryptocurrencies are the devil and they will be shot down. From today on , EU adopts stricter controls for transferring Gold as well. If anything, there will be a backlash to this extreme capital controls , but theres no way governments will loosen the leash on money on their own volition
See also: in Good times create weak men [0], the author explains his interpretation as to why. I can't summarize it well. It's centered around a Jonathan Blow talk [1] Preventing the collapse of civilization.

[0] https://tonsky.me/blog/good-times-weak-men/

[1] https://www.youtube.com/watch?v=pW-SOdj4Kkk
I think people who recognise this have generally been developing from the days where computing resources were scarce (or on mediums now where they need to be efficient). It was a necessecity to implement efficient techniques instead of a nice to have. Nowadays those restrictions have been lifted for the most part.

In this day of "Agile" development, as long as something's working during UAT, that's all that's needed for sales and consumers.

Webdev, IME, is an example where the ecosystem has facilitated bloated websites. I've worked with developers who throw any library they can just for basic things because they don't have a need to try to optimise. The meme of using jQuery for everything when it came out has just been replaced by other frameworks. I find it often depends on developers who really want to work on something and take pride in it vs those who just need something on their CV or got hired by following a few tutorials on the web but not understanding what they wrote (which, to me, signifies a hiring problem in the company). During code reviews, I encourage leads to keep calling up hacky code to a point where the developer will just start writing it properly the first time round. As developers, I feel we should be aware of not creating selfish software which hogs memory from other software or requires huge data downloads for mobile users (whenever doable). Possibly a naive ideal but if it's a byproduct of developing fast software for my end users, I think that's a win-win.
A friend lived outside a city of 20,000 in rural Colorado. He dropped $10-20k to get fiber run out. It seems like a lot, but If that's literally the only thing keeping you from moving from the Bay Area to a small town, you just haven't done your research.
Mine is https://qvault.io/blog
I guess I'm quite biased though :P
I think by the end (very end) of this decade it will become common place for at least the upper class to cryogenically freeze and store a cell culture to take advantage of advances in medicine that will also occur in this decade such as affordable / reliable processes for growing your own organs for transplant, etc.
http://bit.ly/2M25Xvz
Obesity has become an epidemic in America. Men and Women gain pounds of weight in no time. They find it way harder to lose weight. The weight loss industry, like the gym, fitness centers, dieticians, and hypnosis programs are fooling their victims
Artificial Intelligence in 2020
Well done! Congrats on shipping, you guys should meet up with folks from https://github.com/chatwoot/chatwoot
Yeah, I really dislike the black and white thinking. The python script example the author gives is a perfect example of what doesn’t need to be made any faster. If you are interested only in execution time, you might as well never write anything in native python.

But on the other hand, a lot of web content does need to be faster. Gmail has somehow gotten so much slower to load over time. And every time I visit a newspaper/magazine website I am aghast at how bloated they are. Does that mean nodejs is inherently bad, no, but it does mean people should try to optimize noticeably terrible performance that actually degrades UX.
Yak shaving is "Any seemingly pointless activity which is actually necessary [...]". Yak shaving is necessary. It isn't an indicator that you shouldn't shave the yak.

Now, if you can't decide if yak shaving is necessary, ask yourself 4 questions:

- What am I really trying to do?
- Is this the best way to do that?
- Is it necessary to do that?
- Do I really need to do it right now?

And remember, perfect is the enemy of good.
> Jonathan Blow has a language he alone develops for his game that can compile 500k lines per second on his laptop. That’s cold compile, no intermediate caching, no incremental builds. You don’t have to be a genius to write fast programs.

The guy is most definitely at least a genius.
One thing nobody seems to mention is the environmental cost of inefficient software. All those wasted CPU cycles consume electricity. A single laptop or phone on it's own is insignificant, but there are billions of them. Combine that with the energy wasted shovelling unnecessary crap around the internet, and it adds up to a big CO2 problem that nobody talks about.
I was going to say this... every shortcut to avoid shaving a yak is just creating a new yak that will need to be shaved next time.

Pretty soon, you are surrounded by nothing but yaks, and even yak shaving requires shaving ten other yaks first.
If you want to quit your day job, be smart about it. What is bugging you about your current job; coworkers? work/life balance? compensation? distance to your job? don't do what you enjoy?

I always applaud a good project that aims to inspire, but it seems to me you are asking for permission here. It shouldn't be up to us to tell you to quit your job. In fact- asking us to tell you tells me you want to, you just don't yet on what grounds.

Take some time to think it over and try to understand if it's a rational or emotional reason why you feel this way. If you can see this reason for yourself and it persists for at least two weeks, you'll know for sure why you want to leave which will help you decide what things of your new job are something you are looking for (ie. better pay/commute/coworkers/work-life balance/etc.)

Best of luck!
I've been doing machine learning for almost 10 years now and can tell you from experience that when a layman hears AI they think AGI, a magic pixie dust that can solve any problem that they throw it at.

AI is a branch of computer science, but outside of A* search it's practically all machine learning.
The eCall system - which automatically phones the emergency services with your position after a crash - is already mandatory on new cars in the EU. The GPS is already there. Making further use of it, perhaps to assist self-driving cars, doesn't seem like such a stretch. (Which is not to say I welcome it.)
Is anything currently working its way through congress to extend it again? Anything we can try and get ahead of?
Coping with Loss of Hospital, Rural Town Realizes: We Don’t Need a Hospital
Something no one has said which probably should be mentioned is that programmers today are just not as good as programmers of yesteryear.
Not OP, but here’s what I did:

* figured out the most valuable things I was reading: HN in moderation, 4-5 twitter accounts, the top posts on a few subreddits each week
* siloed them. There are weekly top posts emails for hn (how I got here), tweetbot with an account following those 4-5, and a weekly email sent to myself with links for the top weekly posts on those subreddits
* I check those periodically, usually at meals. I have a time tracker when doing so.
* They’re blocked on my phone, with two levels of content blocking. Ios is bad at content blocking, but the two layers make it annoying enough I generally don’t use it. (Layers are: limit adult websites, which lets you block custom urls as well. 1blocker’s url blocking, which blocks in safari, my main browser. If either of those don’t work for you, Lockdown has url filtering at the vpn level)

So I’m not going cold turkey: I’ve gotten immense value from HN over the years. Stuff with no value I can easily go cold turkey on. But these other things, I’m reading in a managed wya, leaving more time for focus.

I had this sort of balance naturally when most of my internet was on a laptop. With the phone, I find the balance went out of wack and countermeasures were necessary. No phone is an option, but introduces a lot of frictions I’d rather not have.

I also put in positive tracking, like things I have to check off if I met certain goals. So replacing empty surfing with positive action, which naturally reduces the desire to surf.
Funny you mention that, since we've seen cryptocurrency processing concentrated in big data centers... for all the same reasons everything else is located in big data centers - energy and bandwidth are cheaper.
In other words:

Don't let perfection get in the way of progress.
While it’s certainly true performance can be a trade off... 400ms+ response times are annoyingly slow. I’m not sure a trade off is worth it unless it’s some really exotic endpoint you’ve created
Invading another star system of similar technology levels without FTL seems like non starter. You could sterilize planets, but space based assets are another story and retribution is possible.
Yeah but in this case absolut numbers seem more relevant, per capita will always be low if you're a billion population nation.