Recent submissions

Comment · 6 years ago
It took a few weeks to go away completely, but got noticeably better just after a couple of days. I'm pretty confident in that diagnosis, as nothing else have changed.
Comment · 6 years ago
> So please don't interpret this story as a reason to avoid any vitamin D supplementation. 1-2000 IU/day has been shown to be safe with long term use

I'll give you a more regular story. Some time ago I thought I needed to take D3 supplements after being exposed to all this PR pushing it and given that I don't eat food rich in it, rarely get sunlight, don't go outside in daylight (densely populated area, supermarkets work 24/7, etc.). So I bought some and took 2000 IU/day for a few days. Suddenly I started feeling numbness on the tip of my toes. After a bit of research I attributed it to D3, immediately stopped taking it, but numbness went away only after a few weeks. It's hard to see how taking it longer could have been safe.

So please don't generalize that 2000 IU is safe just because something showed that it was for some people in certain circumstances given certain country-specific lifestyle, foods, etc. I don't think a decent study on D3 safety even exists.

Comment · 6 years ago
Sort of, there is pseudoanonimity layer in Telegram that doesn't show your phone number to others, so if you can be reasonably sure that Telegram isn't going to give you up to the police of your country - your privacy can be preserved. While Signal literally identifies contacts via phone numbers and there is no mass communication features anyway, so it's both less private and less useful for such purposes.
Comment · 6 years ago
Maybe GPL started as an anti-capitalist license, but in practice it became very much pro-capitalist. It got to the point that GPLv3 and AGPLv3 were split into two licenses to satisfy capitalists.

Among various properly written and practical open source licenses Parity license is probably the most anti-capitalist one.

Comment · 6 years ago
> Say 100 nodes edit a doc. To drop a tombstone, without a central server we need 99 acks. Even with a server, the server keeps an ever-growing list of ops unless it uses some garbage collection techniques. And as stated by OP those techniques have their own problems.

Here's how it could be done (very roughly):

When a client makes a modification, it creates an op representing that modification and includes a list of server identifiers to send the op to. Then queues the op. Once op is sent and ACKed by at least one of the servers the op is dropped from the queue.

Servers receiving the op synchronize the op with each other, ACKing each other and removing ACKed servers from the list. They also synchronize with the clients, sending the op to each client and asking clients to ACK to all servers. Obviously there are multiple ways to do it and it can be almost as efficient as theoretically possibly, but of course you can't avoid some metadata for each client associated with a particular document even though it doesn't have to be kept in server memory, it could be stored on disk.

> I'm talking about structures with semantic meaning.

Semantic meaning generally doesn't map to any data structure directly, CRDTs are not an exception here either.

Comment · 6 years ago
> it's because CRDT merges aren't a good fit for the problems a code editor is trying to solve

I think you are not talking about CRDTs here. CRDTs are a pretty good fit for distributed systems that share state, which is what collaborative editing is underneath. It's just that semantically completely automatic conflict resolution is incompatible with human collaborative editing, which is pretty obvious, but for some reason plenty of research goes into trying to do just that.

Comment · 6 years ago
> Memory issues with tombstones. Marking as deletion has a cost of maintaining them throughout the session.

That's not true, you don't need to keep them throughout the session. You can drop them as soon as you either synchronize with other clients or with the server, which can then synchronize with the clients, that's what conflict-free nature of CRDTs allows you to do. The only fundamental requirement is to keep track of changes when you are offline or out of sync until they are sent to others and even then you are supposed to merge those changes into fewer changes keeping disk and memory use down to a minimum.

> CRDTs were perfect for plain strings and arbitrary key/value pairs. But when it comes to schematic JSON that has semantic value CRDT was an added overhead.

Also not true. They were never perfect for plain strings, even incompatible semantically, but perfect for sets, counters, numbers, where basic commutative math is enough, a few other things and anything that combines those primitives into more complex ones, especially true for schematic structures, tables.

You should really try implementing CRDTs, especially OP-based, they change the way you think about keeping shared state in distributed systems.

> Since the software is primarily a cloud document editor, a central server is necessary even otherwise. So why not use the server for efficient version management and operation sequencing as well? Why chose CRDTs whose bulk of complexity comes from eliminating the need of a central system?

There is zero complexity in CRDTs that comes from eliminating the need of a central system, it's a completely different problem orthogonal to CRDTs. Central systems is where CRDTs are used the most actually.

Comment · 6 years ago
Comment · 6 years ago
It was hard to jam radio transmissions in the past, but these days it's common. Russia did that to Ukrainian channels in Crimea and Donbass and Belarus has access to the same Russian technology.
Comment · 6 years ago
They were not, but since the polls were banned during elections the government at least had some deniability and fewer people were convinced it was all fake. But this time massive protests and polls and information online convinced everyone there is no real support left. Hence the shutdown of the internet.
Comment · 6 years ago
Deep discharge is a factor, but not a big one, heat has very little effect, it only affects voltages at which battery will be considered overcharged or deeply discharged as specs are usually all for room temperature.

I've used UPSes that discharge batteries no lower than 10.5 (no deep discharge) and only once in a couple of years and that charge them to and keep them at 13.6 volts under stable room temperature all year. All batteries lost most of the capacity after 3 years, two almost all of it, one had like 40% left. In five years only that one was still surviving short minutes outages, while initially was able to do a few hours. For comparison, I had one battery just laying around for 6 years in the same room without touching it and it lost only like 30%.

Comment · 6 years ago
You can put your equipment on a voltage relay to make failure modes as simple as flipping a circuit breaker. It will turn off once voltage drops too much and will wait for it to stabilize for specified amount of time to turn it on.
Comment · 6 years ago
Yep, and once you start using custom DC UPSes the biggest issue will be battery chargers that kill lead-acid batteries. Things are better with LiFePO4 these days, but for lead-acid I haven't found a solution except for literally hacking a pulse charger and battery management on top of arduino.
Comment · 6 years ago
That's not really a proper way to deal with it. Proper UPS for a home server or any standalone server or appliance has to hook up either after ATX power supply in parallel and provide all the ATX voltages or hook up directly into a power supply to save a bit on extra converters. This way UPS failure won't affect anything and such UPS will be much more efficient.

It's just that consumer home UPSes are almost scam level products designed to profit from naive people. They are both not improving things for an average user and killing batteries after like a year of operation (lead acid batteries can last for like a decade when not subjected to those UPS chargers).

Comment · 6 years ago
It's controversial because there is nothing actually rude about "it's broken! FIX IT!!!" message and when people are truly rude while asking for support it's because they are frustrated with the service they wasted time on and paid money for. Mocking frustrated users is just crazy.

Also if you have them on a tiny service it's likely an indication of poor user experience: poor user interfaces, poor performance, poor documentation, poor reliability, etc.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton