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

But browsers, especially Chrome, have lots of permissions (including geolocation, accessing SD card, accessing user's personal data, camera and microphone etc.). You don't need to do anything if you can run under browser's privileges.

comment 3y ago · link · parent

But the West also underestimates, for example, cheap Iranian drones that can be easily mass produced and cost much less than the missiles to shoot them down.

comment 3y ago · link · parent

> If I added a new instruction that just does a logic right shift by 1 and made the old shift instructions all trap

You can use microcode for that. Also microcode can be used to implement multiply/divide by adding/subtracting in a loop. Microcode is very bad for performance, but in a DIY project it can save lot of chips. Microcode was used in 60s and 70s computers.

And the simplest microcode sequencer is made of 1 (one) register and 1 (one) ROM. Although, for a RISC-V you would probably need more than 1 ROM (microcode is usually very wide, 16- or more bits).

comment 3y ago · link · parent

Laws are often written in most vague language to allow wide interpretation, especially laws regarding treason, communism, foreign agents, anti-war speeches and such things. Programming language won't help here.

comment 3y ago · link · parent

The problem with this approach is that usually there are more devices that registers. And registers are needed for other purposes rather than constantly storing UART's base address.

comment 3y ago · link · parent

Instead of "authenticate as admin" the prompt should contains specific privileges required by a program, for example:

- read .ssh directory

- write to .ssh directory

- read motherboard serial number

And so on. Accessing the keychain should require confirmation if one program wants to read other program's secrets. If it wants only its own secrets, then no prompt needed.

comment 3y ago · link · parent

A download manager doesn't need to access your .ssh directory, your browser cookies, get your motherboard serial number, query a list of nearby WiFi points and so on. But in Linux all of these is accessible to any program by default.

> and you will open the files it wrote.

Open in a sandbox? Why not.

comment 3y ago · link · parent

Not everything is in official repositories.

comment 3y ago · link · parent

He probably had ID in his room (or, if in America one can check in without an ID, he could have a credit card with his name), and the staff should have verified it instead of giving a key to a random stranger.

comment 3y ago · link · parent

> Is there any advantage to encumbering the ISA by having a fixed memory address?

The software becomes much simpler. No need to parse any device trees. When something changes (for example, 128-bit quantum memory becomes available), simply make revision 2 for standard and move device addresses to other place.

comment 3y ago · link · parent

So why not reserve fixed addresses for everything? What is the merit of having devices located at different addresses?

For example, on IBM PC devices like keyboard or mouse or beeper had fixed addresses and it caused no issues.

comment 3y ago · link · parent

You can reserve multiple addresses. 64-bit address space is not small. And even 32-bit address space is huge.

comment 3y ago · link · parent

This is one more reason to run every program in a sandbox rather than with full privileges.

comment 3y ago · link · parent

Why cannot UART address be fixed by a standard? Is there any merit in having UART at different addresses on different machines?

comment 3y ago · link · parent

you forgot "adding a backdoor for remote access by manufacturer"

comment 3y ago · link · parent

> What happens when malware starts black-holing Google and Microsoft for all my devices?

You will send an unblock packet. Well, maybe this protocol should only work for commercial IP addresses, not for residential.

> this is authenticated and secured, how?

By your source IP address. You can only block traffic to your own IP address.

comment 3y ago · link · parent

The main issue caused by vulnerable devices is that they can be used in DDoS attacks. If there were no attacks, there would be almost no merit to hack those devices. So why don't we take measures against DDoS attacks instead?

What I suggest is to make all Tier-1 ISPs adapt a protocol that would allow any host to block incoming traffic from specific IP/subnet at all upstream providers. So during attack the malicious traffic would be blocked at source network level or at Tier-1 level and never reach the target.

Wouldn't networks be more secure in this case? Critical infrastructure like banks or government services would be better protected. Also, middlemen like Cloudflare would become unnecessary.

What surprises me is why we use technologies that allow to perform DDoS attacks with mimimun costs. ISPs turn a blind eye to this and route malicious traffic to the victim without trying to stop it. Security updates for IoT devices won't fix this. ISPs are the ones who need to be fixed.

Also, if IoT devices were restricted to local network, then outdated firmware wouldn't be a problem too.

comment 3y ago · link · parent

Shouldn't emergency services be accessible without a SIM? On the other hand, using a SIM allows government to track car's movement.

comment 3y ago · link · parent

Isn't "free market" supposed to provide a choice between privacy-respecting and disrespecting products? No regulation required.

Well, it seems like market forces do not work for minorities.

comment 3y ago · link · parent

> the Lisa and Mac designers definitely did not feel that way.

This is weird, because at that time the screen resolution was something like 600x400 and you could not fit lot of information (like a text document or a folder with icons) even in fullscreen mode, let alone windowed mode. The smaller the window, the more you will have to scroll and scrolling then was slow and blocky.

comment 3y ago · link · parent

> Early multitasking required being able to interact with multiple windows.

If you have a laptop screen (especially low resolution screen from 2000s) you cannot have multiple windows visible at the same time and be useful. Imagine if you have a browser, a graphic editor, an IDE and spreadsheet. You simply cannot fit them onto 15" screen.

comment 3y ago · link · parent

Windows and tiles mostly make sense for giant screens. As a laptop user, I notice that most of the time I want fullscreen windows. And sometimes it would be nice to split screen vertically into two parts. But being able to move and resize windows seems like an unnecessary complication. Benefits are not worth the time spent arranging windows.

It seems like developers do not want to make window sizes reasonable out of the box and instead want user to do it manually. For example, Gnome terminal opens in a tiny windows by default and you need to change settings to make its size adequate. Even worse, Gnome terminal doesn't remember the size when closed and started again.

A good windowing system is a system where you don't need to move or resize windows. It is an unpleasant chore.

Also, moving/resizing windows requires dragging across a large distance which is inconvenient on a touchpad because you need to keep our finger touching the surface and there is no key you could use to keep virtual mouse button pressed.

So it surprises me, why Apple's OS didn't have a maximize button before and had a large dock that overlaps with windows. Was Apple OS intended to be used only with large monitors?

comment 3y ago · link · parent

I am not an US citizen, so I cannot have a say here, but I have another idea.

What's the problem if an IoT device is vulnerable? In the worst case the user will have to buy a new one (or pay someone for fixing it). Is it a serious problem? I think, no. Eventually users will understand which manufacturers are reliable and which are not.

You probably want to argue, that infected devices can be used in DDoS attacks. But in this case, why don't you take measures against DDoS attacks directly and leave IoT devices alone?

Why, despite Internet existing for 50 years, there is no protocol, using which any host can demand all upstream providers to block traffic from specific IP addresses? This would make low-level (transport-level and below) DDoS attacks impossible.

Make such standard and make it required for all top-level ISPs. In this case the malicious traffic can be stopped at source network or at least at Tier-1 level. Middlemen like Cloudflare would become unnecessary, and you would be able to withstand a multigigabit DDoS attack even having just $5 VPS.

comment 3y ago · link · parent

So Linux takes government's side, not user's?

comment 3y ago · link · parent

I see no value in targeting microcontrollers. They usually do not require high speed so can be designed by literally anyone with decent result.

comment 3y ago · link · parent

> A 32 entry iTLB helps cache virtual to physical address translations on the instruction side.

Why are TLBs so small? Are they super expensive or what? With 32 entries TLB it can cover only 1 Mb of RAM if using legacy 4k pages.

comment 3y ago · link · parent

TSMC situation is very suspicious. How can Taiwan be sure that their technology will not be copied by Intel and other American companies if they build a factory in US?

comment 3y ago · link · parent

If the video seems too long for you it probably is just not interesting. For example, videos on maths, or on music producing cannot be compressed to short format.

comment 3y ago · link · parent

Users pay for the Internet monthly though. Is that not enough?
1
899091
185