Readit News logoReadit News
mulle_nat commented on Continuous Glucose Monitoring   imperialviolet.org/2025/0... · Posted by u/zdw
mulle_nat · 2 months ago
People should get on the bike and start cycling for real (like burn 200W an hour). Their perception of glucose will flip 100%. Suddenly glucose is like the fuel to your body, that you can't cram enough into. Which means white bread in the morning, croissants (and coca cola with sugar) will be your friends. Quite frankly a much better lifestyle.
mulle_nat commented on Landrun: Sandbox any Linux process using Landlock, no root or containers   github.com/Zouuup/landrun... · Posted by u/Zoup
__turbobrew__ · 5 months ago
> but nobody uses it because the API is ... hard!

OpenBSD really got it right with pledge and unveil.

mulle_nat · 5 months ago
I have been using https://github.com/marty1885/landlock-unveil on Linux for about two years now on my stock Ubuntu kernel. I am not sure, why this hasn't become more popular. It's also rootless sandboxing (and it does `unveil` like OpenBSD I guess). I use it to confine builds of third party software with success.
mulle_nat commented on I still like Sublime Text   ohdoylerules.com/workflow... · Posted by u/james2doyle
ciaovietnam · 7 months ago
I also use ST and use browser if I need some AI assisted coding. What about you guys? Is using IDEs with native AI coding plugin a good reason to switch away from ST?
mulle_nat · 7 months ago
Frankly yes, though I still prefer text editing in Sublime Text.
mulle_nat commented on Show HN: Rain hashes – well designed, simple and fast variable sized hashes   github.com/DOSAYGO-Resear... · Posted by u/keepamovin
keepamovin · 9 months ago
Ah, that's interesting. 32-bits yes you would get some collisions even from good hashes just statistically.

Also now I understand your constraints. Very interesting, so you are designing a custom hash function to use in this specific domain of keys with specific probabilistic properties, and you are thinking that there would be some way you could multiply by a certain prime that would ideally fan out these keys to be evenly distributed over the space?

mulle-objc looks fascinating: fast, portable Objective-C runtime written 100% in C11. I encourage you to post a Show HN I'm sure people here would like it.

mulle_nat · 8 months ago
Actually I already did, a few years ago: https://news.ycombinator.com/item?id=13030568
mulle_nat commented on Show HN: Rain hashes – well designed, simple and fast variable sized hashes   github.com/DOSAYGO-Resear... · Posted by u/keepamovin
rurban · 9 months ago
Spooky also has some good results on common identifiers.

But fnv-1a is in a completely different league. It's recommended for hash tables with other security measures than hash function security. This hash is a typical hybrid, but not universal. umash would be the perfect hybrid: insecure, pretty fast, passes all tests, universal

mulle_nat · 9 months ago
Thanks for the umash tip.
mulle_nat commented on Show HN: Rain hashes – well designed, simple and fast variable sized hashes   github.com/DOSAYGO-Resear... · Posted by u/keepamovin
keepamovin · 9 months ago
Everything is in the source code. I highly doubt any of the good hash functions listed in smhasher3 (ie all tests passed) would collide over identifiers.

So they should all have zero collisions, meaning there’s no ‘least’ among the good quality ones - they’re all equally collissionless (they differ in other tests).

Sounds like an interesting project. What’s its purpose?

mulle_nat · 9 months ago
Cool. I forgot to mention, that I am truncating the hash down to 32 bits to hopefully generate tighter CPU instructions. At these few bits, collisions are still rare enough, but they are a concern.

Now my understanding of the choice of prime is that, you are "weighing" the input bits and the computed bits, that will form the hash. So in case of identifiers its very likely that bit 7 of the input is always 0 and say maybe bit 4 is statistically more likely to be 1 by some margin. The other input bits would have some entropy as well. I would expect that certain (imperfect) primes would then aid me to get a better use of the 32 bit space and therefore less risk of a collision for my Objective-C runtime.

You can check out the project here: https://github.com/mulle-objc.

