Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 3y ago · link · parent

In Russia. The store website [1] says that they can deliver it within 2 hours, so it can be bought locally. Irbis seems to be a brand of cheap laptops targeted at Russia, so it might be not known in other countries or they are sold there under another brand.

By the way, one of the buyers wrote that it is "great for studying" and another wrote that "it is confortable to use with Linux".

[1] https://www.dns-shop.ru/product/829ba65324bded20/133-noutbuk...

comment 3y ago · link · parent

Then the board with CPU, GPU and RAM could be made replaceable.

comment 3y ago · link · parent

I would prefer to have 32 Gb of cheap "slow" 3200 MT/s RAM rather than 4 or 8 Gb of soldered 4300 MT/s LPDDR4 RAM. The increase in speed isn't worth decrease in size.

Also, in cheap laptops soldered RAM often has lower speeds, same as replaceable one.

And if RAM has to be soldered, then the board with CPU, GPU and RAM could be made replaceable so that you can upgrade it later without buying a new device. Obviously, manufacturers don't want that.

comment 3y ago · link · parent

> When the system is getting close to running out of memory, isn't the least-recently-used memory swapped out to disk by the OS?

After all least-recently used memory is swapped out, the time comes to swap out recently used memory and it becomes noticeable, especially with a spinning disk with 400Kb/sec random write speed.

Swapping is extremely ineffective. Unloading a tab allows to use sequential write which is orders faster than random write even with SSD.

comment 3y ago · link · parent

Because then you would be able to buy RAM several times cheaper than the one Apple wants to sell to you.

comment 3y ago · link · parent

Found 2Gb laptop, here: https://news.ycombinator.com/item?id=33932592

comment 3y ago · link · parent

Is is also interesting that 68% of devices have a GPU from Intel, i.e. no proper GPU.

comment 3y ago · link · parent

Out of curiosity I decided to look at cheap laptops in my country. One of them is $240 Irbis NB77 laptop with IPS display, 2Gb of RAM (soldered as I understood), 4-core Atom Z3735F CPU, only 2 USB ports, 32 Gb of eMMC and, the worst of all, Windows 10, which probably will take all of the space on a drive.

But of course there are cheaper laptops with 4Gb RAM, so this one seems more like an exception. There are even tablets that cost less and have 12 Gb of RAM, although they are sold by suspicious sellers from China.

comment 3y ago · link · parent

Even worse, some of them have soldered RAM, especially ones that are in $150-$200 range. Although expensive laptops also have RAM soldered.

comment 3y ago · link · parent

I considered the worst case, obviously with SSD you can unload pages even faster if you are fine with reducing its lifetime.

comment 3y ago · link · parent

The laptop I had supported 4 Gb (due to artificial limitations by Intel), but it started to switch off randomly and I found out that if you remove one (any) of RAM cards, then it can work without any issues. So this is how you can have a 2Gb device in 2022.

Having two laptops is twice better than having just one, so I decided to continue using it. Maybe I will connect it as a virtual monitor for a second laptop (then 2 Gb should be enough), but I am not sure if Wayland supports this.

Also, even if new laptos have 4+ Gb of RAM, there are still 5-10 years old models in use.

comment 3y ago · link · parent

4 Gb is not enough for browsing, at least with Firefox on Linux with more than 10 tabs.

comment 3y ago · link · parent

Exactly. The examples are Mac laptops with soldered memory, which several years later will still have a great screen, case, fast CPU, but will be unusable due to having too little RAM. In the best case the user will have to buy a new motherboard and throw away perfectly working CPU and GPU, and in the worst case buy a new device.

Also, even 15-year old CPUs are still pretty fast and can do billions arithmetic operations per second. Only because Intel decided not to add several more address lines which cost them basically nothing, these machines have to be thrown away.

comment 3y ago · link · parent

I think it is possible. Typical web process memory size is about 30-500 Mb. Writing 500 Mb sequentially on a spinning HDD takes 5 to 10 seconds, and probably you can discard a lot before saving (like JIT code, JS bytecode, CSS dependency trees, HTTP caches, localstorage etc.), and 500 Mb pages are rare.

For comparison, if you don't unload the page completely, and system gets into swapping then there will be random access pattern with speed about 400 Kb/s on a HDD. So it is faster to unload 500 Mb sequentially than swap out/in 5 Mb.

comment 3y ago · link · parent

They are moving in the right direction. Browser vendors should optimize for low memory usage and not for speed in bechmarks at the cost of memory usage, because when the system runs out of memory everything becomes so slow that benchmark performance doesn't matter anymore. The only people who win from benchmark optimization are those with 16-32 Gb of RAM (for example, Google employees).

So I would rather choose a browser with 2x-3x lower benchmark performance if it could consume 2x-3x less memory. Firefox is basically unusable on a 2Gb system as long as you useit more than 15 minutes.

One of the solutions could be to freeze and compress background tabs. There is no need to keep in memory HTTP caches, localstorage, heavy JIT caches, CSS selector dependency trees, JS bytecode, DOM nodes without JS expandos attached. Freezing background tabs also allows to save energy.

comment 3y ago · link · parent

Those color photos are great. Most of historical photos are black-and-white and we subconciously get an impression that everything was blurred and monochrome in the past - cities, people. These photos allow us to get better image of life in those times.

Also it is worth noting that even today there are many villages that look like those on the photos - with traditional wooden houses and unpaved dirt roads.

comment 3y ago · link · parent

GDPR applies not only to websites, but to software, am I correct? Does it mean that Android/Windows/MacOS and mobile apps should get user's permission for telemetry/analytics and allow to opt out from it? And Microsoft should allow using their software without requiring an online account?

It would be wonderful.

comment 3y ago · link · parent

> JACK exists becase some people need low latency

Wouldn't latency be lower if the application would access audio card directly without any daemons in between?

comment 3y ago · link · parent

I am not sure about "better latency". The latency with Pulseaudio cannot be controlled via GUI and is often quite large (on order of hundred ms or more). In my opinion, to get minimum latency one needs to access audio card directly, without intermediate daemons.

comment 3y ago · link · parent

Because ALSA doesn't allow two programs to use the same audio card simultaneously. ALSA is good for exclusive access, when you want to remove everything between an application and audio card.

Also ALSA cannot do other nice things, like switching audio output when you plug an USB audio card.

comment 3y ago · link · parent

Knowledgeable people, please explain. Wouldn't it be better if applications used ALSA for audio output? In this case they could work without Pulseaudio and with (because Pulseaudio adds a sink to ALSA). This way the application doesn't need to know which audio daemon it uses. What are the downsides of this approach?

comment 3y ago · link · parent

> I think passkeys can not be stolen for the same reason jailbreak a phone doesn't allow a user to access to extract touch-id data. For the same reason Google also can't access that information.

Google allows exporting keys to Google cloud and importing them onto another device. This means that keys can be exported from secure storage, and if Google can do that then an attacker also can. Google claims, that PIN code or unlock pattern might be required to recover keys from cloud backup, but those are easy to bruteforce.

This is not real hardware key that doesn't allow exporting private keys.

comment 3y ago · link · parent

> It’s still required to complete authentication.

As I understand, if an attacker gains root access to your phone (or if an attacker is Google) then they can bypass any biometric locks, export private keys protected with a PIN and bruteforce the PIN. Phones allow exporting keys to sync them between devices via Google cloud. So Google or their friends from government can bruteforce PINs for backups stored in their cloud.

Please correct me if I am wrong, but this looks like a single factor.

comment 3y ago · link · parent

> what benefits a passkey has over using a password+TOPT/HOTP 2 factor

The benefit is that you don't need to remember different password for each site. However, it seems that passkeys are not secure, can be stolen by an attacker with root access or silently decrypted by Google. The better solution is hardware keys independent from Google.

comment 3y ago · link · parent

> They're a standard. You can implement it yourself

You can make your DIY authenticator, but websites might choose not to trust your self-signed attestation as it is not "secure".

Also, as I understand, passkeys stored on an Android phone can be stolen by an attacker with root access or by Google if you use biometric lock or PIN or lock pattern.

comment 3y ago · link · parent

A better solution would be cheap (less than $1) hardware keys, not locking people into Google/Apple ecosystem and allowing them to decrypt the keys when asked nicely.

Also, on Android Google's passkeys can be stolen if an attacker gains root privileges. Hardware keys without an OS are much more difficult to hack into.

comment 3y ago · link · parent

> Is that true?

It seems so. The article [1] mentions that you can copy the keys to a new device and you need only a backup stored in a Google cloud and PIN/unlock pattern which are easy to bruteforce:

> In some cases, for example, when the older device was lost or damaged, users may need to recover the end-to-end encryption keys from a secure online backup.

> To recover the end-to-end encryption key, the user must provide the lock screen PIN, password, or pattern of another existing device that had access to those keys.

So it means that Google and their friends from government organizations will be able to decrypt cloud backups easily.

[1] https://security.googleblog.com/2022/10/SecurityofPasskeysin...

comment 3y ago · link · parent

WebAuthn supports attestation of key storage and site owners might choose not to trust keys coming from an unknown DIY device.

comment 3y ago · link · parent

> It is a standard that anyone can implement

WebAuthn supports attestation of a key storage device. How are you going to persuade site owners to trust your self-signed attestation certificate?

comment 3y ago · link · parent

Standards like WebAuthn support attestation of a key storage, so the site can see who has manufactured it and can choose not to trust weird DIY or open source solutions without an attestation certificate.
1
101102103
185