註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

檢索結果 OFF_INI
OFF_INI 貼吧
一個關鍵字就是一個貼吧,路徑全站唯一。
建立貼吧
用戶
未找到
包含 OFF_INI 的搜尋結果
《吻我之前,先把灯关了》 "Turn Off the Lights Before You Kiss Me" 据专家研究分析,恐怖片和爱情动作片,好莱坞惊险片都能刺激大脑分泌多巴胺,我现在把它们都放在一起了,那是不是应该双倍快乐来了。 According to expert research and analysis, horror movies, romantic action films, and Hollywood thrillers can all stimulate the brain to release dopamine. Since I’ve combined them all together, does that mean I’m in for a double dose of happiness? grok imagine prompt: "Turn Off the Lights Before You Kiss Me" 15 seconds, 9:16 vertical format, first-person perspective, recorded on a smartphone, single continuous take. [Realistic Cinematography] The footage is captured entirely by the rear-facing camera of the smartphone held by the male protagonist; no other cameras are involved. The male protagonist holds the phone in his right hand, using the primary (1×) rear lens—providing a field of view equivalent to approximately 26mm—at 1080p resolution and 30fps. The device is positioned between his chest and chin (at a height of roughly 1.45 meters), aimed toward a woman standing in the bathroom doorway. His left hand occasionally enters the frame to operate the light switch. The smartphone itself—its body, back panel, camera module, screen, or flash—is never visible in the shot. Only the light cast by the phone onto the subject, her clothing, and the walls can be seen. There are no mirrors present; this is not a mirror-based selfie. The footage retains the raw, authentic texture of smartphone video—no beauty filters, color grading, or cinematic effects. Skin details such as pores, fine beads of sweat, stray hairs, and natural skin-tone variations are visible. There is slight digital noise in the shadows, and brief motion blur occurs during rapid hand movements or moments of physical instability. Subtle camera shake stems from the holder’s breathing and wrist movements. Changes in proximity are achieved through actual physical steps or the subject pulling the holder closer; there is no digital zooming, automated panning, reverse-angle cutting, or slow motion. The focus remains primarily on the woman’s face, with only momentary hesitation when the distance shifts abruptly—there is no persistent out-of-focus effect. [Characters and Attire] The woman in the doorway (@80130fc6-f744-4f61-9faf-f630a1eb8638) is 28 years old. Her appearance—including her black hair styled in an updo, purple floral hair accessory, earrings, long-sleeved Japanese-style (wafuku) garment in purple (@d7529a1b-8cdb-41e5-816e-c59aa4051803), and dark-colored *obi* (sash)—is consistent with the video uploaded by the user. Her clothing remains intact; the neckline stays in place, and she does not scratch her own chest or tug at her garments. Leaning slightly against the doorframe, she keeps her shoulders relaxed and lowered, her neck elongated, and her legs positioned one in front of the other—creating a natural, subtle S-curve in her posture. She gazes toward the male protagonist with half-lidded eyes and a faint, inviting smile, as if beckoning him closer. From the very beginning, her right hand holds a small pinch of fabric from the male protagonist’s left cuff. This point of contact—her right hand gripping his left cuff—is situated in the lower-left portion of the frame and must remain visible. Because she is only holding the fabric rather than clamping down on his wrist, he retains the freedom to lift his left hand and operate the light switch. Initially, her left hand is concealed between her body and the doorframe. The grayish-white fingers that appear later belong to this same hand; the creature possesses only two hands throughout the entire sequence. The real girlfriend is located in the hallway behind the male protagonist. She is present only as a voice calling out from off-screen; she is never shown on camera, and no second female face appears. 【Environment and Space】 The scene takes place at the entrance to a bathroom in an old apartment building late at night. The setting—featuring aged off-white tiles, a worn wooden doorframe, a standard wall-mounted light switch, and a towel hanging inside the bathroom—conveys the lived-in, weathered feel of an old residence, rather than a ruin. The woman is positioned slightly to the right of the frame’s center, with the open bathroom door behind her. The light switch is located on the wall to the left, approximately thirty centimeters from the male protagonist’s left hand. It is visible from the start and does not suddenly appear later. Behind the male protagonist lies a hallway. The bathroom door remains open inward; the camera angle stays consistent throughout, the door does not move on its own, and the room’s layout remains unchanged. At the start, the woman’s face is about sixty centimeters from the camera. After she gives a gentle tug on his cuff, the male protagonist shifts forward slightly, reducing the distance to approximately forty-five centimeters. The distance closes further only during the final dragging motion. 【Ambient Lighting】 At the beginning, a warm-white overhead light in the bathroom is on, illuminating the woman’s head, shoulders, and the doorway, while the hallway remains dim. The LED flash on the back of the smartphone is illuminated from the very first frame; it remains on and in the same position throughout the entire 15-second duration. Up close, the face is illuminated by the harsh, direct light of a standard mobile phone; small shadows form beside the nose and under the chin, and there are localized highlights on the fabric of the clothing—no artificial "beauty" fill lighting is applied. The only light the male lead turns off is the overhead bathroom light. Once the overhead light is extinguished, the bathroom background remains dim and does not brighten on its own. The phone’s light continues to illuminate her face and the hand gripping the sleeve cuff. The camera’s auto-exposure adjusts only slightly, failing to brighten the dark bathroom to a daylight-like state. When the "mask" (the outer layer of the face) is peeled back, it is illuminated by the same mobile phone light as the rest of the face. The space deep behind the shell remains dark, and the exposed eyeball shows only natural, subtle reflections—it does not emit its own light. [The "False Face" Effect] The horror stems from a thin, pliable, artificial layer being peeled back from within—it is not a case of natural skin being torn or a mouth stretching into an impossible, elongated shape. A grayish-white hand—with only two or three fingertips visible—emerges from the corner of her mouth, hooks onto the lower edge of the "mask," and peels half of the face upward and to the side. The "mask" has a distinct thickness and flexibility; the cheek and part of the area beside the nose fold back, rather than stretching into long, tubular, funnel-like, or tongue-like shapes. Behind the peeled-back section lies a deep, dark cavity containing a normal-sized human eye, which turns to look directly at the camera. The other half of the woman’s face remains intact, establishing the premise that there is an artificial layer on the outside, with something else concealed beneath it. There is no blood, gore, exposed muscle, black ooze, or liquid-like melting effect. The grayish hand does not reach in from off-screen; its fingertips must first emerge from within the corner of the mouth. [Strict 15-Second Timeline] 0–4 Seconds | Gripping the sleeve, an invitation to draw closer. The woman leans sideways against the doorframe, looking first into the male lead’s eyes, then glancing briefly toward the light switch on the left. With her right hand, she grasps the male lead’s left sleeve cuff—positioned at the bottom-left of the frame—and gives it a gentle tug toward herself. The fabric of the cuff pulls taut, prompting the male lead to take a small step forward; the camera moves in tandem with his approach. She lifts her chin slightly and says in a low voice: “The lights are too bright.” Her tone is intimate, with a suppressed smile playing at the corners of her mouth. There is no sign of a monstrous visage, nor does she glance toward her own mouth beforehand. Her right hand continues to hold the same spot on his sleeve; she does not shift her grip to his lapel. 4–7 seconds | Flipping the switch; the background darkens The male protagonist reaches out with his left hand toward a light switch already visible on the left side of the frame. She keeps her grip on his left sleeve, causing her right arm to extend naturally as he moves—she neither lets go nor suffers any "clipping" (graphical glitching). His fingertips press the switch, producing a distinct *click*. The bathroom overhead light goes out, and the tiles, towels, and the space behind the woman grow noticeably darker. Her face remains illuminated by the fill light from a mobile phone. The male protagonist’s left hand pulls away from the switch and returns to the space between them. The camera tilts slightly with the movement, then steadies. 7–9 seconds | A warning from behind From about two meters behind the camera, the man’s actual girlfriend calls out urgently, in an identical tone: “Don’t turn off the light!” The woman in front of him says nothing; her lip movements do not correspond to this warning. As the male protagonist begins to turn, the camera shifts slightly to the side—but the hand gripping his sleeve suddenly tightens, holding him in place. Her smile vanishes. Her eyes glance past the camera toward the space behind the man, then return to the lens. Her knuckles whiten as she grips the sleeve, causing deeper creases to form in the fabric. 9–12 seconds | Half of her face is peeled back from within Two or three grayish-white fingertips emerge from the inner corner of her mouth. The fingertips hook onto the lower edge of the "shell" of her face, slowly peeling it upward and outward. The corner of her mouth and her cheek—forming a single, thin, pliable layer—fold back together; the lips do not stretch or elongate independently. Half of the artificial face is lifted away, revealing an eye in the darkness beneath that shifts to look directly at the camera. The intact half of her face remains visible alongside the eye revealed from within. For a brief moment, the camera steadies, allowing at least half a second to take in the details: Fingers emerge from within the face; the "shell" of the face begins to fold back, revealing another eye underneath. The woman’s right hand maintains a firm grip on the man’s left cuff—she cannot let go, even as she peels back the face. The only sounds are the dry, grating friction of the mask and the man’s sudden, sharp intake of breath. 12–15 seconds | The grip shifts into a forceful tug. The man immediately grabs the woman’s right wrist—the one holding his cuff—and tries to pry it away. The point of contact is clearly visible; he does not reach for the grey, peeling fingers. The creature’s right arm suddenly retracts toward the bathroom, yanking the cuff hard. The sequence must be clear: The cuff goes taut → the man’s left arm is pulled straight → his body stumbles forward → the camera (held in his right hand) is dragged closer. The camera moves from about 45 centimeters away to roughly 15 centimeters, accompanied by a sudden dip and tilt—this is not a smooth, controlled zoom. The partially peeled-back face, the unblinking eye beneath, and the greyish-white fingers now dominate the frame. The other half of the face remains "normal," preserving its original appearance. In the final half-second, the man collides with the wooden doorframe, producing a dull thud. The camera jerks to the side; the edge of the facial shell sweeps across the lens, partially obscuring the view. The recording ends abruptly while the struggle is still underway. No fade to black, no additional dialogue, and no new creatures appear. [Ambient Audio] Captured via a mobile phone microphone: close-range speech, the friction of fabric at the cuff, the sound of a light switch, the hum of a bathroom exhaust fan, the distant ambient noise of the city, heavy breathing, and the final impact against the doorframe. The exhaust fan continues to run independently; it does not stop when the overhead light is switched off. The background sounds maintain a sense of spatial distance—they are not suddenly muted for the sake of a "jump scare." The opening line, "The light is too bright," comes from the woman in front of him. The mid-sequence line, "Don't turn off the light," clearly originates from behind the man; the woman in front does not move her lips. There is no further dialogue—no sinister laughter, voice-over narration, heartbeat sound effects, or pre-recorded horror audio cues. [Mandatory Continuity] The only camera is the mobile phone through which the audience is viewing the scene; the phone itself is never visible within the frame, nor is there any additional camera operator. The male protagonist holds the phone in his right hand; he uses his left hand to flip the light switch, then immediately grabs the monster’s right wrist. The monster’s right hand remains firmly gripping the same spot on the male protagonist’s left cuff; its left hand lifts a portion of the "false face" from underneath. Do not generate a third hand, swap left and right hands, or have the monster’s hand shift its grip from the cuff to the female protagonist’s own clothing. Once the bathroom light is turned off, it remains off; the mobile phone’s light source (fill light) stays on. The positions of the door and the light switch remain fixed. Changes in distance must be achieved through physical movement (stepping or dragging); do not use digital zoom. The "false face" should be lifted, not stretched like rubber; do not generate long tongues, tubular mouths, an elongated jaw, or a melting face.
顯示更多
记录下回去再写,infra 铁饭碗的本质是 trade-off 和背锅…这些恰好是 AI 做不到的…数据过拟合导致贪心算法过于贪心。但凡事都是有代价的,举个简单例子,你去翻 E2B 或者 Fly 的实现里面为了进程快速启动都用上了 Uffd 和 FUSE 懒载入,当然 Composefs 应该是这个名字也是同样的套路,看上去设备层启动是快了,那么代价是什么呢?我们就观察到 OS 重载尤其是接 DHCP 的前提下 UFFD 性能极差。简单的来说即便是 snapshots clone vm,你用 UFFD 看上去进程启动快了 1 倍(省掉了内存载入),但 OS 恢复到可用耗时可能慢了 2 倍,这就要 trade 了,每个系统的表现都不一样,资源配额大小也有影响,这些 AI 就跟人一样,需要调教,不管啥样的模型…这一点上 Fable 也做得不太好,一样需要外部输入。当然了也得承认端到端的优化本身就是个难题,过去靠人也只能一点点磨,现在只不过更方便了而已,像镜像层数优化,initrd 的重写,AI 执行我觉得没问题了,策略层面还是差很多…
顯示更多
最近在新加坡,很开心听到很多关于Web3➕AI的项目在规划中,因为以前经常听到很多垃圾项目rug,交易所跑路,最近也有很多,今天不就有个2折收号的么…… 很多人对币圈的理解是盘子币,对币圈的人嗤之以鼻,但是其实区块链有很大的意义,真正做事的人,到哪里都受欢迎,区块链的核心是可信、透明、可编程,而AI的核心是自主、高效、智能化,当这两大技术碰撞,诞生的AI支付基础设施就有极大的意义! AI支付/AI算力层/AI数据层/AI治理层 Great to see so many Web3+AI initiatives kicking off in Singapore! Sure, we still have rug pulls, exchange troubles and sketchy deals. But blockchain & AI are game-changers. From AI payment to computing, data and governance — these are real utilities.
顯示更多
0
80
76
4
轉發到社區
决定代码复杂度的东西不在代码里,在写代码的人的脑子里。LLM 碰不到它。 这是 软件工程师 Pol Alvarez Vecino 读完 Peter Naur 1985 年的论文后得出的结论。 为什么 LLM 没法让你的代码更简单 本文最初发表于 Medium( tl;dr:Peter Naur 的《Programming as Theory building》指出,真正的程序——他称之为 Theory,大写的 T——存在于工程师的脑子里。代码和文档只是下游的(因而不完整的)产物。我对 LLM 最大的抱怨之一,就是它写出来的代码有多啰嗦、复杂度是怎样到处蔓延的。我一直抱着一丝信念:也许我们可以用 LoC 或者独立代码路径数量之类的指标来约束它们。然而,读完 Naur 之后我意识到,我们想降低的那个复杂度是 Theory 的复杂度,不是代码的复杂度,而这方面没有任何可用的度量,因为它非常主观。 我最近读了 Peter Naur 那篇精彩的论文《Programming as Theory building》( LLM 能做什么、不能做什么的看法,也改变了我对如何给它们写提示词、当前 agent 系统的主要局限,以及结对编程为何如此有效的看法。 今天我只聚焦它和代码复杂度的关系。 如果你还没读过这篇论文,我真的建议你读一读。说实话,我写这篇文章的主要目的,就是让一些人去读原论文。它值得花这个功夫。这也是练习(或学习!)在 Solveit 里做精读的绝佳机会,因为在 Solveit 里这要容易得多:你可以在阅读过程中随时提问,钻进任何你感兴趣的兔子洞,或者直接让 Solveit 帮你把语言讲清楚。关于精读的更多信息见这篇博文( fork 我的对话记录快速上手( 话说回来,如果你还是决定不读,这里是论文的 tl;dr: 程序是构建和维护它的人所持有的 Theory:一种理解——程序如何与现实世界的问题相关联,哪些约束和权衡塑造了它,它为什么能工作,以及哪些改动符合它的设计。代码和文档是这套 Theory 的下游产物,永远无法完整地承载它。 工程师通过经验发展出这种理解:与用户交谈、观察故障、学习领域知识、观察系统在真实世界中的表现。这种理解指导着对相关性、相似性、简洁性和良好设计的判断。 LLM 不太擅长持续学习,不擅长和用户交谈,也不擅长在真实世界里体验事物。但这和复杂度有什么关系呢? 我想我们都同意:LLM 总体上倾向于让代码库的复杂度上升,如果没人管的话。原因有很多:它们没意识到某个方法已经存在,于是又写了一遍;它们写过度防御的代码,比如为不可能发生的边界情况做防护;或者过早地过度优化。顺便说一句,大多数前沿实验室从你消耗的 token 里赚大钱,所以它们多少有动机去推广 token 最大化。总而言之,LLM 很少遵循 KISS 原则。这个问题在你不看输出、纯 vibe-coding 的时候最严重。但即使你会审查代码,要想让程序保持简洁,也需要主动付出努力去尽量削减复杂度。 在我天真的日子里(大约两周前),我曾以为我们早晚能爬出这个复杂度的大坑。前沿实验室只需要在 RL 训练里加一些复杂度惩罚就行。他们可以用总 LoC 作为最小化的指标,但我们都同意,有时候一行代码比两三行更复杂。另一个选项是圈复杂度(cyclomatic complexity),它衡量独立代码路径的总数。读完 Peter Naur 之后我意识到,这些东西无法真正解决问题(也许能稍微缓解一点)。我们来看看为什么。 为什么代码复杂度是错的指标 在下面这个(我编的)例子里,我们想支持调用 OpenAI 和 Anthropic。假设所有的消息准备和重试逻辑完全一样,只有请求体参数略有不同,于是我们有两个不同的方法 call_openai 和 call_anthropic。 在第一个朴素版本里,我们有两个不同的类,带重复的样板代码(即 prepare 和 with_retries)。 分开 —— 指标会发现重复 class OpenAIClient: def complete(self, prompt): msgs = prepare(prompt) # 公共样板代码 y = call_openai(msgs) # 唯一不同的一行 return with_retries(y) # 公共样板代码 class AnthropicClient: def complete(self, prompt): msgs = prepare(prompt) y = call_anthropic(msgs) return with_retries(y) 一个直接的 refactor 是创建单个类,做到 DRY。按很多指标看这都是更好的实现:行数更少、Halstead 容量更好(V=N×log2(n),N 为程序长度,n 为词汇量)、可维护性指数(Maintainability Index)也更好。 合并版 —— 按指标看确实更好:DRY,行数更少 class LLMClient: def __init__(self, provider): self.provider = provider def complete(self, prompt): msgs = prepare(prompt) y = call_openai(msgs) if self.provider == "openai" else call_anthropic(msgs) return with_retries(y) 一般来说,第二个版本(或者类似减少 LoC 和重复的版本)复杂度更低。但是,如果我告诉你,下个月我们很可能就停止支持 Anthropic 了呢?在那种情况下,我更倾向于让它们保持分开,这样到时候我只要删掉包含 AnthropicClient 的那个文件就行。 当然,这种简单的例子很容易解决,尤其是现在 LLM 可以帮你写代码。但如果你的目标不是 2 个供应商,而是像 LiteLLM 那样支持 165+ 个供应商呢?那种情况下,直接用 LiteLLM 就行。但那样你就把 120 多万行 Python 代码放到了你和最终供应商之间。值得吗? 设计良好的 API 是抽象复杂度的绝佳方式。你有清晰的契约,不需要理解背后发生了什么。即使 LiteLLM 是一个庞大的包,它也可能不计入你的 Theory 总复杂度。LLM 推理端点早期的日子就是这样:「文本进,文本出」。然而,当契约不再可靠时,这一切就会崩塌。原因可能是它有 bug,可能是 API 背后藏着大量你拿不到的状态,也可能仅仅是你不确定某个新供应商特性是否被支持。 每当你被迫窥视 API 抽象层背后的深渊时,那份复杂度就成了你的问题。这个问题正变得越来越普遍。像 OpenAI 和 Anthropic 这样的供应商,越来越多地把数据藏在服务端,比如加密的压缩数据或推理 token(更多讨论见 如果你在快速推进、只用基础功能、想尝试很多供应商,那么 LiteLLM 或类似的库可能值得用。反过来,如果你看重控制力、调试和对技术栈的理解,那可能就不值得。不存在「正确的」复杂度(虽然我非常偏好第二种选择)。 进入 Theory 决定走哪条路的信息不在代码里。这些信息属于 Naur 所说的程序的 Theory 的一部分。迄今为止,LLM 几乎接触不到这些信息,因为它们活在人的脑子里。它们可以从 IM、邮件或其他书面文档里得到一些线索,但那些永远只是局部的(最好的情况下)。 其中一些信息可以作为上下文提供给 LLM,比如业务优先级、预期的产品变化、运维约束,以及早期决策背后的原因。这样做也许能改善它的选择,但这些仍然只是 Theory 的产物。它们无法完整地传递团队发展出这套 Theory 所依赖的经验和判断。 这些都很好,但如果我全身心投入 vibe-coding 和 token 最大化、完全不在乎代码呢?那样的话,这篇博客后面的内容说服不了你。如果你处于两者之间,我来描述一个我们在 亲身经历的真实情况,关于 Solveit 的计费系统。 剧透警告:在 最初的计费系统 Solveit 是一个平台,你可以在里面用 AI 在一个类 notebook 的环境里工作。环境是持久化的,所以我们对 LLM 用量、CPU、磁盘、内存和带宽收费。 最初的计划是向用户收月度订阅费(比如 5 美元)。这笔月度订阅费变成当月可以消耗的积分(credits),如果全部用完,下个月之前就得充值。我们先在一个更小的项目里测试了这套方法来验证它。 这套方法后来证明比我们想要的更复杂。第一,积分 + 订阅的机制会把人(比如我自己)搞晕。第二,它让代码在多个层面上更复杂。你得处理「先消耗月度订阅积分、再消耗普通积分」的所有逻辑,以及剩下的积分怎么办。在 Stripe 这一侧,它有两个不同的代码路径:手动充值和订阅服务。 对不熟悉的人来说,Stripe 订阅是一个全托管服务。Stripe 管理整个生命周期(扣款周期、发票、重试全在他们那边)。 你大致只需要这样创建订阅: stripe.Subscription.create(customer=cust_id, items=[{"price": "price_5usd_monthly"}]) 然后监听他们的 webhook,在订阅状态变化或付款到达时更新你的数据库(还有很多其他事件可以选择)。 直接收款则需要你启动一个 checkout session,让用户跳转到 Stripe 的域名填卡。这需要你提供一个 customer ID。那应该在什么时候创建 Stripe customer?用户注册时?他们尝试付款时?还是别的时机?全都是合理选项。 stripe.checkout.Session.create(mode="payment", customer=cust_id, line_items=[{"price": "price_5usd", "quantity": 1}], success_url="") 到目前为止还好吧?如果你对 Stripe 或支付没有太多经验,很可能你已经感到吃力,没法把这一切全装进脑子里。也许你设法把它简化成了: • 订阅 → 交给 Stripe 订阅服务管理 • 充值 → Stripe checkout 一个不明显的问题是:使用 Stripe 托管服务意味着你有重复的数据。一半数据在 Stripe 的后端,而你必须保证本地数据库和它同步。另一个问题是,调试的时候,你既要查 Stripe 的服务,又要查自己的数据库。比如,一笔付款没到账,是 Stripe 没发 webhook(「他们的错」),还是我们没把它存进数据库(「我们的错」)? Stripe 订阅服务很棒、很容易上手,但它是为支持海量用例而设计的。这意味着,即使设计得很好(它确实很好),这个 API 抽象最终也相当复杂。在这种情况下,你在用「卷起袖子自己写代码的复杂度」交换「学习 Stripe API 的复杂度」。 LiteLLM 和 Stripe 在不同规模上展示了同一个权衡:只要契约成立,外部抽象能极大地简化你的 Theory;但每当你需要调试、修改或超出契约去推理时,它隐藏的复杂度就变成你的了。 AAI 的做法 在 经过很多天的探索和讨论,我们最终定下了一个简单得多的系统。 首先,我们只做积分(credits),按用量收费。这是一个超级简单的模型(和 Theory!):充值积分,用多少付多少。 订阅一去掉,我们就可以删掉一大块用来保持同步的代码。剩下的付款路径只有两条:手动充值和自动充值。要做自动充值,你需要能保存客户的信用卡,以便随时扣款。而 Stripe checkout 不会保存信用卡,你只是让 Stripe 在他们的 UI 里处理这次付款。 长话短说,我们最终发现最简单的办法是:用户一注册就保存他们的信用卡。卡一旦在档,用户可以用它手动充值,也可以设置成自动充值。因为全部是我们自己处理的,同步问题几乎为零。我们只监听支付成功事件(没有订阅了!)。 结果就是,我们支付系统的 Theory 可以用一句话概括: 客户注册时添加信用卡,之后我们对该卡扣款——要么手动(充值),要么在余额不足时自动扣。 手动充值和自动充值现在走同一条支付路径。我们整个支付技术栈——拆在 Solveit 和 faststripe 之间——大约 300 行代码。 结果是非常低的复杂度,但这是数小时的探索、尝试和讨论换来的。我这里的解释充其量只是触及皮毛。 印度登场 那么上线那天发生了什么?一切顺利吗?没有。上线后我们发现,印度信用卡不支持你想什么时候扣就什么时候扣的 off-session 扣款。手动充值属于 on-session,仍然可以工作,因为用户会在我们的 UI 里看到一个类似 3DS 的验证流程;但自动充值不行。 在寻找解决方案时,我们发现 Stripe 托管订阅在印度确实能工作。为什么?因为 Stripe 替你绕开了所有这些复杂度。他们提前一天创建并持有 off-session 的支付意图(payment intent),这样银行就能在实际扣款前向用户发送预扣款通知或认证请求。 我们迁移出托管订阅时,就失去了这个特性。我问了一个前沿 LLM——我记得是 GPT-5.5——我们该怎么处理这个问题。你猜它给出的方案是什么? 用回 Stripe 订阅来处理 这个 LLM 提议的正是我们刚刚迁移出来的方案。读到这里,你会怎么说?你的意见是什么?我们应该迁回去吗? LLM 列出了两个选项:要么同时支持两套系统(随时可以开工,你一句话就行!),要么完全迁回旧的系统。我们做了什么?什么都没做。我们非常看重 Theory 复杂度,于是我们决定:让印度用户手动充值就好了(抱歉了各位!),换来一个更简单、更健壮的平台。 如果你不同意我们的选择,反思一下为什么不同意。真的,现在就停下来想一想。 这个问题没有正确答案,而这篇博客的目的之一,就是帮你看清你的答案来自哪里。你的论据是什么?更具体地说,它们是从哪里来的? 有很多场景下 Stripe 托管服务是更优的选择。举几个例子: • 公司收入最重要,手动充值的额外摩擦可能会让我们损失一些印度销售额,那我们应该迁回去(或者同时支持两套) • 销售团队用 Stripe Dashboard 的 UI,所有支付信息都放在我们自己的数据库里并不理想,因为他们没法在那里管理 我的观点是:你的代码的复杂度,真的取决于一大堆和代码无关的因素,而那些信息不在代码里。 隐藏的优势 那么为什么不干脆让 LLM 全权处理这些事呢?在我看来,最妙的答案是:我们的工作方式揭示了一个可能的商业机会。印度不支持 debit mandate(借记授权)的方式和世界其他地方不一样。Stripe 试图解决这个问题,但远远不是一个完整的解决方案。 在理解和简化流程与 Theory 的过程中,我们学到了产品之外有价值的东西。在我看来,这类洞察是可以转化为竞争优势的。 努力去理解,本质上就是一个简化 Theory 的过程。如果你放任 LLM 在复杂度上为所欲为,你可以很快产出大量代码。选择简化路线更长、更费劲,但长远来看我认为它是值得的,而且你可能会在路上发现隐藏的宝石。 原文: #LLM# #编程# #代码复杂度#
顯示更多
Off work on Friday! 🦆Wiggling into the weekend with duck steps! 🐾
週五下班 💥 準時打卡 用鴨子步伐晃進週末模式!💛
#DuckDance# #WeekendVibes# #鴨子舞# #雀躍模式#
顯示更多
0
18
50
1
轉發到社區
@off_thetarget @star_okx @Haiteng_okx @Mercy_okx @okx 我现在一个星期一次练腿,一次十组深蹲25分钟内结束,效果也贼鸡吧好
Off to Taipei 🇹🇼✈️ see you tomorrow 在新光三越台北信義A8館一樓(香堤大道廣場側)見 🦞😀🧡 #adv# #adventureinprogress# #lobsterinadventure#
0
84
4.4K
624
轉發到社區