skysight-inc/HackerNews huggingface dataset:
If you're not making assumptions about the values stored in your variables, then every little arithmetic operation can lead to unexpected wraps (UB for signed types). What follows is that we need to make assumptions. Don't write an if conditional in front of every operation like a forgetful person - but assume that "my_structure" contains good values that you can safely add.

Usually it's very easy - require that size and offset are validly indexing an object, and require that objects are of a sane size (I rarely have in-memory objects larger than a few megabytes, and for most code I posit that it is a mistake to not chunk and stream huge datasets). Done, no real need to worry.

If you cannot make any assumptions about the values contained in a "my_structure" then that means the code is at an API boundary, which is the perfect place where such check (if-statement) must be placed. At internal code places, checks are wasted effort, and at most a compiler switch to detect wraps (logic errors) would often be a much better choice than paranoid code where each line of code can't trust the previous line, and where one can't see actual work being done because it's all covered in mistrust. Unnecessary mistrust (i.e. mistrust at places strictly inside maintenance boundaries which are not strategic checkpoints) only makes it hard to write code that actually does something, and might possibly cause more bugs than it could ever save.
There are a lot of ways of defining each of these, and the number of hands-in-agreement will probably depend on the minutiae of each definition.

FWIW, I think your last point is the most relevant. It's hard to delve into this sort of thing without stepping into decades/centuries old rhetorical cliches but... let's anyway.

Industries, companies, markets and such go through eras. In the early 1920s, auto manufacturing was on a tear. 20th century factory efficiencies had matured, with prices dropping meaningfully every year. The market had matured. People learned to drive. Mechanics existed. Financing existed. Roads developed. Everyone wanted a car, but not everyone had one yet.

Possibly not without coincidence, the start of the great depression coincided with the end of this era. In this and later eras, everything was different. Margins were lower. Prices stopped dropping. Cars-as-fashion. Planned obsolescence, either mechanical or fashionable existed. International expansions became important. Etc.

Not everything about auto-manufacturing post 1927 was bad. But, a great many wonderful aspects of the youthful era were gone. "Consumer friendliness" is, perhaps, one of them.

TLDR, We probably wouldn't be wondering these things about pfizer, citibank or the Walgreens Boots Alliance.
For many this has become a habit. Sometimes it is worth raising it as an issue Ind the particular situation.
Really impressive. With work I could easily see this being a product with big customers.
Have we had an independent investigation? No? Then let's talk about it more.
The problem with the cult of The Science is that like all religions it needs outs when the actual data and science contradicts the faith. This is where the "math is racist" type of craziness comes from.
Content Addressable Memory and Neural Networks
It seems to me that a Neural Network is essentially a distributed form of content addressable memory (CAM). (https://en.wikipedia.org/wiki/Content-addressable_memory)

It should be possible to extract the information in the Neural Network and collapse it into a flat content addressable memory. The Neural Network is basically a matrix of stored values. The input to the network is a vector. The output is a vector of weights.

Each input / output pair recognized could be stored in a CAM, giving O(1) lookup.

You could "invert" it by using the output vector as the key, giving the input on lookup.

Of course, you are unlikely to find an exact match on the input vectors. Instead you'd like to be able to provide an "interval" for each input vector entry. Values that fall within the interval provide a fuzzy match, essentially a Fuzzy Content Addressable Memory (FCAM).

Such fuzzy matches are easier to implement in an analog fashion, such as a charge on a capacitor. An interesting question would be how to modify the circuit mentioned in the Wikipedia article above to provide analog matching.

FCAMs would make an interesting model of neurons if their "match" was dependent on their history of access as measured by the charge remaining on the capacitor, which would leak over time if not accessed.
> There was 150k+ active users of Hacker News in 2021 and below is the list of the 10k most active users.[1]

- [1] https://whaly.io/posts/top-10k-commenters-of-hacker-news-in-...
Being a waiter, working in a casino, being a cab driver, and running a coffee shop... you know, the secret to banning people is that you're always fair and more equitable than everyone else who's screaming, so when you do finally do it, everyone is either happy or scared they'll be next. People are surprisingly easy to manipulate this way. It would be wonderful if more sites activated that part of people's fear-lizard-brain more often; good manners are partly taught and partly enforced.
Ironically the "my mom" and "but my grandparents" angle is what has always been used to dumb down and introduce user-hostile patterns.

Surprise, after 20 years the developers and managers assume they are building software for retarded un-learnable "grandparents and mothers", the end result is well stupid software.
The asylum is being run by the inmates.

> constant changes to 'systems that are working fine'

This is the one that annoys me the most.
Constantly breaking things that work. Windows 11 is a perfect example, can't think of even 1 compelling reason for it to exist.
Because dumb people (including me) click on ads and buy stupid shit.
V was also called out by Andrew Kelly (Zig's originator) and Ginger Bill (of Odinlang fame). A lot of people who knew stuff about compilers and languages had things to say about it, it wasn't just one blog.
I'm open to arguments that the benefits of such safe spaces outweigh the negatives, however pretending that this isn't race-based discrimination is disingenuous.
The accusation was that the bed made people uncomfortable, which is reasonable reaction when coupled with various other kinds of things he did to make people uncomfortable. As far as I know, the original allegation was not that he was raping anyone, though given the overall idiocy of mankind I'm not surprised it mutated this way.

And not everyone was aware that he was living in that office, apparently.

Personally, I think cleaning up one's act in ways that in no way compromise one's (public) stances would have been a low cost for keeping the most cushy academic job I ever heard of.
Honorable mention also: https://based.cooking/
And then Google Translate is applied and it all turns to mush or worse.
There is absolutely nothing “sad” in admitting this. The great lie of the latter half of the 20th century was this mistaken belief that there is some baseline, normal for humans.

Although I think it can go off the rails a bit sometimes, one of the most promising aspects of medical research and science in the last 20 years has been a recognition of how our brains work differently, and how much of our behavior is largely out of our control.

And from that comes a wonderfully freeing idea. Specifically, that what works for one person is not going to work for everyone. It’s a blessing to find what works for you (even if it’s “abnormal”), and to have the courage to do what’s best for you.
Every women from a stem faculty will get a job, just like nearly every man does. This focus to diversify certainly will prefer them over men. Women are already more successful in education. Where do you want to go from here?

I reject any companionship to men as a group, just for the record.
Note that if you send any non standard request headers, for the CORS response to be cached and reused, you need to make an initial request with exactly same set of headers, which means it is only possible via JS (preload request can't have extra headers). Hence inlined JS to send the "warmup" request. You can wrap it in a promise which resolves on response, and only then do the actual app request.
> an email will give you lots of email

This is why I rarely use the same email address longer than 1 year now or try to manage different accounts for different spam. I just change the password to random crap and forget about that email account, while setting up a new one.
Blaming people suffering from mental illness for not finding the energy to exercise, sleep and eat healthy and socialize.

Your whole post is an example of failing them.
Exactly.

Previous posting from 2020:

https://news.ycombinator.com/item?id=23151934
“Programs are meant to be read by humans and only incidentally for computers to execute.” -- D. Knuth

I believe that the ones who create error messages like "Invalid value" (without telling you the value nor why it was invalid) or "File not found" (without telling you the attempted file path) are not really good programmers.

Concise != stripped from essential information.

And I'm saying that as someone who always valued concise style of writing, and often got an equivalent of D (or sometimes F) in Polish writing assignments for my essays being too short. :D
the market might also follow regulation.

that's how we got clean air and water. Just saying.
Hello, Youki
I wonder. Does a painter take into account how the paints dry and age when painting? Say, so that it appears at its optimum a year after it is finished as opposed to directly after finishing? Is there a purpose to do so?
None actually and it would equalize the playing field within a few generations. My family was discriminated because of racism and while I am covered, I hate people advocating for this far more than racists that are honest about it. At least they have self-reflection compared to moderately educated faculty staff and have the decency to state their opinion.
I don’t think that’s true. A lot of the people who have had the greatest impact on the world were never financially rewarded for it. Many aren’t even recognised for their work.
...to a mentally ill person.

Marriage means you share your spouse's life and well-being. Often for better, sometimes for worse.
github stars are a pretty crappy measure of anything. maybe for "people who've seen it and thought it looked vaguely interesting" (which something like V that makes a big splash with gigantic promises easily hits), but even that is vague, given how differently people use them. (People making a big deal out of them is a pretty good negative signal though)
Congratulations on making a decision long before it became a serious problem for users and developing the habit.

The vast majority of people are not like you. Most people succumbed to these practices over a gradual period of a decade and as such are locked-in habit-wise to this with an attention span that is hard-pressed not to focus on the matter.
I read your comments as far back as I had the time and most are abrasive. If you tone it down you will find it easier to be heard.
I am not a cricket.
I told you what to do, dont use that software, dont accept the license or terms, uninstall, deactivate, deny. Read a book, go hiking. You arent forced to use shit software.
Last time I entered the EU (fully vaxxed) I had to pay $375 for a 24h PCR test in San Francisco because Portugal, unlike most EU countries, was not yet accepting US proof of vaccination.

I was pretty happy to pay “only” 100 EUR for the next one, which was to go between two Schengen countries in August, yay borderless Europe!
They haven’t been dominant in the home console market in decades, but their control over the handheld market is absolute. The PSP is the only handheld to ever compete, and even Sony have bowed out of the whole handheld market.
The bare idea of running a separate process as the condition of a loop is just disgusting though. I really don’t get why are we stuck with bash.
If so, how would that forgery substantiate a claim that he was racist?
>I think Google works very well.

>Often the answers are not the best.

Well, which is it?
Sonic 3D: Director's Cut (2019)
> But when you stop and think about it for a sec you realize that we need intermediaries or else the richer will become unstoppable kings with control that cannot be deflated.

I agree. This is something that I'm not sure people who go into crypto fully understand with the resulting consequences. The FED is basically printing money and I can understand people who don't agree with the inflationary mechanism that is built into fiat currencies - this is one of the main criticisms of the fiat system because it's debt-based.

On the other hand, having no means to get taxes (because of anonymous currencies like Monero and anonymous wallets) and having no control over the currency is a safe way to a plutocracy. Some would argue that we're already living in a plutocracy, but currently we have democratic ways to intercept (although we're currently not good at exercising that power). But if it's technologically impossible to intervene, there's not a lot of ways to fix this.

Good article about this [1].

[1]: https://medium.com/@dionyziz/blockchains-are-inherently-plut...
AaronOS
I recently tried to backup my Google Authenticator setup from my smartphone.
It's possible to export all secret keys to another smartphone using a QR code, however taking a screenshot is prevented.
So how am I supposed to protect myself against device loss or corruption, if I don't have another smartphone to use for the backup (other than taking a picture of the QR code)?
Firefox mobile moved the address bar to the bottom several months ago - it's good to see that being copied elsewhere too.

The bar at the top made sense for pc, but it's a clear improvement on mobile.
It lacks some desirable properties as chemical warfare agent. For one, it doesn't disperse easily and is even noticable at low concentrations. Meaning if you fill at trench with this, it is likely your own trench will notice it too and you won't be able to enter the field for a bit. And everything in the field will stink too for a while, so you can't take advantage of some resources there.
I respect your healthy mentality, but if that’s the most interest you can muster, I think it demonstrates how little attention Web3 should be getting.

The original promise of the Internet and Web 2.0 had clear use cases, where you could understand and appreciate the improvements to every day life. There’s no denying that there were grifters there, and the whole thing got a little hot with dot com bubble. But, on the whole, the potential could be seen.

Just as calculators made lives better in the 70s and 80s, spreadsheet as well, there was a natural and relatable drive to incorporating more technology. I don’t see any of that with the web three.
“having stuff distributed is the whole basis of internet technology since the very beginnning.”
I’m sorry your project was stalled by this.

What static file hosting were you using? If it doesn’t support COOP/COEP headers yet, you can force it by using a service worker with this neat hack: https://stefnotch.github.io/web/COOP%20and%20COEP%20Service%...

Firebase hosting would allow you to set headers with a .htaccess file. Cloudflare Workers can also set the headers.

If your project was going to entail loading resources from other origins not under your control, well, that’s exactly the code injection scenario these headers are designed to prevent.
Probably an issue with scheduling P/E cores when they don’t support exactly the same instruction set
Knowing how "good" glass stink bombs were back when I was in high school, I have zero interest in anything more potent.
Personally, I would like to see more investigation into the multiple mutations and which variant that Omicron evolved from. I find it plausible that a capable party could have engineered and released a milder variant, presumably to help end this pandemic. I say this as someone with no knowledge of natural viral evolution. It just seems peculiar to me that Omicron was not a variant of the presently circulating strain, at the time.
> Cash grab for ad pennies?

It costs almost nothing to run a crawler and host these mostly static clone pages. So yeah, if there is a $100 profit in this, someone will do it. Keep in mind there are still plenty of countries out there where the average wage is well bellow $1k. For many people, the "ad pennies" are worth it.
It is a quite old and often repeated claim, first made by Ronald Fisher in 1936.

https://en.wikipedia.org/wiki/Gregor_Mendel#Mendelian_parado...
> Papers for Mac is Mac only

As of a few years ago there is also a Windows app, and you can use it in the browser. https://papersapp.com
Nothing really has surprised me more than how difficult it had been for a lot of you to understand what the value is here.

It is a database with a new property: data and rules for manipulating data can be fixed. Yes inefficient in iops but who cares - it allows a whole new class of activity.
Honestly, I read the first 8 or so and found most to be appropriate social backlash when taking full context into account.

1. White cafeteria workers serving Kool Aid and watermelon-flavored water for Black History Month, while lying to a student who took offense, saying "black people put this menu together."

2. A yoga studio who was already in the red going under after many of their teachers quit and protested due to workplace complaints.

3. I couldn't find the original source video for this, but feeling obligated to publicly post a video mentioning "overall crime rates of black Americans compared with white Americans" in an attempt to discredit BLM can get you fired. I don't see that as cancel culture, but an employer using their discretion on who they want interfacing with the public.

4. This one I find the most compassion for. If we were to hold everyone and their parents accountable for the things they or their children said when they were 14, we'd be in a lot of trouble. NPR did a good article about this story: https://www.npr.org/sections/codeswitch/2020/07/28/891829285...

5. This was a private school, not a public school, published by the National Post without any details about the individual who was fired, and uncorroborated by other, less biased news sources.

6. Two white women admit tactlessly that they were stealing recipes from Mexican taco ladies. People didn't like that, and decided not to support their business.

I could go on, but I don't see what there is to be outraged about here.
Let's consider a basic example: How can you justify not using Microsoft Office? Yes LibreOffice is there and works 95% of the time, but the remaining 5% are not completely useless parts of the software.

It's same for most of the user-hostile software. Alternatives are not as intuitive, easy to use, or easy to find. Also, free software is not guaranteed to be sustained or be in front of the pack.

I use Linux, and free software to the most extent I can use, but there are some closed source stuff which is expensive but is soundly ahead when compared to open source alternatives. I can break the sweat and write a similar code, but how can I make sure that it's sustained when it has a A/GPLv3 license?
Hibernate and touchpad still needs work.
Somewhat true. A perfect awnser for such a query would be a page like tomshardware where the best smartphones for multiple categories would have been nominated.
A normal Google search actually does return that, after some scrolling. This however is ofc heavily based on my browsing history.
the scenario you described is for vaccines that prevent infection. This is now obviously not the case with covid and 75% of the pop vaccinated, which still catch and transmit the disease enough to get the numbers we have now.
Instead of sending a request before every defined case in the CORS policy, it could be implemented requesting only one GET to a plain file (fully cacheable) with the domain policy definition.

Like robots.txt for the search engines.
Invest the extra cash, let the money do the work for you.
Thank you. I've fixed it by linking to the proper upstream repository instead.
UX experts don't want to acquire customers at all costs; those mandates come from management, whose requirements the UX experts are required to fulfil. You should be concerned about managers' haircuts instead.
The author is recommending that the client see only requests to foobar.app, and if you have a separate host for the API, you use a reverse proxy. Which I think is also what you are saying you do?
If you have it as an LLC, any profits will pass through to you through your schedule C, and you will be taxed at regular income tax rates. Your accountant will help. But tax optimization can REALLY matter, and as a small business you have massive opportunities to very legally and ethically optimize your business and tax.

Top of mind, what you should really consider is:
a) setting up a 401K under the business to shelter some of the income tax free (you can also contribute a significant portion of profit tax free.) Vanguard and Fidelity have no cost single member LLC 401ks that are super simple to set up.

b) thinking of your strategy to invest in this business, or grow another one. Because any expenses are deductible, this is like having ~30% off any business investments courtesy of the federal government.

