skysight-inc/HackerNews huggingface dataset:
Yes, there is also std::endian::{big, small, native} that can be used to check if you need to byteswap or not. So a generic hton* is just:

auto to_network_endian(auto std::integral value) {
if constexpr (std::endian::native != std::endian::big) {
return std::byteswap(value);
} else {
return value;
}
}

ntoh is left as an exercise :).

edit: in practice I think std::endian and std::byteswap is a compromise between those that wanted a simple {to,from}_network_endian and those that wanted strongly typed wrappers to prevent mixing object with distinct endianess (a-la boost::endian). As the commitee couldn't reach consensus, this is the compromise and you can build your own thing with these portable bits.
For better or worse (obviously for worse) his relationship with the company is fundamentally different than that of every other employee. He’s a founder and holds a majority of voting equity. That makes him inherently unaccountable in a way that is nearly without precedent in the modern corporate era.
Ian Levy, UK National Cyber Security Centre’s departing Technical Director, discusses life, the universe, and everything.
You need 500 karma to do it
I mean I could list reasons, but in the end, it just comes down to taste really. Different people like different things.
Because some people go through TOR to browse regular non-onion web sites and their experience is not always pleasant.
Not the OP, but what I’ve experienced is severance packages get worse across rounds at a single company. A previous employer started at 1 year pay / benefits, then six months, then six weeks + two weeks per year of service.
Yea it's a hallmark for yc to post stuff like that daily. The irony about kings of web2 trying to "save" the masses (or convince themselves?) seems lost on everyone.

Don't get me wrong, some (a lot) skepticism is healthy but I'd argue this site is the most one sided site on the internet for this topic.
Super cool read.

Can't wait for the smarties under us to point out the mistakes he made when explaining the Enigma wiring and setup.
Does that mean that CDNs like jsdelivr.com are illegal?

Shouldn't the cloud be illegal too then? By hosting on AWS/GCP, you are leaking the IP addresses to the cloud providers after all!
It's not a logical inconsistency to point out that dollars matter a lot less once you have enough.

The difference between having a dollar and ten dollars a day is huge. The difference between a hundred and a thousand a day is still big, sure, but you're probably not going to die of starvation either way. And once you're in dev salary land and higher, you're counting bedrooms, acres, cars, vacations, yachts...

The wealth inequality thing matters not because Bezos has spaceships and Zuckerberg only has 3d glasses. It's that we still have millions of people with food and shelter insecurity, regardless of how much the richest have.

It's not a linear thing. Zuckerberg losing a few million is utterly meaningless vs a regular family losing a few thousand.
When you realize that WhatsApp had 450 million monthly active users and only 55 employees at the time of its acquisition by Facebook in 2014, you start to think that those tens of thousands of employees might be more needed for Meta's ad business.
If you have any doubts about the company, you probably want to get serious about your job search.
What do you mean by attribution?
Citation for anti roe v wade? Economic bad news? His website suggests differently. I don’t live there and am confused by your comment…
I'm very curious about this way of using obsidian (which sounds like the original "second brain" promise). I would love to connect in private to konw more. I don't see your address in your profile but you reach me at my hn user name with Gmail.
So was Yahoo Groups at one time.
Not C++ specific, but the example given - a default case that is not expected to ever be hit - is a "cover all bases" thing, to avoid undefined behaviour. Without the default case, what should happen? In the example given, it would just do nothing, but it would do so silently, which could lead to hours of developer time wasted trying to figure out why it doesn't do anything.

But I can imagine other use cases that are like "this is not supposed to happen" that can cause major issues like buffer overflows. Better to be more defensive and write code that basically says you are aware of code that shouldn't be reachable.
Even though laid-off employees will lose access to Meta internal systems today, they are welcome to utilize Facebook services to stay connected to former colleagues, friends, and family members around the world. After all, it is Facebook’s mission to create a more connected world - and that will never change.
I’d start looking for a new job.
So since this was done at the DNS level, not the hosting level, does this mean if you're running a pi-hole or AdGuardHome you can add some extra redirects for zlib to its actual IPs? I guess you could also just hardcode these in your computer's host file but then you have to do it for every device on your LAN. Assuming their IPs change somewhat frequently, is there any way to do this in an auto-updating way?
> For the past 10+ years, in this forum, the advice is to stop trying to build something, go work at Faang

I think the advice given, when requested, has much more nuance that takes into account the context provided in the request. Do you honestly think HN is just a bunch of FAANG fanboys?
It shows a lack of respect to call someone set in their ways, because no rational person wants to abandon their advantage to follow the vogue trends of the younger generation. It's basically like resetting your experience points back to zero. If you can't use someone for the coding craft they actually have, then you're leaving them with just soft skills and computer science judgement, in which case they'd be better served doing management.
Most of them tolerate private economies to a degree, and most abandoned their currency monopoly by using the dollar as a reserve currency and use Mastercard/Visa oligopoly for digital transactions already.
Good question.

