skysight-inc/HackerNews huggingface dataset:
I think a language's standard library sets a good pattern for how to write idiomatic code in that language.

C++ throws on memory allocation error, but that's about it. Memory allocation errors are special in all languages. Because of lazy allocation and overcommit, unless you specifically set your environment to work otherwise, your program will probably just crash when it gets its first page fault that can't be honored.

Open a file? fstream sets .is_open() (or its operator bool, so just "if (!f)")

Write fails? Sets .fail()

POSIX stuff usually return an error code, and set errno.

Modern C++ has std::optional.

But there's of course another answer to this, and that is "C++ has zero cost abstractions", meaning for example if you don't check for nullptr, then neither will the language. There's no NullPointerException because C++ just says that this is Undefined Behavior.

Oh, here's one: If you use dynamic_cast to try to downcast into the wrong type, that'll throw an exception. But first of all: don't downcast, and second of all: This is not an "unexpected input to function". This is a complete programming error and it's probably best to terminate. I.e. this is something Go style would panic about, not return an error.

Do you have more specific examples about unexpected input to a function that you would want to return an error for?

Ugh. Actually std::stoi() violates this pattern. If std::optional existed in C++11 it would probably have been used here.
A New Chat Bot Is a 'Code Red' for Google’s Search Business
second picture in is a dude with a chainsaw
And they raised demand by constricting supply. Nice.
You have a bizarre idea of how this works. I take it you have never done grad school research? You can't just independently get research grants, you basically have to be in an established university or research center.

The lab equipment, the computers, all of that comes from research grants. Professors are incentivized by the university to get more grant money (e.g. focus more on research), because that means the university gets more money. This isn't complicated.
Yes. I said I won't boycott / stop buying over something like this.

We're agreed as to why it's offensive. There's no reason to beat a dead horse. A question is what's an effective change tactic. Simply lashing out is not an effective tactic; that's what toddlers to, and it rarely achieves the desired result.

If I don't like morality police in Iran, I can:

1. Completely isolate Iran. That's the most aggressive tactic, and very much a "tough on Iran" stance. It also almost guarantees no change will happen (see Afghanistan today).

2. Engage with Iran. This gives room for dialogue. That's a lot more likely to be effective, especially if I've taken time to engage and build trust first.

3. *Strategically* apply pressure. I've had a lot of luck with this as well.

There are many others.

The boycott tactic is a tough tactic, but I don't see it working towards the results I want. If RPi believes surveillance is right, but leads to a sales backlash, the most that can achieve is being more quiet about it. To me, that's the worst possible outcome.

At the same time, other companies will learn that speaking their views openly is dangerous. That has a lot more cascading effects I don't like.
Safety and security as terms have an interesting relationship especially in Rust context - traditionally in engineering safety means defending against accidents and security means defending against malicious attackers, but "safety" in the term "memory safety" commonly implies security as well. Language is hard...

Considing whether memory leaks are a security problem brings us to the traditional CIA definition of security - the A (availability) is at risk from memory leaks.
Could we just name things functionally+unique?

Functionally as in categories of what they do.

Example:

Oscalc. O: Office; S: Spreadsheet; Calc: Name of application.

There's no reason to stick to only one name, Oscalc in English could be XyCalc in another language.

And no reason why something with many functionalities could not be in more than one place, PvVLC could be ArVLC too plus deep linked to the recording function when called as such.

Then we could, name things how we liked, know what they do and where they are instantly, and get using them for what we want to do even faster.
What they're describing as a "preview" environment is literally my definition of a good staging environment. The death of staging is greatly exaggerated.
Why pay higher stipends if the students are no longer performing professorial duties? It may be the case that they are still warranted, but fewer duties means more learning and opportunities to earn money part-time in coops or private companies.
CYOA is boring, it's just hypertext before the hypertext. Even the easiest if6/ZMachine adventure such as 9:05 has more choices and interactivity.
I wonder if RBMK with a containment would help - the power spike they managed to trigger in Chernobyl was couple orders of magnitude over the design specifications so I wonder if any realistic containment building would be able to handle that withou still bursting in the end.
Not on the subject of mutual aid per se, but the relation between Anarchism and Communism, late in his life, Kropotkin returned to Russia, and met Lenin. That meeting was documented: https://www.marxists.org/reference/archive/kropotkin-peter/1....

A friend of mine described this as "essentially the same as every conversation between anarchists and communists today", which seems largely accurate. In particular, I enjoyed one comment:

> “No, no,” Kropotkin replied, “if you and your comrades think in this way, if the power is not going to their heads, and if they feel that they will not be going in the direction of oppression by the state, then they will achieve a lot. Then the revolution is truly in good hands.”

