skysight-inc/HackerNews huggingface dataset:
Reminds me of a talk a few years ago about Facebook's internal implementation of std::string. They do the same short string optimization, but Facebook manages to outperform this implementation by storing 24 bytes (vs 23) in "short string mode".

IIRC, Facebook achieves this by using the last byte as the flag byte. To signify short string mode, this flag is set 0. This allows it to also serve as the null terminator. Tricky!
I agree with this. It's like classifying by alpha/beta/gamma personalities -- a false comfort, as people are rarely so simple
The trouble is that this process of streaming events over Kafka or Kinesis means that subscribed microservices will be duplicating the bus data in their own way in their local databases. If one of them falls out of the loop for whatever reason you are in trouble.

Now, there is a pattern called Event Sourcing (ES) which proposes that the source of truth should be the event bus itself and microservice databases are mere projections of this data. This is all good and well except it's very hard to implement in practice. If a microservice needs to replay all business events from months or years in the past it may take hours or days to do this. What about the business in the meantime? If it's a service that significantly reduces the usability of you application you effectively have a long downtime anyway.

Transactional activity becomes incredibly hard in the microservices world with either 2 phased commit (only good for very infrequent transactions due to performance) or with so called Sagas (which are very complex to get right and maintain).

Any company that isn't delivering its service to billions of users daily will likely suffer far more from microservices than they will benefit.
Mad Dogs and Medical Bills – The High Price of Taming Rabies
How about patents created by public universities should automatically be in the public domain so every one benefits. After all, they are government funded.
The EARN IT Act: How to Ban End-to-End Encryption Without Banning It
Eh, I was wrong on Epyc a make defconfig && make takes _16_ seconds but I don't really follow what is actually in defconfig so it might be bare bones.

https://www.phoronix.com/scan.php?page=news_item&px=Linux-16...
It was a personal statement, that's not gatekeeping. A more detached way to make the same point was that D didn't succeed (in the sense of market share) because it didn't reach "far enough" beyond what could already be done with C and C++. It brought real features to the table, but not "killer" ones. Rust did, which is why it's everyone's favorite new toy and why it's been largely (but not entirely, c.f. the linked article) forgiven for flaws like slow build times.
Sorry, I didn’t mean to imply that Rust’s generics don’t slow down compilation at all. They surely do, as does any form of code generation.

My bad for not being more clear — I just wanted to point out that Rust doesn’t have anything like the full, accidentally Turing complete template metalanguage that C++ has.
The release notes cited are models of clear communication. No one encountering them would need to look anywhere else to know whether UE might be of some interest.
> Did you explicitly ask for it? Good

