Damus
jb55 profile picture
jb55
@jb55
my late night recreational vibe coding session is now a library: https://github.com/jb55/droptables

droptables is a new rust library for sampling discrete probability distributions in O(1) time using Walker Alias tables generated at compile time!

It's pretty powerful and near optimal in terms of sampling performance, here's a demo of it simulating an OSRS boss:



code: https://github.com/jb55/droptables/blob/master/examples/osrs.rs

ok back to work...

36❤️4🤙2
trev · 27w
how about a nostr-based MUD using this crate? could use nip-29 maybe. stay up all night again
josh · 27w
Important question for you: do you remember the Falador Massacre?
, · 27w
Listening to Yr stream on Walker
OceanSlim · 26w
Funny. I just began working on a Runelite plugin myself 😂 Ironman qol. Hides drops that aren't yours and shop items that are overstock. On another note, let's build osrs on nostr. Each game tick is an event. Inventory and bank are an event. Etc.