skysight-inc/HackerNews huggingface dataset:
If you want a simple and elegant state management module then check out Zustand. I have been using this for a year or a bit more and am absolutely happy with it.

https://github.com/pmndrs/zustand
I recommend Jared Diamond's 'The World Until Yesterday' ('Guns, Germs and Steel' also covers some related topics), or Frans de Waal's 'The Bonobo and the Atheist'.

In general I think there's broad agreement that in bands and small tribes of up to a few hundred people there's basically no hierarchy. Even when a chief emerges, he/she doesn't have a lot of power over others - they're more like mediators, they alleviate conflict etc.

I think you're making a mistake that I've seen often (Steven Pinker does smth similar), namely assuming that hunter-gatherers behaved like settled societies. They didn't. Most of the increase in violence comes after the agriculture revolution and the development of large settlements. For most of our history we roamed the land in small packs that rarely interacted with outsiders.

This is not to say that hunter-gatherers lived in heavenly harmony, just that they mostly lived in collaborative equality. They were also strongly independent (note that independence/individualism and collaboration do not exclude each other. Individualism however is not the same as selfishness, collaboration is not the same as collectivism).
~This annoys me as well~. I find this degrading to my profession as well. Engineer is at minimum BSc, and no, a plumber is not an engineer.
For errors the ? operator is both correct and easy most of the time.

But for options it's trickier. Unless the surrounding function is structured just right, the equivalent to Typescript's and Kotlin's ? operator is .map()/.and_then(), and that's pretty ugly. .unwrap() is easier.

Try blocks might help.
You assume too much. For example, you assume that analytics aren't already run on a separate data warehouse.

Ease of accessing older data is an important aspect of database holding transaction (not meaning transactional db). Wouldn't you want to check your transactions on bank page that are older than 30 days?
Digital skills really should be taught in schools/universities; at this point, they're something the average person should have at least a passing familiarity with.
There was a statement from IRS last year I think.
They stated that it takes too much time and money and court battling to go after rich and they will focus on the middle class only now.

If we didn't have computers we would be playing with guillotines long by now.
Either you need to restrict arithmetic to values which can’t overflow, or yes, you need to check for overflow manually. Note that you need to do those checks without actually triggering the overflow because once undefined behaviour is possible, all bets are off.
Apple is reportedly arming its upcoming iPad Pro with Thunderbolt port
It's been a problem almost everywhere I've worked. Marketing / business folks just want their analytics, and they don't want to spend any money on it (e.g. they don't want to pay for some privacy-respecting 3rd party service, and they don't want to pay devops to stand up an internal OSS alternative).

Unless you have really strong dev leadership, the trackers will end up in your product.

I'd love to hear from folks who have successfully blocked their business team on this. What tactics did you use?
It's all a communications issue.

I haven't seen any decent effort to explain to the regular public the scale of risks of anything.

Yet it seems very possible. For example, each person could have presented to them a personal "health card", which showed to them what might happen to them in the next 10 years. It would have on it "Dies from Heart disease", "Covid", "run over by bus", "still living and healthy". Each would have area scaled by likelihood.

Then they could be given another identical health card showing how their health outcomes would change with a vaccine.

Upon seeing "Oh, I have more chance of being healthy in 10 years if I take this vaccine", they'd be much more likely to sign up. Likewise, after a cancer diagnosis, they can be given a new card with "dies of cancer" now being a massive area, and they can readjust their priorities.

I think the trick is the cards must be customized for everyone, taking into account personal risk factors (age, do they smoke, how obese, past health issues, etc.) An entire government department could have as their job reading papers and coming up with a method to produce the cards as accurately as possible.
> You can go in a bus or car with mask if people don't talk and introduce air from the outside.

Don't talk don't breathe wear two masks don't leave the house we're all gonna die.

In reality kids are not an at-risk group and there used to be a healthcare maxim "first, do no harm". When did it become OK to hurt one group (young healthy people) in exchange for hypothetical benefits to another group?
https://www.law.cornell.edu/regulations/california/13-CCR-Se...
> The presence of integer overflow in a program can facilitate a whole range of exploits, even with memory safety.

Do you have examples that do not involve array indexing? (which are uncommon in Rust because iterators exist and are faster).
>The question is why COVID vaccine is so harsh, and why is it different than a typical flu vaccine?

Is it though? You can certainly get a severe reaction from the flu vaccine.
Many severe long covid cases are benign in the acute phase. Multiorgan involvement seems to me like it 1) doesn't occur in the first week 2) doesn't occur in benign cases.