mulle_nat commented on Show HN: Rain hashes – well designed, simple and fast variable sized hashes   github.com/DOSAYGO-Resear... · Posted by u/keepamovin
keepamovin · 9 months ago
This is my hash included in the best hash testing library out there "SMHasher3" maintained by Frank T Wojcik: https://gitlab.com/fwojcik/smhasher3 This test lib has many improvements over SMHasher 1 & 2, listed on the previous link. Results are: https://gitlab.com/fwojcik/smhasher3/-/blob/main/results/REA...

Rainbow is the fastest 128-bit hash, and the fastest 256-bit hash (non-crypto). The 8th fastest 64-bit hash (by family, or 9th fastest overall, and 13-th fatest overall if you include 32-bit hashes). The advantage of rainbow is its easily scalable output size (64, 128 and 256), its high quality (passes all the tests), and its utter simplicity: it is under 140 source lines of code, easily readable

The random constants are primes that were selected based on their avalanche quality under a multiply modulo operation. This part of the development was interesting different primes had very distinctly different avalanche qualities. The highest quality primes caused good avalanche (~ 50% bit flip probability) across the widest possible set of bits, on average. These are quite rare. A lot of large primes only avalanche across a narrow range of bits, even in a 128-bit space. The search program took a couple of days to discover all these primes running on a 2020s era MBP. Primes are chosen because they give a complete residue set under the modulus, ensuring a long cycle length at least regarding the nominal test operation.

The rest of the hash was developed by trial and error using my intuition on developing hashes arising from long experience of doing so, and using SMHasher3 to evaluate the results, by iterating to improve and re-testing, over a period of a couple of weeks in the holidays a few years ago. I started making hash functions in my teens as a fun hobby.

There's also a fun little wasm powered dashboard you can play with, here: https://dosaygo-research.github.io/rain/

mulle_nat · 9 months ago
I am using fnv-1a to hash Objective-C method selectors, which are generally just identifier characters and zero or multiple ':'. At the time of my research, fnv-1a had the least collisions over my set of "real life" selectors. I think, it could be worthwhile some time, to try out other constants for maybe even less collisions. Is your list of good primes available ? (And maybe also those that are not quite perfect)
mulle_nat commented on Biggest shell programs   github.com/oils-for-unix/... · Posted by u/todsacerdoti
mulle_nat · 9 months ago
I think for sports, I could wrap all the various mulle-sde and mulle-bashfunction files back into one and make it > 100K lines. It wouldn't even be cheating, because it naturally fractalized into multiple sub-projects with sub-components from a monolithic script over time.
mulle_nat commented on Launch HN: Codebuff (YC F24) – CLI tool that writes code for you    · Posted by u/jahooma
sagarpatil · 10 months ago
$99/month lol. I have Perplexity, OpenAI, Claude and Cursor subscription and I end up paying way less than $99/month. Clearly you haven't done any research on price. Aider, Cline are open source, in not sure why someone would subscribe to it unless it's the top model on http://swebench.com/
mulle_nat · 10 months ago
I tried it on two of my git repositories, just to see, if it could do a decent commit summary. I was very pleasantly surprised with the good result. I was unpleasantly surprised, that this already cost me 175 credits. If I extrapolate this over my ~100 repositories, that would already put me at 8750, just to let it write a commit message for release day. That is way out of free range and basically would eat up most of the $99 I would have to spend as well. My subscription price for cody is $8 for a month. Pricing seems just way off.
mulle_nat commented on What was the point of [ "x$var" = "xval" ]? (2021)   vidarholen.net/contents/b... · Posted by u/fanf2
hi-v-rocknroll · a year ago
[ wasn't an operator or language construct but an external program similar or the same as test. ] was a final argument.

In today's world where bash is and does supplant POSIX for all intents and purposes, use [[ and (( because they're part of the interpreter and more flexible.

mulle_nat · a year ago
When I benchmarked it, I saw no difference between [ and [[ when using bash, so I assume [ is handled (now) by the shell as well.

The syntax inside [[ is different though.

u/mulle_nat

KarmaCake day559October 8, 2015
About
Senior Mull - Mulle kybernetiK

twitter: @mulle_nat twitch : https://www.twitch.tv/mulle_kybernetik_tv blog : https://www.mulle-kybernetik.com/weblog

View Original