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

I have read this and I don't understand why Wayland developers don't want to write an adapter for NVidia's proprietary API. How is it worse than other APIs?

Also, porting proprietary drivers for Linux must be a pain because there is no driver API and you cannot just release a closed-source driver and forget about it, you have to open source it and maintain it forever. No wonder manufacturers don't want to bother with this.

comment 7y ago · link · parent

This is bad ergonomics because to use it the developer has to install Docker which is a monster made by commercial company and run with root privileges. It's privileges are enough to gather "telemetry" including you browser cookies and history, install and uninstall software or delete all files on your hard drive. Why would anyone want to run such dangerous daemon I don't understand.

Also on Windows and Mac Docker user virtual machines with worse performance.

It is OK to install Docker on a throwaway VPS, or in office, but not on your own machine.

Instead of this poor designed technology it is better to use portable programs (which can be downloaded in binary form to avoid compilation) and collection of bash scripts. Then you won't have to install the aforementioned proprietary daemon.

comment 7y ago · link · parent

Maybe then they can buy a PC and seat an employee that will spend all the day browsing the web. Instead of spying on everyone.

comment 7y ago · link · parent

Intel has thousands of employees. They could spy on them and not on external users.

comment 7y ago · link · parent

If the drivers were open source, they would need good programmers to maintain them. And if they had good programmers, they could have reverse-engineered proprietary drivers. But I guess that buying an old PC might be cheaper than hiring a good programmer.

comment 7y ago · link · parent

What if the vendor would prefer not to disclose source code? All drivers cannot be included into the kernel, even if they were, this would be a lot of code and who is going to maintain it?

This document shows how unfriendly is Linux to third-party code. Either you contribute into giant monolitic kernel, or your device won't work with next major kernel release.

> Depending on the version of the C compiler you use, different kernel

> data structures will contain different alignment of structures

That doesn't make sense. How does Microsoft use structures in their API then?

Furthermore, unlike Windows software, you cannot compile Linux kernel with any compiler except for GCC [1]. It doesn't comply with C standards.

> Depending on what kernel build options you select, a wide range of

> different things can be assumed by the kernel

> - different structures can contain different fields

That looks like poor design. Why care about non-standard configuration? Let those who use it solve the problems themselves which would be the true open source way.

> Linux runs on a wide range of different processor architectures.

> There is no way that binary drivers from one architecture will run

> on another architecture properly.

Supporting i386 is enough. Nobody is going to insert a PCI device into a smartphone. If there will be new CPU architectures, one can use i386 emulator.

> As a specific examples of this, the in-kernel USB interfaces have

> undergone at least three different reworks over the lifetime of this

> subsystem

They could make 3 versions of API and adapters that would support drivers written against older versions of API.

I think the real reason is that designing API is hard, and Linux developers have no interest in this. They care only about server platforms and those platforms have open-source drivers because they need Linux. Nobody cares that your USB webcam doesn't work because you don't connect webcam to a server.

I think that Linux could also rely on existing Windows drivers that exist for almost every device. Linux could provide an environment similar to Windows kernel, and run those drivers in a sandbox. For many devices, this is the only sane way to have them working with Linux.

[1] https://stackoverflow.com/questions/20600497/which-c-version...

comment 7y ago · link · parent

If Linux had stable kernel-to-driver interface, that driver could work today.

comment 7y ago · link · parent

For me in Russia gmail always requires a phone number. But my ISP is large and maybe someone of its users was sending spam or did something bad.

comment 7y ago · link · parent

> I'd argue there isn't a middle class use case for strong anonymity.

So you don't mind that banks can sell information about where you were, who you are and what you buy, mobile carriers sell information about who you are and where you live and whom do you call? Treating you as a "consumer" without any rights.

The only way to opt from being sold is not to provide information about yourself. Which is called anonimity. Use anonymous cash, anonymous bank account, anonymous messengers, anonymous SIM card. Sadly, most governments don't allow this because they don't want to trust you and they are not at your side but at the side of bigdata traders.

So today you can buy drugs anonymously using Telegram, but cannot buy something anonymously on Ebay using Paypal without filling out a long form with passport data as if you were applying for US visa.

comment 7y ago · link · parent

