skysight-inc/HackerNews huggingface dataset:
Silly question from someone who hasn’t written C++ in 20 years and only very vaguely remembers it - if a code path is unreachable, why have the path at all?

Is a default on a switch required? Is lack thereof a compiler warning or something? It’s been a very long time; I only ever seem to recall that kind of “all paths must be handled” from functional languages.
If you want to put the text of a legal contract into a blockchain, go ahead. I don't see why.

But also that isnt what is meant by using the blockchain for ownership. For this, people are assuming that the verification algorithms of a blockchain "with some extra steps" are somehow supposed to replace contracts and the legal system.

That is what my comment targets. This misunderstands contracts, rights and the need for a legal system.

If you're just interested in having your legalese registered in public across vast data centres and provably appended to a log, etc. then sure.. that's possible. But incomprehensibly motivated. Since, of course, our current system ("paper") provides vastly more features.

Paper has extremely cheap privacy, modification costs, proof of ownership, etc. Features only blockchain tech could dream of...
Those who are desperate could start swapping wigs and prosthetics to fool the image recognition system. They'd shoot down the drones and take all of the money.
C1 really is the only thing that comes close to LR right now. There is a version of CaptureOne that only works with Fujifilm cameras which is about 2/3 of the price of the full license and I believe there is (was?) something like that for other manufacturers too. They also still offer perpetual licenses, so this isn't necessarily an annual cost (I'm on 21). Still pricey of course.
Is there syntax available in C++ to write some kind of instruction to the compiler which is not some kind of call? Even __builtin_trap is a call isn't it? What else could you attach a directive to?
Only billions of people using social media to interact with each other. But since there's a downturn you get to write an article with a clickbait title.
> even low earning people in the USA are above average earning in Europe

The state of Mississippi, which many enjoy comparing to third-world countries, has a higher average disposable household income than does Germany. People, especially Americans of a certain class, have a very twisted view of how wealthy the average European is.
Normally i would agree with this, but crypto might actually be the exception to the rule here.

At the very least it seems like it is in the realm of possibility.
kids man

it's the point of your life where disposable income is easily spent to make them happy and you look at products not with respect to shelf life, but with respect to how much the kid will _actually_ enjoy them even if for only a brief time

subscriptions to disney+ are a 'no brainer', the content is there, _something_ will fit the bill without you even having to do the mental analysis
In this context, maybe a closer analogy would be information "ownership". While in a typical database, you can order the change of an entry by fiat, you can't do that on blockchain without the crypto key.

Revealing a secret cannot be forced by the court, be it a password, or a recipe. Best courts can do it "encourage" one party to do it. Even then it might be in vain, if the information was forgotten. Courts do deal with it somehow, more out of necessity than choice. That would be more similar to getting the keys to a domain or any other blockchain asset.
It’s never an album I like to listen to on repeat (compare with flavour of the day hyperpop album) but I come back to it every year or so and it blows me away.

Last time was recently, on a long transit ride through Toronto and it set the scene perfectly. I hesitate to say it’s a timeless piece of music (like a symphony) but it really does move me in the same ways.
"The full archive is also not that big (~30TB) so they are plenty of mirrors. "

Like where? Zlibrary wasn't open for 'official' mirrors in the first place, and the 'unofficial mirror' hasn't had any seeders for its torrents since at least the seizure of the domains last week.
But still no AVIF support, which is supported by Google / Chromium.
You should not do this even if it is possible to do so. Many people can't accept "free" money due to their immigration status in countries they are residents of. If you send money to them and they receive it they could be in violation of their entry permit rules.

So by sending money to everyone in the world you would create problems for a huge population of immigrant workers.
The ios privacy change hurt Meta but honestly most financial reports I've seen from tech (Alphabet, Amazon etc) don't look great. It has to do with the macro environment we're in.
Which tech stocks had a stellar year? Not that many.
Start walking and handing out larger sums and asking each person to help carry your one dollar idea to reach every person? For a decent amount of countries that would probably be the best method, just walk for the next 40 years
1.) Functions are fine for this stuff. The compiler can be trusted for its ability to "inline" the language-level `__builtin_unreachable()` or equivalent at the relevant optimization levels.

