skysight-inc/HackerNews huggingface dataset:
It seems like optimization cases where this makes sense are generally of the sort where `noreturn` can't be used because it is conditional. That makes sense to me (although, could this have covered most use cases by making `noreturn` support being passed the name of a function argument?).

One example was interesting, though. I could see someone believing these might produce the same optimized assembly (-O2):

void a(int& x, int& y) {
if (&x == &y) __builtin_unreachable();
x ^= y; y ^= x; x ^= y;
}

void b(int& __restrict x, int& __restrict y) {
x ^= y; y ^= x; x ^= y;
}

However, it produces:

a(int&, int&): # @a(int&, int&)
mov eax, dword ptr [rdi]
xor eax, dword ptr [rsi]
mov dword ptr [rdi], eax
xor eax, dword ptr [rsi]
mov dword ptr [rsi], eax
xor dword ptr [rdi], eax
ret
b(int&, int&): # @b(int&, int&)
mov eax, dword ptr [rsi]
mov ecx, dword ptr [rdi]
mov dword ptr [rsi], ecx
mov dword ptr [rdi], eax
ret

Is this something compiler contributors would optimize once they know about it? Similar question probably exists with using `__builtin_unreachable` if values aren't aligned versus `__builtin_assume_aligned`.

I'd love to see these things illustrated with more real-world examples.
You should look at https://controlplane.com

I run the company so I'm biased. Our customers love the ability to easily deploy apps with minimal cost. Let me know what you think..
So you're the one making me code-review 10000-line PRs because you just dumped your WIP branch — with three PRs' worth of code, plus formatting changes — directly into a PR, rather than factoring apart said WIP branch either during or after the fact.

The designed unit of a (distributed) git workflow is a patch — i.e. a locally rebase-squashed set of cherry-picked commits from development branches, with `git reset --soft` + `git add -p` (or even `git format-patch` + manual editing) used to prune the patch to a minimal size. Everything you do in your local repo should be with the intention of producing readable patches for code review (whether that patch is then done via PR or mailing list.) It's not about creating a pretty history (retroactive); it's about making it easy on the people who will discuss and reformulate your changes, one at a time, before accepting them upstream.

To be clear, you can do whatever you want when your git workflow isn't distributed (i.e. if you're committing to only your own private projects, not proposing changes to other people's projects.) But if your workflow isn't distributed, then why be opinionated about git? You can simplify your life at that point by using something with central-repo-oriented semantics, e.g. Subversion. There's no rebasing in Subversion. :)
unfortunately sweat equity (ie fixing a place up) doesn't add anything to your down payment from the bank's perspective.
Cash poor is cash poor. Most people start off as young people or young couples with little to no cash and have to make their way in the world in the basic range of minimum wage and starting off with zero savings.
Saying that corporate profits should come before home ownership for the average person is what was being thought of as "disgusting" earlier in this thread, I think
To be clear, what I'm advocating for is that feature branches get rebased regularly by the developer until PR-time and a clean merge into the mainline. I usually recommend squashing to one commit but do not insist.

I can definitely see how those intermediate commits can provide more information, but there's a tradeoff. More often than not, they do not provide me much value, and instead give me bloat, so I prefer to keep things simple.

Telling developers not to do something is like telling a kid not to push that red button. The average developer chooses what's easiest _right now_ and thinks it's someone else's job to fix the mess at PR time. And they're afraid, because that one time five years ago they ran a rebase without knowing what it does, and lost some code without knowing it's actually right there in the reflog, and since then they are deathly afraid of Git. I know how to use log and diff and all the others quite well, but most don't. So I'm trying to make things easier on everyone in the long term, not the short term.
Which counterparty would be willing to take the other side of that trade?
A child was abducted, and in some cases - as happened just a few days ago - the noncustodial parent threatens to kill the child. And does. The fact that the abduction involves a custody dispute is only one of the factors that goes into the decision to send an alert.

Many abductions are vehicle thefts where the thief takes off without noticing or caring that there is a child in the car.

