• 2026-08-07 · Agent, 浏览器

    Kitesurf: 为 agent 准备的浏览器,直接跑在 Workers 中,冷启动虽然慢了点,但是非常省资源。背后是 Rust 编译成的 WASM。组件严格隔离。

    blog.cloudflare.com
  • 2026-08-12 · Swift

    iOS 27 为 SwiftUI 引入了一批新的 toolbar API,在窗口尺寸可变时,可对操作图标添加 visibilityPriority(_:) 修饰符来提高优先级,这样防止自动被折叠到后面的 ... 菜单中。

    ToolbarItem {
        FavoritePaletteButton(palette: palette)
    }
    .visibilityPriority(.high)

    默认是按照先后顺序折叠的。

    nilcoalescing.com
  • 2026-08-12 · web, CSS

    移动端网页小技巧:

    • Hover state stuck after tap: Wrap in @media (hover: hover) and (pointer: fine)
    • Gray/blue flash on tap: Kill -webkit-tap-highlight-color
    • Layout has wrong height: 100dvh (app) or 100svh (hero)
    • Page zooms into input: Input's font size should be 16px at the minimum
    • Tap feels laggy: Feedback on pointer-down + touch-action: manipulation
    • Pull-to-refresh hijacks scroll: overscroll-behavior: none on html, body
    • Content stops at the notch: viewport-fit=cover + env(safe-area-inset-*)
    • Long-press selects button text: Add user-select: none
    • Carousel scrolls vertically: touch-action: pan-y on the gesture surface
    • Status bar color doesn't match: theme-color per color scheme
    • Right in chrome, wrong on phone: Test on real hardware!
    x.com/emilkowalski
  • 29 天前 · Swift

    过去这些跨领域、可嵌套的共享组件为每个内容领域(View、Toolbar、Commands 等)都提供了一组「长得一样、只有协议约束不同」的初始化器。编译器每进入一层嵌套就要重新做一次入口选择,候选数量随深度指数级膨胀,导致深层嵌套时类型检查急剧变慢甚至直接失败。

    新设计的核心机制是先构造结构,后证明身份:让 builder 不再预设领域约束,只负责组装出唯一具体的结构(如 ‎TupleContent<Text, Image>),再由这个产物通过条件遵循(conditional conformance)去获得 View / ToolbarContent / Commands 等能力。

    这一思路不仅适用于 SwiftUI,也为泛型 DSL 设计提供了通用启示。

    fatbobman.com
  • 28 天前 · Agent

    Pi 的上下文压缩格式:

    const SUMMARIZATION_PROMPT = `The messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.
    
    Use this EXACT format:
    
    ## Goal
    [What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]
    
    ## Constraints & Preferences
    - [Any constraints, preferences, or requirements mentioned by user]
    - [Or "(none)" if none were mentioned]
    
    ## Progress
    ### Done
    - [x] [Completed tasks/changes]
    
    ### In Progress
    - [ ] [Current work]
    
    ### Blocked
    - [Issues preventing progress, if any]
    
    ## Key Decisions
    - **[Decision]**: [Brief rationale]
    
    ## Next Steps
    1. [Ordered list of what should happen next]
    
    ## Critical Context
    - [Any data, examples, or references needed to continue]
    - [Or "(none)" if not applicable]
    
    Keep each section concise. Preserve exact file paths, function names, and error messages.`;
    github.com/earendil-works
  • 28 天前 · Swift

    相较于适用于各属性独立控制时间线的关键帧动画(Keyframes),阶段动画(Phase Animations)更适合表达由一组独立状态组成的连续动画(通常用枚举定义每个阶段的具体外观与样式)。

    主要两种使用场景:

    • 循环重复动画:视图可见时持续运行,如提醒图标的规律抖动;
    • 事件驱动动画:受状态变动触发单次播放,如保存按钮点击后的下落效果;

    并展示了如何为不同阶段自定义动画曲线、延迟时长以及结合系统的 Reduce Motion 设置来兼顾无障碍体验。

    nilcoalescing.com
  • 28 天前 · LLM, 科学

    LLM 最亮眼的数学成果几乎都是「反例」(如非索菲群、拉姆齐数下界、雅可比猜想),而非漂亮的「证明」。

    这种「靠大量尝试碰运气」的风格可能取决于 LLM 的广阔知识面(能调用大量标准论证)和计算速度快(能对搜索树做海量试错)特性。人类数学家依然保持了一种独特且难以复刻的问题嗅觉。

    有一种答案就在字面上的感觉,只是能不能找到正确的拼接方式。

    gowers.wordpress.com
  • 28 天前 · Swift

    tipBackgroundInteraction(_:) 可以让用户直接与 TipKit 背后视图交互。

    struct LandmarkDetail: View {
        let landmark: Landmark
    
        var body: some View {
            ScrollView {
                MapView(coordinate: landmark.locationCoordinate)
                    .popoverTip(CampsiteTip())
                    .tipBackgroundInteraction(.enabled)
    
    
                HStack {
                    Text(landmark.name)
                    Text(landmark.park)
                }
            }
        }
    }

    但在 ToolbarItem 中使用这个修饰符会破坏所在 NavigationStack 的导航功能。

    developer.apple.com
  • 28 天前 · Agent

    Mixedbread 推出搜索 agent Toast 1,可以接管 agent 中的搜索任务。背后不光是搜索,也包含了一系列 pipline 来更精准地返回信息。综合成本和速度还不错。

    mixedbread.com
  • 23 天前 · 视频模型

    我在用 ComfyUI-MiniMax-H3-Workflows-For3060 这个库在低显存(12GB)系统生成视频。用的 MiniMax-H3_I2V_TAE-Preview_Turbo.json 这个节点,效果还行但已经符合预期了。之前的 Wan 系列模型就很难带得动。

    github.com/tlano-z
  • 14 天前 · benchmark, LLM

    TapTap Maker Benchmark 是评估 AI 在 TapTap Maker 场景下开发真实游戏的能力——每个分数都由 UrhoX 引擎真实执行产生,无 LLM 裁判。

    maker.taptap.cn
  • 14 天前 · 工具

    Fal.ai 有一个可以移除背景的免费工具,支持 4K 分辨率的大图,无水印,纯公益。

    fal.ai
  • 13 天前 · web

    IANA 维护着 /.well-known/ 的注册表,作为网站元数据的标准化索引。

    比如访问 ‎https://accounts.google.com/.well-known/change-password 就会自动重定向到 Google 更改密码页面。

    除此之外还有一些其他约定的规范

    x.com/agektmr
  • 9 天前 · shader

    @Xor 整理了发布过的 74 篇 shader 相关的教程文章。涉及了很多常见的效果。

    fragcoord.xyz
  • 9 天前 · 灵感

    Cyanometer(蓝度计)是用于肉眼测量天空蓝度的指标仪器,整体上是一种白-蓝-黑的径向渐变的效果。

    en.wikipedia.org
  • 8 天前 · 科学

    RSA 分解挑战:RSA-260 质因数已被找到。由这两个质数相乘:

    4397328654844826923795068102505872571721883526553349659561256924505973939597593482272505698004801207988043088656411102133523080581
     × 5028695206842569864686141618253083416610081090075366674776775706538324961364412200138116378509733307971876652984898985905923678379
    x.com/penlume
  • 5 天前 · 嵌入模型

    WeMM-Embedding 是用在微信中的多模态嵌入模型,有 2B、4B、9B 三种尺寸,2B 尺寸命中率就已经和 Qwen3-VL-Embedding 差不多了。9B 最高支持 4096 维度。

    github.com/Tencent
  • 5 天前 · web, 交互

    一些西方拉丁语产品的输入框(比如 Cursor 的编辑器),有时会混用 IME 和表单的交互,比如删除或提交 IME 的输入,同时也会删除或提表单中的内容。

    最近 modern-web-guidance 增加了这一方面指南。

    • 单行 <input> 不用管,浏览器会自动阻止输入法状态下的回车提交。只有用 JS 拦截回车的多行 <textarea> 才需要处理;
    • 要放一个 <button type="submit">。键盘快捷键只是辅助,不能替代表单原生的提交路径;
    if (event.isComposing) return;
    • Safari 不支持 isComposing,需要额外处理;
    github.com/GoogleChrome
  • 2 天前 · 科学

    WeatherNext 3:小时级别的天气预报模型。

    AlphaGenome Atlas:包含人类基因组中 90 亿个单核苷酸变异的效应预测平台。

    Google 在提醒大家,模型不止于编程。

    deepmind.google
  • 2 天前 · LLM

    OUI-1:第一个开源的 UI 生成模型。微调的基座模型是 DiffusionGemma。

    但目前追求的并非是美观性,而是布局的正确率。

    openui.com