Encryption can be done on device. Google as the major player could simply implement it without carriers' approval and without changing underlying protocols. Instead they have chosen to route unencrypted messages through their servers.

> or they have to comply with local law enforcement regulations about texting.

Carriers can record encrypted messages and provide them to police and courts.

comment 7y ago · link · parent

Isn't RCS invented to let mobile carriers take back the market of mobile messaging from messengers like Telegram or Whatsapp? There will be no encryption, it won't work without Internet and users can be charged for every message.

Of course, no sane person will want to use it so Google will have to add something that will be available only to RCS and not to other messengers.

comment 7y ago · link · parent

Yes, I also notice that I often don't have to go to Google because the page I need is in the dropdown. Suggestions in FF work awesome.

comment 7y ago · link · parent

You can combine IP address with fingerprint built from WebGL video card information, fonts list and rendering details, OS name, CPU type, memory size (yes, browser provides this) and screen resolution.

comment 7y ago · link · parent

It doesn't protect from fingerprinting your machine using WebGL (whose main purpose is to extract data about video card), canvas (main purpose of canvas is to check what fonts you have and how they are rendered), screen size, OS and IP address and TTL of IP packets.

Then you carelessly enter your non-temporary email address or phone number to get an order from a shop and the shop links your fingerprint to your offline identifiers. Now you cannot escape from tracking anymore.

Fingerprinting is real. For example, a site of government services for Moscow has fingerprinting code and users log into it with their real name.

You can use containers or private mode but your fingerprint stays the same and uniquely identifies you. Disable WebGL, canvas, accessing non-default fonts from browser, reading OS name and screen size right now and vote for disabling it by default if you don't want to be tracked.

comment 7y ago · link · parent

The best way to protect dissidents would be not to ask unnecessary personal information like phone numbers. Sadly, it is difficult to find a messenger or web email service that doesn't require it.

comment 7y ago · link · parent

That is difficult to believe. I unpacked Linux version of the app, Electron binary is 120 Mb, resources.pak is 8 Mb, ICU library is 10 Mb. How can a whole Electron app take just 74 Mb? The numbers don't add up.

To test it myself, I started the program (with --no-sandbox because it requires root privileges otherwise) and measured memory usage using smem:

    $ sudo smem --userfilter=nobody -k --totals

    PID User     Command                         Swap      USS      PSS      RSS 
    23365 nobody   /tmp/.mount_markteqQvqZF/ma        0     6.3M    14.2M    37.7M 
    23388 nobody   /tmp/.mount_markteqQvqZF/ma        0    46.6M    59.4M    90.9M 
    23363 nobody   ./marktext --no-sandbox            0    53.3M    76.3M   118.4M 
    23392 nobody   /tmp/.mount_markteqQvqZF/ma        0   121.1M   142.3M   183.0M 
PSS (Potential Set Size) [1] numbers are additive unlike RSS, so we can sum them and get around 291 Mb of RAM. This counts pages, that are shared between several processes, only once.

Either MacOS uses RAM several times more effective than Linux, or Activity Monitor is showing incorrect numbers to make impression that Mac apps take less memory than apps on competing operating systems.

[1] https://en.wikipedia.org/wiki/Proportional_set_size

comment 7y ago · link · parent

Should not "entry-level" motherboard cost around $20-40 and not $100? Not reasonable at all.

Also, in laptops you cannot upgrade the motherboard.

comment 7y ago · link · parent

Older Intel chipsets don't support more than 4 Gb. New chipsets and motherboards also have a limitation, typically about 16 or 32 Gb. Doesn't it look artificial? What is the reason for it? Of course, to make sure that the consumer won't be able to use them for too long without paying for a new one.

comment 7y ago · link · parent

Not everyone has a system with over 8 or 16 gigabytes of RAM to run such apps.

comment 7y ago · link · parent

The effects of having no money and nothing to eat and nowhere to live, I assume, are much stronger than the ones you are describing.

comment 7y ago · link · parent

More probably you will be waking up to the ads.

comment 7y ago · link · parent

Don't mobile networks broadcast the time already?

comment 7y ago · link · parent

To develop better fingerprinting methods.

comment 7y ago · link · parent

REST is a poor choice. Use any popular binary RPC protocol over Bluetooth/USB and don't add unnecessary complexity.
1
121122123
185