News for hackers. Stuff that matters.

zond

Re:I built a multi platform torrent video streamer on Thursday September 17, 2026 @01:28PM (#49743911)
With the help of Claude I created an alternative https://www.stremio.com/ app, for every platform supported by Rust and Flutter (not tested on all, not built on iOS) that shares torrents back to the universe, uses almost-official stremio-core to handle existing Stremio accounts and add-ons, and also provides new features (so far only "dl for offline viewing"). It took a couple of weeks (mostly spent patching a fork of upstream torrent library rqbit) and for the most finicky bits (cache invalidation...) Fable was almost necessary, but I haven't even looked at the code so far.
Re:Jpegli: A New JPEG Coding Library on Thursday April 04, 2024 @06:42AM (#39928644)
The next sentence says "The test subject is able to flip between the two distortions, and has the original image available on the side for comparison at all times.", which indicates that the subjects weren't shown only the distortions.
Re:Facts about migration and crime in Sweden on Friday February 24, 2017 @08:12AM (#13723302)
The swedish government has no censorship powers.
The thing is, usually those foot holds are holding most of the weight - a chip for the foot is worth a jug in the hand :)
Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @05:40PM (#12915503)
Of course you're right, but it doesn't mean anything.

It's like saying that you should buy people lottery tickets instead of healthcare.

I once heard that the US citizens most vehemently against raising taxes for the rich were the homeless, because they didn't want THEIR taxes raised once THEY became rich.

Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @04:50PM (#12915037)
Because in the US of A it is so very easy.
Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @04:25PM (#12914822)
Yeah, this is a chicken and egg problem.

The US causes terrorism by steam rolling third world countries, but more or less has to do it now since these third world countries already hate the US enough to require this kind of policing.

Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @01:35PM (#12913186)
So now you leave the realm of economical possibilities and start pointing at political problems.

Isn't that a little too simple?

"No, we can't do that because we don't want to."

Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @12:10PM (#12912112)
This, yes.
Re:Donald Trump Is Elected President on Wednesday November 09, 2016 @12:09PM (#12912092)
I'm from Sweden, and we have the same policies but basically no natural resources that are worth anything anymore. Unlike the US of A.

It's not about oil, it's about realizing that a healthy, well educated and happy population is an investment that pays itself over time.

Re:UDP for games – encryption and DDoS protection on Thursday April 28, 2016 @04:28AM (#11587252)
If you encode each packet in a QUIC stream with it's own stream ID, and close QUIC streams after a timeout, you can use QUIC for unreliable unordered transports as well.
Re:God: Scalable in Memory Data Structure Server in Go on Saturday February 09, 2013 @09:45AM (#5192637)
Sounds gristly :O
Re:God: Scalable in Memory Data Structure Server in Go on Thursday February 07, 2013 @04:37AM (#5181250)
I guess it's not for you, then.
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @05:27PM (#5179281)
If you run out of RAM or CPU on a single machine you start running into operationally problematic situations with Redis.
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @05:03PM (#5179129)
I don't think I understand what you mean. Or you don't understand how my timestamps and time synchronization works?
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @07:28AM (#5176016)
> why do you care about how the data is actually stored?

I just said I don't. 'god does not force the user to hash the keys'.

> > To map keys to values, a mapping structure is needed. For infrastructural reasons (synchronization and cleaning) as well as for functionality of different kinds, we need a sorted mapping, and it has to be deterministically structured.

> why?

Functionality: To be able to return the first or the n'th entry it has to be ordered.

Synchronization/cleaning: To be able to hash element 0000-000f we need an efficient way to fetch a segment of elements, thus it again has to be ordered.

To optimize the hashing so that I don't have to keep two separate data structures I keep the hashes in the nodes of the sorted data structure. Thus the structure has to be deterministically structured or the hashes won't be equal even if the trees contain the same data.

Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:32AM (#5175476)
The synchronization uses Merkle trees, and they require ordered data since they hash contiguous data into a tree of hashes.

And to avoid having a separate structure for the Merkle trees I just hash all nodes in the main tree, and compare the hashes to find differences.

Thus the same content must have the same structure, or the comparisons won't work.

Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:05AM (#5175412)
Hard to know. It seems to perform comparably, anyway, at single node level.

I have yet to find a bunch of equally powerful machines to perform a proper scalability benchmark :/

Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:04AM (#5175411)
Yes, it isn't documented (for some reason, I must have forgot) but https://github.com/zond/god/blob/master/dhash/dhash.go#L109 shows how the empty string as persistence directory will avoid any persistence.
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:03AM (#5175409)
Yes, look at https://github.com/zond/commendable which is a real life project I am basing on god (as an exercise, showcase and test run).
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:01AM (#5175408)
I would have preferred other algorithms, but there was a strict need for 1) sorted data and 2) that 2 identical trees had the same structure (for the merkle element). Not many structures were left to choose from, and radix seemed to work well enough.
Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @03:00AM (#5175401)
Yup, I am not happy about the name.

It has its root in 'Go database', and began as a working name that I never had time to replace...

Re:God: Scalable in Memory Data Structure Server in Go on Wednesday February 06, 2013 @02:59AM (#5175399)
[disclaimer]I wrote god[/disclaimer]

As someone in the thread below wrote, Murmur is good if you don't worry about malicious keys (it is not cryptographic, and doesn't claim to be).

I don't worry about malicious keys :)