skysight-inc/HackerNews huggingface dataset:
What's the easy/low-friction way for Joe Random Consumer to manage their whitelists?

An email comes in from a sender address which isn't on the whitelist, but is (in fact) a friend. What's the handling?

An email comes in from a sender address which isn't on the whitelist, but is not (in fact) a friend. What's the handling?

Do I never hear from the first friend? Or do I get bombarded with "hey, read this email and see if the sender is a friend" a bunch of times?
Yeah, this is a pretty cool post I never considered doing something like this in the shell. It seems silly to me that I forget how powerful basic tooling in the native shell can be.. sometimes I have a jackhammer and I forget that a sledgehammer will do the job just fine.
To save those who, like me, were going to comment 'that would violate the standard because std::string::size is required to be O(1) complexity' a Google - the standard recommends but doesn't require that.
I can only speak for myself apparently(I had no clue some people didn't have "conversations" in their head) but I can do both.

Frequently I will have "hunches" or "gut feelings" and so no that I can't put into words. Since this is HN, I will say that frequently occurs with programming. Sometimes a bit of code, or design, or decision will not site right with me. I can't explain it to myself internally or to others.
I wonder why google treats this simple email as spam. It contains nothing that should trigger the spam filter aside from where it came from.
> If you are doing serious work, do it in the cloud.

In some sense I think we agree, except the cloud is just someone else's powerful computer. Laptop as thin client via rdesktop is how I developed (also C++) for years, but only when I was at home away from my work computer. With the cloud you're always away from your work computer.

> If you have an actually big codebase to compile, you need to scale that horizontally anyway and an expensive workstation under your desk will take hours anyway.

Agreed, and that's further along the same vector: if you have performance issues with compilation, consider also (not only, before someone jumps on me) using bigger machine(s) for the job.

Anyway, I'm going to stop here. Feels like I found the most hated tech opinion ever... at least eventually there were some thought-out replies (and thank you for yours).
Well there is something to be said for both potential biases in those counts. First of all, those being hospitalized are obviously among the most severe cases. And presumably people with the mildest cases will potentially not even be diagnosed, so the mortality rates would be skewed higher.

And secondly, that more people have died than have recovered doesn't say much other than that it takes longer to recover than to die. If you are going to die, it would appear that it would happen sooner rather than later. Whereas if you aren't going to die, you may take awhile before you've been officially cured.

That isn't to say that is absolutely what is happening here. But both scenarios are fairly likely, and therefore should mediate some of the bleakness of those numbers for the time being.
I think it's the personal/interpersonal version of "real artists ship". I am one of those people that spends too much time in his head. It's mostly wasted energy if I never pause and let the thoughts out.
I'm not very good at systems programming, what makes a CoW std::string a bad thing? Memory overhead for a common data structure?
Those engineers that drafted gas-chamber blueprints had kids to feed too. You’re no better than they are.
Make it as hard to build a new residential unit in Texas as it is in California and that trend falls through the floor.
Because it will displace communities while the housing is built and there's no guarantee the tenants can move back.
It's certainly confusing. My understanding was that Kodak had gotten out of the consumer film business entirely, so I was surprised to find out about this Kodak Alaris, which is based in the UK. I suppose that if Kodak is still making film for motion pictures here then they could still be making small quantities of film for still photography as well, but as far as I know most of their main production facility is being rented out to other companies/startups.
It is dangerous to extrapolate like this because the big differences are in incubation time and the fact that the novel coronavirus is likely spreadable before the carrier has a fever or other detectable sign. If that's the case, tracking the spread might as well be impossible because multiple people could be the potential source without a clear way to trace it, especially in a hospital setting.

On the flip side, the R0 (rate of transmission) and death rate might be a good clip lower than currently estimated. On the other hand, China walled off a city but part of their motivation might have been the flack they got for moving slowly with SARS.
Here's something that once bit me. The libc++ implementation uses short string optimization. Which means no heap allocation for short strings. Unfortunately I didn't know this and naively thought when you std::move a string, the data() buffer would remain unchanged. This is then incorrect. You can manifest this by storing strings into any container that moves their elements around like std::vector or absl::flat_hash_map.
Who besides your hypothetical salesman is arguing that the raisin d’etre for data lakes is user web analytics?
Most of the music I discover are games and films soundtracks.
With the consolidation of resources into Big Tech, this is quickly becoming the reality across all domains. I imagine that they will always keep cloud computing costs juuuust low enough to have plausible deniability in a court case, but still.
to mixed economies like those that exist in Scandinavia and much of Western Europe.

Right. A system that includes both government and free markets, just like the OP said.
To Survive, Byte Needs to Win over Creators Where Vine Failed
Same can be said of the drugs they campaign so hard against too. There's plenty of problems with stuff like ecstasy / meth and the like, and I'm sure they cause problems that affect non-users people indirectly, but cigarettes are insidious in that you're going to breath in that crap whether you like it or not as soon as you go anywhere where smoking is prevalent.

But I'm sure the money they getting over and under the table makes it all okay! /s
"That's no different than changing your API specification"

This is a great point. The way to make backward-compatible changes to an API is by adding additional (JSON) keys, not changing / removing keys. The same approach works for a DB -- adding a new column doesn't break existing reporting queries.
It goes far enough that your concern is valid. Since HN is not exactly mainstream and many Chinese people are posting similar kinds of videos, you're probably okay in this case. However, if you want to make honest comments about China online and still want to travel there, I highly recommend that you post anonymously.
I have but only small scale: single 2T drive and data, with maybe a dozen snapshots. I use Btrfs for most everything these days, with ZFS archive. The biggest issue I had, a while back now, with thinp is if the metadata volume gets full...kaboom. And it's non-trivial to repair.
Are there any papers that use it for things other than demonstrating Jax? I can't think of one off the top of my head.

Perhaps I should have specified "papers outside those introducing new frameworks, or around speed benchmarking".

There are a bunch of interesting papers using custom libraries for distributed training, and ones targeted at showing off the performance of specific hardware (NVidia has a bunch of interesting work in this space, and Intel and other smaller vendors have done things too).
It would be more impressive if it wasn't a month after the problem started and after 5M people left.
>If the physical forces are too lifelike, it can ruin the fun factor. For example, imagine what it would be like to play Grand Theft Auto V with unforgiving physics — there's a mod for that by the way.

There’s an entire game for that, GTA IV. Not sure if “fun” is a right term for its plot, but that ruined nothing imo.

Apart from gta, I think physics and realism advancements look funny before the fact that in most 3d games you still get stuck in floor irregularities while running and die trying to get around that invisible wall. Or that you can wipe an armored squad with a plasma weapon, but has to find a key to a wooden door. Or that your superexoskeleton cannot do pull ups. Or that you shoot one of guards and after a couple of minutes their buddies calm down and lose their interest in the event. Like, you know, our guards die twice a day, not a big deal.

I wish realism fixed that instead of waving tents and accurate explosions.
The reasonable path forward is to write off SF as a good place to live or do business. Tech badly needs a new economic zone, one where it is actually welcome.
That makes a lot more sense. Go was specifically designed to compile fast.
I'm not completely sure about the etymology of the word, but I do know that in the US, most monopolies were not government granted. They were achieved through aggressive M&A, market manipulation, and other abusive practices (much of which should be seen as a negative externality on the affected human communities). That is exactly why the government was granted significant power to restrain concentrated entities from committing these abuses.
Our New Brainstorming Game to Explore Disinformation in the 2020 Election
> TiKV is a relatively large Rust codebase, with 2 million lines of Rust.

I don't understand why so many absolutely wants to inflate this number, as it doesn't mean anything about the product.

This inflation also leads to making part of the analysis of this article just wrong.

Running scc in TIKV's "src" folder:

Lines Blanks Comments Code

78442 7259 5476 65707
That link is to Philip and Alex's Guide to Web Publishing. I'd looked at a lot of pages on that site before a while ago, but didn't read that book, thinking maybe it's out of date and not worth reading. Boy I was wrong, it's gold.

Looking at it just now, I couldn't help thinking his style of illustrating with photos was an influence on your own books?! I guess so. (I've only read the 2 coffee-themed JS books, which I really loved. Thank you! p.s. The most sophisticated JS program I wrote was "JavaScript REPL with allong.es" hehe.)
I suppose I didn't communicate clearly. I never said we are all going to die. For one, we are probably going to find a vaccine or treatment. And the eventual observed CFR may end up being in the lower end of what I quote (9%) instead of the upper end (56%).

You tried to point out 1 inconsistency, and I replied back saying it wasn't an inconsistency ("0 actual vs 2 expected is statistically insignificant.") It's too early to tell if the CFR outside China will differ from the CFR in China.
After they replaced the menu key with the printscreen (!) key, I'm not so sure that this distinction exists anymore. They should have never played around with the keyboard.
Snap is monthly vesting with no cliff.
I broke it. (In a good way) I managed to embed a pattern in the feed that is not repeated in the output. Well, at least some of the time is not repeated-haven’t done very many iterations.

https://ibb.co/k6BmFsd
That’s an encouraging story to hear. The thing I’ve noticed is that the costs of moving a poorly written monolith to a microservice architecture can be incredibly high. I also think that microservice design really needs to be thought through and scrutinized, because poorly designed microservices start to suck really quickly in terms of maintenance.
I switch between the two. If I'm having trouble fully grokking something, I have to resort to the "read and recite every word in my head" method.

Most of the time, I speed read and seem to somehow use another system to take in the information. I usually just absorb the important bits. When speed reading I can definitely simultaneously carry on other conversations much more easily than when I'm internal monologue reading, but one or both is still going to suffer to some degree, for me. That's super impressive if you can really maintain both at 100% simultaneously.

I work in information security, and often rely on the speed reading approach when trying to determine if something is legitimate or not within a sea of noise. For example, there was a malware alert that triggered on a giant JavaScript blob. These alerts are often false positives (or "benign true positives"). My co-worker prettified it and asked me to help take a look. In total, it took up about 20 or 30 screen heights. I took his mouse and just started rapidly scrolling and scanning for anything suspicious-looking, and after a few seconds he looked at me like I was insane and asked how I could possibly analyze the code like that.