Also, from the abstract: This model could be used to identify individuals at risk of long COVID for trials of prevention or treatment and to plan education and rehabilitation services. So this is not about "first week of illness indicates COVID severity" per se, this is about creating a prediction model to triage cases. It makes sense to focus on early symptoms for that.
They also don't allow you to encrypt data on first setup. So you need to first upload a few files unencrypted before you can set your key. That's why I'm not using them. Basic encryption feature is not thought well...
Well, you can find the term "bike pump" even on newyorktimes.com and that's not about hydraulic brake levers, so there might be some difference between technical language and common usage even in English.

But I'm posting this to say thank you, I was completely unaware of this detail. In my mind, and likely in GP's mind, the term pump was characterized by the piston principle, not by the medium. And I realize now that the "pumps for air" incorrectness is much less common in English than in German (my home language).

Apparently in engineering German the distinction is exactly the same as in English, but it's completely absent from common usage. German never even adopted a verb for high pressure inflation that is not derived from pump. Other than that, the terms pump and Pumpe are extremely similar in English and in German, which is unlikely due to common Germanic roots but because of something much more recent. I suspect nautical terminology which must have been a strong language unifier before navies became a key element of national separation.
> disqualifies him from being a public figure and leader

Well, to be honest the 'imaleader' bar is pretty low at this moment. New leaders should try to distance themselves from most previous leader's behavior. Expectations about public figures are really far from reality.
Don't forget paying reasonable salaries.
> presenting a messy picture containing the items of said list.

It felt like a way to show the chaos factor in failures.
Just to add to this: GDPR does not apply here.
I personally like panics and assertions, but the "safety" of the approach would still have to depend on the characteristics of the system. I do not agree that panic-on-OOM should be considered "safe" at a global level hidden within a std lib, where there is no knowledge of the target domain.

For example, if an attacker could arbitrarily inject overload to restart rate-limiting processes and then abuse this to trivially brute-force OTP logins.

The definition of safety with respect to a resource in general always needs to include the safety of the system as it crosses the threshold i.e. in this case into out-of-memory, so if a system claims memory safety, the first thing I would want to ask is, what about OOMs?
Not in C++ or Swift, no—to do it in the general case requires trying to cast each member of the array to the Derived type, and returning the null optional if any of those conversions fails.

E.g., given an array of Animal, you’d like to see if you can convert it to an array of Dog. Neither the compiler nor the runtime stores information on the array itself to say “it just so happens that the concrete Animal type of all the things I hold is [Dog/Cat/a mix of both],” so you have to go through the elements one by one.
I think Backblaze will think two or three times before integrating spyware into their product in the future, so I agree that jumping ship is the wrong answer. Now, if it happens again, then yes. I think jumping ship is the right move.
I really like what you have done here. I have two questions:

1. Do you mind sharing examples with async calls? This is very common and I really look for this example as quick as possible

2. How you do connect two stores? Say one triggers and update in the other...

Thanks a lot :)
Wouldn’t their lack of stealth give away the element of surprise for the stealth elements ?
> let's move on and talk about effective leadership for the movement instead.

Let's move on and welcome Stallman back, because we need him more than those that slandered him.

Let's also talk about what should change so it won't happen again, to anybody else.

Not everyone is a gentle giant like Stallman is.

Do you remember what happened to poor Aaron Swarz when he was falsely accused and prosecuted for things he hadn't done?

I, speaking for myself, don't want an FSF were people can get thrown out by an internet mob.

I want an FSF that defends its members and judge facts, not opinions.

I think Stallman is one of those persons, but I very much welcome other candidates.
Congrats on launching :) How does it compare to React Context that is built-in?
> It's still mind-boggling to me that it's possible to get (a constrained subset of) C# to beat hand-optimized C++.

To me the interesting question is -- what can you do within this constrained subset?
5-part Linux commands series
Happy Wasabi customer here. On the other hand, I suspect Backblaze won't pull something like this again after this backlash.
How to Remove Personal Information from the Internet
If you account for the cost of living, it suddenly doesn't look that great. Then in the UK chances are that you'll work for an agency - they'll charge the client £1500 per day for your service and you'll get fraction of that and there is a system around that there is always some intermediary that pockets money for nothing.
I think they probably mean that, if there’s lots of cases, then there’s (in principle) lots of available information to study, regarding whatever mechanisms are behind the long covid effects we’ve seen so far.
I would hate to oblige you, but if you could share either the principles behind that lesson plan, or the plan itself, that would help a lot of teachers. They might not always be strong on respecting intellectual property, but they sure love some on-line organisation. I know I’d love it to help “non-technical” colleagues understand that software is not a priesthood.
Product Analytics Is the Number One Measurement of Digital Success,Report by HBR
> The overwhelmingly mentality on HN is that All Ads are bad.

Ads will at best waste my time/bandwidth/processing power and at worst compromise my privacy and/or convince me to make a bad financial decision.