I don't know & haven't tried, but the fact the "blocks" are tiered/layered makes me think yes. Whether the ability to migrate is also tiered or is more absolute though I don't know for sure.

It would still be workaround-able with a double-move (hasslesome as that would be it would still be much easier than e.g. a Twitter->Mastodon move), but it might not be needed.
I read it as same company.
Oh, absurd prices for textbooks is not something that came from the digital shift. I had textbooks that were over $100 when I was an undergraduate. And that was in the late 1980s!
Stated preferences vs revealed preferences. Saying that you care about privacy makes you appear smart but in practice most people only care about privacy in embarrassing situations
Recruit parents? Use a tool that track viewership by student, send reports to parents, grade them on it? Block students from classroom if they haven't seen the lecture, and let parent's know?

There are traditional ways of motivating student, a combination of carrot and stick.

But yeah its not been solved yet.
Drukqs was great because it was something different. He has been kind of hit or miss since then.
Great advice! Where do you see more opportunities in the near future, ML?
> anti-glare, anti-scratch, spectrum, blue light filter

What does "spectrum" mean in this context? Thanks.
Why do some people prefer Daft Punk to Led Zepplin? Or Tchaikovsky, Frank Sinatra, Taylor Swift, Bolt Thrower, Sex Pistols, Tupac or any other artist?

People like what they like and are interested in what they're interested in.

A thousand people could post intellectual insights into their personal preferences but a thousand more could cite the exact same arguments as reasons why they don't like the same music. It's just part of the colourful tapestry of human culture.
"I want to take accountability for these decisions and for how we got here."

...but I'm going to stay and keep all the cards on the Metaverse as my personal fortune sinks with it. For 11% of you, good luck.
We must have massively different world views, or at least different definitions to colluding. This doesn't survive Hanlon's Razor. At worst, this is corporate corner-cutting, not collusion.
ah that's an interesting clarification! They should really give that more prominence as I'd guess there'll be quite a few people with that use-case.
Looking for a new job.

The advice to "take the first layoff" is weird, you rarely have a choice, if ever.
It doesn't works like this. Inflation/deflation is not something tangible. It's something that is computed with arbitrary rules and it have barely no meaning on a worldwide basis.

If you give $1 to everyone on earth, in some countries, you'll pay for an extra topping on your pizza, and in others you'll allow people to eat for one or more days.
Backwards compatibility and a slow moving industry; adding more to a standardization process will only postpone the release.

More and more programming languages are moving to a more lightweight or scheduled release schema though, e.g. Java that had been stuck in limbo for nearly a decade due to design-by-committee and backwards compatibility concerns by major players.
During the dot com bubble even companies with massive (for the time) revenue did huge layoffs. Cisco was probably the poster child for that.
Virustotal analysis: "6 security vendors flagged this URL as malicious"
Another bonus, how about a 1901 booklet on "New Methods of Testing Explosives"?

https://digital.sciencehistory.org/works/70rgtuf
The tint and UV coatings come in a bottle and can be applied? Can that be done at home?
Yes, but your salary will be 1/2 of what you're used to.

My brother moved from FAANG to Atlanta to work for Home Depot. His comp went down from 400k to 140k. Which is still great for Atlanta, but there is no situation where a move from FAANG to any other company comes without wage deflation
Apple specifically limits apps ability to get a unique identifier that can be used across apps. And the percentage of people who use multiple accounts is not even worth optimizing for.
If a person went as far as ordering a "Kyiv Mule" instead of a "Moscow Mule", I'd assume that they'd be the type of person to care about choosing the spelling preferred by Ukrainians instead of the one preferred by Russians.
> Wouldn’t it make more sense to bundle a large amount of fonts with Google Chrome itself?

Browser-specific features are what got the world in such a mess being tied to MSIE 6 for so long. i can't count how many times i heard "we have to use MSIE because it's the only browser which supports X" the first decade of this century. (Where "X" was normally "COM", which was frequently used in Enterprise-level web apps.)

The fewer browser-specific content-side capabilities (as opposed to non-web-page capabilities) there are in browsers, the better it is for the world.
I did that after I got laid off early 2009, although for me it was going back to finish my bachelors.

Spent two years in school and got to sit out the worst of the recession. However, (in the US) tuition increased a ton from when I first went to school and has only gotten more ridiculous since I graduated.

Personally I'm glad I did it, it just took a while to pay it all off.
Do you mind to elaborate a bit?
For that abort() is just fine. Being UB, unreachable is more about optimizations .
her "work"?? I simply won't believe this isn't a bot reply by the same one posting the content on this site every day in the first place.
> It is remarkable that Google does not warn developers for this infringement

