skysight-inc/HackerNews huggingface dataset:
> I think Knuth (in his famous "... root of all evil" quote) was referring specifically to programming, and to spending time on optimizations prior to functional completion.

What he said is, quote, "... we should forget about the small efficiencies, say, about 97% of the time" and "we should not pass up our opportunities in that critical 3%."

What he was talking about in the article[1] is the tendency of programmers to concern themselves with the efficiency of things like the modulo operator, when much larger efficiencies are far more important, such as the design of the algorithm or data structures.

Premature optimization, as when deciding that this small efficiency is important enough to optimize, causes you to forget about the larger efficiencies that cause your program to be slow.

[1] https://web.archive.org/web/20130731202547/http://pplab.snu....
I wonder if hotkeying textual radio commands would give a good experience.
This is only really the case because there is an Uber and Lyft. Their only goal right now is to outlast the other so that they can price discover the top end of what riders will pay for this service and the bottom end of what a driver will take to do the work.
How would you know it's "samethink" vs. a legitimate concern?

A tendency towards "samethink" isn't uncommon amongst a subculture, which Hacker News targets by it's very definition. And, frankly, isn't that same audience also just as prone to anti-"samethink" circlejerks? Anti-samethink samethink, as it were.

Besides, this sort of antiestablishmentarianism is hardly unique to "gig economy" businesses. I think it's fair to say that there is a growing anti-capitalist sentiment in the United States. A gig economy business simply seems an easy target for the ire of anyone who feels corporations are allowed to operate at the lowest possible threshold of ethical/legal standards, their continued existence enabled only by proletariat desperation.
A union is just the free market at work. Much as a business is a collection of individuals working toward the common goal of supplying a product, a union is a collection of individuals working toward the common goal of supplying a product (labor). If you believe a union is a cartel that squeezes money from consumers, you must necessarily believe that a company is the same thing.
What if performance boost comes from better designed system because you learned on experience of 1st system?
Those are some nice tips!

If anyone here is looking to start running as part of a New Year goal, I'd suggest not getting too discouraged with all of the stuff that seems complicated about running. It takes a while to get your body used to it.

When I was 17, I made it a goal to try and run a mile without stopping at the track. Once I hit that goal, I stopped because I thought other people were judging me. It took me ten more years to go for another run, but by that point I'd stopped caring as much about what other people thought. Now I've made it a habit, and enjoy all aspects of the sport.
> Disable all apps from the Windows Store.

damn I hate this. did the mistake to try Skype from the app, in a period where Skype for desktop had issues with for transfers, only to discover it's worse in every way, and now I'm stuck, unable to remove it out prevent it from start
I have not tried anything else because I just use Emacs as is, I never really liked VIM till recently and even now I rarely use it unless I'm working directly on a remote system (bash scripts for legacy systems).

My biggest appeal for Emacs is TRAMPS, where I am able to edit files after setting up Emacs once.

I forgot to add this on my post which I linked to in a reply to someone else's comment but here's a list of editors and what they support for D:

https://wiki.dlang.org/Editors
A classic Mac emulated on the web
I’ve been improving my production process for the wordclocks[0] I build. I’ve also just barely started to try some basic marketing of them. I sold 2 this year.

Part of my marketing effort is improving visibility on Etsy and so I’ve started selling much less expensive items on Etsy too[1]. They are not so much for the revenue as for the traffic, ratings, and learning how to best use Etsy. These secondary products are all based on things I’ve designed and made for/with my young kids.

Two observations:

- I’ve really enjoyed the path of developing better processes of how to fabricate things

- I’ve really enjoyed getting my kids involved with making. It’s fun to observe them thinking about how to make stuff and working with them to figure things out (they are 3 and 6).

[0] http://www.finewordclocks.com

[1] http://www.etsy.com/shop/FineWordclocks
The flaws are in the language itself.

