skysight-inc/HackerNews huggingface dataset:
As Apple is one of the most closed companies, it's hard to put blame on anything Apple-related as you don't really know who the teams are. Sure, WebKit contributors are visible as it's an open source project, but who is the "Apple Safari Team" really? And who is the "Apple News" teams?

Easiest is just to put blame on the top-level entity, which is Apple. They have control over their teams so they can redirect the blame if they feel it's needed.

And if this change is to be able to force more developers to build native apps on their platform, then it's for sure a cohesive cross-company strategy. But we don't know if that's the case.
Sounds like they're also pretty good at making disk encryption faster.
> Won't a strong economy increase the pace at which we develop and produce life saving technologies?

And yet, for some reason, having a strong economy in the US didn't make the country better prepared for this crisis.
Such a clickbaity title.

Those charts don't look that powerful to me.
the problem is your low quality disk
Native app != Electron app (fortunately!) The less of that bloated slow crap the better.
Go doesn't cross compile: it only supports the Go operating system on a very limited number of processors variants.

If zig were to truly cross compile for every combination of CPU variant and supported version of every operating system, it would require terabytes of storage and already be out of date.
"The most experienced programmer uses hacks all the time; the important part is that you're getting stuff done."

I couldn't disagree more, the grown up programmers use a strategic approach, not a tactical one. As Jonh Ousterhout put it in his book A Philosophy of Software Design "The first step towards becoming a good software designer is to realize that working code isn't enough."
I have this app called Search Everything[0]. Allows you to search everything on your PC (I use Win10).

The other option is using cmd prompt:

DIR C:\myfile.txt /S

No idea how with PowerShell

[0]https://www.voidtools.com/
Thanks everyone for their replies. And apologies for the desperate and scary message, I was in a bad place yesterday.

Rest assured I'll do my best to stay afloat and keep a level head through this difficult time. I really just needed to vent about it.

Again, thanks for the feedback, it really means a lot! I will contact the landlord and try to defer payment, this possibility had not even crossed my distressed mind.

Love y'all HN. Take care! <3
Wow those speed improvements are very neat. And an awesome blog post accompanying them. Prior to reading this, I've considered Linux disk encryption adding negligible latency because no HDDs/SSD can be fast enough for a CPU equipped with AES-NI, but that view has changed. Two questions: 1. are there any efforts to upstream them? 2. Invoking non-hw-accelerated AES decryption routines sounds quite expensive. Has it been tried out to save the FPU registers only if there is the need for decryption?
What is an "off-line web app"? If an app never goes online and is sandboxed from other apps, then it never has any data at risk of exfiltration.
Except for iPhones/iPads where you don't really have a choice. Also most people don't give a shit which browser they use, they just use whatever browser is available when they get their device, which makes sense. But those users might soon have their data removed without really understanding why.
It is similar to why organizations don't hire 10x engineers only. It is difficult, a lot of work and hiring just one bad manager could cause the 10x engineers to leave or become unproductive. It is far easier to treat engineers like cogs and hire people that check the right boxes and throw them into a standard scrum process.
> If you want more access, make a native app (with or without web technologies).

Browsers usually ask for an additional permission in this case which would be a good approach. Your post sounds like "browsers need to be severely limited, so if you want to watch video, just launch VLC". It does not work this way.
for files use everything for enterprise use M-Files
...Case closed
$300 is gross. You have to pay taxes on this. In many developed countries this would be $150 after taxes.
> Browsers need to be severely limited due to them running arbitrary code from the web. Doesn't matter if it's an offline web app. If you want more access, make a native app (with or without web technologies).

Native apps have the same problems too and such "severe" limiting of apps in web browsers still doesn't solve it. The only more or less privacy preserving model I can think of for native apps today is open source repositories with app distribution not controlled by app developers, like f-droid or repositories in various linux distros.
I have many useful files in my computer, which I don't want to be deleted. You are saying, that it is ok, if the OS deletes all files in my computer from time to time.

A local storage is the only way webapps can store any data in your computer (other than asking you to manually load / save some configuration file). Not all webapps can afford cloud storage for all user.
Actually there is - firefox does it all the time. It's simple really - just add a new obscure configuration parameter and tada - the browser starts ignoring your dns resolution setting and automatically uses a preconfigured one.
No need for a prompt, obtrusive or otherwise.

network.trr.mode I'm looking at you.
Both your and Apple's concerns are valid. This change makes the fact (arguably) that these local storages are caches apparent.

Some web apps already saw the danger of having an easily purge-able storage on the client side and simply implemented an export function for their tools. I admire those tools more than the ones who overuse local storage for everything.

