skysight-inc/HackerNews huggingface dataset:
> A #define is just a source code generator run by the build system, with fewer steps.

OK, if you're getting philosophical, you're welcome to to think of the -D switch as being a type of source code generation.

But there's a big practical difference. target_compile_definitions is one line in your CMakeLists.txt (two if you add a cache variable for it) and everyone can understand it instantly. Whereas creating a myappconfig.hpp.in and using configure_file() and #including it from all your actual source files (yuck) is much greater mental overhead both to create and maintain in practice. I know which I'd prefer.

> I'm not talking about "The simplest option [available in modern editions of C++] that comes to mind", but "modern C++".

I added a little to your quote there, forgive me. But I hope it clarifies that they're the same thing. If modern editions of C++ don't add any facilities that make it easier to do conditional compilation (chosen from your build system), then #define IS "modern C++". The fact that there are other ways of doing it, which you consider cleaner but are clearly impractical, is irrelevant.

(I'm just talking about this particular usage where you #define one constant the same way everywhere. I've seen horrific tricks where you #define one way then #include, then #define something and #include again (yes there are no include guards). Clearly that isn't forgivable, whatever version of C++ you're using.)

For the record, Rust has a nicer option for conditional compilation: feature flags. In principle a future version of C++ could adopt something similar, at which point #define really would disqualify that code from being "modern C++". But clearly that's not available in the most recent standard, or even planned in future standards AFAIK.
This seems almost like an automatism by now, that platforms pivot away from sexual content after a while. Remember, in the beginning Snapchat was considered a sexting app where you could safely send nudes, although it was not advertized as such. They moved to a more regular social app after some time.

Tinder was initially sometimes described as an app to find people nearby who want to hook up. Like a one-night-stand-radar. It quickly positioned itself as more traditional dating app (although very focused on visuals).

And although not sexual, I think what happend to YikYak is similar. They started as this anarchic platform where you anonymously could talk shit about local topics and people. And then they realized that is probably not what they want because it causes outrage, so they tried to nerf that aspect (which is the whole allure of the platform).

Sometimes the sanitizing works (Snapchat), sometimes it kills the app (Tumblr, YikYak). But in any case I'd wish there would still be a place for the anarchic, 'unmoral', wild ideas in our society.
> for example church taxes (even if you can opt out) are still collected via the government.

In other news US post office caught delivering mail to churches, synagogues and mosques. Religious conspiracy or completely normal?

> even if you can opt out

You had to be opted in in the first place, you don't get randomly assigned to one of the religious groups that signed up for that service.

> There is also much more censorship in video games than in most other countries.

Gotta love how quickly school shooters got blamed on video games. Can't blame the government, can't blame the poor parents who were barely even aware of their kids existence in the months leading up to the shooting, lets blame and censor games the kid never played.
I agree. Having a huge mono repo is basically throwing the towel in the ring with your automation/package management/dependency validation.

In the .net world your CI/CD pipeline should continuously build and publish NuGet packages of your common code as you make changes. Since the old versions are obviously still available, other parts of the system are not forced to be updated to the new version of the dependency.
This. You could rely on a cookie during the get request as well, that you set on the users browser during registration. Or re-auth after click.
I’ve thought it’s easier to figure a social situation out as an independent third party than to figure out a situation in the first person. That might be related to Jobs’ “reality distortion field”. But at the same time, people are finite and of course always going to be blind to the total context around them - in anything suitably complicated. So I wouldn’t put a lot into this.
.NET caters to the enterprise, or at least it used to. It's irrelevant what other ecosystems prioritise. What makes you say that XML is legacy tech? In the financial industry XML is used extensively. For example, FpML underpins a massive part of global finance, and it is a regularly updated standard. COBOL has been superceded by other languages; I'm not aware of any technology that can replace the XML-based FpML schema.
Sign of the times. In the last 5 or so years working as a consultant for large corporates I can't recall ever having to work on new desktop app/features. Everything is moving to the web even for internal uses so I'm not surprised that desktop app dev frameworks are collateral damage somewhat.
I didn't realise that theres no requirement to scan. So I'll yield on that.

But its still possible that Apple are preparing for a scenario where it does become a requirement in the future.

As for the E2EE part, I can't imagine that this wouldn't be launched with E2EE alongside, otherwise theres literally no point whatsoever, they could have just done the scan on iCloud.

As for why this combats 'your data being whisked away', check the technical documentation. What they're doing with Private Set Intersection and Threshold Secret Sharing are clear steps to make this system unexploitable, anonymous, and so that it doesn't leak any metadata whatsoever.

https://www.apple.com/child-safety/pdf/CSAM_Detection_Techni...
An interesting algorithm based on graph theory and topology is umap, used for dimensionality reduction.

https://umap-learn.readthedocs.io/en/latest/how_umap_works.h...

I am always amazed at how well umap work for diverse dataset.
It may be forgotten in some parts of the world, but certainly not in the Netherlands. Primarily because of the effects of nitrogen deposition on the environment and ammonia/methane in particular. There is basically a stop on building and expansion of agriculture as well as a reduction of the maximum speed on highways.
OnlyFans will prohibit sexually explicit content starting in October
99% of the corn grown in the USA is not edible directly. It is called "field corn".
Your comment touched my heart so deeply it hurt! I feel exactly the same.
The only problem I have with PostgreSQL is the lack of really good client software, now that pgAdmin is getting less usable with each new update.

DBeaver and HeidiSQL are acceptable replacements, but they’re not specifically designed with Postgres in mind. I feel like the pgAdmin3 desktop application was the peak version of the tool, and it’s been on the decline ever since.
Thank you, that's really nice of you. It's interesting what you say. I used to think the opposite. Before making games, I was working on "classic" programming tasks, doing some machine learning and what not. And my stupid self use to think that video game programming was easy compared to what I was doing at the time. Well now that I made the switch I can't stress how wrong I was. Making a video game is difficult. Thank you for the encouragements.
Have you got a reference to that? the terms that were quoted in the grandparent comment do seem extremely reasonable:

>The banks will now have to ensure that sellers require “clear, unambiguous and documented consent” in adult content, the payments network said in a blog post Wednesday. The firms will also be required to ensure websites document the age and verify the identity of anyone depicted in pictures and videos as well as those uploading the content.

>“The banks that connect merchants to our network will need to certify that the seller of adult content has effective controls in place to monitor, block and, where necessary, take down all illegal content,” John Verdeschi, Mastercard’s senior vice president of customer engagement and performance, said in the post.

The thing I don't understand is if those quoted terms above are the rules that onlyfans is falling foul of, then wouldn't it be easier to build a tracked system for documenting consent e.t.c. rather than banning things.

That would seem like a better strategy for OnlyFans since it seems like their entire business model will be in jeopardy without this.

I wonder if they want to do this, and then turn around and say "we've listened to the community and we're gonna integrate this consent system instead" so it won't be treated so negatively or something?
Is it possible to cache the already built dependencies in Github or Gitlab CI if one is using a NixOS image?
I see these points. But I guess personally, as someone that benefits financially from technology and the internet, I feel some level of responsibility to ensure that it isn't used to exploit the most vulnerable in society.
You are not an auditive or visual learner
Whilst the detractors of UBI like to paint it as automatically impossible, like breaking some fundamental law of nature, I bet the same people would have said the same things about the Covid benefit schemes. In my country people could be furloughed by their employer on 80% of their salary... and somehow we paid for it ok.
I don't know what you are downvoted for, because all you said is exactly he history.

POV camps for Wester Allies and Soviets were like haven and hell. Soviets were considered a half-human by nazi regime.
Your question is a bit vague, but what are the alternatives? do we have sustainable and affordable alternatives assuming spoiled first world people?
This announcement is going to cause a lot of headaches for recruiters -- "no, not THAT kind of android!"
This is Hackernews. The acceptable answer is: there's no such thing as evil, and criminals are just people underserved by social programs, so there is no justifiable reason to punish anyone.
The fact that different, sometimes worse, alternatives exist has no bearing on the factual accuracy of what I said. Obesity is without a doubt unhealthy relative to the equivalent non-obese state. It is a significant risk factor for, and in many cases a direct cause of, an astounding number of other disorders.
Short answer: No.

In general banning anything is a brutal and also a clumsy measure, often causing more harm than good. It should only be used as the very last resort in intolerably extreme cases.

I find the idea of growing animals just to kill them unbearably horrible, nevertheless I believe this should be addressed gradually by adjusting cultures to decrease meat consumption with time and to always eat what you bought rather than eating a part and throwing the rest away.
> When successive generations complain about "kids these days", there is a contradiction

It's not a contradiction, if each successive generation is more terrible than the one that came beforehand.
> no remotely sane software will automatically perform POST requests to arbitrary urls

I'm not a web developer. Out of curiosity, why is that?
I think you are right. The gating part in both applications is, whether you can create an AI which is "good enough" to get a real understanding of the environment.
If you factor in availability of resources, it is nothing short of amazing what the USSR achieved and how long they could stand up to the US. They probably would have put someone on the moon too, but that wasn't too important after the US was first.
CNN on July 8th [1]:

> Removing mandates on July 19 will not only accelerate virus transmission, with substantial increased levels of acute illness, hospitalization, and long COVID, but also create the conditions for the emergence of new variants that could escape vaccine protection

CNN on August 20th:

> This unexpected drop [after July 19th] was likely down to the fact that contacts between people didn't increase as rapidly as some predicted, and because the Euro 2020 football tournament, which led to a spike in cases, ended on July 11

-

So many lovely theories!

[1] https://edition.cnn.com/2021/07/07/health/uk-opening-scienti...
Check mark is already back. Obviously it was a mistake or his account changed in a way to make it temporarily go away.
You can use <form method=POST> in email body (obviously does not work in plaintext mode)
What about the idempotency of HTTP GET is surprising here?
Then again, wealth also helps with the collegue degree if the heredity part of intelligence isn't working out for you that well.
I had the same thought, but the article clarifies that the problem is in policy:

> But despite its important contribution to climate change, N2O emissions have largely been ignored in climate policies.
Your comment ignores the most obvious problems in the system. First this guy had his conviction overturned, he was innocent, and he claims his sentence was politically motivated. Second, this type of solitary confinement is inhumane and unecessary.

Yes, it would be great to improve the quality of life for prospective criminals, but we don't need to set the bar as high as UBI, we could start by having a fair and sympathetic penal system.
It was caused by feeding cows beef. You can’t spread prions by feeding them seaweed.
I believe so.

https://cachix.org/ provides some off the shelf services.

There's a few blog posts about using AWS S3 as a binary cache so you can roll your own.
I would agree with your last sentence, that's a very Microsoft way to handle things: "Hey, look at all of this! You can implement your application USING YOUR FAVORITE TOOLS! Isn't that great that we give you the opportunity to evaluate 36 different framework to see which one is THE BEST for your UNIQUE situation?!".

It's a complete mess and the whole thing feels direction-less but I cannot agree that no good tool exist to implement GUI.

I'm still confused by their React Native for Windows. Very happy to see development in this area, React Native is a fantastic framework, but I cannot understand if it is a toy or something they actually want to commit too. Blazor Desktop is also really confusing and makes no sense IMHO.
> Would any of us be speaking out like we are right now if Apple had chosen to do server-side scanning instead of on-device scanning, just like every other company?

People had voiced concern when BigTech started cloud scanning - either motivated by profits (data mining users data) or to comply with government regulations. That's why we saw an increased awareness of encryption technology (and why governments have now started cribbing about how encryption needs to go). We also saw a boycott of cloud tech by many privacy advocates. But one of the reason it has been grudgingly accepted is because, to some level, we do understand that all business services are bound by some regulation to ensure they are not participant in something illegal. And we still have a choice to not use these services.

But, as you rightly pointed out, avoiding these services does limit users. And obviously people do feel outraged by the preposterous idea that just because you produce some content and want to share it with even a single person, you are now expected to submit to a scan of your device. This is such a subversion of our hard fought rights.
Thanks, that's a really funny one :)
IIRC that was one of the two/three main ways forward discussed and planned for after Be Inc went belly up.

- OpenBeOS (Haiku) - rewrite from scratch

- Option 2 (can't remember if it had a name) - was just to Implement BeOS userland on a Linux, to get free access to drivers etc. Most of the Be community was not interested, and I cannot remember if they even got started..?

- (YellowTab - Some company had access to BeOS sources and started releasing and somewhat updating the OS on a commercial basis - but don't think they actually had the rights to do that....)
Oh my god the unhinged blind frothing rage in those comments is scary, and many upvoted. I hardly go on that site I didn't realize it is a haven for hateful extremists.
> Very friendly (but also effective) installer. Probably the best I'd seen, at the time. Hell, maybe still the best.

The Installer in BeOS/Haiku does't do anything special: it just copies everything from the source to the target. The Installer is available in the installed system too, therefore you can install your installed and personalized system to a different disk, basically cloning everything.

But you forgot the bootmanager from your list.

I still yet to see anything like this 2 in other OS.
HTML Is Not a Programming Language?
C# is more popular but actually harder to learn IMO (although this does depend on your prior experience). C# is huge, but F# achieves more with fewer language constructs. F# can also be transpiled to JavaScript, which is a huge advantage.
There's no proper encryption though. In my mind, it's just like having everything unencrypted but using TLS to get it to Apple central. Apple employees can still access it.

This is just ever so slightly better than the worst of everything.

No real encryption, on-device scanning and scanning on Apple servers. "For privacy", WTF!!
I'll take 5. Better safe than sorry!
So what do you do with the violently inclined people? Put them in therapy and hope they get better?
No, that's not really how orbits work - after a collision or explosion, the orbit of every created shard will still pass through the point of collision, so if a satellite in circular LEO gets exploded, much of the debris will be boosted to a more elliptical orbit where the apogee may be higher, potentially much higher, but the perigee - where the majority of the drag happens, in a very nonlinear manner - will be lower than that LEO orbit or at the very worst case the same as it, having an elliptical orbit that comes down to the atmosphere, slowing down at every iteration.

There's no physical way for a single event to bring something up from a low circular orbit to a higher orbit that's fully out of that low altitude zone, that requires circularization for which spaceships need to do another burn at the opposite (high) point of the orbit.

If some circular orbit is in a LEO "gonna burn up soon" zone, then the debris from a crash there won't leave the zone because all the elliptical orbits that pass through points on that circle also have as much or more "gonna burn up soon" property.
Unless you find food made without fertilizer that result in NOX emissions then the Tesla won't help with this particular problem.

Just like going from combustion engines to electric vehicles will require major infrastructure changes, as will going from modern industrial farming practices to climate neutral ones require large changes in the way we produce, consume and think about food. You're not just going to be able to tell farmers to stop using fertilizers without a viable alternative.
The fact it's 'mi' in Chinese may mean that this word could be from Borean language family, possibly making it extremely ancient (together with 'mama' and some others).
And indeed some scientist say it is a Borean word!
It will, but memo will prevent the actual function from being called as well.
Not provided by them but I don't think that was the point that parent was making.

The same system is already in use for things other than NCMEC by other providers.
I agree with you tomnipotent. Growth is not equal to more people. We all know that WhatsApp before taken by facebook has only 65 quality people team as compared to big giant companies having thousands of employee with same value.

But in some cases, even without pulling people out of the team, growth is impacted by other factors e.g. competition. How to avoid such factors is definitely a challenge.
https://www.youtube.com/watch?v=hRBrEvgrweI
> The solution is to ensure that these dependencies handle
> separate concerns and have simple interfaces which allow
> them to be loosely coupled with the main project logic
> in such a way that they can be updated independently of
> each other.

If your requirements ever change, you will need to make changes to these simple interfaces. At this point you will have to make changes to multiple repositories. Some changes can be done without breaking changes, but sometimes a change must be a breaking change.

A 'single' monorepo makes your problem easily solvable using automation and code. You can use a multirepo if you prefer to solve problems using human coordination.
Show HN: Native Carousel
A carousel component which uses native scroll snapping with enhancements and customisation. It is lightweight and accessible, with vertical, auto height, auto slide, tabs, lightbox, custom layout options, RTL support and no dependencies.

https://www.rado.bg/2021/07/introducing-native-carousel/
https://github.com/radogado/n-carousel

Any comments and suggestions welcome. Thanks!
Memoization isn't a free lunch. I think React's approach is to keep it simple with not managing cache stores for absolutely everything. Most small to medium react apps need little to no use of useMemo to be performant.
could you explain that term please? When you say corn, is it maize, wheat, barley or something else?
It's a bit strange that an article discussing a radical change to the diet of an animal that only exists to be eaten or to produce a product to be eaten doesn't mention any possible effects on the qualities of the meat or milk.

In Norway as far as I can tell cattle are mostly fed on grass with the addition of feed produced from cereals (but not maize). Does this mean that cattle fed on maize produce a product that is meaningfully different (on whatever axis of meaningfulness matters to you)?
One of the things that make C casts annoying/dangerous/hard/bad is that they are often implicit. If I didn't know malloc, then I wouldn't know that in your line of code there is a cast. And casts between pointers of different types can sometimes cause UB... There is a cast, whether you write it or not; it's just implicit, and that's bug-prone.