---
title: "X 归档 2023-01-06"
date: "2023-01-06"
tags:
  - x-archive
  - rust
---

<div class="x-arch-meta">6 条动态 · 图 1 · 视频 3</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1611032902870999040" id="xl-1611032902870999040-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611032902870999040" id="xl-1611032902870999040-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/813646702553010176/rOM8J8DC_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/MaximeHeckel" target="_blank" rel="nofollow noopener" data-name="Maxime" data-avatar="https://twimg.tweb.xin/twimg/profile_images/813646702553010176/rOM8J8DC_bigger.jpg">@MaximeHeckel</a><span class="x-arch-time">00:12</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611032902870999040-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611032902870999040-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/MaximeHeckel/status/1611032902870999040" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Finally achieved the color dispersion effect I always wanted✨<br /><br />It took lots of trial and error and countless hours digging through papers on color and light in WebGL/shaders/R3F to get there<br /><br />Totally worth it!<br /><br />Will write about this on the blog soon<br /><br />↳ <a href="https://r3f.maximeheckel.com/dispersion" target="_blank" rel="noopener">https://r3f.maximeheckel.com/dispersion</a> <a href="https://t.co/LU1LhcIHRR" target="_blank" rel="noopener">https://t.co/LU1LhcIHRR</a></div>
    <div class="x-arch-text x-arch-trans">终于实现了我一直想要的色彩色散效果✨<br /><br />为此经历了大量试错，还花了无数小时钻研 WebGL/shader/R3F 领域关于色彩与光的论文<br /><br />完全值得！<br /><br />稍后会在博客上写写这个<br /><br />↳  <a href="https://t.co/LU1LhcIHRR" target="_blank" rel="noopener">https://t.co/LU1LhcIHRR</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1611032902870999040-poster.jpg" src="/cdn-media/x/2026-10/1611032902870999040-video.mp4" width="990" height="720" data-duration="23" aria-label="@MaximeHeckel 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1611158253123301376" id="xl-1611158253123301376-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611158253123301376" id="xl-1611158253123301376-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1342417825483300864/Vz4ChOFG_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/jarredsumner" target="_blank" rel="nofollow noopener" data-name="Jarred Sumner" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1342417825483300864/Vz4ChOFG_bigger.jpg">@jarredsumner</a><span class="x-arch-time">08:30</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611158253123301376-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611158253123301376-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/jarredsumner/status/1611158253123301376" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">In the next version of Bun<br /><br />Unhandled promise rejections throw at exit. It didn't check before🙈</div>
    <div class="x-arch-text x-arch-trans">在 Bun 的下一个版本中<br /><br />未处理的 promise 拒绝会在退出时抛出。之前可是不做检查的🙈</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1611158253123301376-1.png" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1611158253123301376-1.png" alt="@jarredsumner 的配图 1/1" loading="lazy" decoding="async" width="888" height="744" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1611347090093019139" id="xl-1611347090093019139-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611347090093019139" id="xl-1611347090093019139-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/813646702553010176/rOM8J8DC_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/MaximeHeckel" target="_blank" rel="nofollow noopener" data-name="Maxime" data-avatar="https://twimg.tweb.xin/twimg/profile_images/813646702553010176/rOM8J8DC_bigger.jpg">@MaximeHeckel</a><span class="x-arch-time">21:00</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611347090093019139-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611347090093019139-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/MaximeHeckel/status/1611347090093019139" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Finally achieved the color dispersion effect I always wanted✨<br /><br />It took lots of trial and error and countless hours digging through papers on color and light in WebGL/shaders/R3F to get there<br /><br />Totally worth it!<br /><br />Will write about this on the blog soon<br /><br />↳ <a href="https://r3f.maximeheckel.com/dispersion" target="_blank" rel="noopener">https://r3f.maximeheckel.com/dispersion</a></div>
    <div class="x-arch-text x-arch-trans">终于实现了我一直想要的色彩色散效果✨<br /><br />为此经历了大量试错，还花了无数小时钻研 WebGL/shader/R3F 领域关于色彩与光的论文<br /><br />完全值得！<br /><br />稍后会在博客上写写这个<br /><br />↳ <a href="https://r3f.maximeheckel.com/dispersion" target="_blank" rel="noopener">https://r3f.maximeheckel.com/dispersion</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1611347090093019139-poster.jpg" src="/cdn-media/x/2023-01/1611347090093019139-video.mp4" width="990" height="720" data-duration="23" aria-label="@MaximeHeckel 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1611349417734598659" id="xl-1611349417734598659-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611349417734598659" id="xl-1611349417734598659-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1703999923153436672/CsOAxp9d_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/devongovett" target="_blank" rel="nofollow noopener" data-name="Devon Govett" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1703999923153436672/CsOAxp9d_bigger.jpg">@devongovett</a><span class="x-arch-time">21:10</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611349417734598659-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611349417734598659-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/devongovett/status/1611349417734598659" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">I reimplemented napi in JS for use with WASM! This enables many native Node modules to run in browsers and other environments without a separate implementation for interfacing with JS (e.g. Rust's wasm-bindgen). Passes most of the @napi_rs tests! 🥳<br /><br /><a href="https://github.com/devongovett/napi-wasm" target="_blank" rel="noopener">https://github.com/devongovett/napi-wasm</a></div>
    <div class="x-arch-text x-arch-trans">我用 JS 重新实现了 napi，以便配合 WASM 使用！这让许多原生 Node 模块能在浏览器和其他环境中运行，而无需为对接 JS 单独实现一套（比如 Rust 的 wasm-bindgen）。通过了 @napi_rs 的大部分测试！🥳<br /><br /><a href="https://github.com/devongovett/napi-wasm" target="_blank" rel="noopener">https://github.com/devongovett/napi-wasm</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1611356285966110721" id="xl-1611356285966110721-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611356285966110721" id="xl-1611356285966110721-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/2095271380946481152/6UvH_nP__bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/rive_app" target="_blank" rel="nofollow noopener" data-name="Rive" data-avatar="https://twimg.tweb.xin/twimg/profile_images/2095271380946481152/6UvH_nP__bigger.jpg">@rive_app</a><span class="x-arch-time">21:37</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611356285966110721-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611356285966110721-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/rive_app/status/1611356285966110721" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Lottie ➡️ Rive<br /><br />In case you missed it, you can now import Lottie files in Rive!</div>
    <div class="x-arch-text x-arch-trans">Lottie ➡️ Rive<br /><br />如果你错过了这个消息：现在可以在 Rive 中导入 Lottie 文件了！</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1611356285966110721-poster.jpg" src="/cdn-media/x/2023-01/1611356285966110721-video.mp4" width="1446" height="720" data-duration="25" aria-label="@rive_app 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1611360195523018752" id="xl-1611360195523018752-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1611360195523018752" id="xl-1611360195523018752-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1703999923153436672/CsOAxp9d_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/devongovett" target="_blank" rel="nofollow noopener" data-name="Devon Govett" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1703999923153436672/CsOAxp9d_bigger.jpg">@devongovett</a><span class="x-arch-time">21:53</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1611360195523018752-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1611360195523018752-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/devongovett/status/1611360195523018752" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">The Parcel watcher now supports ignoring glob patterns, thanks to the fine folks at VSCode (@joaomoreno and @BenjaminPasero)! It is implemented in the native layer for performance, and to avoid issues like running out of file descriptors on Linux.<br /><br /><a href="https://github.com/parcel-bundler/watcher" target="_blank" rel="noopener">https://github.com/parcel-bundler/watcher</a></div>
    <div class="x-arch-text x-arch-trans">Parcel 的文件监视器现在支持忽略 glob 模式了，多亏了 VSCode 的好心人（@joaomoreno 和 @BenjaminPasero）！出于性能考虑，也为了避免在 Linux 上文件描述符耗尽之类的问题，它是在原生层实现的。<br /><br /><a href="https://github.com/parcel-bundler/watcher" target="_blank" rel="noopener">https://github.com/parcel-bundler/watcher</a></div>
  </div>
</div>