Not that remarkable. If they do that then they are taking responsibility for informing users about legal requirements, and effectively volunteer themselves to monitor and interpret laws in all jurisdictions across the world (they do this anyway for their own legal concerns, but they won't want to accept responsibility for accurately assessing the situation for others).
I mean, the "world-changing" stuff they're investing in is what directly led to this layoff. The metaverse was the most heavily impacted by these layoffs.
I've learned that sometimes, there's literally nothing you can do to directly solve a problem; you might not even know what the problem is, so how could you come up with solutions to it.

In those cases it helps me to then think that maybe there's something in my circumstances that is creating my problem, rather than it being a problem with me directly.

For example, if your problem is that it's difficult to get out of the house for a daily walk, a solution to "just do it" will not accomplish anything. It's extremely difficult to just start wanting something out of thin air.

However, if instead of focusing on "how do I go for a walk" you think about "what am I doing when I go for a walk", you immediately open up questions that are very easy to act on: Are you dressed comfortably? Is the path you take for your walk enjoyable, or do you have options? Is there too much noise? Maybe headphones would help.

These are things that are easy to try and change, and free you from having to blame yourself for lacking some ill-defined quality of "having willpower" that no-one can even measure.

If there's something you can easily change, but don't want to, then you know it's a problem with you, and you need to deal with it accordingly. But many things are not a problem with you.

I use the walking example because I literally solved my own "I don't want to go for walks" problem by realizing that I was habitually walking along a noisy road and I hated that and not the walking itself; once I found a more pleasant path, the "chore" became something that I could enjoy instead. My problem wasn't "I'm lazy and I hate walking", it was "cars are noisy and the environment is too grey"
You say assets, but cryptocurrencies are not assets. They're funny little monopoly money bills that have no value in the outside world. If you send me $50 in ETH or any large, largely used coin, you're going to pay the same amount in fees. OH and by the time it arrives, it might be worth $45, or $55, you'll never know. Or you could send me a "stable" coin and hope you don't get rug pulled in the middle. Then I have to grab it and find a sucker that wants to buy it from me at exact value (either exchanges, which are going to find bigger suckers than them, or individuals in the street, which don't exist.). But we both know it's not going to happen because why would the sucker on the street buy from me instead of a "trusted" exchange, and why would the "trusted" exchange just take it from me at market rates, instead of charging fees and lowering the exchange rate to make a profit on it.

In the real world, if you have an actual asset, you physically ship it, and it costs money, but I have something in my hands. In cryptocurrency fantasyland, I can buy drugs with it. Or shitty NFTs.
This reminds me of a portable dual monitor setup that I tried to build. I used PVC pipe fittings and USB monitors.

The most difficult part for me was getting the screw holes lined up for VESA mount. I didn't have access to a 3D printer, so I was just cutting wood panel and drilling holes by hand.

Also PVC was too unwieldy. Making the necessary hinge joints was hard because of how much space the pipe took up.

Hmm, now I want to revisit my design. If only I had more time.

Also, I now have access to 3D printers, laser cutters, and a CNC machine at the STEM lab of my local public library. It's actually a shame how underutilized this place is. I was there during open hours, and no one was using any equipment except for the 3D printer. There is also a recording studio.
Plex and Jetbrains aren't really SaaS. There isn't any cost to the vendor in letting you run these on your own computer.
Years ago I was part of an effort to migrate a compute footprint from one data center to another that was across town.

When the DB VMs were migrated suddenly we had complaints about certain ETL jobs going from minutes to days.

I opened up a packet capture and took a look (thankfully at the time the queries weren’t encrypted). What I saw was that this big name ETL tool was loading data one row at a time using one query per row. This apparently was ok when the DB and app server were in the same building but adding a few additional milliseconds to each query totally screwed the jobs.

Thankfully there was a parameter that could be set in the DB driver to fix the issue and we just had to convince the ETL tool vendor to set that.
Strong "how do you do, fellow kids" energy. Companies draping themselves in tired, culturally-exhausted trappings in an attempt to conceal their sociopathy under a guise of countercultural relatability. It's just as transparently grotesque when Musk does it.
Going off the article it sounds like most of the layoffs are in business and recruiting so I suspect a small-ish fraction of the layoffs will be programmers
There might be some distopian way of doing this using biometrics and cryptocurrency. Submit your "human hash" (e.g. some set of cheaply collectable and individually unique biometric signatures) and receive one USDT or similar fixed value digital currency. Then just slowly allow people to register ownership of their dollar as/when they decide to collect it. This only gets to people who can get access to a computer and the crypto-dollar is functionally useless to most of them but it's pretty cheap to distribute. The biometrics bit may also be literally impossible - no idea what the state of the art there is like.
Do you have a discord server or slack channel or something ?
https://archive.org/details/the_golden_book_of_chemistry_exp...

https://archive.org/details/1960-the-golden-book-of-chemistr...

https://archive.org/details/TheGoldenBookOfChemistryExperime...
Mastodon exists not as a free speech platform, they proved they are not, but as a safe space.

Safe space being: "intended to be free of bias, conflict, criticism, or potentially threatening actions, ideas, or conversations".

What Mastodon is receiving right now is 'potentially threatening ideas and conversations'. Not going to go well for mastodon.
Yeah, he could easily bankroll a 36 month severance package or something similar. Like "sorry I fucked you right at the onset of a recession, here's a pile of cash to help you weather the storm." That would be actually taking responsibility
well, that's already the case.
Why do people buy red cars when blue cars exist?

Although I don't understand the comparison - from my point of view comparing Aphex Twin to Daft Punk is like comparing Aphex Twin to George Strait.
Another potential problem is people being born or dying after you’re collecting your data and running your job.

#3, that’s a good one. I started a long-running job like this and it failed in the middle after sending money to N people, and Airflow or L1 support just mashed restart. Now the first N people who got a dollar before the job failed each get 2 dollars (or 3 if mash retry again). Now you ran out of money, or you treated the last M people unfairly. (That’s how I learned “idempotent”.)

One solution is to keep a log of the people you sent the money to and do a left outer join with the people_to_send_dollar_to table when the job starts. Then you filter out anybody in the people_we_already_sent_dollar_to table in your query so your job never iterates over them again.

But now it’s worth thinking about if you succeeded sending somebody the dollar but they failed receiving it (it got stolen out of their mailbox or it fell out of the delivery truck). Do we need people to tell us when they received the dollar and resend it periodically until we get the confirmation message? What if we never get the confirmation message? Is this the 2 generals problem? What if some people never confirm so they can keep getting dollars in the mail?

Is the answer cryptocurrency?
Recently there was an ask hn that was "What SaaS do you wish existed". My response was "c-suite replacment".

I've been priveledged enough to see the insides of hundreds of companies. The problem is ALWAYS the leadership! (or lack thereof)
Webpages served in Germany cannot automatically download a 3rd party asset from any other website without consent from the user.

Why not just build this law into the browser?

Do you also need user consent before sending users to an edge cache like cloudflare?
Before there was a market for Art, it used to be heavily subsidized by rich people. It was basically contract work. (Medicis etc).

As long as you find that there is a vibrant market, go for it.
But otherwise I would keep it a hobby and try to get wealthy enough to retire and only then, do it full time.

The best would be to be able to associate your hobby and your jobs so that your jobs feels like a hobby but also pays the bills.

The obvious intersection between visual arts and programming is video game making for instance.
It's best for the wealth to remain on companies owners. That's what Germany thinks.
Free software is all about user freedoms. Open source is about the source being open. It is two positions on access to software and code with different ideological foundations.
That makes sense - our plan is to make part of the first chapter available as a demo as soon as it's out
Add to that thousands of smaller companies laying of 10 people here, 100 people there. We will not hear about it, but it quickly adds up.

In addition, we go from a phase where people new in the job market (students etc) were being hired quickly to no one hiring them. So there are both laid off people and new entrants added to the pool.
Yeah, in practicality you'd want to partner with different existing NGOs (or even governments) depending on the country (some countries can reach almost every single person via a church, for example).

You'd also run into the opposite problem in some countries like the US; I don't know if I could be arsed to walk down the block for a dollar. Maybe if it was a cool limited-edition dollar coin or something.
Right, but there was a used textbook market that usually worked for me.
If anyone is interested in. I'm working on a "emacs-like" system that you can also use to take notes in, but it's more line a Outliner(like Roam Research) + Brownser. It's still in development.

https://github.com/ilse-langnar/notebook
Personally I don't, and as stated by my question I don't believe that any "web3 solution" is better than anything that already exists.

However, it is still effectively democratic access to the data when anyone can look at the chain to get the information. Whether that's any better than anything else that already exists is doubtful but it does reduce the value of ownership as shown by NFTs.
I get that covering all bases is good, but am I reading right that this just tells the compiler not to generate that path? Seems like the opposite.

Wouldn't it be safer just to trigger a panic or something?
Gold does have utility beyond being shiny and for now has actual scarcity. Fiat currencies have utility in that I can pay my taxes in the local one, my government pays for things using it, it is pretty much universally accepted etc. I see a future for electronic currencies just not necessarily the crypto technologies we see today.

The "much less likely to get confiscated" is potentially a negative too e.g. confiscation of the profits of crime benefits society. Whether it is more positive or more negative depends upon home much you trust your government to be benevolent.
I see.

If only you could be left alone to unleash your brilliance with your friends, you could make a trillion dollar company. Unfortunately it looks like no one believes you / believes in you enough to help you with this.