---
title: "X 归档 2023-01-09"
date: "2023-01-09"
tags:
  - x-archive
  - frontend
---

<div class="x-arch-meta">6 条动态 · 图 4 · 视频 5</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1612178696051228674" id="xl-1612178696051228674-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612178696051228674" id="xl-1612178696051228674-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/1519453550904061952/KtPLaHJI_bigger.png" 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/_jzlabs" target="_blank" rel="nofollow noopener" data-name="Jason Ting" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1519453550904061952/KtPLaHJI_bigger.png">@_jzlabs</a><span class="x-arch-time">04:05</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612178696051228674-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612178696051228674-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/_jzlabs/status/1612178696051228674" 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">#genuary day 8: “signed distance functions” // cosmic blast</div>
    <div class="x-arch-text x-arch-trans">#genuary 第 8 天：&quot;signed distance functions&quot; // 宇宙爆发</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1612178696051228674-poster.jpg" src="/cdn-media/x/2026-10/1612178696051228674-video.mp4" width="720" height="720" data-duration="20" aria-label="@_jzlabs 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1612239829093289991" id="xl-1612239829093289991-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612239829093289991" id="xl-1612239829093289991-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/1623753178792460291/XVVNwqv-_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/partykit_io" target="_blank" rel="nofollow noopener" data-name="PartyKit" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1623753178792460291/XVVNwqv-_bigger.jpg">@partykit_io</a><span class="x-arch-time">08:08</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612239829093289991-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612239829093289991-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/partykit_io/status/1612239829093289991" 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">🤫</div>
    <div class="x-arch-text x-arch-trans">🤫</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1612239829093289991-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1612239829093289991-1.jpg" alt="@partykit_io 的配图 1/4" loading="lazy" decoding="async" width="828" height="1792" /></a>
      <a href="/cdn-media/x/2026-10/1612239829093289991-2.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1612239829093289991-2.jpg" alt="@partykit_io 的配图 2/4" loading="lazy" decoding="async" width="828" height="1792" /></a>
      <a href="/cdn-media/x/2026-10/1612239829093289991-3.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1612239829093289991-3.jpg" alt="@partykit_io 的配图 3/4" loading="lazy" decoding="async" width="828" height="1792" /></a>
      <a href="/cdn-media/x/2026-10/1612239829093289991-4.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1612239829093289991-4.jpg" alt="@partykit_io 的配图 4/4" loading="lazy" decoding="async" width="828" height="1792" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1612417730417664000" id="xl-1612417730417664000-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612417730417664000" id="xl-1612417730417664000-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/1853481766146719745/VY-xvV0c_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/GabrielVergnaud" target="_blank" rel="nofollow noopener" data-name="Gabriel Vergnaud" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1853481766146719745/VY-xvV0c_bigger.jpg">@GabrielVergnaud</a><span class="x-arch-time">19:55</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612417730417664000-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612417730417664000-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/GabrielVergnaud/status/1612417730417664000" 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">TS-Pattern's inference just got a bit smarter!<br /><br />✅ Unreachable branches do not type-check anymore<br />✅ `.with ` and `.otherwise` inherit type narrowing from previous branches<br />✅ ~15% type-checking performance improvement<br /><br />Release note 👉 <a href="https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2" target="_blank" rel="noopener">https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2</a></div>
    <div class="x-arch-text x-arch-trans">TS-Pattern 的类型推断变得更聪明了一点！<br /><br />✅ 不可达的分支不再能通过类型检查<br />✅ `.with ` 和 `.otherwise` 会继承前面分支的类型收窄<br />✅ 类型检查性能提升约 15%<br /><br />发布说明 👉 <a href="https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2" target="_blank" rel="noopener">https://github.com/gvergnaud/ts-pattern/releases/tag/v4.1.2</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1612417730417664000-poster.jpg" src="/cdn-media/x/2026-10/1612417730417664000-video.mp4" width="1022" height="710" data-duration="48" aria-label="@GabrielVergnaud 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1612439962477268992" id="xl-1612439962477268992-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612439962477268992" id="xl-1612439962477268992-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/1733342770436472832/mBVPTgpn_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/Steve8708" target="_blank" rel="nofollow noopener" data-name="Steve (Builder.io)" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1733342770436472832/mBVPTgpn_bigger.jpg">@Steve8708</a><span class="x-arch-time">21:23</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612439962477268992-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612439962477268992-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/Steve8708/status/1612439962477268992" 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">Civet (@civetlang) is a new alternative syntax for TypeScript<br /><br />Init flame war about syntax preferences:</div>
    <div class="x-arch-text x-arch-trans">Civet（@civetlang）是一种全新的 TypeScript 替代语法<br /><br />发起一场关于语法偏好的骂战：</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1612439962477268992-poster.jpg" src="/cdn-media/x/2023-01/1612439962477268992-video.mp4" width="720" height="720" data-duration="77" aria-label="@Steve8708 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1612447130802860033" id="xl-1612447130802860033-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612447130802860033" id="xl-1612447130802860033-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/1733342770436472832/mBVPTgpn_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/Steve8708" target="_blank" rel="nofollow noopener" data-name="Steve (Builder.io)" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1733342770436472832/mBVPTgpn_bigger.jpg">@Steve8708</a><span class="x-arch-time">21:52</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612447130802860033-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612447130802860033-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/Steve8708/status/1612447130802860033" 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">You might be using `fetch` wrong...</div>
    <div class="x-arch-text x-arch-trans">你的 `fetch` 用法可能一直都不对……</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1612447130802860033-poster.jpg" src="/cdn-media/x/2023-01/1612447130802860033-video.mp4" width="720" height="720" data-duration="92" aria-label="@Steve8708 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1612448778212048897" id="xl-1612448778212048897-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1612448778212048897" id="xl-1612448778212048897-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/1362053856247623680/q23Y_71D_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/0xca0a" target="_blank" rel="nofollow noopener" data-name="☄︎" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1362053856247623680/q23Y_71D_bigger.jpg">@0xca0a</a><span class="x-arch-time">21:58</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1612448778212048897-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1612448778212048897-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/0xca0a/status/1612448778212048897" 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">trying out frosted glass on a @splinetool scene using splines react hook. they already have their own glass-like material but transmissionmaterial gets practically even. i love that it picks up other transmissive objects, meshphysicalmaterial never could.<br /><br /><a href="https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js" target="_blank" rel="noopener">https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js</a></div>
    <div class="x-arch-text x-arch-trans">在 @splinetool 场景里用 spline 的 react hook 尝试磨砂玻璃。它们自带类玻璃材质，但 transmissionmaterial 几乎能达到均匀一致的效果。我最喜欢的是它能捕捉到其他透射物体，meshphysicalmaterial 从来都做不到。<br /><br /><a href="https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js" target="_blank" rel="noopener">https://codesandbox.io/s/glass-circles-copy-forked-ju368j?file=/src/App.js</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1612448778212048897-poster.jpg" src="/cdn-media/x/2023-01/1612448778212048897-video.mp4" width="1254" height="720" data-duration="23" aria-label="@0xca0a 的视频"></video>
  </div>
</div>
