---
title: "X 归档 2021-05-29"
date: "2021-05-29"
tags:
  - x-archive
  - rust
---

<div class="x-arch-meta">3 条动态 · 图 0 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1398360444692316162" id="xl-1398360444692316162-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1398360444692316162" id="xl-1398360444692316162-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/1235447975566094336/bJBxfrjU_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/gibber_cc" target="_blank" rel="nofollow noopener" data-name="gibber" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1235447975566094336/bJBxfrjU_bigger.png">@gibber_cc</a><span class="x-arch-time">03:28</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1398360444692316162-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1398360444692316162-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gibber_cc/status/1398360444692316162" 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'm rewriting genish to use WebAssembly, and writing the WebAssembly Text (.wat) file directly (not using an intermediate language). Here's 750 sine oscillators (via lookup table / linear interpolation) running with a buffer size of 128 samples on my three-year old mbp.</div>
    <div class="x-arch-text x-arch-trans">我正在用 WebAssembly 重写 genish，而且是直接手写 WebAssembly Text（.wat）文件（不借助中间语言）。这是在我的三年前的 mbp 上，750 个正弦振荡器（通过查找表 / 线性插值实现）以 128 采样点的 buffer 大小运行的画面。</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2021-05/1398360444692316162-poster.jpg" src="/cdn-media/x/2026-10/1398360444692316162-video.mp4" width="1090" height="436" data-duration="29" aria-label="@gibber_cc 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1398467641782714371" id="xl-1398467641782714371-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1398467641782714371" id="xl-1398467641782714371-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/3064529098/d3947949d09c52024b67b1ba34aa8e73_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/gaubeebangeel" target="_blank" rel="nofollow noopener" data-name="gaubeebangeel" data-avatar="https://twimg.tweb.xin/twimg/profile_images/3064529098/d3947949d09c52024b67b1ba34aa8e73_bigger.png">@gaubeebangeel</a><span class="x-arch-time">10:34</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1398467641782714371-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1398467641782714371-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/gaubeebangeel/status/1398467641782714371" 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’re unable to view this Post because this account owner limits who can view their Posts. {learnmore}</div>
    <div class="x-arch-text x-arch-trans">由于该账号所有者限制了谁可以查看其帖子，你无法查看这条帖子。{learnmore}</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1398668839177568259" id="xl-1398668839177568259-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1398668839177568259" id="xl-1398668839177568259-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/467581434434453504/iFzELOBn_bigger.jpeg" 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/rauschma" target="_blank" rel="nofollow noopener" data-name="Axel Rauschmayer (also on 🦣)" data-avatar="https://twimg.tweb.xin/twimg/profile_images/467581434434453504/iFzELOBn_bigger.jpeg">@rauschma</a><span class="x-arch-time">23:53</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1398668839177568259-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1398668839177568259-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/rauschma/status/1398668839177568259" 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">[■,■,■,■].map(■→●) ⇒ [●,●,●,●]<br />[■,●,■,▲].filter(■→true) ⇒ [■,■]<br />[■,●,■,▲].find(●→true) ⇒ ●<br />[■,●,■,▲].findIndex(●→true) ⇒ 1<br />[■,●,■,▲].fill(●) ⇒ [●,●,●,●]<br />[■,●,■,▲].some(●→true) ⇒ true<br />[■,●,■,▲].every(●→true) ⇒ false</div>
    <div class="x-arch-text x-arch-trans">[■,■,■,■].map(■→●) ⇒ [●,●,●,●]<br />[■,●,■,▲].filter(■→true) ⇒ [■,■]<br />[■,●,■,▲].find(●→true) ⇒ ●<br />[■,●,■,▲].findIndex(●→true) ⇒ 1<br />[■,●,■,▲].fill(●) ⇒ [●,●,●,●]<br />[■,●,■,▲].some(●→true) ⇒ true<br />[■,●,■,▲].every(●→true) ⇒ false</div>
  </div>
</div>