That's what 'transactional' means... it's supposed to be used for the end or beginning of a transaction (reset password, receipt for a purchase, things like that...)
In addition to some of the sources mentioned in this HN thread, I let myself be spammed (bacn'd?) by various physical music stores that have a focus on music I like.

Also, more applicable to electronic music perhaps, listen to live sets / radio mixes by artists I like.
Growing China trade deficit has cost 3.7M American jobs, study finds
I really wonder if I made myself unemployable in China because I posted this.

How far does the censoring actually go?
On timeline of events, there was a week or so of delay between first death + ICL paper and the city lockdown. It can be argued the lockdown was very late.

The OP might also mean poor containment within China - which is only relying on other countries right now.
Have your clients created a virtual card number using Privacy.com and allocate $X of spend to it per month. They can then give you that card number to setup their services.
Not really surprising considering medical resources in Hubei are heavily strained, not all severe cases can be diagnosed timely and given enough attention afterwards, which is not true elsewhere.

Edit: Oh you mentioned this yourself in another comment.
Anyone in this situation can easily take out a home equity loan to pay the taxes and come out way ahead. Your assertion that the higher taxes would force them to move is wrong.
Would you like to be notified your account has been breached? Perhaps a notification that a login was attempted from another country.

There are plenty of good notifications besides social media updates.
For the first time, this year my tax document shows how much my employer is paying for my health insurance.

34k/year. Yeah, that's a lot.
Interesting read kinda ends too soon.
I submitted multiple reports to email-abuse@amazon.com including headers, and received automated responses. For some spammers I reported them 4 times, but the spam kept coming.

I think you've confirmed what I said in my parent comment...SES doesn't take a zero tolerance approach.

I think it is the shared IPs that I've blocked (54.240.27.189/24). You'll see they are on multiple blacklists.
Prop 13 was created because it was forcing people out of their houses because of inflation property values on paper. That is detrimental.

You shouldn't scrap it completely; you should limit it to primary residences (spend more than half the year there). That would get rid of some of the worse issues.

It shocks me every time I hear fellow left-of-center people talk about scrapping Prop 13, but then also rail against gentrification or some other issues. Absent Prop 13, people would literally be forced from their homes from high taxes.

Prop 13 was a response to the inflation of the 1970s that drove asset and investment prices higher.
I'm pretty sure the NPC meme was there before and independently of the aphantasia hype, and it got tacked on a little while later.
I usually use a website Sputnik Music. Once every couple months I look at their charts for best new releases, and listen to a snippet of each new album on Spotify and just work my way down. I usually end up with a couple new artists/albums to listen to each time. It’s pretty time consuming but it’s how I’ve found almost all my music the last few years.
Show HN: LED Lights Simplified Again
The way the central government is handling this is impressive, quarantining a city of that size is unprecedented and has bought the world extra time to prepare.

Yes the WHO are playing politics when they focus on the good things China is doing and ignore the bad. But personally I think they are closer to the truth than those who present an entirely negative version of events. China's response has been 70% good :)
In Python

type(type) is type

evaluates to True.
And that is not permitted in mathematical type theory that the Curry-Howard correspondence applies to.
I shoot photos for the memories and film just makes me feel more (the look, the grain, the process). Old lenses have a character I prefer. Old cameras feel great and are fun and low-risk (take it on the water w/o worrying about losing it, for example). I enjoy digital but just like cycling, the industry has gone mad equating technology with quality.
Setting the bar low is undervaluing teaching.
We aren't in the wild west. I've been doing these engagements for more than 20 years. There are well worn guidelines for how to structure the contracts and other rules of engagement to prevent or mitigate this sort of overreaction.

I suspect (with zero evidence) that an over-eager sales rep or sales management booked a deal without contract due-diligence and a pen-test team trusted that the due-diligence had been done.
I used to be really interested in new languages and compilers. Now ... let's just get on with making Machine Programmers / CASE tools. I don't want to be futzing around with individual lines of code anyway. I guess I want to be like a very technical PM.
funny no one mentioned Broca's area. looks like some brains under-utilize phonetic perception to boost some other hot business.
If you spend $2k/mo $60k should last 30 months, no?
Not Voting is essentially a disguised no vote.

This is such a lame rule. People wanting to vote no should have to say so and vacancies shouldn't make it harder for bills to pass.
The endangered species act probably had 10x the effect on stifling building as Prop 13. Can you imagine a project like Foster City happening in the current environment?

https://www.fostercity.org/community/page/creation-foster-ci...

It takes Palo Alto 30 years to do flood mitigation because of a couple frogs in the creek.

If Mountain View needs housing, make more land. It will never happen because there are always myriad obstacles to building.

https://ww2.kqed.org/quest/2010/09/30/landfill-and-liquefact...

Look how much of the city of SF was built on landfill. When was the last time a major bay area development was done on reclaimed land?
> Also commercial crew contracts are fixed-price, pay-for-performance, not the standard cost-plus contracts. So Boeing won't get a dollar to repeat this test; they have to pay for it out of their own pocket.

LOL. Boeing knows how to handle minor obstacles like that.

https://spacenews.com/nasa-inspector-general-criticizes-addi...

"NASA paid Boeing nearly $300 million more than originally planned in its commercial crew contract in part because of agency concerns that the company might drop out of the program, a new report claims."
Exactly. It's a lesson that developers of Breath of the Wild taught us: physics don't have to be realistic, they have to be a believable approximation. Same idea really as in most platformer games: you don't want an accurate reproduction of a human jumper, you want a a believable approximation such that it is joyful to just jump around.
Microservices can work, and fwiw, here are 3 things I've learned to the hard way:

1. Use a package manager, and export interfaces to a given service in each of the consumers. It's great that GitHub now offers it for node.
2. Create a DAL library for I/O to a given database (e.g. PostgreSQL, or Mongo) that be consumed by other services.
3. Enforce styling company-wide with one source of truth. We use GitHub Actions, so we can enforce styling with a shared GitHub Action.
They can do it, it takes 8-10 years. Look at the eastern neighborhoods plan in SF, it literally took 20 years. Part of that is shitty nimby neighbors, part of that is area plans are able to be litigated under CEQA, which Is basically guaranteed, and it adds 4-8 years to an area plan project. My point is that it’s literally illegal to do, but it’s functionally impossible, or at least extremely difficult and it takes a very very long time. Ballot box rezoning is not subject to CEQA and therefore can pass quicker (it’s how JJJ skipped CEQA review in LA) but that’s a whole other can of worms.
I found that about a year of serious mindfulness meditation with some CBT was able to give me the same lasting effect, even though I am not currently regularly meditating
We're not in the US. They would also question this as something they haven't had to do for any other service. Plus, painful to repeat for dozens of small clients. I appreciate the idea though.
And thus such patterns lead to the absurdity where 90% of enterprise apps do little actual computations beside serializing and deserializing JSON (or XML if a "legacy" app).
Circulating money doesn’t create economic value. We might as well had spent $1.5 trillion (the cost so far to develop the F-35) to make a fleet of large metal platypuses which we keep in hangars and occasionally launch into the air.

https://en.m.wikipedia.org/wiki/Parable_of_the_broken_window
Sounds like every one of our tips could all be automated into a.... recommendation engine. Almost trivially...
The Struggle (2012)
I think we found a yeti!
My go-to are Next.js (https://nextjs.org/) and Hasura (https://hasura.io/). Graphql has a bit of a learning curve if you haven't worked with it, but those two tools deliver a pretty amazing developer experience.

Next.js is react + ssr + routing and more. Hasura exposes an auto-generated graphql API in front of a postgres instance, with hooks for auth/authz and much more.
By raising the quality bar of what is expected?
Would you need any engineering help? Hardware or software?
This is more or less what we do with Solo. The NFC keys (both usb-a or usb-c) have an extra NFC chip that harvests energy and powers up the main micro controller. The non-NFC keys don't have that chip, so it's pretty evident by just looking at the board.
Hi All,

Would you need any engineering support for your company? How much would you like to pay? What do you need?
When I became proficient in my third language (over 20 years ago) and had to listen, speak, read, and write in all three languages on a regular basis, my mind adapted to thinking in concepts, and lazily evaluating the concepts to the words in the needed language, as the situation required.

A few years afterward, I was discussing this with a co-worker. He had a really hard time fathoming this. He asked me an excellent and hilarious question: "When you call yourself an idiot because of something stupid you did, what language do you use?" After having a good laugh, I thought about it seriously and realized that I don't criticize myself. Instead, I internally model someone who would be likely to criticize me and hear their voice in the language they would normally speak. For example, it might be my parents scolding in my primary language, or a teacher criticizing me in English. We discussed this and he agreed he does the same thing.

So, I suspect that many of us have only an internal monologue, but a whole internal society with various conversations going on.
Reading Codebase of Preactjs on Video
I found mindfulness meditation to be extremely effective at allowing me to control my inner monologue. I highly suggest giving it a serious try
> legalize and tax it

Thank you for this.
That's a very non-committed response from Jeff Dean!

I suspect it will drift along like the Java TensorFlow wrapper. Useful in some specific circumstances, but unused outside that.
I love the quote from Sheriff Combs. It's priceless. That guy has quite the sense of humor. Reminds me of Tommy Lee Jones in "Men in Black".
This is cool. When I learned I had aphantasia a few years ago it was a similar revelation.
That is clever. Using last byte as the flag byte also lets one cast the std::string memory address to a null terminated c-string without intermediate buffers (not that one should).
> But if your neighbour lied and falsified documents to the point reasonable due diligence would have been fooled, perhaps the pentesters can be considered not at fault?

And here we end up back with irjustin's proposal that if pentesters are doing things that would be illegal without proper permission, they need to be prepared to spend some time in jail. Their risks there for which they need to be compensated include their own organisation failing in their due diligence and sending them into a test for which they're genuinely not legally authorised.
The scary part is that of the official 8,200 or so people that have been confirmed to have the virus there's been 171 deaths, and 143 recoveries. So more people dead than recovered, does make one wonder about the 8,200.

Seems few believe the official numbers, people visit numerous hospitals without being able to seen, and even those that get seen have problems getting tested, and people who posts about the situation get the post pulled or pressured to pulled themselves.

Here's an article describing the censorship (pulled posts), arrests for "rumor mongering", difficulty in getting tested, etc:

https://www.reuters.com/article/us-china-health-testing-insi...

This one documents 15% of 41 people getting hospitalized dying:

https://www.thelancet.com/journals/lancet/article/PIIS0140-6...
Hey HN, Recently I have noticed that Amazon's UI is extremely unusable for me. With tons of generic products, its very difficult to narrow down the options. So this is the second iteration of the site. I have been working on this for awhile so very eager to hear your feedback.
Chicago Police Using Facial Recognition to Scan Billions of Facebook Photos
I agree with you 100%. That's why I support SB50!
The workstation chips have tons more L2, but the change was made at the same time that they redesigned the L3 to be distributed over a mesh network, significantly reducing its own performance. The boosted L2 compensated to keep the total performance of the cache hierarchy roughly constant while unlocking the future scalability of the mesh network.

There will definitely be workloads that benefit from the new cache hierarchy, but there are also those that suffer.

If you've measured it on a high end laptop for comparison then, of course, the proof is in the pudding and I'm not going to argue (or if you see >~10 threads in use that's proof enough).
Don't debate coding standards beyond the 2 pizza rule. No more than 8 engineers per service.
A stream would be the correct way to handle that problem, so backpressure can be used to prevent too much memory churn.
>I think some people are just wired to be super verbal/auditory and don't have as strong pattern or visual/symbolic skills.

I think it depends on the context. I internally vocalize when I read and I'm not entirely sure how anyone is able to not do so. To me reading fast means hearing myself talk fast, which I just can't comprehend. But it also means reading for me is hard because I need to take breaks in reading to visualize what I'm reading.

But I'm also a graphic designer so I certainly have strong pattern and visual skills. But when I'm designing I'm not trying to comprehend words on a page, so it's quite easy.
> I would always reimagine the movies I just watched or the books I just read

When I was a teenager, I went through this phase where I would dream of myself as the hero of a book I just read. And if I knew the hero would die at some point, I would always modify my dream so I didn't die :)
Deaths Surpass 200, and State Department Urges Against Travel to China
I'm not sure what level of contrarianism this is, but my armchair speculation is:

- "Tulpamancers" are mostly not mentally ill (beyond the ailments shared by a lot of nerds, like social anxiety), and probably very few actually have psychotic conditions

- Some variation of a multi-consciousness theory or adjacent theory has a decent chance of being true

- Even if one of those theories is true, and even though tulpamancers aren't mentally ill, tulpa construction is still basically bullshit self-trickery and not an actual other consciousness you're dealing with

Humans are good at creating fiction and myths. Maybe constructing a tulpa is kind of like when you write character dialogue in a novel. You can really embody the characters and hear them talk and make choices, and they basically start to write themselves. If you spend enough time with your characters, you'll start to feel they're real.
The difference is, Superman has a long internal struggle between his desire to do right and his desire to give up in the face of so many people suffering, he may be America’s Boy Scout but he works hard and he keeps a low profile and he is modern day Sisyphus - skipping out on his everyday life to go to unpleasant places alone and deal with unpleasant people, save lives, and come back to .. a journalist notepad and a story about some trivia and no amazing rewards.

Neo on the other hand is a modern day superhero exactly, he’s like the Wanted film main character - he did nothing, doesn’t work hard, doesn’t train at anything, and then sometime while he’s working a drudge job and slacking off, the universe dumps hero on him because of someone he innately is, and then everyone loves him for this thing he didn’t do, but instead is a thing he is.

The equivalent in real life might be considering Dr Jonny Kim, graduated high school, joined the navy, became a Navy SEAL, became a combat medic, sniper, navigator, went on 100 combat missions, graduated with a math degree, went to Harvard med school and became a doctor, and is now a NASA astronaut selected as a possible mars mission candidate, navy reservist, husband, father, decorated combat vet, and 35 years old; and then imagining NASA deselecting him and replacing him with a 35 year old you know who “thought about being the first man on Mars since childhood” and whose favourite film is “The Martian”, and is just waiting for NASA to find him because he’d be the perfect candidate, he could “learn any of that stuff but won’t waste his time until they choose him” [hey that too much describes me!]. Sure maybe Jonny Kim always dreamed of going to Mars and loves The Martian, but he also did things.

Batman went to be Far East and trained hard in martial arts for years, Neo waited for someone else to load martial arts skill into his brain in a safe virtual environment which he could control so he never lost.

Heroes in the past did hard heroic things, rather than dreamed of being called upon to do easy heroic things they could innately magically do. Heroes of the past wanted to win a war, action movie heroes play to a viewer who wants to be seen as a hero and doesn’t care how the saving of people (or whatever) is irrelevant and secondary.
And? He started as an engineer. GP didn't say he had to be an engineer at his current company.
Short story, yes, they do.

Plenty of people report that there is a minimum amount of email you have to send so that you can contact gmail and ask them to unlock you. They, of course have a set of rules you have to follow.

But you won't get them to receive your email if you just send some 3 messages a week.
Limit to primary residence and cap the increase at 10% instead of 2% (I think Michigan does this) might be okay.

Low income seniors have https://www.sco.ca.gov/ardtax_prop_tax_postponement.html so Prop 13 is wholly unnecessary for them.
"A total of 44 states and the District of Columbia have at least some limit on the amount local communities can raise property taxes."
I tried to access Apple Maps using Firefox on my Linux computer at https://maps.apple.com, but no luck at first glance... do I need to install an app?
An individual can pay for their own schooling, but it’s pretty hard for an individual to pay for national defense.
I didn't think it was too positive. He found some documentation bugs, as well as what seems like really bad locking bugs.
Mixing Quantum States Boosts Fiber Communications
This is a great point and we should also normalize it to similar flu's in the region. Quality of treatment will vary greatly.
Typo in title. That's std::string.
California is at the bottom for poverty on the only measure that matters (the Supplemental Poverty Measure, which accounts for cost of living): https://www.sandiegouniontribune.com/opinion/the-conversatio...
China is an autocratic dictatorship so the rules can and do change at any time, retroactively and arbitrarily.

That said you aren't going to be blacklisted for a single comment on HN. That sounds like the kind of thing the US would do.
This is a very important bit of insight. Thanks for this perspective. My comments about contractual protections aren't nearly as strong in light of this.
It's a tradeoff. In libc++'s version you still have string size stored in the top 7 bits so you just need a bitshift to get size. It sounds like fb's implementation would require looping until null terminator to get the size.
Could Phoenix survive a water crisis?
I mean, this whole situation may turn out to be no big deal, relatively speaking, but at what point does everyone agree this is a really serious situation? Because it keeps ticking the boxes.

The economic consequences will probably turn out to be a bigger issue than the health ones.

Either way, this is escalating. :|