1,857 karma · joined Sep 3, 2020 (6y ago) · 393 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Not sure there is any automatic solution for compression here. If you know your own use case you are in the best position to choose where to sacrifice accuracy with a lossy compression scheme. But this relies on understanding of the accuracy of the input data, possible ranges of values, importance of accuracy in different fields etc. Not sure how an automated algorithm could take these real world constraints into account.
A clever compression algo can't help you if you try compress 4 doubles, but in reality you only needed byte precision on some fixed 0-100% range.
comment 4y ago · link · parent
comment 4y ago · link · parent
You get terminal identification from the carrier, no need to waste precious packet space on identifiers. And it's probably also a waste to encode field names into your packet - just record fields at the same offset every time. If 16 bits of precision is enough for you (it likely is) you can squeeze 16 metrics (or 16 time series recordings of the same metric) into every packet.
comment 4y ago · link · parent
Much more with compression specialized to your use case and clever packet design.
comment 4y ago · link · parent
comment 4y ago · link · parent
A friendship is really an edge in a graph. if you manage friendships by recording a collection of friend PersonId's on each person, you are modelling a graph by recording the same edge in two different places, and then hoping the programmer is diligent enough to never make a mistake and update the edge in one place but not the other. If you model the friendship graph as a collection of id pairs, not encapsulated inside a specific person structure, this invalid state is no longer possible.
I'm not sure what you are on about regarding making transitive updates - that idea is obviously not going to work on any moderately sized network. Imagine if Facebook tried to record all your transitive friendships on your account!
Sure immutability is non-intuitive, but it's really helpful! Like borrow checking in Rust, immutability helps eliminate an entire class of bugs. And immutable code is often much easier to reason about, you need to keep significantly less of the context in your head.
comment 4y ago · link · parent
If you license your code to anyone under the Apache License, that person is then free to redistribute the code under the terms granted by the Apache License, which is obviously missing this $1,000,000 revenue restriction.
comment 4y ago · link · parent
I'm sure FB would love to be able to spend 2x on salaries if it came with a guarantee of turning the metaverse into a successful business venture, or of grabbing all the attention hours currently flowing to TikTok.
comment 4y ago · link · parent
Every more "developed" country went through real hardship attempting to control their exchange rates, always there were strong short term reasons to keep the controls in place. But it's just not viable in the long run. Controls create an artificial situation where the politically well connected benefit. They gain personal access to favorable rates, or their businesses enjoy unfair protection through the manipulated rates.
comment 4y ago · link · parent
When you remove currency controls you need to convince the public that in fact they controls are gone for good and never coming back. Such a thing was done in my home country in the mid 80s, and we have had a much more stable currency and economy since.
comment 4y ago · link · parent
I recently had my pre-Oct 2020 pros replaced with new manufactured stock under this support program. Within less than a month the replacements developed the same sound issues, supported by Apple's diagnosis and another free replacement.
I don't think I use them in an unusual way - I don't even wear them during exercise. There is just something inherently flawed in the design that causes the sound quality to subtly degrade by a significant amount.
comment 4y ago · link · parent
comment 4y ago · link · parent
There are still benefits to lossless from a preservation perspective, but for actually listening to music it really doesn't matter.
comment 4y ago · link · parent
Something is seriously up with the design of the original pros. I hope these issues have been resolved for 2nd gen.