In one recent case, the thief threw the baby out the window into a ditch. Citizens who received the Amber alert found the child.
I recognize you have a username that implies that you know a thing or two about this SFR space, but I don't think anyone here is saying that redfin/zillow/etc are the problem with single family rentals, because they are.... not in single family rentals.

Rentals, and trying to quick-flip properties, are different business models.

I think your point about SFR is correct, but it seems off-topic and confusing/misleading in the current discussion context.
I don't at all mean that I feel guilty about abandoning the company or anything like that, I'm saying this 100% from a place of selfishness. Wherever I am, I want my manager to think I'm engaged, I want to seem like a team-player. I worry that otherwise, I won't do as well at perf, I won't get put on interesting/meaningful work, I'll be relegated to the side and not feel as integrated into the team.

It's possible some of these are unfounded/exaggerated fears, though?

If you're 100% set on leaving with or without severance, for sure ask. But if you think you might prefer to stay if severance isn't an option, asking feels risky.
the tone here is a little uncalled for.
Thank you so much for these links, a lot to learn ...
That is exactly lack of innovation. 15th version of Hangouts and worse search every year.
Once the redundancies have started, the clock is running: you no longer have career growth at that company. You need to start planning your next career move elsewhere.
Git like Regular Expressions I've "just learned" half a dozen times already but then forget everything and have to "just learn Git" top-to-bottom again and again.

It really is a shame, Git has a great under-the-hood design (excluding poor binary file support), and such a terrible interface/UX that seemingly can never be outright replaced, so we're stuck with a good tool surrounded by needless confusion forever.
He's not personally paying for those severance packages. Is this really that hard to understand?
Some of the most interesting things I've read have been digressions from the main point. Your observation is a case in point: We're now talking about HN culture instead of wild times in the crypto economy. Is this a derailment? Or a digression?

It all depends upon whether people perceive it to be something that "gratifies one's intellectual curiosity," a line right from the guidelines. In your case, the difference between initialisms and acronyms (if any, see another reply) does not, and I accept that. Sorry!
> I hope Rosetta is here to stay and continues developement.

It almost certainly is not. Odds are Apple will eventually remove Rosetta II, as they did Rosetta back in the days, once they consider the need for that bridge to be over (Rosetta was added in 2006 in 10.4, and removed in 2011 from 10.7).

> And I hope what is learned from it can be used to make a RISC-V version of it. translating native ARM to RISC-V should be much easier than x86 to ARM as I understand it, so one could conceivably do x86 -> ARM -> RISC-V.

That's not going to happen unless Apple decides to switch from ARM to RISC-V, and... why would they? They've got 15 years experience and essentially full control on ARM.
People with your logic agrees with mass surveillance because good people have nothing to hide. Privacy doesn't mean you have something to hide.
The derisive term “speed dump” evolved out of the term “speed bump” which is what people called it when a vendor shipped a new machine with a higher clocked cpu, but no other changes.
Ask HN: Ideal job description for software engineers?
Just curious to see what people like to see in a job description for software engineers. I've looked at a bunch of different templates from places like linkedin and indeed, but I don't feel like those are likely to connect with a potential candidate; They might have sufficient information, but they're (naturall) generic.
I helped a friend move after she was laid off, a couple years after the dot com bubble popped. One of the eeriest things was seeing all those shiny new buildings in Silicon Valley, sitting empty.

It was like 15% of the businesses just evaporated.

It was a Cisco building in particular that I remember.

I was over on that street recently and everything is occupied again, though many of the names have changed.
>If the average engineer is paid $150k

Haha.

It’s more like twice this, with another ~50% in overhead costs like healthcare, payroll taxes, real estate, etc.
It's referring to (unsubstantiated?) rumors from early in the covid-19 pandemic where cell phone records indicated that the service of tens of millions of accounts ceased, thus providing a supposed glimpse into the casualties not being reported by the state media.
Creator of mmm.page here. Thank you — a social / discovery layer has been my goal from the start; but first, imo we need better, more expressive/accessible creation tools. Fortunately I've spent the past two years on the creation tool side, and it's nearing completion, with a beta rolling out soon. If you're interested in any part of this, feel free to follow me on Twitter (@xhfloz).

