Coder: Rust, Python | Vibe coding...

Internet
Joined February 2012
越来越觉得 Scheme 有意思。现在我也能写出令人畏惧的代码了。😂 用宏和 call/cc 实现 while 循环。 Scheme 本身不支持循环,只有递归。但是,有了宏让你自定义语法,有 call/cc 让你任意跳转,手搓一个循环就不成问题了。 碍眼的 `(break continue)` 可以用 syntax-case 解决,但现在还不会。😂
32
Haven’t checked Drift in a while. Today I found @DriftProtocol suspended. What the fuck? They announced a rebrand on July 1, and one week later the official account was gone. How are the victims supposed to feel about this?! Fuck you.
“Drift is running away.” No, we’re not If we wanted to run, we would’ve run. We wouldn’t be here rebranding publicly, getting dragged every day, and still working day and night to relaunch. The recovery plan is live and public. Protocol revenue is going into the Recovery Pool. That has not changed. Changing the name doesn’t mean we’re pretending nothing happened. It doesn’t erase what happened. It doesn’t erase our responsibility to affected users. But also, money is not falling from the sky. I can’t snap my fingers and make $295M magically reappear. All we can do is stay, rebuild, make the platform safer, launch a better product, generate real revenue, and keep putting that revenue back toward recovery.
51
过去一周的 SOL 流出情况如图,从 2.89M 降到 2.58M。 这也导致存入 SOL 的 APY 从日常不到 4%,剧烈升高到峰值的 37%,而现在为 18.9%,也是过于离谱了。 数据来自 Kamino 官网: kamino.com/borrow/reserve/7u…
Kamino Main Market 最近一周流出了 0.31M 个 SOL,价值超过 2500 万 USD。发生了什么? Kamino Main Market has seen an outflow of 0.31M SOL over the past week, worth over $25M USD. What's going on? @kamino @jason_chen998 @PhyrexNi @myanTokenGeek @WuBlockchain
80
Kamino Main Market 最近一周流出了 0.31M 个 SOL,价值超过 2500 万 USD。发生了什么? Kamino Main Market has seen an outflow of 0.31M SOL over the past week, worth over $25M USD. What's going on? @kamino @jason_chen998 @PhyrexNi @myanTokenGeek @WuBlockchain
1
112
# web3 钱包管理原则 总原则:资金分层,钱包分级,风险隔离。 根据资金性质,搭配钱包;根据钱包,搭配设备。 长期存储资金,冷钱包:硬件钱包,或多签钱包,或多签+硬件钱包。日常资金,热钱包:手机 app,或浏览器插件钱包。DeFi 资金,分散到不同平台,每个平台一个钱包,风险隔离。
3
66
日常使用的电脑,与专门操作 web3 的电脑要分开,最好使用专门电脑操作 web3。记住,电脑安全性比手机差,Android 安全性比 iPhone 差。 如果没这个条件,可在电脑上创建专门用户来操作 web3,也可起到一定隔离效果。
21
助记词写下来,乱序保存。助记词存一个地方,顺序存另一个地方。(有 passphrase 的话,不乱序也行?) 如果钱包支持 passphrase,用上。并往 passphrase 为空的钱包地址存少量币作为掩护。实际使用有 passphrase 的钱包。 目标:即使拿到助记词也不一定能恢复钱包,即使恢复了钱包也不一定能盗币。
40
多签钱包,不同 signer 一定使用不同设备,完全隔离。
23
我想知道的是,运营方被攻击,损失是由谁承担?很明显,运营方的失败,应当与用户无关。 I would like to know who bears the loss when the operator is attacked. Obviously, the operator’s failure should have nothing to do with the users.
Earlier today, a malicious actor gained unauthorized access to Drift Protocol through a novel attack involving durable nonces, resulting in a rapid takeover of Drift’s Security Council administrative powers. This was a highly sophisticated operation that appears to have involved multi-week preparation and staged execution, including the use of durable nonce accounts to pre-sign transactions that delayed execution.
21
博客文章: aibox - 给 AI agent 的虚拟机 yfaming.com/post/aibox 是时候让 AI agent 在我的虚拟机里随便玩了 😂😂😂
18
Vim 写 Rust 真的能接近 IDE。 基础操作(buffer/tab/window/jumplist)+ 一套顺手的 leader 映射 = 质变。配置基本是 ChatGPT 给最佳实践,我再微调,省掉自己踩快捷键冲突的坑。 插件极简:yegappan/lsp + nerdtree + ctrlp。MacVim/服务器 Vim 一套走天下。
25
X (Twitter) 刚刚开源了首页 Feed 的推荐算法。看来裁剪比较严重,代码主要是 3000 行 Python 和 4500 行 Rust。而且 Rust 项目缺少 Cargo.toml 文件,无法 build。代码引入了一些以 xai_ 为前缀为库,应该是内部库。 github.com/xai-org/x-algorit…
20
Parse, don’t validate.
Automatically generating a JSON parser from types is such a killer feature I don’t even think that much about until I have to interact with a third-party HTTP API and suddenly have to write reams and reams of code to very carefully ensure the data is the right shape.
15
尝试了新方法管理要阅读的资料,感觉还不错。 新建一个的浏览器窗口,作为待读队列,严格先进先出。先加入的没读完,禁止读后加入的。 所有需要阅读的文章,都放到这个窗口里面,(尤其)包括微信公众号的文章。 工作时间,电脑关闭微信。
20
挺有意思!👍👍👍
V2EX 在 2024 年,从开放的 Google 登录注册转向了邀请码系统。邀请码可以由老用户使用 10000 个铜币生成,然后发送给想注册的朋友使用。 铜币系统是一个从 2010 年网站上线第一天就开始运转的经济系统。新用户注册完成就会获得 2000 铜币,之后在发帖和回复时会消耗铜币。如果自己发的主题被别人回复,那么会获得别人消耗的铜币。 邀请码系统有效地挡住了 spammer 的反复注册。这大概也是很多互联网社区最终都转向邀请码系统的原因。 2025 年,V2EX 在注册和登录机制上引入了一个 Solana 网络上的 token。如果持续持有 10000 个 token,那么就可以不需要邀请码也可以激活账号使用社区内的交互功能。 Solana 网络上的 token 的兑换是自由的,和其他 token 之间的兑换比例形成对一个 token 的定价。 在这个过程中,定价会因为各种原因持续发生变化,而我在持续观察的是这个数值: PumpSwap AMM 池中的 Token 存量 你可以把 PumpSwap AMM 理解为是一个存放货物的仓库。如果需求高涨,价格也高涨,那么仓库中的货物就会减少。反之,如果需求下降,价格下跌时,那么仓库中的存货就会增加。 8-9 月份时,token 市值位于最高点附近时,AMM 里的存货数量大概是 1900 万 token,够大约 1900 新注册用户使用。 10 月至今,目前 AMM 里的存货数量大概是 5400 万,够大约 5400 新注册用户使用。 所以,对于 AMM 里这个数字,除了单纯的低买高卖目的带来的数值变化,有多少新用户愿意持续持有 10000 token 来使用这个网站,是这件事情里持续存在下去的意义: 1. Solana 是一个好用的、持续在增长的产品。 2. V2EX 是一个有用的、持续在增长的社区。 2025 年 11 月时,V 友 JoeJoeJoe 用 Planet 做了一个数据追踪网站,记录下了每天的一些关键数据: info.v2ex.pro 其中一个数据点是持有 10K token 的 V2EX 用户数量。 这个数字在 2025 年 11 月 5 日是 701: ipfs.io/ipfs/bafybeicp3bljsn… 2025 年 12 月 29 日是 803: ipfs.io/ipfs/bafybeicp3bljsn… 因为基于 Planet 构建的网站是发布在 IPFS 上的,所以可以拿到这样可以持续有效、immutable 的 CID 地址。
17
#Racket #Scheme 终于写了篇关于 call/cc 的文章,这玩意真的难懂更难写。😂 Finally wrote an article about call/cc. It's incredibly mind-bending to understand and even tougher to explain. 😂 yfaming.com/post/dive-into-c…
26
#Racket 哪有什么穿越,只不过是高级生物对我们的 VM 调用了 call/cc 而已。 There is no time travel. Just higher beings abusing call/cc on our VM.
17
朋友,你们的 anti-bot 机制,是从孙子兵法得到的灵感嘛?😂 先说延迟 10min,再延迟 20min,再延 40min,中间突然就可以抢了,真是「攻其无备,出其不意」。😂
Public Sale Relaunch for $WET is NOW LIVE! Public Sale Relaunch Details: Sale allocation: 30m tokens (3.0%) of total supply Purchase price: 0.069 USDC per token (69m FDV) Wallet cap: 500 USDC per wallet Start time: 8th December, 11am EST End time: 8th December, 11pm EST Mechanism: First come first served Token claim and liquidity pool go live on 9th December, 9am EST. NEW $WET token CA: WETZjtprkDMCcUxPi9PfWnowMRZkiGGHDb9rABuRZ2U The sale is filled on a first-come, first-served basis and expected to sell out fast. May the wettest fingers win!
44