skysight-inc/HackerNews huggingface dataset:
git grep can be fast, depending on what you're searching for and how much you need to search. If you commonly search literals, then git grep's literal optimizations probably make it good enough for you. But increasing the pattern complexity just a bit can result in large performance cliffs. For example: (times reported after running each command a few times to account for I/O cache)

$ git clone --depth 1 https://github.com/BurntSushi/linux
$ cd linux

$ time LC_ALL=en_US.UTF-8 git grep -E '\w+_RESUME' | wc -l
1998

real 20.616
user 2:02.49
sys 0.363
maxmem 64 MB

$ time rg '\w+_RESUME' | wc -l
1998

real 0.127
user 0.673
sys 0.617
maxmem 26 MB

Both of these invocations are doing roughly equivalent work, including
respecting gitignores. Both of them are using a Unicode aware `\w` character
class. OK, so you might say you don't care about Unicode. That's fine, ripgrep
is still faster by an order of magnitude:

$ time LC_ALL=C git grep -E '\w+_RESUME' | wc -l
1998

real 4.546
user 27.741
sys 0.420
maxmem 63 MB

With that said, `git grep` can now be made to use PCRE2, which gives it a
significant speed boost on this workload:

$ time LC_ALL=en_US.UTF-8 git grep -P '(*UCP)\w+_RESUME' | wc -l
1998

real 0.894
user 5.821
sys 0.493
maxmem 63 MB

$ time LC_ALL=C git grep -P '\w+_RESUME' | wc -l
1998

real 0.517
user 2.962
sys 0.596
maxmem 59 MB

ripgrep can do the same as of this release, but faster:

$ time rg -P '\w+_RESUME' | wc -l
1998

real 0.511
user 4.795
sys 0.544
maxmem 24 MB

$ time rg -P --no-pcre2-unicode '\w+_RESUME' | wc -l
1998
real 0.422
user 4.119
sys 0.479
maxmem 24 MB

Do these performance differences matter to you? Maybe not. But you said you
couldn't understand; hopefully the numbers above add some clarity. :-) On top
of that, ripgrep works just as well outside of git repos, on huge log files,
binary data or even in shell pipelines.
My 9 year old comment from that thread;

>I used to think that the problem with newspapers and journalism was a revenue problem. (e.g. CL took their classified ad revenue). Like a lot of people, I thought that eventually someone would figure out a new source of stable revenues and all would be fine. I now see that the problem is much bigger than that.

>I think the important point that is easy to miss is that we are in the very early stages of a major social revolution, probably the biggest in human history. Institutions like the Catholic Church or the NYT and the MSM (today) are what communicate and sustain the culture (whether you agreed with them or not). This is what the internet has broken. It takes time for new institutions to form but that is the process that is underway right now and that process will probably take decades.

This article is not really about newspapers and is a must-read if you want to understand the current crazy social and political milieu we live in. My comment is still true; we are still in an historical social revolution and knowing this helps me cope. It is hard to see the big picture sometimes and this article helps me understand.

NB: Fun fact, I emailed Clay Shirky with my comment at the time and thanked him for writing it. He emailed me back and wrote (paraphrased) "Yep!" and thank me for reading it.
Since you obviously like this sort of thing, let me point out that quantum uncertainty isn't simply a factor of measurement/observer effects[1][2]. (The only part of what you said that I am addressing by this is the "this is because" section.)

[1] https://www.nature.com/news/quantum-uncertainty-not-all-in-t...
[2] https://en.wikipedia.org/wiki/Uncertainty_principle
DNS over TLS – Thoughts and Implementation
It depends on the interviewee.

In any kind of interview you can blow it by saying something insensitive, touching somebody's equipment without permission or otherwise offending people. Don't be that guy!

So far as technical knowledge goes I would say take the tests here:

https://www.pluralsight.com/product/skill-iq

There is also the backstop of what you do when you don't know the answer. I succeeded in quite a few technical interviews with "look it up in the hashtable" or "look it up in the literature".
How Am I Not Burned Out?
Well, UCSF doesn't have an undergraduate program, so it's unwise to directly compare their prestige to other UCs.