One such tool is draw.io, a flowchart maker. You use the app, persist everything in local storage and when you are done, you export your project into a file, all happening on the client side. When you need to edit, you import the file on launch. It's portable, it's protected from browser bugs/decisions and imho pretty user (privacy) friendly.
Fighting loneliness in the time of social distancing
I think three intention here is not the other way round. You can add c files to your zig project to make the transition, integration with existing code, as well as collaboration with c only programmers easier. After all zig wants to replace c, not the other way round.
Thank you for the heads up and the tip! A team member got the same issue as you yesterday but then the icons started working again, just like it was for you. I'll pass this on to the rest of the team.
I'd expect to see it. People are already using the virus as a reason people shouldn't be allowed to have surveillance-free conversations:

https://www.cnn.com/2020/03/18/tech/whatsapp-coronavirus-mis...
My dad downloaded a bunch of malware on his one plus. I refused to waste my time helping him uninstall it (he feels that it’s his god given duty to click on everything, and the shadier the source, the more click worthy it is). So he tossed it and got an iPhone. Now he can click all he wants.

Also android doesn’t have any tablets comparable to iPad, and they don’t or didn’t have any video call app as easy to use as FaceTime. Although, whatsapp video may be just as good now, but I have a few grandparents and a great grandparent who don’t have phone numbers, so FaceTime works better in our family.

Also, we use our devices until they die. So we need them getting security updates as long as possible, which doesn’t happen on Android. We have 4+ year old iPhones and iPads being used, all pretty much up to date on security updates.

My point is whatever marketing Apple does, the product is clearly superior in many ways so it’s ridiculous to claim people are just “brainwashed”.
Even if opening up leads to massive deaths it can still be the correct thing to do. Here in the UK the NHS uses a system called QALYs which is approximately years of life saved to evaluate the effectiveness of NHS interventions. The NHS generally will only introduce new interventions if they $s per a QALY is low enough. The spectrum of options for dealing with the pandemic are a trade off and if the damage to the economy is high enough then even a high death rate might not justify a strong intervention. During the NHS's normal operations there are a bunch of interventions that NHS is not pursuing because the cost is higher than the marginal cost they are willing to spend for a QALY. The NHS is killing large numbers of people right now by not pursuing these interventions but everything is a tradeoff and stopping death is not an absolute.
Ask HN: Memory hacks helpful to learn coding?
Can we stop talking about $300? It was a random number used as a variable that can be replaced with any dollar amount.
There are very few free apps. Most of apps are paid with ads or external subscription. And Apple wants cut there as well.
One example of a description of how the Linux linkloader works is here [0]. Other OSes are similar.

[0] https://lwn.net/Articles/631631/
So store this data on the server.
I am not saying that it is OK to delete all your files. I am saying it has always been like that in the case of a browser's local storage.

As I said, that use case was out of the window long before. From the start, as far as I know.

No browser has ever given you any definite promise on whether your local storage data will be kept. That's also true for IndexedDB. So you need a mechanism to restore that data, be it cloud storage or something else.

If you wanted to support Safari private browsing, you even had to deal with local storage not being available _at all_.
Construction of horsepox virus vaccine from chemically synthesized DNA fragments
It's the way of the world. Instead of trying to change the world, you could try adjusting your moral framework to be more in line with the world. Also, trying to change the world without first changing yourself is futile. And if you changed your way to put the benefits of others over yourself it would just amount to suicide, leaving the world as it is.
I just wanted to respond to "just another physicist". In university about a million years ago, I was very unhappy. I loved being a programmer, but I found my CS courses very limiting and actually boring. I decided to switch to honours physics. At my university, the school realised that there is no demand for a huge number of physicists. In the honours program, they simply gear the course for the top 2 or three students, with the intent on only graduating those few people after 4 years. Everybody else they expect to drop out of the honours program and do a general science degree.

I always thought of myself as a pretty smart guy, but honours physics kicked my ass really badly. I remember getting assignments with differential equations before I had ever seen them before. I asked my prof what I should do. He indicated that there were several good books in the library on the topic. After spending virtually every night studying and only just barely able to keep my head above water, I realised. I am not going to get a PhD in physics. it was a valuable lesson. I went back to CS and ate it up (my god it was easy after that).

Thinking about "just another physicist" reminds me of the 2 or 3 people who could actually make it through the programme and then go on to do a PhD. Well, in my case, the class I was in eventually graduated 5 people -- the most ever! It turns out they had to turn it up to 11 and still couldn't pare it down, so I don't feel that bad. But I still feel that the ordinary physics PhD is not really so ordinary ;-)
Sure it can be forked, but the problem is the millions of devices running Apple's version of Safari/WebKit on iOS without any say in it except switching to Android.
When talking about subsets of an infinite set, and in particular fields, the common understanding of the word “between” means in terms of subsets, not cardinality. For instance, the field Q(sqrt 2) lies between the fields Q and Q(sqrt 2, sqrt 3).
I configured my Chrome to block sounds on all websites except for a few selected ones. Now if blocked website plays sound, I can see tiny icon in right of my URL bad. It's absolutely unobtrusive, yet I can enable sound with two clicks.
I’m guessing that Apple will start hindering web apps because the new mouse support in iPadOS is going to be such a boon to web apps. Because of sandboxing, web apps are the only cross-platform apps that can run in their full versions on iPadOS. I wrote a quick summary of the situation[0].