Draw your own conclusions.
Yeah, we had tooling to load a snapshot of customer data (with PII removed) into an ephemeral environment for when developers needed data that was more authentic. This worked for performance related work or just for features that needed a complex data model to be useful (ML apps, etc)
This post seems almost comically like a collection of self-help slogans, and not far off from blaming people who are in a dark place for getting themselves there. (I also don't understand how "two wrongs don't mean right" connects to the rest of it. Is the idea that one is doing wrong by thinking bad things of wrong that has already been done?)

Also, if this is meant as a corrective to the article (as suggested by "Rather than focus on the badness of the bad situation or stare into the abyss. Pick good responses that are independent of bad"), then it seems that it is a response to the title, not the content. The very beginning of the article emphasises that the point is not to dwell on the bad in order to foster despair, but rather to acknowledge the existence of the bad in order to be able to move from it towards a remedy. If you can't even acknowledge that a bad situation exists, then you can't make a good response to it.
This project is under CreativeML Open RAIL-M license.

Playground: https://huggingface.co/spaces/kakaobrain/karlo

My impressions: out of the box the coherency is superior than a SD model, also the model knows more about popular culture.
Unfortunately the model can only generate 256x256 images and it's much bigger
Yes. I've used my QC35 for several years now on a daily basis, and they've been one of the few tech game-changers for me personally.

I generally use them to lower the volume I can play the actual environmental-noise blocking audio, which is normally a combination (ie at the same time) of white noise (specifically RainyMood) and whatever rythmic soundtrack will help me stay in flow.

I mean by that I don't use them alone, but they enable me to play stuff for extended periods so the risk to my hearing is considerably lower than playing it without noise cancelling.
The oil and gas lobby in the US is staggeringly powerful. Many US regulatory bodies (like FERC) have been captured by industry for years. It has been very difficult to do anything that might negatively impact the oil and gas industry.

So not so much anti-solar as anti-anything-threatening-fossil-fuels.

See also: “clean coal”.
This is the correct answser if the a ton of money suddenly becomes available for something the price of that thing will increase because the amount of the thing hasn't changed. You see this most especially in colleges because we've established a price floor by promising every student 5k and then promising them more loans on top of that.

Then we make the loans non-dischargable and there is no real reason for a university to every place any limit on what they charge for tuition since the customer who is buying the product is not the customer paying for the product.
Yes. It's basically demand response based on turning on and off factories.
> Look up the recent case of Aaron Singerman. He was sentenced to five years, but was out in ten months. Didn't spend a single Christmas behind bars. Now, this was presumably for some form of cooperation, and the circumstances are unclear -- but it's just not true that the Feds won't let you out early if they feel like it.

His sentence was reduced to 36 months in a court action that was publicly reported, and there were several subsequent sealed actions between then and the release.

> but it's just not true that the Feds won't let you out early if they feel like it.

A reduction in sentence is a very different thing than early release.
> A colleague of mine is working on a project involving ensuring that farmers can track their feed and illness statistics correctly to improve their yields.

I doubt that's an example of a job/project that isn't just pure administrative burden. Even your example of a t-shirt printing company is more than just pure administrative burden - people need t-shirts, and people like their t-shirts to have art of some form. While art may be a luxury, it is also pleasant and required to some extent.

However, there are some roles that are pure administrative burden, and I tend to think the GP is correct that these roles are a lot more prevalent than we want to admit. I think the 80/20 rule could be applicable here - only 20% of the population produces 80% of the wealth (read: essential or luxury items) while the other 80% of the world are stumbling on themselves in bureaucracy to maybe make the rest of the remaining 20%.
I think their target audience isn't the typical HN reader, but the rest of the industry, where multiple staging environments are still a common thing (including my current employer).

The biggest issue we had with preview/review environments was resources not being cleaned up properly after destroying the environment (along with the associated costs), but that was more an indictment of our IaC code than anything else. It also didn't eliminate staged environments for things like the non-standard DB that we were using. As long as the changes on the DB side were net-new, it wasn't really an issue, though.
The shift towards energy independence can be seen as a response to the crumbling global order, particularly in the context of America's role in enforcing this order after World War II.

The global order that emerged after World War II was largely shaped by the United States and its allies, who established institutions and frameworks that facilitated globalization and economic interdependence. As a result, many countries became reliant on the global supply chain and the free flow of goods and services.

The current situation can be attributed in part to the damage done to the United States' reputation as a security guarantor due to the failure to deter Russia from attacking Ukraine and the negative outcome of the Afghanistan disastrous withdrawal.

From my personal experience and through my connections with people in Eastern Europe, I have noticed a shift in the perception of the United States and NATO as reliable sources of security. While there was previously a belief that these countries could always be relied upon for protection, there is now a sense of uncertainty and concern following the failure to deter Russia and the refusal to provide offensive weapons. This has led to a greater focus on acquiring their own weapons for self-defense (including ! talks about acquiring nuclear weapons). I very much doubt things are much different in Japan.
I think that anarcho-capitalism, and to a lesser degree even libertarianism, is a fundamentally flawed philosophy because of it being against hierarchies that "suppress" their followers and in support of hierarchies that bolster them. In other words capital owners down playing the state and propping up "free market economics".
I grew up with the same habit, and sometimes could actually see the wincing in the audience during recitals. It was so disheartening. Last year I started deliberately playing incorrect notes during practicing, ceasing to play, and getting back on the melody line without losing the beat. It's improved my live playing a great deal.
>… are now going to move out of Soldier Field for some crazy football village they are going to build in the suburbs

There is no way that is going to happen. It was always a bluff. Lightfoot practically called them out on it as well.
All I can say is I am incredibly amused by this.
A lot of areas in the US are great for solar, but for many of the urban areas, it sucks. Solar in and around LA or Denver? Great! Solar in and around Detroit or Chicago? Awful. I brought out an installer and he literally LOLed when he saw my house. Great trees, wonderful yard, compact house, but hardly any location for solar given the amount of sun we get where I live.

Not to mention the carbon costs of producing solar isn't great.
Yes to clarify this is explicitly the percentage before being sent to "reprocessors", however here is a breakdown of Bristol council: https://www.bristol.gov.uk/residents/bins-and-recycling/what...

It's a shame that they do not link to the direct companies so you can trace the waste to completion but it looks like a good deal of it is not getting shipped outside of the UK.

I believe there are a couple of bills being proposed to also stop this practice completely, although I don't know how effective they will be.
Yeah but none of this has anything to do with healthcare as it's popularly understood.

If you take drug overdoses, suicide and maybe homicide out then things don't look that bad.

This isn't any of the things that people complain about when they say healthcare is too expensive.

No doctor is going to convince me not to like getting high so much that I'll take a chance on dying for it or that when I say I could just kill a man I'm not singing along with Rage Against The Machine. Anti-depressive drugs are in theory wonderful but I'm unconvinced (and please someone, convince me I am wrong) that the suicide rate wouldn't be up if more people were taking them.
Keep clicking in the box until it goes away.
Never? That's such a defeatist/pessimistic take. Looks like its way more difficult than expected, sure. Looks like new breakthroughs will be needed maybe.
Never seems unreasonable, in general and in specific.
full article -> https://archive.is/7zMvW
this is NOT a limitation of Android. Android has supported wakelock based notification managers for a long time. And FCM works pretty much the same as was mentioned in the OP. The FCM manager maintains one long polled connection to Google notification servers and every other app subscribes to wakelocks from that manager.

Your app is only woken up by the OS if FCM receives a notification for you. For e.g. Xiaomi will not wake you up even if you get a notification, unless you're on a white list (the much glorified Xiaomi whitelist).
When Android is put in power saving mode, the FCM manager optimized this even further.
>the more money a person has, the more adventurous they can get in producing value.

I think it is more a case of the more access to capital they have. People who have demonstrated that they can create a lot of value usually get access to lots of capital, even if that capital is not theirs. It's pretty standard to not fund business ventures by one's self. An indication of a good business plan is buy-in from others.
How to Throw a Party at One of the Seven Wonders of the World
> not being part of the web,

My website is called _web_site, because it is part of the web. You are really funny. Not sure why this should be egocentric, having a website. I am offering a service with my website to others. They are using it. Still do not get the point why I should host the data of my users on an infrastructure that I do not control. Self-hosting your stuff, technology independent, is the real freedom.
You load sixteen tons, whattaya get?

Another day older and deeper in debt

St. Peter don'cha call me, 'cause I can't go

I owe my soul to the company store

- Merle Travis, "Sixteen Tons"

The TL;DR of why this is bad is that when employees are paying, or are indebted to, their employers, even in a roundabout way, it's really easy for that relationship to become very abusive.

The company towns also often payed in scrip, which was basically credit at the company store, and, gee, wouldn't you know it, the company owns all the land to the horizon, so there are no other stores in reasonable travel distance! And if you need a little credit because your pay's terrible after your rent (to the company) comes out, and the prices at the store are marked way up, why, they'll be happy to extend some....

That's the extreme version, but it's bad enough that even inching that direction is something worthy of concern. One ought be wary any time money's flowing from an employee to an employer.

The robber-baron version is basically the thing you see in capitalist-dystopia sci fi like The Outer Worlds, but it actually happened.
ByteDance Inquiry Finds Employees Obtained User Data of 2 Journalists
The Year in Comments
Wow, this is pretty awful. Willfully defeating a security feature of the kernel.
Who cares about narrative? We're just here for interesting discussion. The problem is that ideological battle comments are predictable and therefore tedious, and evoke worse from others. When accounts use HN primarily for that, we ban them, because if we didn't, the entire site would be taken over by such stuff. It's the same regardless of which ideology or narrative the account is subscribing to—it's just as boring and destructive whichever way.

https://news.ycombinator.com/newsguidelines.html
Natural gas is attractive from a capital, operations, and expense perspective because we wave away most of the real cost as something we don't need to care about. Pesky externalities like carbon emissions are someone else's problem. If we accounted for them in the same way we account for the costs of storing spent nuclear fuel natural gas generation would be extraordinarily expensive. We basically let natural gas plants dispose of their waste product by venting it into our communities and then claim that natural gas is less expensive.

Well, duh. Of course it's less expensive if you only have to care about the lifecycle of half of your process.
> If the query is for OLTP, then the design is wrong. I don't know your problem space, but pulling data from 128 shards to resolve queries while a user is waiting is just a really bad idea.

well, that's the basic idea of microservices lol. forget living on a different shard, lots of times your data is going to round-trip to JSON and back a couple times and then be manually joined in some backend/service layer, or in graphql!

one bad abstraction I see a lot from microservice teams (that don't really understand it past the high-level concept) is "every table is a service", or "every minimal set of tables and its codeset is a service" and that's exactly how that ends up. Microservices really ought to be chunky enough to do their business without ending up calling 27 different services under the hood just to do simple operations. Obviously there is a point where it's too chunky, but too micro is also bad too.
What would the end result be if a significant percentage of people started using ad blockers? I mean like 50-60%,enough to make the current "free" web non viable to run. Litigation against the end users? What happens if I'm legally required to view an ad that gives me malware?
"More choices is better" is bullshit.
full article -> https://archive.is/IxyHr
I am the first in my family to graduate from college. I grew up incredibly poor. It was presented as THE way out of poverty growing up. I work in a field completely unrelated to my degree. My university degree didn't help my earning potential. I ended up making plenty of money in tech, so my degree debt didn't matter much.

I have a lot of kids. Only one of them has any plans on going to college. I try to dissuade my kids from going to college. There are a few degrees where going to school is the best path. But for most areas of higher education there are superior ways to learn the material, if the education is the goal. I majored in English Literature. Completely worthless degree. I should have just joined a few book clubs or hired a writing coach. Something like https://writeofpassage.school/. That would have been far less expensive and probably better.

Higher education in the United States needs an overhaul. $34,000 in California is ridiculous. I hope they get their money on the path to us changing the foundation of higher education.
...I worked at a hotel, thanks.

Not in room cleaning - I was a dishwasher - but yes, I know how it works.

If you think 3 minutes in the bathroom is the same as an actual break, it's not. They appear not to be in a rush because they have to set a sustainable pace. That doesn't mean it's not difficult, especially for females. Many things that are easy for males physically are a PITA for us.
Frama-C: A platform to make your C code safer and more secure
Everyone wants to be Google, and I bet most managers see lock-in to their platform as a good thing, and ease of porting to competitors a bad thing.

At least, if they feel big enough to gain initial traction...

Huawei is pushing their own thing, alternative to Firebase[1]; Amazon as well[2].

There's a dozen services that provide cloud-based services to send push notifications to various services. I think the incentive to gain subscription revenue was greater than the opportunity to make these partially redundant.

I'm not sure why it took so long for something like UnifiedPush to appear. It took a fair bit of debugging, but ultimately, it was mostly up to one dedicated individual (S1m) with Android experience.

Before UnifiedPush, there was OpenPush[3], but it never materialized.

[1]: https://developer.huawei.com/consumer/en/hms/huawei-pushkit

[2]: https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-applica...

[3]: https://bubu1.eu/openpush/
Sorry if I’m not understanding something but…

Doesn’t Apple and Google on the OS level only allow push notifications to come from its own services? Like, they look for the signature to be compatible with https certificate etc. Otherwise the phone could have a ton of push notifications incoming from anywhere on the Internet. The APN service for instance would only route notifications to a phone if it came from a registered website. How do you get around this?

As far as I know, even for VOIP permissions, iOS only wakes your code up if ITS APNS SERVICE sends the notification. How are you able to install a long-lived application in the background on iOS?

Similarly, the phone radio is listening for calls from the nearby cell towers in the network, not from absolutely any tower. I guess a Stingray can impersonate one, but they would probably need to fake the attestation, right?
If you had to do joins on different shards, then you have implemented sharding wrong.
Sci-hub has done more to change science and half the world wants to ban it.