At least in computer science, UCSC has a decent reputation. Among UCs, computer science goes roughly Berkeley > LA/SD > SC/Davis/SB > the others. Non-computer science, I think Berkeley and UCLA are way above the rest except for isolated specific departments.
We did a journey in Mexico where the first class buses go on the good highway and have extreme air conditioning and lie back seats. The second class buses go on the bad roads and use schoolbuses with no AC. But the second class buses made the trip in half the time of the first class, because they could go over the mountain instead of around it. Fascinating choices.
You can only do that if you can prove that T will never have subclasses that are larger.

To check that, the compiler either has to see all code that will run in the process, which means whole program compilation and no plugins, or the language needs a way to make classes that cannot be subclassed, preventing code that the compiler didn’t see from subclassing T (https://en.wikipedia.org/wiki/Class_(computer_programming)#N...)
Yup, that's definitely true. It's going to be a fun transition period.
Darpa Announces $2B Campaign to Develop Next Wave of AI Technologies
I totally agree about shame. I've been going on for a while about what I call "abstinence based environmental policy," which is trying to shame people into being poorer to save the Earth. It works about as well as shaming teens into not having sex, hence the analogy.
Can you travel faster than a photon without knowing how to capture a photon? I love the idea. Maybe CCDs just have a different cultural significance for them.
Yea, this is for sure an absolutely awful idea and I can’t imagine who would possibly give this the ‘OK’. This has to be breaking all sorts of university guidelines and policies. UCSC stands to lose more in lawsuits than they have to gain here. Not to mention this seems counterproductive to student safety and wellbeing.
What number of deaths is ok? There were 63,632 fatal overdoses in 2016 and nearly two-thirds of those deaths involved a prescription or illicit opioids.
Exterminate Mosquitoes for the Sake of Humanity
"How to Talk so Kids Will Listen & Listen So Kids Will Talk".

Check this review of sorts by Jeff Atwood: https://blog.codinghorror.com/how-to-talk-to-human-beings/
Which does not solve the common case when you want to pass unfiltered ingress trafic to few specific hosts and have the default reject unknown ingress behavior for all other LAN hosts. Just give me the ability to set my own firewall rules when I need to instead of drop-all/drop-ingress/accept-all combo-box with confusing label.
That’s dark. Is this a thing?
Fairphone is assembled in China and most if not all its components are manufactured in China.
Gigaset has non-negligible amounts of assembly in Germany, though obviously most parts are far-east. E.g. Gigaset GS185.
Is that what happened, historically? You checked it or just assume it happened like that when the drug started?
The four steps to epiphany was a pretty great book for me.
I wish more technical founders would read this: http://www.startuplessonslearned.com/2009/07/principles-of-p...
Any thoughts, folks?

Is this a good opportunity?
> That for example (as the article notes) is why Facebook, Google etc are not seen as monopolies because they charge consumers zero.

I can see this point, but also the point that many consumers consider the collection of data about them amounts to a cost, given our current system. (e.g. there's a new, expensive risk for the consumer: suppose that Facebook's systems are hacked and otherwise private data related to security questions, location, income, gender and so on are used to help steal the consumer's identity)

I mean, does economics need to catch up here? Can we really say there's "no cost" to the consumer?
The book is racist and antisemitic.

In the book: African scientists were experts in breeding humans and apes. The Jews were responsible themselves for being hated. And in the long run both groups didn't make it into the next round, the next mankinds. So you can be sure all the following humans had no black or Jewish blood.
You're going to very hard pressed to build a phone outside of Asia, and even more so without Asian components.

Fabrication of the case and battery are doable outside of Asia, although to get a phone shaped battery, you might need to roll your own. I know of no major manufacturer outside of Asia. Case can be cnc'd just about anywhere.

Board is going to be difficult, but easier. AllPCB can probably take care of the high layer count board, but it's not going to be cheap.

Screens are going to be a bigger issue than battery. I know of no modern phone sized screen manufacturers outside of asia that could make a 1080P screen in bulk. That's not something that would be easy to roll yourself either.

Chips are going to be, by far, the most difficult part. If you're willing to call the Philippines part of Oceania, it's a bit easier, but not much. Even if you can get a CPU, ram and flash storage chips made outside Asia (big if), all your small passives are made in China and basically nowhere else.

This is ignoring assembly, cameras, coatings, etc.

Basically, any phone you buy is going to be majority Asian manufactured. Even if you wanted to make a phone domestically, I doubt you could make anything that competes with Chinese products. I'm not sure what the wording on the ban is, so this might not be as drastic as I think.
Olaf Stapledon is amazing but he isn't writing adventures or even narrative in the traditional sense. He is very well known among science fiction authors because they use his material heavily [0]. I often wonder if there is some secret argument among some scifi authors never to speak of Stapledon. For instance one interesting line was that C.S. Lewis was inspired heavily by Stapledon to write "That Hideous Strength" which in turn inspired George Orwell's 1984.

If in one thousand years one science fiction author will be remembered from our time there is a decent chance it will be Olaf Stapledon.

[0]: http://www.nyrsf.com/2013/11/thomas-f-bertonneau-contact-com...
That's not an option for everyone
Scale Transformations in Housing, Wealth, Transport, and Rhino Horn
> Case can be cnc'd just about anywhere.

High-end injection molding is a speciality of many in Europe, so that's really not going to be a problem.
If you can set up 1-2 days of WFH and you have flexible hours then commuting from SC to SV is just matter of choice.

There are plenty of people that do it (at least in my bubble).
it's only fair that those people have to pay more, after all they also cost the insurance more

What a curious thing to say in 2018. Would you also argue that women take more time off to have babies so it’s only fair on employers not to hire them?
Archived copy without GDPR nag screen:

https://web.archive.org/web/20180908213017/https://www.washi...
That one is much better! Thanks for recommending it.
As soon as you start hiring people, strongly recommend reading "Radical Candor" [1].

[1] https://www.amazon.com/Radical-Candor-Kim-Scott/dp/B01KTIEFE...
This is hard to get right. Personally I try not to be a grumpy maintainer but I'm frequently a picky one. Lately I've been an absent one.

I think maintainers can frequently come across as grumpy simply because their goals are different from contributors. They have to live in and fix the codebase for the long term, so have a proportionally higher stake in consistency while also having a much broader knowledge of the rest of the code. It's hard not to nitpick in this situation.

For the contributor, they're frequently trying to get some other work done and would rather not have endless back and forth over the precise detail. Furthermore their feature or bugfix is clearly a good idea because it solves their own problem. A problem that, unfortunately, the maintainer doesn't have.

Perhaps a partial solution is in treating project maintainership itself as an engineering problem. That is, having automated testing infrastructure, developer tooling for code consistency, etc. This kind of stuff has become dramatically easier to set up for small open source projects, but depending on the language it can still be a lot of effort.
I was under the impression this cheese was more like Kefir -- a symbiotic yeast/bacteria culture
Debt: The First 5000 years is more of a historical examination of the modern origins of debt, not really 'business' per se but still a really solid book that I think many people in this industry could benefit from reading.
United groups find ways easier.
I'll temper your statement about uncertainty. You can measure whatever you want, but if your observables are incompatible, you can't say it's still in the eigenstate you measured it in afterward each measurement. Then again, people have to explain what it means when they say "measure at the same time" means. If it means "system A is in eigenstate |1> and eigenstate |a>" where |1> and |a> are eigenstates of different (non compatible) operators the answer is no.
There would be an expected prescription rate for geographic areas, specialties, doctors etc. I’m sure it’s very easy to tell who is going through a lot of it and potentially causing harm. Knowing this and continuing to provide the drug is where the line is crossed in my opinion.
This is quite unsubstantiated but I have a feeling that the trend is moving towards other Fb owned properties like Whatsapp and Instagram so I wouldn't be worrying about Facebook's profitability anytime soon.

Moreover, deleting the Facebook app from the phone does not mean that they are not simply using the web version. Although, apparently a majority of revenue was coming from the mobile ads.
Sure, everything is an opportunity. Make it happen!

On the other hand, the traditional wisdom is that a lack of competition isn't a good sign.
AFAIUI:

"Void -> a" means that the function cannot be called, because there no way to conjure a Void value. In Haskell, you can do it by (ab)using 'undefined', but that's kind of cheating. However, if you're using Idris with totality checking, I don't think you'll actually get any code calling such a function compile.

The "a -> Void" means that the function can never return.
Since one can prove anything if you're assuming nonsense, a function of the type 'Void -> a' should be able to just return its argument.

And assuming the theory is consistent(so no infinite loops etc.) this is the only instance of that function, so the cardinality is 1.
What's the point? It's not even sizecoded for 256b, 1k or tweet length.
“Out of Place Artifacts” – Reverse-Engineering Mystery Objects
Great find! I like the "Mulvaney submitted a quarterly budget request for the [Consumer Financial Protection Bureau] to the Federal Reserve for $0."

And after trying to shut down the database of consumer complaints, turns out "8 of the 10 firms with the most complaints about them had contributed to Mulvaney's campaigns."
What about the Right to Forget? Can't we ask Equifax to delete all of our information?
If one only cares about oneself, then yes, mild sociopathy would probably be beneficial, but that's somewhat of a tautology. It's definitely better for society as a whole to minimize sociopathy though.

The above notwithstanding, labeling a desire not to be a sociopath as "self-sabotaging feelings" is quite a spin; It would be like calling a charitable donation self-sabotaging since you end up with less money for yourself. True, but misses the point. I expect the downvotes are because you don't provide an argument for that label besides the assertion that sociopathy is deemed beneficial to a sociopath.
Is anyone aware of a generator that uses simulation of geological processes?
Volcanic processes, raising/sinking plates, followed by erosion, creating rivers, lakes, elevation/temperature based vegetation?
Perhaps I should have said “some typeface”. I can’t remember the name of the book or the font.

I remember the book was laid out using TeX though.
Some are (in the US at least), but not enough of them are in power right now to do much about it. Luckily, there's an election in November...
The Pentagon plans to spend $2B in AI for weaponary
Apple manufacturers iPhone SE’s sold in India, in India.
Typically they'll basically be a markup resource. IE: I have a ton of documents in one format, and I need them to be translated to clean HTML.

The other thing that may be needed in this position is actual content development skills, ie: writing. You could be responsible for doing blog posts, pages on websites, marketing copy, etc.

"Web content developer" would also be the lowest paid position in an agency typically. The salary ladder goes "web content|web maintenance/support" > "front-end|SEO|social/marketing" > "back-end|fullstack" > "management" > "ownership" in my experience.
I don’t understand her point either. And for number 3, entropy for a single particle (as far as such a thing can be defined) is quite different from entropy for a macroscopic system. I’m not sure it makes sense to say that particles decay “to reach a state of highest entropy”.
If I would write a program that produces random text and I call it a science fiction generator (as in science fiction everything is allowed), would you not tell me to go and read some real science fiction stories before making such a claim?

There is no clear definition of who is an artist and who is not. It is also something that depends on the context and can even change over time. You are not born an artist, but some people, usually over time, are recognized as artist. Take for example Van Gogh. He did not go to art school and during his life time he was not recognized as an artist. He was too much ahead of his time. It was only after his death that the genius of his paintings was recognized. But would you call a program that imitates his style (using neural networks) generating art? Probably not, because it is just imitation. There is nothing new or insightful about it. It does not impact our thinking in any way.
Agreed, and at this point in time, those prescribing have a big share of the responsibility too.
Doesn't fit the not-made-in-Asia request, but does anyone use one of these?
The Psychoactive Substances Research Collection at Purdue U. Libraries
It's not about the heaviness of the content. It's about how easy it is to get some eyeballs and votes, and serve as a conversation starter...
I think I'd like a better definition of "small town". At least where I live there are a LOT of suburbs which are sort of their own towns, but they're not really self-sufficient; in reality they're all previously far flung places that became tax-dodges for getting around being in the local major city.

I would actually welcome these outlying areas being merged in to the core city and a policy of doing the transit transfer tracking at the ports/roadway edges that connect out to other regions. That should also discourage founding new small fiefdoms as tax-dodges.

I would also finally be able to vote on things in the big city that affect my life, and maybe get those crazy anti-soda anti-cars/proper transit outside of the big city politicians replaced with someone that's looking at the big picture instead of a close-up.
Interestingly enough a friend of mine kept trying to get me to use ag, since he always saw me doing relatively long "find" commands. A discussion about perfomance, ease of use, &c. later and I wrote an ag clone in shell, called "the copper searcher." Performance is similar between the two, I think I got most of the major features implemented.

Also note that if you still have UUCP infrastructure, the name "cu" will collide with an already installed program.

https://github.com/jasom/the-copper-searcher
So we have a guy working for us in this role, they take word documents containing training modules and enter then into an e-learning system we developed for a client. Its mostly entering text, EXML tags for interactive content, and the odd bit of styling (there should be little CSS involved in this as there is a global content stylesheet but sometimes there are edge cases)

I recently finished a bunch of upgrades that parse DocX files, rips out the contents list, pre-fills the structure in the system, auto-imports all image assets and an extra utility that individually rips tables out of the DocX file and converts them to HTML. This was all to speed them up a bit.

On top of content entry you are required to do a lot of proof-reading and review work to make sure what you have entered is faithful to the document and generally correct.
I'll say that most systems are time invariant, so conserve energy. One should always know the system one works with. For example, first year undergrad problems near the surface of the earth for example since they ignore the earth do not conserve momentum.
Porcelain Kitchen Sink Reviews: Highly Functional Models
That doesn't sound right...
>The lady of the lake didn't come out and bless special individuals as "artists" and the rest of us as foolish undeserving heathens.

No, hard work at aesthetics, vision, and talent did...
Love it! Super fun, thanks for making this!
Makes you wonder if this led them to plant decoy phrases/words.
Yep, I was going to mention how insignificant the commute is if you only do it once a week. I spent a number of years in the coastal communities around the area, mostly working from home or cafes for startups in either SF or SV/MTV.

The massive influx of moneyed people from the tech industry has had a substantial impact over the last 10-15 years, for the entire region.

Edit:

I just remembered a relevant experience I had two years ago:

While seeking a room to rent through the wet winter, I found a house in Felton (~10 miles into the woods, away from Santa Cruz and the coast) renting all the rooms for $800/mo each. The owner was living in a container in the yard, powered via extension cord! This was basically the cheapest option I could find, and it was a total shit show. One bathroom, 7 tenants, most college-aged, and the owner's 5 year old daughter was living in the living room while the owner was in the container. Even large closets were being rented as rooms.

Obviously I passed on this option, but it was quite illuminating of how much opportunity there was to capitalize on; this guy was risking his daughter sharing a house full of strangers without him even inside.

That same week I had a conversation with a young park ranger who had recently moved to Boulder Creek, which is even further into the woods like another 10-15 miles down a twisty road. She had just moved from the east coast and couldn't find anything affordable in Santa Cruz or Felton, and just barely affords a shared place in Boulder Creek.
Truth and lies are also political weapons. What does this say about them?
I wonder how they count that too. Number of script letter? Number of pills charted, or boxes shipped? Number of dollars earned?

You can bet it’s a carefully chosen statistic.
80/20 Sales and Marketing by Perry Marshall
If you don’t mind the wait to compile rustc from source once (only for tools written in rust, of course), linuxbrew is a pretty neat way of keeping tools that aren’t directly on your distro’s repos up-to-date. Nix is another option.
I think that's meant to be an illustration of the naïve tendency to think of something purposeful - an intended state - as being more ordered than something broken or scattered. A dough is a thing you made for a reason, a mess on the floor is just a mess on the floor. Don't take it as a physicist thinking in physical terms, but as the immediate impression of an ordinary person in ordinary circumstances - you need to reflect and understand to see the truth.
American education varies a lot.

I did all biology and chemistry in highschool, I didn't have my first physics class until college.