Damus
jb55 profile picture
jb55
@jb55
working on an embedded database custom-built for nostr. think an embeddable strfry. It will probably be the fastest special-purpose database on the planet once it’s done.

I’ve built a custom in-memory note representation with O(1) and zero-copy access so that you can memory-map the data from inside lmdb directly into your data types without needing to serialize anything in and out.

if that didn’t make sense, the TLDR: shit is about to get real fast.

https://github.com/damus-io/nostrdb
4631❤️46🤙60👀3❤️2💜2🫂2
zach · 135w
I feel like you wrote TLDR for me and I appreciate you.
Glenn · 135w
Holy f.
The Callnote · 135w
🤯👆🏻
Water Blower · 135w
Let’s do it!
nym · 135w
Awesome thanks Will
Water Blower · 135w
Will you support in memory mode so that I can use it in browser?
HoloKat · 135w
Thanks for the Tldr; I needed it.
simulx · 135w
now how do we shard things across a cluster of pods... and still get a coherent subscription.
Pedro Vicente · 135w
“Fastest database on the planet” sound ambitious. Unrelated: I added CMake build and a Windows port for nostril couple months ago, submitted a pull request , but got no response (also adds the secp256k1 source, but that can be taken out) https://github.com/jb55/nostril/pull/30
jake · 135w
I wish I understood this. How real, and how fast?
Vanessa · 135w
On the planet tho? Lol 🤔 I ask you what you did today and I get this? Lol
Mike Dilger ☑️ · 135w
> I've built a custom in-memory note representation... That is quite the trick, much easier to code in C than in rust. I love this idea. This will be faster than anything I code for some time. I'm serializing/deserializing and even though I'm using a fast library (speedy) it still requires an allo...
Vanessa · 135w
Who wants a video of Will trying to explain what he spent all day working on to me (normie)? Lol.
fmar · 135w
Stay humble
marventus · 135w
Dope!
Keith Mukai · 135w
You know shit gettin' real when "big O" notation comes out.
vasily · 135w
Is this something all relays will use by default or what is the intended use case(s)?
jeff · 135w
👀
Zachary Sunforge · 135w
How'd you decide to use C for this and Rust for shatter?
Mr. Ed, The Talking Horse Trader · 134w
The old-timers have been doing this for a long time. Every generation thinks they are such geniuses by reinventing the wheel that’s a previous generation already did.
k00b · 134w
😍 C