Nostr 中文圈: https://following.space/d/musdrpjpdmbr ,值得关注的 nostr 中文用户都在这儿!😎
刚刚开始收集,用户数量很少,欢迎大家推荐&自荐呀~ 😀 #nostr中文
yfaming
yfaming@getalby.com
npub1jz8m...rg8y
- coder: Rust, Python, Racket(learning...)
- Nostr 中文圈 https://following.space/d/musdrpjpdmbr 值得关注的 nostr 中文用户都在这儿!
我刚在
注册了他们的新钱包服务,支持 Lightning Address(比如 @rizful.com)和我一直很喜欢的 NWC(Nostr Wallet Connect)协议。
现在我已把我的 nostr Lightning Address 设置为 yfaming@rizful.com,并在 Primal app 中通过 NWC 连接了这个钱包,整体体验很顺畅!
而且只要在 Nostr 上发帖并 AT @Rizful.com ,就可能收到他们发的 test zap 打赏~ 想试试?推荐参考这篇文档:
I just signed up for the new wallet service at
.
It supports Lightning Address (like @rizful.com) and the NWC (Nostr Wallet Connect) protocol, which I’ve always liked.
I’ve already set my nostr Lightning Address to yfaming@rizful.com
, and connected this wallet in the Primal app via NWC. The experience has been really smooth!
And here’s the fun part: if you post on Nostr and @Rizful.com, you might receive a test zap from them. Want to try it out? Check this guide: 

Rizful: Lightning Services
Free Lightning vaults, and instant, disposable Lightning Nodes.

Rizful First Steps | Megalith Lightning Docs
Pick a Lightning address and connect a Nostr wallet — quick and easy.

Rizful: Lightning Services
Free Lightning vaults, and instant, disposable Lightning Nodes.

Rizful First Steps | Megalith Lightning Docs
Pick a Lightning address and connect a Nostr wallet — quick and easy.
About nostr database
I’ve been reading the `NostrDatabase` trait and its LMDB backend in rust-nostr. Storing events is simple—just put `(event_id → event)` in a KV store. The challenge is querying, since LMDB itself only supports very basic lookups.
The approach in nostr-lmdb is to build extra indexes (e.g. author+kind+created_at+id, tag+created_at+id, etc.). Queries pick the most suitable index to fetch candidate event IDs, then filter them one by one.
A few thoughts:
Indexing on a KV store is straightforward, nothing mystical.
The query logic is verbose, basically a hand-rolled rule-based optimizer. A cost-based optimizer might be a more advanced path?
NostrDatabase only supports a single filter, while the protocol allows multiple filters (OR across filters). So a relay must merge results manually.
#rust-nostr #nostr
关于 nostr database
最近读了 rust-nostr 里的 NostrDatabase trait 及其 lmdb 实现。存储部分很直观,以 event_id 为 key 存储 event。难点在查询:因为 lmdb 只是 KV 数据库,它本身不支持复杂查询。
nostr-lmdb 的做法,是在存储 event 的同时,额外维护多组索引(比如 author+kind+created_at+id,tag+created_at+id 等)。查询时,先挑合适的索引定位可能的 event id,再逐一过滤。
这种实现让我有几点感受:
原来在 KV 底层上建索引可以这么做,其实没什么玄妙。
查询逻辑比较冗长,感觉像是手工实现了一个 rule-based 优化器。如果更复杂,或许需要 cost-based 优化?
目前 NostrDatabase 只支持单一 filter,而协议里 filter 之间是 OR 关系。如果要做 relay,还得额外处理多个 filter 的合并。


哭了,连续三次没抢到币安 Alpha 空投,竞争这么激烈的吗?!😂
直接在 nginx 配置里设置 NIP-05 验证,不得不说 nginx 真挺强大,我了解的太少了(方案是 ChatGPT 给的)。


手速太慢,错失一次币安 Alpha 空投 😭
dioxus 看起来不错,能用 Rust 同时写 UI 和业务逻辑,对我来说挺有吸引力的。这是它相较于 tauri 的最大优势。
值得关注的是 dioxus 的 UI 组件功能是否足够强大。毕竟,目前用前端技术写 UI(HTML/CSS/JavaScript)几乎是最优解,有 React、Vue、Tailwind CSS 等成熟且强大的库可用。如果 dioxus 的 UI 能达到类似的水平,那它就更有吸引力了。

GitHub
GitHub - DioxusLabs/dioxus: Fullstack app framework for web, desktop, and mobile.
Fullstack app framework for web, desktop, and mobile. - DioxusLabs/dioxus
今天币安 Alpha 没有空投,伤心中
币安 Alpha 刷到了 240 分,看今天能不能领到空投吧!
刚估算了一下 nostr 数据的存储成本(单纯存,不做复杂查询/搜索),大概在 $20 左右,还算能接受。
那问题来了:nostr 数据有没有商业价值?至少能当 AI 的训练语料吧。要是真能卖出几份,光靠这就能覆盖运营成本了。
数据量(event & post)参考自 nostr.band。
Just estimated the storage cost for nostr data (pure storage, no complex queries/search).
Turns out it’s around $20 — pretty affordable.
But here’s the question: does nostr data have commercial value?
At the very least, it could serve as AI training corpus. If I can sell it a few times, that alone might cover the operating cost.
Event & post counts are based on nostr.band.
#nostr