I was able to vet it as "very likely clean" in about 10-15 seconds, while it took him several minutes of mentally processing every character in every line. That said, this is kind of like an inverted bloom filter: if there's a match, it's definitely a true positive, but if I don't see anything suspicious, there's some small chance of a false negative. So I "hit the bloom filter" first as a kind of efficient cache. If there's a match, then I've saved a lot of time. If there's no match, and if it's important that I need to be 100% certain with my conclusion, I make the full "database call" (line-by-line read).
I was trying to find that article someone wrote about how everyone doing microservices should have about 500 databases now. (actually I can't remember fully what that article was) But I was just hoping that whoever wrote it could provide details as it's clear the pendulum is definitely swinging back to monoliths.

Also I feel like all tech goes this way. Years ago to do "big data" you had drill, kafka, HDFS, pick your cloudera or hortonworks, roll up your HBase, your storm, spark - hire a team to install it.

It seems like now all we do is purchase Elastic cloud, and write a one-off spark script or pandas job and call it a f*cking night.

I guess things go in circles.
Local government is still governemnt.

California is one big vetocracy.
Here's the original (in german)

https://teslamag.de/news/betriebsrat-tesla-ist-mitschuld-an-...

And translated

https://www.reddit.com/r/teslamotors/comments/euob34/the_cri...
Google's Latest Video App Tangi Is TikTok for People Who Love Pinterest
>The other thing that confuses me is why companies aren’t moving either

Company isn't a person. It can't think for itself.

Here are the reasons company choose to not move:

1. The powerful executives are often the people who existed since beginning. They've had invested their compensation in the city where the company's headquarter is and now they are permanently part of the city's influencial people with ties in government, law and more.

So you want them to leave and become no one in some new city?

Their old connections and knowledge of the city will become worthless - they made all those connections and acquired that knowledge when they were young and now those executives might be in 40s or 50s and might not have same drive to earn all of that back

They profit from rents, they profit from sale of property in the their city. They profit in lots of ways.

When you acquire new talent, you recognize majority of the compensation goes towards "rent" and that rent end ups in the pocket of successful city dwellers (aka executives at the said company)

When decision makers in the company benefit from this. You can't build a rival company with lower costs unless you can somehow make it run without these executives.

2. Employees will not move that easily because in big cities employment market is efficient, switching to another company is easy and most new players will he dying to snatch those freshly laid off employees.
Yup, platforming physics with a 5'10" character and accurate to real life gravity feels awful.

Although perhaps that's because platformer characters behave more like small jumping insects a few millimeters tall, and that's where we should go for "realism" that still feels good.
it's been a few thousand years, but maybe the Code of Hammurabi might be of assistance

If a builder builds a house for someone, and does not construct it properly, and the house which he built falls in and kills its owner, then that builder shall be put to death.
I think there’s a huge opportunity for remote jobs cross time zones if you can work the paperwork logistics out. Just advertise what time zone you want the work to take place in, and let folks pick from those based on the hours they want to work in their local time zone (or even better, if the work is of an asynchronous nature and can be done on the worker’s schedule).
The short string mode uses the same 24 bytes to mean something completely different.

...and the reason short strings are that length is precisely because a long string needs that amount of space to store the pointer, capacity, and used variables anyway. On a 32-bit system, the short string limit is lower by half.

Also, as optimised as this implementation is, I have yet to see a compiler that's smart enough to do things like replace "dumb" uses of std::string with essentially the equivalent of what a smart C programmer using pointers would write (as the saying goes, "the fastest way to do something is to not do it at all.") Ditto for the other data structures in the library. In other words, optimising individual classes approaches a local minima.
Why did it take so long to dismiss the charges? Wasn’t it obvious from the beginning that they had no criminal intent? (Or is criminal intent not necessary for this crime?)

I would love to read some reporting about what was going on behind the scenes. Anyone have a link?
My sense is that republicans prefer to concentrate the pork to the ownership class, while the democrats want the waste distributed to a broader voting base.
That sounds like hell to me. I don't have an internal monolog. I think in visuals. I am a quiet person. I am a better programmer for it I think. I visualize the structure of a program I am writing and pair programming would also be hell for me.
We’re gonna break it up and somehow find the engineering discipline we never had in the first place.”

This, in a single sentence, captures all of my misgivings/discomfort/etc with the mad rush to micro-services in my organization. To whit...if we had the operational maturity to really effectively take on micro-services, we wouldn't need to rush into it.
That discounts history far too much. We have more competitive markets today because of antitrust regulation passed over 100 years ago and vigorously enforced up through the 90s. Tech would be more competitive today if the DOJ had completed the Microsoft prosecution instead of settling.

Our markets are becoming less competitive today because of government action due to regulatory capture - the intentional weakening of the regulatory state from within. We need more powerful, dedicated regulators in order to maintain competitive, free markets.
F-35 is a popular bashing target on Hacker News. I think this is unfair.

Yes, the program is worth $1.5TN, the most expensive procurement program in history. But that's for its entire lifetime, of about 60 years. Per unit, an F-35 will cost about $100MM (even less than $80MM for the main version, F-35A [0]). A few days ago we've seen the first Boeing 777X taking a test flight. That's a commercial aircraft with a list price of $400MM per unit. It's essentially a big long tube with wings and engines. Yes, the tube is carbon fiber, the wings are foldable, the engines are the newest crown jewels of GE, but it's not a fighter aircraft designed to withstand 10G acceleration, be subject to catapulted take-off and arrested landing on an aircraft carrier, be able to go supersonic, and well, obviously it's not stealthy. So, given all that, the cost of an F-35 is not exorbitant.

Oh, and you bet the F-35 is a huge jobs program as well. But it's not minimum wage jobs we are talking about. It's high end jobs. And the F-35 is a profitable export as well. An export that will benefit the US, but will benefit the buyers too. Poland will buy F-35. Poland is looking nervously at Ukraine, and how Russian troops and tanks are occupying big chunks of it. The day they get some F-35s in their hangars is the day they'll start sleeping a bit easier at night. Japan has some nice naval ships that are aircraft carriers in all but name [1]. But to be meaningful, they need aircraft, and F-35B will do the job. UK's Queen Elizabeth class aircraft carrier will also use F-35B. No other fighter jet will fit the bill, either for the Japanese or for the British aircraft carriers, as they are somewhat on the short side and F-35B can take off on short runways. Israel is already using F-35s for combat missions.

For those who think manned military aircraft are a thing of the past, take a moment to remember the drone that Iran captured a few years ago [2]. Drones can be hijacked, or rendered ineffective via electronic warfare. Manned aircraft less so. The US is not shying away from heavily investing in drones, but manned aircraft will have a place in the military picture for decades to come.

[0] https://en.wikipedia.org/wiki/Lockheed_Martin_F-35_Lightning...

[1] https://en.wikipedia.org/wiki/Izumo-class_destroyer

[2] https://en.wikipedia.org/wiki/Iran%E2%80%93U.S._RQ-170_incid...
I think Lattner saying that just confirms there are concerns.

The only people who seem to be saying it will continue are people outside Google. Crucially there's no one within Google saying they use it for internal projects.
> if you're doing serious work, use a serious computer

A dual core laptop with 2GB of RAM is a very serious computer, it's a supercomputer compared to what I had 20 years ago for doing essentially the same tasks.

Slow software is not the machines fault.
I've been there. 100s of lines into a ruby program then "oh yeah, cut sort grep"
We need AI-driven microservices to manage all the versioning, deployment, fault-tolerancy, distributed log-debugging mess... Humans should not be forced to write anything complex in microservices. The only good thing is that it brings many engineering jobs and managers can build huge teams, looking great to their superiors.
Will either company stop recruiting at CalTech as a result? Probably still worth it for CalTech, but very few schools are willing to take on Big Tech. Would Stanford ever do this?
Radio + Discogs.

Find an artist you like, look up the label they were on and see who else was putting out records around that time.

Find a dj or radio station you like and find the tracklists.

Music selections curated by humans have far surpassed what algorithms have given me.
From what I've heard - COW means each string data may be pointed to by multiple objects, potentially being used by different threads. So every string operation requires thread synchronization, which can be quite expensive.
I'm currently sending 3k emails per month so if I believe it would cost $2.4. I'm completely fine with that.

However, I receive < 500 emails per month and that would cost $420 per year. That's just not possible for a small startup.

And only 1 month notice. It feels like what happened with the Google Maps API pricing. I wish there was a middle ground for small businesses.
Fair game. You got me, I have no nice answer other than phone your friend. I'll stop digging. I'm not going to do what this guy did: https://news.ycombinator.com/item?id=16862739
Do you also believe these countries should accept the consequences of not influencing the next generation of successful startups?
Enough people have pointed to the problems of for-profit healthcare and drug markets in the comments but I'd also want to stress that this is also an issue of privacy. These patient informations should never have made it through so many hands and there should be no pop-up ads in a doctors record file.

Before anyone complains about burdensome regulations, these are the situations were respecting people's information prevents deaths an family tragedy.