Relying on line numbers, GOTO, GOSUB and RUN/CALL for flow control, all variables are global. This makes it extremely difficult to reason about code and make changes without breaking anything. A modern language would have functions, objects and modules with descriptive names, scoping, and, you know, white space. OH, and it would be stored in a normal text file; the source code for these BASIC interpreters is stored in a binary tokenized format, which makes it difficult or impossible to use version control systems like Git. (I do have something jury-rigged in place for this but it's very ugly.)

Additionally the data is stored in flat files. So a "record" (in this system at least) is basically a really long string with the fields stored in specific places in that string. If you need to change the data structure you have to update the hardcoded substring references in every single program that accesses the file. (Often you are better off defining a new file and cross-referencing it with the others.) There is no relational aspect; what would be a two-line SQL query becomes 40-100 lines of BASIC code where you zip through the whole file record by record, often involving building an intermediate temporary sort file and then zipping through that.

In essence: BASIC, especially this older flavor, is such a "simple" language that using it for anything non-trivial is little better than writing in assembler.
There was a promise to make this magical and better apparently. I haven’t seen an improvement yet.

Edit: to the downvotes, sorry for being disappointed in having windows Update ram a whole core at 100% and eat up my AWS CPU credits to do precisely SFA.
Ya Australian firefighters are really good, they actually fly up here to the northwestern US to battle blazes in their off season. They often eat at the restaurants by the airport here in Boise.

I don't know how the politics in Australia work, but the main problem in the US is that the states with the biggest fire problems are democratic (California, Oregon and Washington) so are under constant pressure from republicans to have their federal fire budgets lowered, or are republican like Idaho and vote for smaller federal budgets anyway.

For a bit of background, this crisis has been playing out for over a century. Republicans supported the large timber, mining and ranching lobbies that clearcut the old growth forests of the northwest, poisoned the water with mercury/arsenic and desertified grasslands. Fire prevention measures left forests too thick with young trees of the wrong species that can't survive burns and the loss of native species on the high desert makes range fires larger and more intense. Global warming has raised winter temperatures to the point that pine beetles no longer freeze out, so most forests are sick or dying as their phloem is stripped by the beetles (similar things are happening with invader aphids on the east coast as their forests die). Democratic environmentalists worked to stop public land mismanagement but were largely mocked until it was too late.

This is primarily a republican problem, because democrats vote for solutions but are mostly outvoted in these times. The closest thing to blaming democrats for this would be via political horse trading, so maybe democrats pushed wedge issues like abortion or affirmative action so republicans attacked democratic causes like the environment in response. Or maybe democrats looked the other way as a trade for getting their own causes through. But the evidence suggests that when it comes to fires specifically, there is no "both sides" argument here.

The messed up part is that the politics don't carry over to firefighters. It wouldn't surprise me if they are majority republican, or at the very least conservative. Working hard but being undercut by their party.

Some help is on the way with new federal fire disaster funding put forth by republicans:

https://www.crapo.senate.gov/media/newsreleases/crapo-wyden-...

But keep in mind that this is a thinly-veiled attempt to reintroduce the timber industry and "thin the threat" rather than letting trees burn. Personally I'm against this, as I've seen extraction lobbyists run roughshod over the environment here. But I've also noticed that younger republicans here, especially hunters and anglers, support protecting public lands and regulating resource extraction more intelligently than in the past in order to protect natural resources for future generations. So time will tell.

I've tried to make this as factual as I can, but it's inherently a political issue. I don't mean to offend, just inform.
Drunkenness is mediated by alcohol dehydrogenase. Hangover is mediated by acetaldehyde dehydrogenase.

As both of those use NAD+ as cofactors, something that may sober someone up faster without causing hangover symptoms is a combination of tryptophan and niacin, but only to the extent that NAD+ availability is a limiting factor in the liver. A dietary sufficiency of zinc is necessary for production of alcohol dehydrogenase. Experiments suggest that 1 g fructose/kg body mass also helps process alcohol faster, but I'm not clear on how, and the research has inconsistent reproducibility.

If you have a healthy diet already, and have a healthy liver, there is very little you can actually do to sober up faster, beyond building up a tolerance, which increases the amount of alcohol dehydrogenase your body produces when exposed to ethanol.

The pure oxygen may counteract some of the symptoms of drunkenness and hangover, but the health effects of hyperoxia can be even worse than ethanol intoxication. It would be less dangerous to intravenously infuse tryptophan and niacin-associated nicotinamides, or use direct hepatic injection, and even that sounds reckless.
What's cool about this representation is just how compact you could make it. Forget a page, this could fit on a card in your pocket.

EDIT: A very quick (and rough) example: https://i.postimg.cc/nLrStmBt/micro.png
I live in a free market and a free society.

Why can't I democratically decide to associate with and democratically negotiate in a group and freely enter a contract with a third party? Isn't that what a free market is all about?
“Committed to working through this”

“Look forward to seeing the issue continue to get light”

“Business priorities evolve”

You didn’t say anything particularly disagreeable but I wonder if you realize how this kind of language comes across- this is the way people talk to you right before they fire you or take away your healthcare or something. This kind of business speak just screams, I’m someone who cannot be trusted. It’s the language of power. We all cringe and grimace when the boss talks like this. It’s why you’re getting downvoted, I’d guess.
what if it means no more taxes to corrupt governments?
OK, I didn't think I had to point this out, but I meant they've paid zero corporate taxes.
"Deserve" and "should" hasn't got shit to do with it. Are we going to start policing sales and contracts corporations make to ensure the value they deliver "deserves" the compensation they're receiving? You get what you can get. If they can get more, good for them.
I haven’t experienced that in a while (IIRC it was at least 1,5 years ago). E.g. W10 1903 has not done that to me.

Does anyone here know if it’s possible for »mere mortals« to send in bug reports to the Windows team…? If so, you might want to do that. Or does that require going through some kind of intermediary?
Expect google to start "optimizing" the cafeteria soon enough.
In order to prevent malware from hijacking popular file extensions, anytime an application "improperly" tries to set itself as a default app, it will revert to the Windows 10 default instead.

If you are having issues with this, it's probably bring caused by a legacy app or script doing something in a way that is no longer allowed.
We also consume a great deal of sand, dirt and indigestible organic matter.

The microplastic has been in the environment for a long time - reacting with the ecosystem and potentially passing through quite a lot of digestive systems before it gets to us.

The question is whether environmental micro plastic is any more harmful than the micro quartz crystals we've been digesting and expelling since the dawn of time.

Trying to trigger the yuck factor with visualisations isn't science. What's the actual risk here?
A couple missing from the list:

Be cognizant of your turnover (stride rate): https://www.runnersworld.com/training/a20787354/increase-you...

Engage your glutes and abs when running
It was allowed in Seattle in certain districts (definitely at Greek row). Not sure about now.
It really doesn't need to be expensive to serve hundreds-to-thousands of requests per second. Despite what some people will tell you, that's not actually very significant load.
> similar ramifications should apply to the uploader in the case of a valid DMCA complaint to make this fair

They do. They're the penalties for copyright infringement. DMCA provides a quick takedown mechanism; other copyright law lifts the rest.
But there are some pretty cool applications. Apparently the heat difference between a buried water-pipe and the surrounding earth is already enough to power a wireless sensor, which can transmit data to localize leaks, for example.
The best running tip I've ever had is "run tall". Most people tend to slouch forward at the hip which prevents some muscle groups from engaging. Made a world of difference for me.
> In a perfect world labor unions would be illegal is not a market-based opposition.

Why not? It's perfectly reasonable to say in a perfect world, X would be illegal if you think that X is harmful enough for the state to act. I bet there are things you wish the state would ban. You don't have to agree with the OP, but he's not expressing anything wacky or bizarre. He just doesn't see unionization as some kind of unquestionable moral good.

The reaction this guy is getting really highlights how tech has become intellectually intolerant. It seems that everyone is treating what he said as some kind of blasphemy and is personally offended that he's opposed to unionization and wants to use the state to ban the practice, as if you're not allowed to think those thoughts and remain a person in good standing. You, in fact, are allowed to think those thoughts.
Is there anyone who can explain why Windows Update is so much slower than running »apt upgrade« and similar?
It's good to point out that the virtual singal comment is in fact itself a virtue signal. I am not sure why commenters and authors can get away with it's usage without any push back.
I'm a little lucky here. My job requires me to develop for a number of platforms, including Windows, Linux, various other Unices, and a few mainframe OSes. So I do have a couple of Linux machines at my fingertips. But I have to use Win 10 for a lot of company things, because that's what they've decided to require.
Yes, although I am not asking everyone to do it. I am only saying I do it. It is the same protocol as everyone else's email, I just set it up my own way. Other people who like to do can try this too, but I am not trying to ask everyone to do who does not want to do.
I probably shouldn't say this here, but I'm a bit confused about child labor. The phrase brings to mind images of a crowd of muddy children sewing cheap shirts long after dark, and I strongly agree with regulations to prohibit that.

At the same time, why is it a problem for children to work? I grew up helping my dad out in his job as a handyman. [To be clear, this is legal and not what I'm arguing about.] Not every parent has a job where that makes sense, so working for someone else who does makes sense to me. Sure, there need to be regulations to prevent it from being exploitative and harmful. But right now, the state says that children must be in school x>0 hours a day and working y=0 hours a day. Is that really the right answer for everyone's situation?

Personally, I've decided that the value of x should be smaller and y higher (I'm homeschooling my kids, though admittedly we haven't figured out how to get them meaningful employment.) The idea is not to make them into better pawns of the capitalist state, it's kind of the opposite. I see value in work for making learning more meaningful, for teaching values well beyond what the artificial construct of "allowance" can support, among other things. I haven't actually run up against minimum employment age laws, and don't expect to for a while, but it does seem like a clumsy tool for preventing a variety of harms.
I remember a time in 2012. I was installing Windows on my computer to play a video game. It was the first time I used windows in about 2-3 years.
I started installing some utilities. A web browser, steam, a music player, etc. One of them asked me to install the Ask Jeeves toolbar. I became very angry. Of course I didn’t want to install the Ask Jeeves toolbar. No one wants the Ask Jeeves toolbar. What a dark pattern to try to get me to misclick and install some crap. What a clear lack of user focus. This angered me.

Tbh, I couldn’t tell you if it’s common for install wizards to try to shovel in crapware these days, because I avoid most situations where I have to use Windows. So much of the common user experiences in Windows are dark patterns.
Another fun tidbit of the Japanese system: they have to release you if they've held you for 23 days, so they give you back your possessions, walk you out the door and then swarm you with police five seconds later to arrest you again for a slightly different crime.

Of course, how many of us mere mortals will be keeping our jobs after no-showing and zero contact for 3 weeks?
American total compensation has grown steadily since the 1970s. Wages have been stagnant because almost all that growth has been eaten up by rising healthcare costs: https://fee.org/articles/dispelling-the-myth-that-wages-have.... That indicates a problem with our healthcare system, not a structural problem with the economy. (Likewise, if you look at returns to capital, they have been stable since the 1950s. The decrease in returns to labor have come entirely from increasing returns to real estate. Again, that’s a problem with housing markets—specifically, over regulation of housing—not the economy itself.)

Using the 1970s as a baseline also dramatically skews the numbers. 1970 was a local minimum in terms of the percentage of the population that is immigrants (under 5%). Today it’s almost 15%. Even in a healthy economy, new immigrants aren’t going to be doing as well as the native born right off the bat. A growing immigrant share of the population is going to cause median wages to seem stagnant even if they’re going up within each demographic.
I see it on every large update (like 1909) or so.
> The most egregious, of course, is a total abandonment of any form of privacy and control.

This is an issue for me, and it’s an issue you, but it is emphatically not an issue for the vast majority of windows users.

Do bloggers simply choose to ignore this fact when writing swan song posts about the “end” of this or that?
>Hence my point we need much less regulation so that middle class people can afford to live in California

Middle class people can afford to live in plenty of California, just not in certain places like the bay area. The problems with housing are mostly caused by local NIMBYism not statewide regulation, which is an issue that doesn't have a specific political affiliation.
These are individual posters. Many in the HN community support conservative policies because it benefits their business, not the individual.
Brit here. While this is undoubtedly clever, it confuses the hell out of me!
i used to run 15 miles a day 3 days a week (7.5 to work and 7.5 back). best piece of advice i can give to someone starting out 1) don't use music and 2) don't run for time but run for distance instead.

my reasoning for the first is you will have an easier time drifting away and enjoying the running for its own sake (rather than as a chore) if you do not try to distract yourself.

my reasoning for the second is running for time is like a prison sentence that you need to bear while running for distance is a goal you can accomplish (or fail to accomplish). my runs to work used to take ~1 hour and on the days that i couldn't make them because of inclement weather i ran on a treadmill. i never made it the full hour on a treadmill.

these two tips help you overcome the greatest (and most important) hurdle to becoming a runner: enjoyment.

edit: i guess one corollary of the running for distance thing is that you don't need to stress about speed; i often tell myself "you don't have to be fast you just have to finish". so when i get gassed in the second half of a run i slow down to compensate. that finish spurs you on the next time and naturally you'll get faster (well to a certain point - if you're really trying to get good then you need sprints/intervals/etc but then you don't need my advice).
This is a worth wild read.
It is physically plugged into the computer so you obviously don't need an icon cluttering your UI. This is the Apple design philosophy you paid extra for.
I think I accept the argument that in a desktop with a giant cooler attached to the CPU, this may not improve things or make them worse.

But there are an awful lot of mobile processors with passive cooling or complex heat pipes, and it would take more convincing that such a scheme would also fail there.

I'm also wondering if it might be useful for 'race to idle' situations by extending the time until thermal throttling kicks in.
The system is open source https://github.com/GIScience/openrouteservice (UI at http://maps.openrouteservice.org also shown in the screenshots)

The system is based on the open source GraphHopper routing engine https://github.com/graphhopper/graphhopper (UI at https://graphhopper.com/maps/ and integrated on https://osm.org)

So you can easily contribute to data (https://osm.org) or to one of these open source engines to achieve what you prefer.

Personally I have the feeling that especially for walking and cycling they are already better in many areas than Google or similar but as a co-founder of GraphHopper I might be influenced ;)
I never got into an intractable package issue with windows, where the dependencies were broke in a way where I had to crawl through logs and manually delete things to get them working. That’s happened to me a handful of times with Ubuntu and bad package configs.
> Also using the moc is a bit similar to using complex preprocessor-macr-ridden c code, which to me is an antipattern.

We sort of agree. gobject is a "kill it with fire" kind of mess, moc is not exactly the pinnacle of elegance either (but does more than glib gives you and somehow manages to be less weird than glib's macro jungle). The basic fact is that moc works around C++ not being able to provide this kind of functionality; so either you take some inconvenience (gtk, verdigris) or use an external tool (moc). moc doesn't usually give any trouble beyond being somewhat slow, so that seems like an acceptable deal for almost any situations you might consider using Qt in.
Why? Corporations are largely great assets to a country, labor unions on the other hand are parasitic cartels.
It's a bit strange that something that takes less than two minutes can seem so overwhelming, yet we've all been there.