A thread with some updates here: https://twitter.com/xhfloz/status/1590113525015674880
How do you lose data from a rebase?
I don't know if you're talking about the Uyghurs or what, but even in China, 10M is barely a blip compared to its 1.4B population.
That's above-board. Making Tesla engineers moonlight (or daylight) on Twitter code is not. He's gotten fined for pulling similar shenanigans with Tesla&SpaceX.
I really like squash merges because then you know tests passed at every commit. Makes bisect easier, and thus more likely to be used. And no headaches when you can't rebase or you screw up a rebase, which will happen.
And “India is projected to surpass China as the world’s most populous country in 2023”
It's great Serif added the shape builder tool to Affinity. It's one of the most useful tools in Illustrator. Now that Affinity has it, I don't see any reason to keep using Illustrator.
If you have decent skills and reputation, the manager or team lead may bring you over to the new company (if such opportunity is there).

But the company itself couldn't care less about anyone working there.
Can you give some examples? I'm thinking of flash, but that was bound to die anyway.
That isn't the main reason.

If Rosetta ran x86 code at 10% the speed of native nobody would be calling it fast.
As a juror you're not being asked whether she should go to prison considering she's a mother of two children, that's s different question. You're being asked whether she's guilty of the crimes she's accused of.
> Learn both. Use the easier one.

This is a great point that I will be sharing with my team. Sometimes (most of the time) I use the git cli, and sometimes I use the built-in Git pane in VS Code.

I have not used GitHub Desktop in quite a while. In your opinion does it make the commit graph easy-to-read? Because I have not found a tool _yet_ that makes that diagram easily parseable by the human eye. It just looks like a mountain of spaghetti commits linked together with a myriad of colored lines.

(I realize that part of the cause of my confusion is crappy discipline around commit history, but what can you do on a team of a certain size where you're not the lead? Just have to suck it up.)
I mean, unless the whole thing is FUBARed, in which case, he should probably get out of crypto entirely before the whole thing crashes. But I tend to lean on the optimist side of things. :)
https://www.scmp.com/comment/opinion/article/3018829/chinas-...

https://www.reuters.com/world/china/researcher-questions-chi...

https://thediplomat.com/2022/03/how-reliable-are-chinas-stat...

High level, the CCP is playing with stats to hide various factors (COVID, rapidly declining total fertility rate, etc). Population is power, and their total fertility rate is near 1.15 with the CCP having no ability to juice it (common prosperity, nuking the tutoring industry from orbit, etc). The longer it stays low or further declines, the more rapidly the country ages and declines in power (economically, militarily, anything that requires a low median citizen age) and the go forward population momentum is locked in.
> but everyone with half a brain knew it wasn't sustainable.

Did you short all these companies and are currently a billionaire? Since it took only half a brain to know.
Technical Stewardship: A Must-Have for Engineering Managers
Now is the perfect time to put effort into regulations on this, while corporations' economic incentive to fight such a move is weakened.
One thing that surprised me was milestone billing with approvals, but moving on to the next milestone without getting approval on previous ones.

I agree with you, this project structure sounds… much worse than T&M billing, but if I were going to take on a contract in this structure I would have a simple rule of “I won’t work on the next milestone, without getting approval on the prior one” (for something like this, where the milestones are pretty small, maybe I’d be willing to work one milestone ahead).