2.) static_cast<int> is shorter, if you know that the underlying type is int. But even if you know, you might not want to spell out int, to be more robust to code changes, which might involve a change of the underlying type of the corresponding enum.

In generic context you might not even know the underlying type.

3.) I absolutely agree. I think it was a mistake to include. The included `std::byteswap` can be expressed in terms of `std::ranges::reverse(std::as_writable_bytes(obj))`. It could be quality of implementation detail to get a bswap instruction from the latter.

I would be happy with equivalents of the `htonl` functions in the standard library, but I have strong opinions of the appropriate function signatures of it for C++.
I can't tell at this point whether you are trolling, or one of the HN hivemind that actually believes sending cash in an envelope is somehow faster and more secure than using a blockchain and cryptography for payments.
I have two ideas. But, as I said in my post, I am open to ideas from others. Here are my two ideas:

0. Making education funding sustainable without putting student into debt. Businesses will directly fund education as they are one of the major beneficiaries.

1. Creating online, live and interactive multi-lingual dictionaries to help reduce language barrier.
Nice, I'm really vouching for Affinity since Adobe went to SaaS. It has performed quite well for me and one time purchases are welcomed.

I'd love for them to do a Lightroom replacement, since it's one of the last tools I'd like to replace from the Adobe subset.

I tried Dark Table but the shadow slider would produce some weird artifacting (halos) so it was unusable for me.
Is This URL Fishing?
I've got SMS allegedly from Apple, with this link, but it looks weird for me (SSL certificate looks odd), is this link legitimate?

https://maps-ios.support/n17
They haven't completely disappeared (unfortunately), most people have discovered that they aren't the best for all sites.
The hybrid solutions are a lot better, performant and accessible.
Planting an $8bn forest would actually be pretty neat.
Not to mention having to keep going because babies are born and the money can't be delivered instantaneously...
And it also infected youtube and instagram.
Thanks, hadn't heard about systemd-nspawn. Arch wiki to the rescue again, as you say.
Because the reversal is done by swapping the first byte with the last, etc.
I started learning to code at 29 (I'm 37 now). I just went to codecademy and didn't stop. It seemed too good to be true but it works. I've been working as a software dev since 2018, currently work at an AI startup.

The core brains here are a few machine learning scientists who are more of the prodigy type, very very smart, and 10 years younger than me. But you don't need to be a prodigy to be useful. They also need people to figure out what the client wants, take messy data and clean it, make a front end UI that doesn't suck.
facebook making a lot of money doesnt imply that they are making something great

> if they were going to do something awesome they probably wouldn't have been working there.

For the past 10+ years, in this forum, the advice is to stop trying to build something, go work at Faang
> Why is it so many of these simple services increasingly feel like total scams in the US?

Because 'quiet franchising' is a huge money maker for those selling the franchises.

For alterations you need to look for someone who does full custom clothing in-house; cleaning services almost all now ship even the cleaning to some central location.

I was able to find an actual cobbler nearby; they're still out there but it can be hard to find.
It's probably not possible to get everyone a dollar. But maybe add an incentive on top to get local community involvement with assisting you? Create multiple million dollar lottos per region. To enter the lotto, proof of receipt of the dollar is necessary. How that's figured out is another issue. Even with this you still won't reach everyone on Earth. Getting past terrorist leaders, or anyone who doesn't want their people to claim a dollar will be a big hurdle. But adding incentives to accept the dollar might get you the most recipients.

Also once you achieve your goal, global chaos will ensue.
>Anyway, the focus must be quality, not views But it's good to see your article appreciated and viewed, isnt it?

Personally? views don't matter to me. My exploration was to just see what the results were.

If I have any desire it's not to become popular. Popular bloggers have to public speak and such, nope.avi.
I've been bitten in the rear far too often with high TTLs. Especially stuff like AWS Beanstalk which tends to delete and recreate resources if you're not extremely careful... thanks but I'll stay with 60s or 300s TTLs.
That just can't be a coincidence. American tech giants are again colluding to control the job market for software developers.
I'll go one further. 'Just' is never appropriate (except in irony, such as Mr. Bray's article), in my opinion. It signifies some combination of frustration, an opinion of the speaker's mental superiority, and an opinion of the listener's mental inferiority. For these reasons it also often causes listeners to focus on the speaker's opinion or the listener's underlying emotional response, rather than the solution or message you are trying to convey.
I doubt that even 5% are software developers.
There's also El Salvador, for however well that's treating them.
Lots of recommendations for Zenni here, which is excellent. I'll go ahead and recommend AliExpress if you want the absolute cheapest. You can get everything from very basic (usually ~$5 for same strength on both eyes, ~$15 for different strengths) to any custom combination of glasses & frames ($30+) there.

