---
title: "X 归档 2019-09-11"
date: "2019-09-11"
tags:
  - x-archive
  - rust
---

<div class="x-arch-meta">3 条动态 · 图 4 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1171522357988491264" id="xl-1171522357988491264-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1171522357988491264" id="xl-1171522357988491264-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/1580914297949110272/KW4vsmwF_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/ShekoHex" target="_blank" rel="nofollow noopener" data-name="shekohex" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1580914297949110272/KW4vsmwF_bigger.jpg">@ShekoHex</a><span class="x-arch-time">04:34</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1171522357988491264-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1171522357988491264-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/ShekoHex/status/1171522357988491264" 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 was working with javascript recently and I love how the spread syntax works when you need to combine two arrays, and I wish if we had that in @rustlang (p1)<br /><br />And with some macro magic 🧙‍♂️✨, I made this 😃 (p2): <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=6f4c30352308d499d607ade55990ef2d" target="_blank" rel="noopener">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=6f4c30352308d499d607ade55990ef2d</a></div>
    <div class="x-arch-text x-arch-trans">最近在写 JavaScript，我超喜欢展开语法在合并两个数组时的表现，真希望 @rustlang 也有这东西（p1）<br /><br />然后配合一点宏魔法 🧙‍♂️✨，我做出了这个 😃（p2）：<a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=6f4c30352308d499d607ade55990ef2d" target="_blank" rel="noopener">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=6f4c30352308d499d607ade55990ef2d</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1171522357988491264-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1171522357988491264-1.jpg" alt="@ShekoHex 的配图 1/2" loading="lazy" decoding="async" width="1448" height="630" /></a>
      <a href="/cdn-media/x/2026-10/1171522357988491264-2.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1171522357988491264-2.jpg" alt="@ShekoHex 的配图 2/2" loading="lazy" decoding="async" width="1448" height="630" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1171649680289275905" id="xl-1171649680289275905-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1171649680289275905" id="xl-1171649680289275905-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/1821672001796493312/6mdRmhuG_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/biologistimo" target="_blank" rel="nofollow noopener" data-name="Imogene Cancellare, PhD" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1821672001796493312/6mdRmhuG_bigger.jpg">@biologistimo</a><span class="x-arch-time">13:00</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1171649680289275905-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1171649680289275905-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/biologistimo/status/1171649680289275905" 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">Nice break on the TL: blue sheep doing the impossible, per usual, in the Valley of the Cats, China.</div>
    <div class="x-arch-text x-arch-trans">时间线上不错的调剂：在中国“猫谷”（Valley of the Cats），岩羊一如既往地上演着不可能的操作。</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2019-09/1171649680289275905-poster.jpg" src="/cdn-media/x/2026-10/1171649680289275905-video.mp4" width="360" height="640" data-duration="32" aria-label="@biologistimo 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1171792712858787840" id="xl-1171792712858787840-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1171792712858787840" id="xl-1171792712858787840-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/1568254009634430976/Q0jsTVnt_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/DasSurma" target="_blank" rel="nofollow noopener" data-name="Surma" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1568254009634430976/Q0jsTVnt_bigger.jpg">@DasSurma</a><span class="x-arch-time">22:28</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1171792712858787840-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1171792712858787840-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/DasSurma/status/1171792712858787840" 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">WebAssembly runtimes (e.g. browsers) are slightly diverging in which features they support.<br /><br />So here’s 🎉wasm-feature-detect🎉— think modernizr, but for Wasm.<br /><br />➡️Detectors for various WebAssembly proposals<br />➡️Tiny (~600B)<br />➡️Easy to augment and contribute<br /><br /><a href="https://npm.im/wasm-feature-detect" target="_blank" rel="noopener">https://npm.im/wasm-feature-detect</a></div>
    <div class="x-arch-text x-arch-trans">各 WebAssembly 运行时（比如浏览器）支持的特性略有出入。<br /><br />于是就有了 🎉wasm-feature-detect🎉——可以理解为 Wasm 界的 modernizr。<br /><br />➡️覆盖各种 WebAssembly 提案的检测器<br />➡️超小（~600B）<br />➡️易于扩充和贡献</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1171792712858787840-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1171792712858787840-1.jpg" alt="@DasSurma 的配图 1/2" loading="lazy" decoding="async" width="2048" height="1249" /></a>
      <a href="/cdn-media/x/2026-10/1171792712858787840-2.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1171792712858787840-2.jpg" alt="@DasSurma 的配图 2/2" loading="lazy" decoding="async" width="1690" height="1580" /></a>
    </div>
  </div>
</div>