Therefore, since native apps are more of a platform differentiator than web apps, moving forward we can expect Apple to start systemically hindering web apps, especially on ones that are good on iPadOS, in order to boost native apps.

(I’m not saying this necessarily the start of this, but I am saying I'm not surprised. This is exactly the type change, targeting the exact type of app I’d expect to be targeted.)

[0]: https://blog.robenkleene.com/2020/03/20/ipadoss-new-mouse-su...
So I guess more people will switch from iOS to other devices.

I am the creator of a photo editor www.Photopea.com and I see, that more and more people care about their browsers. They spend a lot of time discussing the issues of their browser with me, because they need to do a serious work in it.
Forget that tired-old coffee ring effect: “Whiskey webs” are the new hotness
IMHO adding more local storage via browsers was a huge step in the wrong direction from the users point of view.
Thanks for sharing. Interesting stuff, esp since I consult for Ford Motor. I've always been a fan of DbC since introduced by Eiffel, and wrote a clunky but workable DbC module in FPC.
In my case, I did the TM backup specifically because my Mac was going to be serviced (display; so accessing data was not a problem).

Otherwise, I don't use TM, I'm using another solution. It won't restore entire system and installed apps, just my files.

So with TM, it was Murphy I guess.
The original comment referenced an app where the users are offline for weeks at a time. Storing data on a server is not really possible in this use case.
I mean... have you heard about redux? This is pretty much what you are describing. If you are looking for UI experimentation js framework are a good resource ;-)

I have used redux in a medium sized app.

The advantage is that there are lots of documentation. Developper can lean on those resources and the result is an architecture that is shared easily among multiple teams.

The disadvantage is that handling asynchronous effects is unclear. Also sometimes adding a flag to manage some subcomponent state require a lot of work. It also clutters your centralized state. It can also be a pain to manage forms this way. And by that I mean managing the state of a form that is in the process of being filled.

Currently my favorite way of designing js apps is a mixed approach. Put all your business code in model classes. Only centralize the state that is important to your application. Sprinkle local states when appropriate. Use hooks & context to inject your model classes in the right components.
Have you considered porting to a native application?
and to be honest the process has gotten a lot easier.
OMFG...This is one reason why I just started using freefilesync and just mirror my data instead of my whole drive. That way I just gotta have the hard drive and I'm set. Although it sucks cause I have to redownload every piece of software again.
Reminds me of Timeshift on Linux mint: https://github.com/teejee2008/timeshift

Used this with joy for a few years now
> I'm still not sure why more vendors don't make iOS PWAs to get around the App Store payment rules.

One reason is because Apple have incentive to break PWAs and they will do it. It's not a wise business decision to act against big player.
>Instead of writing my own code, I usually search Stackoverflow first to see if I can do some copy-paste it instead.