I don't see why this mentality is wrong?
Well, self-hosted analytics. And if the deal is conversions, you can send them to Google from your own server, sending just the user ID.
Releasing Blade Icons v1.0
This is exactly my issue!

I started contracting on £x per day, a year ago they put me In-Scope of IR35 and my day rate went down by 13% due to a cost natural approach by the client. I then have to pay tax on that.

Before I didn't pay myself the whole amount as I wanted to save money in the company for a rainy day!

I am now thinking about moving to the UAE
This has nothing to do with C programming. If an arithmetic operation could overflow, you always have to add a check regardless of programming language. It's simply that a lot of high-level code doesn't care about such a level of correctness. Another exception are languages like Python that automatically upgrade your integers to arbitrary precision on overflow.

That said, most of the time you end up counting objects in the current address space. If you assume that there can exist no more than `SIZE_MAX` objects in memory, you can avoid many overflow checks.
Start freelancing right now and increase your pay by one third.
I'm a backer, they update regularly and just released a demo you can play now.
I see, so checking for the overflow flag wouldn't be good as you now have your program in an undefined state.
This is frankly a problem all over (the IR35 / IT issues are true, but hell, salaries all over are ... less than one would choose if the power balance between capital and labour was more equitable)

I honestly don't know how to solve it absent massive Government action, and while I generally applaud it, its unlikely to be effective / sustainable.

Maybe a big trades union resurgence. Possibly a truly massive increase in the number of small (not individual) service firms.
Hang on, you're arguing the skills shortage is because salaries are not high enough...

...and at the same time also arguing that the skills shortage is because big companies are offshoring jobs overseas to reduce their high salaries?
YouTube and Patreon Still Aren’t Paying the Rent for Most Creatives
No. Feeling ill is mostly due to the innate immune response which declines with age (so seniors have fewer side effects). The adaptive immunity triggered does not seem to be correlated with the innate response or feeling ill.
The grandfather'ed post was:

> The fraction of Emacs users who use it primarily for things other than programming is a lot bigger than most HN readers think it is.

Whether it was used by developers or not, didn't have any bearing on the question/data.

I don't know whether I would draw the conclusion they primarily use it for coding or "other tasks" from the graph; for example a developer using Emacs for `org-mode` only with the occasional git usage would check both boxes.

Just as you've reached the conclusion that 90% means all of them use it primarily for coding, an equally valid conclusion is that 50% use it primarily for /not/ coding.

I don't make that leap - but it seems strange to discount one possibility heavily it favour of another; could you elaborate why?
Re-usability is a important feature: if you write a Rust library you can reuse it from most runtime-based language with “native modules” (or whatever they are called in the said language), exactly like a C library.
> but it is certainly not as straightforward as you make it seem.

I never claimed it is straightforward; it is anything but. As a practitioner and advocate of formal methods and verification, I've been following research in software correctness for many years (and have written much about it, e.g. https://pron.github.io/posts/correctness-and-complexity), I've come to realise how complex the problem is, and there's more we don't know than we know, and even the things we know are problems, we don't know what the best solution is, because often solutions carry with them more problems.

Nonetheless, there are certain principles. We know that we can eliminate certain bugs with compile time guarantees; we also know that code reviews catch many (many!) bugs, and so making them easier helps. But what if these two are in opposition? It's not easy to tell which wins in which circumstances.

> In the end though, for the Zig case I agree that the jury is still out.