But I’d absolutely use the schedule pressure as a tool to get them to care about approvals. Because, from the described contract structure, what incentive does the client have to give timely approvals or rejections? None!
That was the era where I remember every radio and audio production studio would start moving systems over to Windows—except for it seemed there was always one Mac left running ProTools, since it could sit quietly in the studio and the licensing was pretty crazy expensive. Plus the audio processing chain the Mac was a lot better (better latency and easier introspection) than anything on Windows at the time.
Only if your goal is short-term profits, and not long term sustainability.
std::unreachable() feels like it's what std::assert(false) should be, except that std::assert(false) is bizarrely defined (as a no-op) when NDEBUG is defined. This is one of those strange cases where the spec defines behavior that I'd strongly expect to be undefined.
This is like throwing away 90% of usefulness that git provides you. That's what you get if you don't wish to spend some time learning one of the most important tools in your career.
I don't think this is categorically true... you think _all_ the companies that have recently announced layoffs are basically sinking ships?
Well, as one example, our current POTUS is Joe Biden. His run for that same office back in the 80s was stopped because at the time his serial plagairism was considered shameful. That was wrong, but not illegal.

We have much looser standards today. We don't seem to care about right and wrong so much as any means to defeat the (slightly) greater evil of a (narrowly) more repugnant candidate.

So that was sometime between the 80s and today?
Indeed. I work with XMPP daily and share your views. However XML can be horrific, and I do dread working with it in many applications (remember SOAP?). I assume people transfer these experiences easily.

One thing that can be annoying is that some environments don't have streaming ("SAX") parsers readily available. That's less of a problem these days, but framing would have helped implementers in that regard. However we do have XMPP-over-websocket defined these days (which doesn't have to be used only in a browser) and that has framing.
opium wars?
Was. I doubt he will honor his future pledges.
Believe it or not, last year, I have operated a $100k worth semiconductor manufacturing equipment (magnetron sputtering tool) with a GUI done in VBA of Microsoft Access 2003.
You're right, he has given up equity comp. I was curious so went looking...

Based on the latest proxy, he does not take any equity compensation. He only gets his $1 salary, a corporate private jet for business travel and $10M / year "to cover additional costs related to his and his family's personal security. This allowance is paid to Mr. Zuckerberg net of required tax withholdings, and Mr. Zuckerberg must apply the net amount towards additional personnel, equipment, services, residential improvements, or other security-related costs."

https://www.bamsec.com/filing/132680122000043/1?cik=1326801&...
> Similarly, unless you hammer the private sector with mandates it'll never build solar panels atop parking lots?

Things can be expensive until lots of people do them and then become cheap.

> I'm all in favor of abundant energy for human consumption, especially if it comes from low-externality source, but I do question how much the needle is going to move by mandating solar panels on parking lots, which carries with it its own externalities.

France has about 38 million cars. If there are 19 million car parks that qualify at 40m^2 each or 1.4kW, that's 26GW (so about the level you want solar at in your mix with the rest from wind/nuclear/hydro imports/etc
Just a quick note.
SafetyNet works in CalyxOS with MicroG, they are using some sort hack, and it can break sometimes.
IIRC Joplin stores notes in a SQLite DB which is a huge no-no to sync with syncthing. Even the syncthing devs warn against syncing SQLite databases. It will seem to work fine until two machines write to the database independently (perhaps each is offline) and then their changes can't be reconciled by syncthing and data is lost or conflicted.
https://twitter.com/DeItaone/status/1590035367373086720
Define "productivity" here, because my guess is that the metric in use does not represent median gains nearly as well as mean gains.
> That's where AI art is likely to take over

I guess that depends on what the definition of art is. If it's a digitally rendered illustration then maybe.

If it's a physical object crafted to imperfect perfections then no. AI can probably produce some alternative version of Guernica but that's just a fascimile of something that's already been made in a digital space.

I can see an artist using these tools as a way to produce ground-breaking work in the future but I would wager the artist that does that could make good art without any of these tools. You still need a craftsman to master the tools and without knowing the basics you're left with images of Elon Musk as a Disney princess on repeat.
> I had a majority of my net worth in FTX as a trader

As a trader myself, this lesson is part of your risk management. I have multiple accounts with amounts that I wouldn't cry if they went to zero. I trade them together, and if AMP decides they hate me because I am too tall, it doesn't change my ability to trade until that issue is resolved.

Edit: flagged??? huh...
agreed - I think there's a combo of schadenfreude and "I told you so" vibes from HN, where people have been generally skeptical throughout cryptocurrency's rise in popular mindshare.
The people that aren't selling are still paying upkeep and property taxes. Unless they live in it, they will tire of the financial bleeding eventually and start to understand the "sunk cost fallacy."
The Localverse isn't defendable in anyway. People don't use Facebook pages/groups because it's "Facebook". They use it because it's adjacent to something else they do.
Thanks! I'll give it a try. V1 sounds frustrating since those use-cases are precisely what I do with Illustrator lol.
Well we are rounded down. Seriously this is nonsense. No one knows the world population, let alone when it will tick over. It's a catchy headline.
> Ten years awaiting trial is simply unacceptable.

That is clearly wrong and should not happen. However, many dangerous violent criminals (recidivists) get bailed out and continue their crime sprees. That is clearly something that should not happen. I'm all for reforming this system but this should be done responsibly.
It seems fair. If executives were making the decisions that landed the company in a difficult situation, it's only fair they bear the consequences of their failure. Besides, it's difficult to empathize when their compensation packages are, while market rate, significantly higher than the engineers who do their bidding. I wouldn't be surprised if the fraction of executives that would be able to retire at this point was much higher than the one for engineers, which is likely much higher than the one for non-engineering individual contributors.

Also remember that since it's executives who set executive compensation, there is some incentive to inflate it.
I think 11000 people are going to find a brighter future at a nicer company.

Does anyone under 40 still use Facebook/Meta anymore?

=)
By their very nature, gag agreements tend not to go public. Therefore, we're probably not going to get any stories of "good" gag agreements in the news.
Apart from that, I think the bigger ongoing folly here is this whole Metaverse thing.
Sorry to hear about your losses. Can I ask, what was the reason you favored FTX for crypto investment?
Now do food and water!
The project went over 2 years and got cancelled.