Yet, I find most of the code snippets posted to Stackoverflow to be garbage. I despair if these are being copy and pasted into production stystems :(
> Actually, I'd be even happier if any form of offline storage required explicit user permission anyway.

Even offline storage that is only used locally? Say a game with savegames that has doesn't use online connection to play it.

Another example: a password manager.
same here it works well and I use it to do share screen with my video on it and stuff like that. the only thing is that many video places are degrading video so much that text is impossible to read (zoom for example). I wish they would allow the use of the same encoding they use for share in these cases... another way is to have a single virtual window shared but it doesn't work well with wayland for example which made me wish about the ability to have a virtual screen managed by OBS.
Paper flip animation using Flutter
Notice how fairness is only something people try to accomplish if it benefits them. As soon as they themselves have an unfair advantage, they won't give up their benefits to achieve fairness.
Some browsers show an icon in the address bar when an app is requesting/can make use of an optional permission or feature. Clicking the icon allows you do grant the extra permission (i.e. allow cookies, enable, camera, etc.) but otherwise no additional prompt is shown.

I think this is an excellent example of such an unobtrusive prompt and is how ALL such features should be implemented. Sites should get almost no permissions by default and certainly not be able to show popup prompts.
> Blackhole[1] is a better

I took a quick look at the issues list & features request, and I'm going to disagree with you there. For example, you can't route the output to different monitor devices and change their volumes. (I often use my headphones as a mixing monitor.) It looks like a neat free alternative, though.
I'm an engineer at a platform that makes it easier to build privacy-friendly apps. This means that all apps on our platform have app-specific private keys stored on the client side (in localStorage), and they never touch a server.

With this change, you're essentially "logged out" after 7 days of inactivity.

This is pretty a bad user experience. I honestly am not sure how to mitigate this. MacOS Safari might not be a massive market, but iOS Safari is.

Any thoughts about how we should address this change?
From the article...

> Heck, they could even go further and ban apps from corporations like Facebook, Inc., and Alphabet, Inc., that have violating your privacy as the core tenet of their business model.

If Apple were to ban the Gmail app (and obviously block web access via iOS too because that would be a loophole otherwise), I would throw away my iPhone, swear off business with Apple, and search dearly for a way to sue them.

I don’t love the walled garden iOS represents, I merely live with it in exchange for great hardware and UX. If the bargain changes to be more restrictive, I would turn against it in a heartbeat.

Thinking about that, is no surprise Apple is striking out early to make web apps useless. If they wait too long, they will become entrenched, and people will feel like they have lost something if access is restricted. Apple really wants to jealously protect its control, and more importantly ability to take 30% tax of every transaction that they can perceive.
You’re right. Tell people not to use iOS

https://www.forbes.com/sites/gordonkelly/2020/03/14/apple-io...

You Apple users will put up with anything!

(disclaimer: iOS user)
This isn't a highly unpredictable shtf scenario worth revealing your real plans.

They probably expected it and would like to stay around to collect the bets against the everything bubble to buy at the bottom.
The article doesn't exactly cut to the chase. Here it is:

> "...But deleting all local storage (including Indexed DB, etc.) after 7 days..."

From the Apple announcement:

> Now ITP [Intelligent Tracking Prevention] has aligned the remaining script-writable storage forms with the existing client-side cookie restriction, deleting all of a website’s script-writable storage after seven days of Safari use without user interaction on the site. ...

https://webkit.org/blog/10218/full-third-party-cookie-blocki...
Exactly, that's just good programming.
They’re literally not.

I watched the news this morning and the broadcasters were panicked at a level I haven’t seen since 3/11. No meaningful measure have been put in place to curb the spread of the disease or strengthen healthcare infrastructure in Japan.

But Aso Taro, a leading politician of the ruling LDP, did announce his major response initiative: giving out certificates for Wagyu beef.
Popular Linux Distros (and Which to Choose)
Musl is a pretty good replacement, I have been using it for years without any troubles.
Thinking about maths is fun, and some people do it for leisure and write what they find in innocuous places like blogs. Usually the things you come up with are already well-known by a different name (as was the case here), so one would usually not publish something like this.

Think of it just like a random blog post on someone’s thoughts. Just because it contains maths doesn’t mean it needs to be published or not, it can be free to live its own life.
for the last time it’s not the death toll it’s the massive numbers of immunologically naive people of all ages who need advanced medical care all at once.
7 days after Safari use without user interaction on the site.
Show HN: Impressions – Create high-quality celebrity deepfakes from your phone
I can't seem to find whether or not these policies and storage caps are implemented in a WkWebView context. Any idea?
Sure, so maybe WebKitGTK will (if this applies to that version). But why would Apple choose to include this fork over their own version in their OSes? If they don't how do you plan on using it with any Apple OS?
OBS can do all of that except nativley output a virtual camera. I use windows and the virtual cam plugin works well for that, though it doesnt do the audio. I think you can set it up externally to obs using a virtual audio cable driver but I haven't really needed it.
But wouldn't that make it have less privacy? Now my webapp cannot be used offline and anonymously, user has to be logged in and tracked
UK Covid-19 Dashboard
Immutable data makes updates hard and undo easy. It's especially painful in C++.

Mutable data makes mutation easy and undo hard.

I don't know if there's a good solution. The command pattern is based off mutable data, and works, but has lots of boilerplate and implementation (to mutate the document forwards and backwards).
Yuval Noah Harari warns about that here:

https://www.ft.com/content/19d90308-6858-11ea-a3c9-1fe6fedcc...
Social Network for Networking – InConnections
What have you done personally to try to minimize the suffering of others?
> one can only encrypt the whole disk with a single key

You can still use partitions.

> not all cryptographic algorithms can be used as the block layer doesn't have a high-level overview of the data anymore

I do not really understand this. Which cryptographic algorithms can't be used?

> Most common algorithms require some sort of block chaining to be secure

Nowadays I would say that from these only CTR is common, which does not require chaining.

> Application and file system level encryption are usually the preferred choice for client systems because of the flexibility

One big issue with "Application and file system level encryption" is that you often end up leaking metadata (such as the date edited, file name, file size, etc).

Regardless I think that this is a really nice article. I can't wait to try their patches on my laptop.
This is great, but the big block of graphic at the top of the page is incorrect. Start with the "See by Topic" stuff and make them lots bigger.
Apple only allows apps to use their webkit implementation.