c) relative to a) above, is if you have a spouse, employ him / her in the business to the extent that you maximize their 401k contribution. (I did this for my spouse and even at $18K a year compounding the 401k has $300K bucks in it!) Again, a small business accountant will be super familiar with how this works.
"You only need a mitigation if it ends up blocking long enough to be a problem in reasonable setups."

That criteria is established here - the OP is about an issue affecting paying end-users! Premature optimisation is not relevant - the software is failing.

It is unsafe to make fair-weather assumptions about customer systems.

Consider a common software failure: where the user is saving data to a SMB or NFS partition, and then there is a loss of connectivity to that file-server, and the developer has done whatever I/O they need on the main thread. This causes data loss.

You /should/ be able to assume (1) reliably fast return from core async-coordination syscalls (e.g. select, poll), and (2) that you will not suffer process or thread starvation caused by someone else. Respecting those constraints, it is good practice to isolate sync calls to a non-main thread in order to catch when they are not returning. This robustly covers both common scenarios (like the missing-filesystem) and obscure scenarios like the one in blog post.
There was a minute when big tech cared to take responsibility with screen time / internet addiction concerns. But somehow through the pandemic that has disappeared when we need it the most.

I think it will require an extension of the "right to disconnect" policies being made that give the user a choice in how much content they want from each platform.

It's unreasonable to think this is an individual's problem at this point. Maybe in the early 2000s. Tech is designed to be addictive for many reasons (social, behavior, etc) and those creating the tech need to take drastic action.

Instead of OKRs that increase screen time, ad revenue, etc. Maybe they should have goals to cut individual's time on a screen for the good of humanity rather than shareholders.
I agree. It is a very promising approach to fine tune Google for your own needs.