While the author moved on and had more success.

Who exactly had the problem?
Only certain operations were sped up by the vector extensions. People on PC forums would post their "jobsmarks" showing they beat Apple, the G4 was sorta a disaster. The replies are ranting about general software bloat, but I'd bet the image processing parts of photoshop are still highly optimized.
Because Turing machines are so cumbersome compared to lambda calculus that a universal Turing machine takes thousands of bits [1].

[1] http://www.verostko.com/tur-doc.html#B0,%20Universal%20Turin...
Mick goes into detail about how he's been pursuing a settlement, and resorted to posting this after years of stalling from Zenimax.
Plenty of businesses have Facebook or another Facebook property (i.e. IG) as one of or the only way to get in touch with them. Plenty of individuals use Whatsapp or Facebook as their primary contact database and messaging platform.

The "post news articles on a feed" is probably not essential to too many people, but the messaging and communication features are in a lot of cases.
A disease with a 99%+ survival rate for anyone under 70?
In this ruling the judge argued that pulling any ressource from a company that collects and sells you data and thus exposing the IP is something that's so bad [0] that you are to be compensated for it with 100 €. And yes there are already lawyers out there who are scrapping the web to collect the money.

So yes pulling anything from an Ad-Company is illegal.

[0] Kontrollverlust über ein personenbezogenes Datum an ein Unternehmen, das bekanntermaßen Daten über seine Nutzer sammelt und das damit vom Nutzer empfundene individuelle Unwohlsein so erheblich, dass ein Schadensersatzanspruch gerechtfertigt ist.
(1+13)2 ?
How about the Don Quixote Amendment?

In December 2020 President Trump signed into law provisions of the Trademark Modernization Act, included in the Consolidated Appropriations Act. The new provisions, now law, strengthen the position of trademark and copyright holders. American law tends to more protection of intellectual property, not less. One can reasonably argue that protection of private property -- including intellectual property -- sits at the core of the US Constitution. Any proposed change to American law that threaten property rights would get labeled "communist" and quickly dismissed as deeply anti-American and the thin end of the feared socialist wedge.

Nice to see a new generation discovering what Tolstoy and Abbie Hoffman proposed: Steal This Book.