True, but the jury is still out on Rust, too. In fact, for most languages. However, there is no clear argument that we should assume, a priori, that Rust results in more correct programs than Zig. Many such arguments in the past have failed to yield positive empirical results (e.g. https://youtu.be/ePCpq0AMyVk). In fact, given empirical research, the safest bet is to assume the null hypothesis -- that there is no difference. Out of an abundance of caution, I'll assume that languages whose designers place a strong emphasis on correctness might achieve it more easily than languages whose designers put no emphasis on it at all, but Zig and Rust are in the same category here. Both are designed with correctness as a primary goal. But as their design and means of achieving correctness is so different, I think it's impossible to make an educated guess as to which of them, if any, yields more correctness more easily.

If we want some bottom line, it is this: software correctness is so complex, and solutions are often so non-obvious (i.e. many work in theory but not in practice), that we cannot say anything with certainty until we have actual empirical results, and even then we need to be careful not to be careful not to extrapolate from one study to other circumstances with different conditions (i.e. that TypeScript seems to have fewer bugs than JavaScript does not seem to extrapolate to the general claim that typing always reduces bugs compared to no typing in the same amount or at all, when other languages are concerned).
The Tyranny of Life Milestones
This is an excellent overview.

My 140 characters version is
Salary stagnation and outsourcing is still the problem
https://xoofx.com/blog/2019/03/28/behind-the-burst-compiler/
I don't mean to be personal but...

The company employing you likely paid tax on the money it got, now it passes it to you as wages and you pay "another" tax. The same for investments. Why shouldn't you pay on inheritance? You haven't paid tax on that property before right?

And with an inheritance, the inheritors haven't done anything to deserve not to be taxed. Workers have worked, investors invested, inheritors are basically lottery winners.

People don't like how inheritance tax feels but its actually one of the most logical, fairest, least economically expensive taxes.
No, that's not the same reasoning at all. It's an irrelevant and outrageous strawman where you compared the use of advertising to "using guns ... as a criminal engaged in a drug war". Ridiculous at best and I'm not sure what temptation you resisted.

If you have a real rebuttal against advertising then reply with that instead and we can discuss how technical implementations can be fraught with security mistakes and errors, regardless of industry or product.
My question does have to do with C programming. Other languages (not C++ of course) do not have signed overflow considered an undefined behaviour. My question is specifically about this.
Tracking is not ethical. Corporations only get away with it because most users don't realise it's even happening.

If you went into a retail store and an employee followed you around the whole time with a notebook and stopwatch writing down everywhere you walked and every product you looked at, you would rightly be creeped the fuck out and tell him to stop.

This is exactly what online tracking is, but done virtually.
Having been to Rio I'd say for my sample of one Australia, the desserty bits win. Freakish horizon to horizon blue day after day.
Loading buffers and textures are about the only things that are kind of stable in multithreaded OpenGL. This is the probably the only use case anybody cares about. Go beyond that and you'll have a high chance to hit strange driver bugs.
Meh. This is an extremely basic drum machine / step sequencer with a larger number samples, and I'm pretty sure I've seen the "sample cloud" approach lots of times by now in various VSTs. Probably still fun for folk with zero exposure to music production!
I’m surprised to have not read anything about Brexit. I’ve worked at half a dozen software companies in the UK, and the majority of my colleagues were from the EU — many in situations that made leaving tricky.

Other cause for concern, the lack of investment in the NHS: many have a spouse who is a health worker, or they have specific medical needs.
Especially now that our chancellor family owns Infosys and he already pushed changes (against expert advice and damning report from HoL) that put small local IT business at disadvantage. Telegraph also wrote they are looking for skilled workers in India indeed. Looks like these will be golden years for Infosys at the expense of locals.
Private and Customisable Profiles on Peergos
> according to our government officials "they are all the same"

Who can fault people for mistrusting their government, when they keep on lying and lying?
UK developer here. Can confirm what the above poster is saying, especially:

>The problem is that salaries in the UK are not attractive as you quickly get on the higher tax bracket. This was made worse when changes to IR35 passed and now if someone works on a b2b basis is likely going to be caught by new rules and it means no more business expenses, having to pay employer's NI, apprenticeship levy etc. and no employment rights.

I was directly affected by this and I'm looking to leave as soon as possible.
Your bicubic image looks different to my bicubic images.

Starting with http://www.johncostella.com/magic/small.png when doubling 3 times I get this result in Photoshop CS2 https://i.ibb.co/9tCLPGS/PSCS2triple.png and when doubling 3 times in GIMP’s cubic the result is https://i.ibb.co/p2b0Trq/GIMPtriple.png

This is the result when using GIMP to go straight from 57x43 to 456x344: https://i.ibb.co/r0SXVY2/GIMpstraight.png and Photoshop CS2: https://i.ibb.co/Sn1xt3Y/PSCS2straight.png

Which one is the correct representative of the bicubic filter?
The beef is that both fields struggle to be anything but descriptive.

Both semiotic and memetic engineering are both a joke on par of "don't think of elephants", much less science.

Phlogiston was descriptive too. Arguably useful. Completely wrong as it turned out by serious study.

The key problem with meme as a concept is that unlike biology with virion the concept cannot even predict how successfully the thing will spread out to where.
Similarly with signs and how will they impact communication.

The real test of an idea is what predictions it makes not how well it describes things.
I'm more inclined to believe that the pay is just not attractive. Or, maybe there's some kind of tax legislation trap that prevents employers from offering attractive salaries, and/or drives people with high digital skills away to other markets.
This is not entirely true in the UK. The relative pay ratio for skill difficulty to pay is very low. Programmers get paid like plumbers.
Automakers should make cars with less chips.

Automakers should make cars that are still usable when non-critical components fail. Chips aren't the problem; too many points of failure is the problem.
The restrictions are: no reference types, manually manage your memory. My previous job was basically writing loads of burst code and it was so ergonomic and fun to write, and (as the GP says) you basically get 200x speed up for free.
In the instance maybe, but the effect is similar over time. Both of these have effective countermeasures.