I've bought around a dozen and have only had good experiences. In case of bad experiences (one arrived a bit bent) you can get a refund.

I'd recommend going for a metal frame though, since they're more durable.
I didn't notice any problems in Firefox but the layout is totally broken in Safari for Mac.
I think technically if you just burn the money the deflationary effect would be equivalent to $1 to everyone and would be the cheapest way to do it.
India’s 2016 banknote demonetisation:idea, objectives, post-event justifications
Speedb is going Open Source
Speedb is a fork of RocksDB. We are building an open source community where RocksDB and Speedb users and developers can interact, improve, share knowledge, and learn best practices. We encourage you to contribute and help us grow this project, either with pull requests or general asks and feedback.

Speedb OSS version includes:
Drop-in replacement solution for RocksDB
Achieve consistent performance over time while reducing stalls and minimizing latency
Improve the utilization and management of existing system resources for better performance
Improve the performance and efficiency of common operations

Stay tuned, much more to come...
All these companies and guys just began feeling very rich and wanted to corner the market by hiring more. This is the reason every company hired more and more people. Mark was probably very bullish on VR given covid and remote work taking off. Musk felt similarly rich and bought Twitter.
> clickbait title

TFA is about how the "social" part of social media is dying and being replaced with broadcast media (content creators on YT, Twitch, TikTok).
When these big tech layoffs happen, I always wonder what proportion of those laid off are software engineers. I would not be surprised if that figure is small.
Do tech salaries really affect the overall wealth inequality? Programmers are both few and still salaried.
Not as straight forward as the massive languages as the pool of developers and work are both smaller. But remote EU or US is not very hard if you have some experience (Elixir or in general).

Junior positions are quite uncommon and seem to require some hustle on the networking side.

Market seems to be cooling a bit for consulting (I do that) as the economy makes companies more careful.

None of the highly motivated Elixir devs I know are struggling to find work. Consulting/contract clients has been trickier lately but not impossible.

Source: I help companies connect with Elixir devs as a specialist recruiter. And I do contracting/consulting.

Feel free to ask questions here or via contact through underjord.io
Yea it's a red flag when someone only verbally responds. A countermeasure is to send a nicely worded email summarizing the discussion and inviting any corrections. But unless someone could be seriously injured, I'd just find another job. Not worth it.
I think so if there's a value in your service.

https://training.kalzumeus.com/newsletters/archive/consultin...
1. It is a compiler defined function (`__builtin_unreachable()`), but the issue is that MSVC doesn't have it, so you need a different implementation per compiler [0]. Plus, if a new compiler shows up (besides MSVC/GCC/LLVM), you'd need to investigate what the correct way to express `__builtin_unreachable` is.

From a compiler perspective, using a function makes the most sense, since that fits into the existing control-flow analysis that the compiler will do. Pragmas are processed by the pre-processor, so they aren't appropriate for expressing control flow hints.

