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

I don't like that SVG uses things like CSS and JS and requires pulling in the whole browser to display. Instead of being a simple vector image format, it became just an extension of HTML. Maybe we need a new format, and if someone decides to do it, please add ability to embed fonts, wrap text and decent animations.

comment 7mo ago · link · parent

Cannot it be a noise from imperfect switching? The switching occurs at lower frequency, and the noise is high frequency.

comment 7mo ago · link · parent

You can put hardware acceleration behind permission.

comment 7mo ago · link · parent

Honestly it seems that most of Web Standards are used mostly for fingerprinting - I think a small number of websites uses IndexedDB (who even needs it) for actually storing data rather than fingerprinting.

That's why expansion of web standards is wrong. Browser should provide minimal APIs for interacting with device and features like IndexedDB can be implemented as WebAssembly library, leaking no valuable data.

For example, if canvas provided only access to picture buffer, and no drawing routines calling into platform-specific libraries, it would become useless for fingerprinting.

comment 7mo ago · link · parent

It requires extra effort to write conversion algorithm for older data structure version.

comment 7mo ago · link · parent

You can hire people to test your product and provide analytics. But not try to siphon the data for free.

comment 7mo ago · link · parent

Then pay for the data if you need it so bad.

comment 7mo ago · link · parent

You could hire people to be testers and pay them for the analytics, I think they would even allow you to record the screen if you paid well enough. The problem is that you do not want to pay or get consent, you want to grab the data for free and without permission and without people realizing what you do. And such kind of people deserve much worse treatment than they are treated today.

comment 7mo ago · link · parent

Why do you need to collect hardware fingerprint, IMEI, phone number, geolocation, list of nearby wifi access points, list of installed applications, selfie and passport photo when you can simply count how much times a server route was called?

comment 7mo ago · link · parent

Analytics is wrong. I never click any ads, but they keep showing it. I avoid registering or enter fake emails, but they keep showing full screen popups asking for email. I always reject cookies but they still ask me to accept them. And youtube keeps pushing those vertical videos for alternately gifted kids despite me never watching them. What's the point of this garbage analytics. It seems that their only goal is to annoy people.

comment 7mo ago · link · parent

You can have strings by using relative pointers ("string starts 123 bytes before this").

comment 7mo ago · link · parent

I disagree. Big endian is long dead and not worth worrying about. And code pages too. What is more important, is dealing with schema changes, when you add new fields to requests and responses.

comment 7mo ago · link · parent

What you use is perfect for short-range communication (application and child process talking over shared memory), but not good for long-range communication (over Internet) because you can have old client talking to new version of a server, so you will have to add version numbers and have the code to parse outdated formats. But protobuf has compatibility built in and you do not need to write anything to support outdated clients. Also, protobuf uses solutions like varints to compress data to use less network traffic. So it is obviously made for long-range communication, and you probably do not have that and send 7 zeros for every small number.

TL;DR protobuf has version compatibility and compact number encoding.

comment 7mo ago · link · parent

As I understand, protobuf has compatibility (it stores field ids), so new service can read request from older client, and vice versa, so you do not need to refactor anything. Also, it is made for long-range communications, and is inefficient for inter-process or inter-thread messaging.

comment 7mo ago · link · parent

I wanted to recall what protobuf is, but when I opened the docs I didn't see the binary structure - the most important part - instead there are some code examples which are less important. If you are making a serialization format, please begin the docs with wire format diagrams.

comment 7mo ago · link · parent

It's a good move, but that is not enough. My old Chinese phone had a replaceable battery but it lasted so long that after it died, it was not possible to find the replacement. It seems that all phones have batteries with different sizes, and potentially different third pin designation, so even if you find smaller battery, it still can be incompatible because of third pin.

So if you want phones to be usable for longer period, you need to standardize batteries.

comment 7mo ago · link · parent

But you need something better than a 3D printer for bullets. So if bullet sales are regulated, there is no need to regulate 3D printing.

comment 7mo ago · link · parent

Making a bullet is definitely more difficult than printing a plastic gun handle (you need the bullet itself, and the cartridge fit it perfectly), and you have a non-zero chance to lose some parts of the body if you make a mistake.

comment 7mo ago · link · parent

Sorry if it is a dumb question, but why in USA people try to regulate 3D printing instead of banning sale of bullets without a firearm owner license? What stops people from buying Chinese printers or components on AliExpress? Or using an open source printer? At the same time, if you cannot buy bullets, your plastic gun is worthless.

comment 9mo ago · link · parent

30-A3B model gives 13 t/s without GPU (I noticed that token/sec * # of params matches memory bandwidth).

comment 9mo ago · link · parent

It's sad they only have 80B version, given current RAM prices.

comment 9mo ago · link · parent

This would not be a problem if you phone did not have IMEI and IMSI, and if the telco only provided an anonymous Internet channel. The problem is that you must have a phone number, often linked to your ID and pay with a bank card, linked to your ID, instead of cryptocurrency. Towers and beamforming are not a problem at all.

comment 9mo ago · link · parent

This shows the importance of having open-source software and firmware - commercial companies will betray you every day - remember HDCP, unskippable DVD sections, TPM, updates you cannot disable, "security enclaves", content protection areas on SSDs and all the similar stuff where interests if the owner are not considered.

comment 9mo ago · link · parent

You don't need an emulator, you can compile into GPU machine code.

comment 10mo ago · link · parent

I think it is possible to run CPU code on GPU (including the whole OS), because GPU has registers, memory, arithmetic and branch instructions, and that should be enough. However, it will be able to use only several cores from many thousands because GPU cores are effectively wide SIMD cores, grouped into the clusters, and CPU-style code would use only single SIMD lane. Am I wrong?

comment 10mo ago · link · parent

Cooperating with law enforcement cannot be a fraud. Fraud is lying to get illegal gains. I think, it's legally ok to lie if the goal is to catch a criminal and help the government.

For example, in 20th century, an European manufacturer of encryption machines (Crypto AG [1]) made a backdoor at request of governments and never got punished - instead it got generous payments.

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

comment 10mo ago · link · parent

I don't think anybody is interested in reverse-engineering closed-source OS to check if it works as documented; it;s easier to just use Linux which has open-source code.

comment 10mo ago · link · parent

The law makes a distinction between storing it on a disk and just remembering the content. The latter is not a "copy" and not a subject of law:

> “Copies” are material objects, other than phonorecords, in which a work is fixed by any method now known or later developed, and from which the work can be perceived, reproduced, or otherwise communicated, either directly or with the aid of a machine or device. The term “copies” includes the material object, other than a phonorecord, in which the work is first fixed.

> A work is “fixed” in a tangible medium of expression when its embodiment in a copy or phonorecord, by or under the authority of the author, is sufficiently permanent or stable to permit it to be perceived, reproduced, or otherwise communicated for a period of more than transitory duration. A work consisting of sounds, images, or both, that are being transmitted, is “fixed” for purposes of this title if a fixation of the work is being made simultaneously with its transmission.

https://www.copyright.gov/title17/92chap1.html

1
242526
185