From how I read it, this reduces the probability that the data gets deleted due to low disk space / garbage collection:
Persistent storage can help protect
critical data from eviction, and
educe the chance of data loss.
Are you sure this keeps the data when the user deletes their browser data? To me it sounds like it does not:
Persistent storage is not deleted by the browser,
even if storage is running low. It will only be
deleted if the user chooses to remove it via
their site settings.
Keeping the user logged in is not the issue. A PWA can inject a unique ID into the installation in various ways.
The problem is the data. Imagine a text editor where all your text documents are gone after you cleared the data of a different app, the browser.
I wrote a fitness app as a PWA some time ago and its pretty annoying to download all the instruction videos again every time you clear your "browser data". Plus all infos about which exercises you did and when is gone for good of course.
Can you elaborate why it could be a good thing for users?
Not being able to reliably store data on the device means that PWAs have to send the users data over the internet and store it on an external server. I would think users rather do not like that.
I am only talking about installed PWAs here. Of course not every website should be able to avoid having its cookies deleted.
The main problem I see in PWAs these days is that they cannot permanently store data on the device. As soon as the user deletes their "browser data", all the data of the PWAs on the device is lost too.
If PWAs would get their own permanent storage like other apps, it would be a huge step forward.
I will try that. At first I would like to see if I can find the problem. I would have thought that when the SD card is not responding, it would show up as "wa" in top and "%util" in iostat -x. But both are zero for the next output after a freeze.
I wanted to play with variations of the code. For that it is useful to make it output a "summary" so you know the variation you tried is computationally equivalent.
For the first benchmark, I added a combined string length calcuclation:
def main():
r = 0
for j in range(20):
for i in range(1000000):
r += len(str(i))
print(r)
main()
When I execute it:
time python3 test.py
I get 8.3s execution time.
The PHP equivalent:
<?php
function main() {
$r = 0;
for ($j=0;$j<20;$j++)
for ($i=0;$i<1000000;$i++)
$r += strlen($i);
print("$r\n");
}
main();
When I execute it:
time php test.php
Finishes in 1.4s here. So about 6x faster.
Executing the Python version via PyPy:
time pypy test.py
Gives me 0.49s. Wow!
For better control, I did all runs inside a Docker container. Outside the container, all runs are about 20% faster. Which I also find interesting.
Would like to see how the code performs in some more languages like Javascript, Ruby and Java.
This seems to be a compatibility list of Surface devices with a special kernel made by someone. I don't see how it is related to what is in the Ubuntu repos?
If anything, the exsitence of this kernel seems to be an indication that the major distributions do not cope well with the Surface and do not work out of the box.
Do you have a link where someone describes how he got Ubuntu to run on the Go natively without installing software from outside of the repos? The user reports I saw did not get WiFi to work with what is in the Ubuntu repos.
Is there a tablet that can run one of the major Linux distributions?
I am surprised that there is not a single commercial Linux tablet on the market. Given how many developers use Linux, one would think the market is big enough for at least one product?
And it seems no major distribution supports any of the tablets out there.
PHP has a lot going for it. It is popular, fast, has a nice syntax and a ton of useful functionality baked right into the language.
The main weakness I see in PHP is the lack of modules. PHP provides namespaces to avoid name conflicts. First of all, that does not completely root out naming conflicts. The developer who puts a namescpace into their code can only hope that it does not clash with someone else's.
Secondly, it makes it necessary that both, the code that provides reusable functionality and the code that uses it have to deal with the issue of namespaces.
A module system like Python and Javascript have is superior to this. Then only the user of the reusable code decides where to put it into the namespace.
From what I read in this article and other sources, performing more tests seems to be a very promising approach to get this pandemic under control.
The number of positive tests and death rates are published every day on all channels. I wish the number of performed tests would be also published daily. What gets measured gets managed.
I wonder what limits the number of tests that can be performed. How much would it cost to ramp up testing capabilities so that every person with symptoms can be tested? How much to increase it to a level that everyone can be tested?
Interesting. I have never seen that happen and can not reproduce it. Anything special about the browser you use? Feel free to shoot me an email then we can figure it out.
The design will look like this:
https://www.gibney.de/preview
The big blue arrow leads to the articles which are related to the topic in the center.
Now parsing through a big German text corpus to calculate where the research topics will be placed on the map.