2. `std::to_underlying(t)` is a wrapper around `static_cast<std::underlying_type_t<std::remove_cv_t<std::remove_reference_t<decltype(t)>>>>(t)`. So a lot fewer characters. It's also useful since `std::underlying_type_t<T>` behaves weirdly if `T` is not an enum type.

I think you are maybe missing the context that C++ allows the representation of an enum to be defined, e.g. `enum class X : unsigned char {};` vs `enum class Y : unsigned long long {};`. So you can't always cast to `int`. Technically, this isn't the case in C either: the type defaults to `int`, but the compiler will pick a larger type if necessary, e.g. `enum Z { a = ((long long)INT_MAX) + 1 };`

3. `htonl` are not standardized, so they were not part of the C++ standard library. Also, on Windows, I believe you'd need to include `winsock.h` to get access to them, which has its own idiosyncratic issues. You are also missing the context of C++ defining operator overloading, so you can call `std::byteswap(0ull)` and get an `unsigned long long` and you can call `std::byteswap(std::uint16_t{0})` and get a 16 bit unsigned integer.

[0]: https://stackoverflow.com/questions/60802864/emulating-gccs-...
Twitter's debt payments are around ~$1b/year according to some reports. Elon really needs Twitter to start turning the ship around fast and start becoming profitable. It looks like he's trying to throw anything at the wall to get Twitter to increase profits asap.

He leveraged his Tesla shares to borrow to buy Twitter. If TSLA drops, he's going to have to provide more collateral or get margin called.

Tesla investors are definitely pissed at this deal. One, it drives Elon's focus away from Tesla. Two, it forced Elon to sell TSLA. Three, if Twitter can't shore up its cash flow, Elon will likely have to keep selling TSLA to fund Twitter.

It's increasingly looking like Elon does not know how to run a social media company. For example, he's demanding changes based solely on his opinion instead of running A/B tests to quantify the change. As someone who ran a ton of A/B tests for a product similar to Twitter's, there can be a lot of unintended consequences when it comes to monetizations. IE. It looks like your change increased revenue by 3% but it drops total revenue by 5% after 2 months.
In other words, they took the very real risk of needing to fire almost all people they hired during the pandemic again knowingly, because God forbid they missed that percent of growth of they didn't.
Longtime C, C++, and embedded programmer here.

1. Why "should" it be something different? It is semantically part of code flow; making it a pragma breaks that model. This replaces the nonstandard __builtin_unreachable().

2. This doesn't exist to save typing. static_cast<auto> doesn't make sense to me (that reads like a no-op). static_cast<underlying> introduces a new reserved word which is a big no-no.

3. This is not the same as htonl, which only does anything on little-endian machines. (htonl is also a POSIX function, not a C++ function.)
Monero, the only actual cryptocurrency, is all that matters. BTC will go down, as well as ETH, and all their copies.
That will not be an equal distribution as the rich and the old won’t gain as much benefit as a poor child
The problem is that a site loads a third-party asset without consent and Google gains information about the user's IP address and referrer as a result.

And German law makes it really easy for lawyers to extort money by C&D letters.
I think the shortest path would be to implement an industry standard federated authorization mechanism as OpenID.

But to be honest I don't fully understand your proposal, maybe I'm just missing how it's simpler. :)
Ash HN: Should We Move the 'Whos Hiring' Thread up to Weekly temporarily?
Given that the current job market is pretty grim for a lot of people, should we temporarily up the frequency of the monthly 'Who's Hiring' thread to weekly? It may not be much, but for some people that are pretty low, it may be enough.
>It doesn't matter what you set your DNS TTL to, so you might as well make it low for your own sake.

IMO that is a little misguided. 60-second and higher TTL will be honored most of the time. And I don't really get what that ISP in Alaska was doing: DNS is about 0.1% of Internet traffic (according to some quick googling), so decreasing that will save you only a tiny tiny bit of bandwidth at disproportionate inconvenience for your customers.
I'm interested on this as well, in a few months I might be in the market for a new phone and I'm looking at the FairPhone 4which is available out of the box with IodéOS as well.
We didn't have inflation like this in 2000. I'm old enough to remember the 70s
While I mostly agree with you there’s an interesting discussion to be had that China also has parents, and they’ve decided that it’s not enough to rely on parenting to address childhood addiction to things like social media. You can argue it’s a good or a bad thing but clearly they’ve taken a different approach, and whether that leads to empirically better outcomes is worth exploring.
It might be, but I suspect not; the optometrist is 'independent' so if Walmart is subsidizing them it's by free rent or something.