How to Do Gret Work?
Four steps: choose a field, learn enough to get to the frontier, notice gaps, explore promising ones. This is how practically everyone who's done great work has done it, from painters to physicists.
How to Do Great Work
想多关注一些中文用户,欢迎推荐/自荐~
博客:thor - 基于 Rust + NWC 的 lightning address server
thor - 基于 Rust + NWC 的 lightning address server
⚡ Thor – A Lightning Address Server Powered by Rust and NWC
Just released [thor](https://github.com/yfaming/thor) — a lightning address server written in Rust.
With NWC (Nostr Wallet Connect), you can host your own lightning address on your domain.
Mine: `yfaming@yfaming.com` ⚡
#lightning #nostr #bitcoin


Hey @Mysterious Hamster your website is down. Quick, get the engineers out of bed and have them fix the problem already!
It seems that different participants in the WebAssembly community have varying focal points.
For instance, the WasmGC proposal has been implemented by browsers like Chrome, while the implementation in wasmtime is still in its early stages. WASI Preview 2 / Component Model is currently being actively developed only in wasmtime, with no follow-up from other stand-alone runtimes.
There's still a long list of proposals on the way for WebAssembly, which makes the future look promising!
#WebAssembly
missing the point of webassembly
It's uninspiring to say WebAssembly is an "assembly-like language", or "virtual machine”。😂
The point is: WebAssembly is a new fundamental abstraction boundary. WebAssembly is a new way of dividing computing systems into pieces and of composing systems from parts.😎
Great post by Andy Wingo, who is a co-maintainer of GNU Guile!
======
missing the point of webassembly
missing the point of webassembly — wingolog
Just stumbled upon this gem of an article about plugin systems, written back in 2012, and it's still super inspiring!
Fundamental concepts of plugin infrastructures
It uses a Python blog system as a case study to explore various aspects of plugin systems. In the end, the author nails it with a summary of the four key concepts of a plugin system:
1. discovery
2. registration
3. Application hooks to which plugins attach (aka "mount point")
4. Exposing application capabilities back to plugins (aka. extension API)
Such an insightful breakdown! Whether you're trying to get the hang of existing plugin systems or planning to design one, these fundamental concepts are your go-to guide. Totally hits the mark!
#plugin #Python
Fundamental concepts of plugin infrastructures - Eli Bendersky's website
How to earn sats from scratch?
Hi there! As a newcomer to the Nostr/Lightning world, I decided to take it seriously and start stacking sats less than two months ago. Now, I own over 3000 sats.
It isn't much, but it's a good start. I'm convinced I will earn more, when I dive deeper and deeper down the rabbit hole!
Most of my sats are earned via the 3 websites/apps below.
1. Sats4Likes, 768 sats. Most newbie friendly. Do some small tasks, i.e. repost/like/comment a tweet, follow some twitter or youtube user, subscribe a youtube channel, and get paid by sats. So easy! Some tasks are timelocked. You have to wait 24 hours to claim your work and get paid.
2. Fountain, 1396 sats. It's a podcast app. Listen to podcasts (especially promoted ones), and sats are earned. You might not earn immediately after signing up due to the anti-spam strategy. But trust me, use it every day, you will earn.
3. bitcoin magazine app, 765 sats. Earn 5 sats for every article your read. You have to earn 500 sats before you can withdraw. I only used the app, not the web. I'm not sure if web users can earn sats as well.
Sats4Likes:
Fountain:
Want more?
Here are 2 more places to earn! I just discovered them today.
1. Litstak , just vote(click) and earn! You don't even need to signup. As easy as sats4likes. You can earn at most 50 sats or so. You can use different browsers like Chrome, Firefox, Safari, and even change your IP with a VPN for more opportunities to earn! And I'm sure you know how to clear cookies, right?
2. Stacker News. Guess where I found about ways to stack sats, and how I discovered litstak? Yeah, stacker news! All you have to do is search "how to stack sats" on stacker news! Stacker news is the best place to share and talk about bitcoin ideas, 5-star recommendation! Sign up with my invitation link get 10 sats instantly:
Litstak: https://litstak.com/
Stacker News:
Happy stacking sats! Feel free to share your experiences or ask questions in the comments.
It isn't much, but it's a good start. I'm convinced I will earn more, when I dive deeper and deeper down the rabbit hole!
Most of my sats are earned via the 3 websites/apps below.
1. Sats4Likes, 768 sats. Most newbie friendly. Do some small tasks, i.e. repost/like/comment a tweet, follow some twitter or youtube user, subscribe a youtube channel, and get paid by sats. So easy! Some tasks are timelocked. You have to wait 24 hours to claim your work and get paid.
2. Fountain, 1396 sats. It's a podcast app. Listen to podcasts (especially promoted ones), and sats are earned. You might not earn immediately after signing up due to the anti-spam strategy. But trust me, use it every day, you will earn.
3. bitcoin magazine app, 765 sats. Earn 5 sats for every article your read. You have to earn 500 sats before you can withdraw. I only used the app, not the web. I'm not sure if web users can earn sats as well.
Sats4Likes: Sats4Likes
Sats4Likes
Earn Bitcoin to like tweets or join telegram groups.

Fountain
Fountain
Discover millions of podcasts and emerging artists worth supporting. Powered by RSS, Lightning and Nostr.

Stacker News
invites/clr4of5kk0001ofw3xdik7kbn \ stacker news
It's like Hacker News but we pay you Bitcoin.
Stacker News
stacker news
It's like Hacker News but we pay you Bitcoin.