mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

#hash

0 posts0 participants0 posts today

Heute mit einer Frau auf dem #Spielplatz gesprochen, die mir ungefragt ihre Lebensgeschichte erzählt hat. War so spannend wie dramatisch: Sie hat als #Teen genau 1x gekifft und daraufhin eine #Schizophrenie #Psychose entwickelt mit wirklich krassen Auswirkungen bis heute. Sie lebt in ständiger Angst, dass die Stimmen wieder kommen. Im #Rettungsdienst bekommt man sowas öfter mit. Auch wenn #Kiffen #Hash legal ist - ungefährlich für #Jugendliche ist es nicht. #Familie #Fedieltern

Valkey 對 hash 資料結構的改善

在 Lobsters 上看到「A new hash table」這篇,講 Valkey 對 hash 資料結構的改善。 其中 Valkey 是 Redis 在捨棄 open source license 後興起的專案。這類拋棄 open source license 的專案中,有個關鍵的點是「原廠」與「社群」之間的貢獻比率。 如果整個專案都只有「原廠」的人在參與,那 fork 出來的版本就不會有太多前景了;反過來如果「社群」有提供不少貢獻,那 fork 出來的版本就有機會欣欣向榮。 Valkey 的這個 hash 的改善本身固然很重要 (因為 hash 算是很基礎的資料結構,有很多地方會用到),另外一方面,這代表了「社群」這邊的能量是存在的,就很值得期待了。 …

blog.gslin.org/archives/2025/0

Gea-Suan Lin's BLOG · Valkey 對 hash 資料結構的改善在 Lobsters 上看到「A new hash table」這篇,講 Valkey 對 hash 資料結構的改善。 其中 Valkey 是 Redis 在捨棄 open source license 後興起的專案。這類拋棄 open source license 的專案中,有個關鍵的點是「原廠」與「社群」之間的貢獻比率。 如果...

Guys I've been thinking about this recently
So the telegraph has existed for a while, and became widespread in 1800s. Charles Babbage worked on the first mechanical #computers in the 1820s

What would be the earliest point in time in which a #Bitcoin like #Blockchain could've been made?

As I understand it all the system needs is a #network of computers each running a program that checks for transactions

I'm wondering if a different hash function was used it could be a lot simpler to implement into hardware, but if mechanical computing wasn't powerful enough for that the earliest might've been after WWII with the code breaking machines that the Allies invented

Any boosts would be greatly appreciated!

I want to convert UTF-8 encoded strings into some sort of irreversible hash *and* maintain correct sort order (or the ability to lexically compare strings).

If I say "Order-Preserving Hashing with Prefix-Free Encoding", what do you say? 🤔

The problem I foresee (with great wisdom 👀) is dictionary attacks, thus not being actually "irreversible".

#programming question, TL;DR: How to test for an (approximately) uniform #distribution?

Today at work, I created a piece of code that should #partition a stream of data entities based on some string keys of unknown format. The only requirements were that the same key must always be assigned to the same partition and the distribution should be approximately uniform (IOW all partitions should have roughly the same size). My approach was to apply a non-cryptographic #hash function to the keys (defaulting to #xxhash3), XOR-fold the hash down to 32 bits and then take this as an unsigned integer modulo the desired number of partitions.

I normally only code my private projects (as a software architect, I rarely have the time to touch any code at work, unfortunately), and there, I'd certainly test something like this on some large samples of input data, but probably just once manually. 🙈

But for work, I felt this should be done by a #unittest. I also think at least one set of input data should be somehow "random" (while others should contain "patterns"). My issue is with unit-testing the case for "random" input. One test I wrote feeds 16k GUIDs (in string representation) to my partitioner configured for 13 partitions, and checks that the factor between the largest and smallest partitions remains < 2, so, a very relaxed check. Still doubt remains because there's no way to guarantee this test won't go "red" eventually.

I now see several possible options:
  • just ignore this because hell freezing is more likely than that test going red ...
  • don't even attempt to test the resulting distribution on "random" input
  • bite the bullet and write some extra code creating "random" (unicode, random length within some limits) strings from a PRNG which will produce a predictable sequence

What do you think? 🤔 The latter option kind of sounds best, but then the complexity of the test will probably exceed the complexity of the code tested. 🙈

probably nothing, but this does feel like an interesting coincidence

2024-11-24T18:53:20.213Z
b2301c1d170a04f332317ee988548888888918bccc3a9106b5e4072b8dfd13eb

2024-11-25T15:53:35.763Z
9dcec361ac70f32f5dd097f8f6acf1a71b09e488888885c65ad9acebda08d240

2024-11-25t15:55:38.409z
721bdacd322224564b4e0fcd4659b7f42256d48d4a6d8888888e2c706cd2755f

2024-11-26T21:33:25.741Z
620535961c5f6b99fdd7b9fc5e144899a4bf8298888888d2559a17ef5eb54971

2024-11-26t22:25:45.818z
b31ac45c25efea25e0c9382f820011dfdb0ad012d53f7d107c658888888c6ed3

2024-11-27T12:49:48.822Z
10fe2a3991d708c98888888044d6ff0f359fc1352d285943ebd3cfbce39b1e13