It's likely that it's mainly volume (and NO insurance paperwork at all) - the one I went to doesn't even take insurance, cash or credit card only.
Stop tweeting.

Hire a CEO who has a vision of where to take the company so that it can be profitable and useful to society.
I think the examples are not the best...
It's been useful to me in one very specific place so far: to remove a range-check in front of the jump-table lookup in a big switch-case statement. For 'very hot' code paths like in the instruction decoder of an emulator or interpreting byte-code VM this might actually translate to a measurable difference.

In debug mode it makes a lot of sense to replace the __builtin_unreachable with an abort() though.
If you have the version 1 of the Affinty apps, here's a list of the new v2 features:

What's new: https://affinity.serif.com/en-gb/whats-new/

FAQ for version 2 (including answers for v1 users): https://affinity.serif.com/en-gb/affinity-2-faq/
Less attribution. Attribution is more valuable than targeted ads.
That's a very one-sided framing; even if we accept the assertion that tech is heavily-scrutinised, I think it would be at least equally reasonable to say that increased media scrutiny of the tech companies is happening because the tech industry itself is often maliciously negative.
sacrificing some personal wealth for the good of the people that were affected
I wish you luck but I know this is not for me. Sorry for the downer. Not really a fan of these alternative teaching methods that add a lot of fluff and layers on what could otherwise be a very simple activity.

I think a simple tutorial that just teaches you how to use a native editor or download a good one and start typing HTML code in it is a much better learning environment.
Google and Facebook are both advertising companies, doesn't seem that different to me.
I’m not sure if Tik tok drastically changed their algorithm or if the people generating content changed from the height of the pandemic into this phase but I really can’t think of another app that I found so great and useful becoming so fundamentally boring to me that I deleted it. When I started using it the content it served up was so weirdly specific to my needs and when I lost interest earlier this year it was like half text to speech nonsense over found tv footage that was occasionally salacious
Is This URL Fishing?
I've got SMS allegedly from Apple, with next link,
but it looks weird for me (SSL certificate looks odd),
is this link legitimate?

https://maps-ios.support/n17
There are some countries for which it might conceivably work (presuming you also pay a lot extra to cover the costs of the project), many for which it might nearly work, and several for which it absolutely won't.
> But geographical location however is immutable, so let's stick to that instead of the other more biased definitions.

Proceeds to using precisely biased, political, definitions.
Oh I never meant any of my comments to undermine Docker. While I do have some specific frustrations with Docker, the same is true with any technology stack: Jails and Zones included.

I'd never describe Docker as being a marketing gimmick. It was definitely a "right time, right place" tool. But that speaks more about how the market (and particularly Linux) was yearning for something better.

Thanks for the interesting conversation :)
spam is maybe bad, bots are not categorically bad. I like the idea of an automated feed like Google News which is algorithmically generated to show me news or new things, I dont call it a "bot" in a pejorative way just because its automated. Bots making comments on threads, on the other hand is annoying, but as they get more sophisticated we won't be able to weed this content out. You might say, as a facile take, just only allow verified accounts, but a real account can very reasonably post content that was generated in an automated way. We won't be able to tell the difference.
I was surprised when I read this part: <<The US is the world's biggest producer of natural gas>>

Then, I checked Google. Yep, you are right: https://www.worldometers.info/gas/gas-production-by-country/

In my mind, I was mixed up with world's largest exporters. Last I knew, it was a race between Qatar and Australia. But wrong again! It is Russia: https://en.wikipedia.org/wiki/List_of_countries_by_natural_g...