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 1y ago · link · parent

How can lisp be fast if it doesn't have static typing and uses GC?

comment 1y ago · link · parent

Can you replace S3 with a directory and nginx and save lot of money?

comment 1y ago · link · parent

In my country, giving a SIM card to another person who does something illegal, is a crime. No doubt EU might soon have the same law - they are pretty good at copying.

As a result, sites where I could rent a number for verification, now don't offer local numbers anymore.

comment 1y ago · link · parent

I want browsers to be minimal and simple. For example, canvas should only provide a framebuffer to draw into, and all the rest can be done with WASM libraries. Web Audio should only provide an audio thread, and things like low-pass filters can be implemented in WASM. WebRTC should only provide UDP support, etc.

This would make creating competition easier and reduce attack surface. As a nice side effect, it would become impossible to use canvas or web audio for fingerprinting.

comment 1y ago · link · parent

Is there an official list of enemies, or the government can decide who was the enemy afterwards?

comment 1y ago · link · parent

I think that was long time ago, because this doesn't allow to request permissions in runtime.

comment 1y ago · link · parent

In most cases to use a library you just need to download files and place them into a directory.

comment 1y ago · link · parent

"Trusted" dependencies are poor solution, the good solution is either never run scripts, or run them inside qemu.

comment 1y ago · link · parent

Finally sane solution. When I was thinking about package manager design, I also thought that there should be no scripts, the package manager should just download files and that's all.

comment 1y ago · link · parent

Google's OS, Android, has sandboxes. It's some Linux problem that they do not want to backport it.

comment 1y ago · link · parent

What's wrong with micro dependencies? Isn't it better to download only the code you need? Also it makes refactoring easier, and enforces better architecture.

comment 1y ago · link · parent

I am surprised that anyone in this year runs scripts from random people from Github without sandboxing. As a wise proverb says, a peasant won't cross himself until the thunder bursts out. Spend a couple hours setting up a sandbox and be safer.

comment 1y ago · link · parent

I am not sure if cloud providers want ARM - the most valuable resource is rack space, so you want to use the most powerful CPU, not the one using less energy.

comment 1y ago · link · parent

You should take inflation into consideration, so the million in 20 years won't be the same as now.

comment 1y ago · link · parent

I personally believe mocks are a bad practice which is caused by bad architecture. When different components are intertwined, and you cannot test them in isolation, the good solution is refactoring the code; the bad is using mocks.

For example of such intertwined architecture see Mutter, a window manager of Gnome Shell (a program that manages windows on Linux desktop). A code that handles key presses (accessibility features, shortcuts), needs objects like MetaDisplay or MetaSeat and cannot be tested in isolation; you figuratively need a half of wayland for it to work.

The good tests use black box principle; i.e. they only use public APIs and do not rely on knowledge of inner working of a component. When the component changes, tests do not break. Tests with mocks rely on knowing how component work, which functions it calls; the tests with mocks become brittle, break often and require lot of effort to update when the code changes.

Avoid mocks as much as you can.

comment 1y ago · link · parent

Using more complex architecture (which requires more human time to understand) to merely make build time shorter is a ridiculous choice.

comment 1y ago · link · parent

The battery probably lost its capacity in 3-4 years since release.

comment 1y ago · link · parent

It's hard to find. Pixel 8 costs $670 here, and the cheapest Pixel is 9a for $470. At this price, it is overpriced. Pixel 8 has 8 GB RAM, Samsung A16 with 8 GB costs just $230. It's almost 3 times cheaper. And Samsung supports 2 SIM cards, unlike Pixel, so you can have, for example, one SIM for Internet and another for calls.

comment 1y ago · link · parent

Secure enclave is not an alternative for Yubikey because the program inside enclave cannot tell if the request comes from the user or from malware.

comment 1y ago · link · parent

> In general, non-Android non-ChromeOS Linux is not good at this sort of thing: half a dozen sandboxing frameworks exist, but none of them are particularly secure.

There are no frameworks that use secure enclave for this purpose either. It's purpose is copyright protection and preventing user from removing features like advertisement and telemetry, not making your system safer.

> Also, suppose you want to load an obscure kernel module that reads an obscure filesystem format. How do you sandbox the module?

You should use microkernels.

comment 1y ago · link · parent

The purpose of secure enclave is to prevent administrator from accessing the data. I don't want anyone doing "confidential computing" on my devices. I am the person which can be trusted so there is no need to hide the encryption keys from me.

comment 1y ago · link · parent

Why the keys for my device should be not accessible for me? The purpose of secure enclave is to prevent administrator from accessing the data.

comment 1y ago · link · parent

As I understand, the purpose of "secure enclaves" is to enforce DRM, copyright protection, anti-debugging measures, so breaking them is a good thing.

comment 1y ago · link · parent

All the banks I use, have a web app, although it can be somewhat limited, but I don't need any advanced functions anyway.

> as well as those now using push MFA with their apps for every large purchase.

Our banks use SMS OTP (not required for mobile app) for all operations - I assume otherwise the amount of fraud would be exorbitant.

> Recently I needed to install an app from the UK government to prove my identity via camera to renew my driving license, and that doesn't work in GrapheneOS either. I can do it in person (for now) but there is an extra fee.

Interesting that the government relies on a proprietary, foreign platform.

comment 1y ago · link · parent

> Do you want to fly on a plane where the flight control software was maybe overwritten?

I don't understand it. Whoever owns the place can replace any part of it, including computers. So being able to overwrite software doesn't change it. Furthermore, plane computers are not a consumer hardware.

You could make a better example with patched car software.

> The problem is Google and Apple locking down their Operating System, this is not a technical limitation on hardware.

The initial ROM bootloader contains hard-coded signature which prevents you from replacing Apple/Google software.

comment 1y ago · link · parent

To be fair, for "anything over 5 years old" you can probably find a privilege escalation exploit.

comment 1y ago · link · parent

I wouldn't want the bank to access my phone, so it doesn't matter that the app doesn't work, and in a weird case where you urgently need to transfer your money to scammers while not being at home, you can use bank's web app.
1
313233
185