---
title: "X 归档 2021-04-29"
date: "2021-04-29"
tags:
  - x-archive
  - frontend
---

<div class="x-arch-meta">5 条动态 · 图 1 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1387442357012946955" id="xl-1387442357012946955-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1387442357012946955" id="xl-1387442357012946955-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/1587837342756249601/AUS_eXWE_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/pfrazee" target="_blank" rel="nofollow noopener" data-name="Paul Frazee ✌️" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1587837342756249601/AUS_eXWE_bigger.jpg">@pfrazee</a><span class="x-arch-time">00:23</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1387442357012946955-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1387442357012946955-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/pfrazee/status/1387442357012946955" 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">Really loving with @excalidraw. Open source, stores whiteboards using local files, performs great. I use it constantly on the stream. <a href="https://excalidraw.com/" target="_blank" rel="noopener">https://excalidraw.com/</a><br /><br />A whiteboard from yesterday:</div>
    <div class="x-arch-text x-arch-trans">真心爱用 @excalidraw。开源、用本地文件保存白板、性能出色。我直播时一直在用它。<br /><br />昨天的一块白板：</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1387442357012946955-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1387442357012946955-1.jpg" alt="@pfrazee 的配图 1/1" loading="lazy" decoding="async" width="1572" height="806" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1387484876023099392" id="xl-1387484876023099392-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1387484876023099392" id="xl-1387484876023099392-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/1520650086878879744/ECvCMfI1_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/Justinwillis96" target="_blank" rel="nofollow noopener" data-name="lil PWA" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1520650086878879744/ECvCMfI1_bigger.jpg">@Justinwillis96</a><span class="x-arch-time">03:12</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1387484876023099392-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1387484876023099392-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/Justinwillis96/status/1387484876023099392" 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">Check this out before you choose to go with Electron or  Webview because you need file handling APIs. The browser most likely has the functionality you are looking for with file system access API <a href="https://web.dev/file-system-access/" target="_blank" rel="noopener">https://web.dev/file-system-access/</a> <a href="https://t.co/LaBHXbpmbA" target="_blank" rel="noopener">https://t.co/LaBHXbpmbA</a></div>
    <div class="x-arch-text x-arch-trans">在你因为需要文件处理 API 而选择 Electron 或 Webview 之前，先看看这个。浏览器很可能已经通过 file system access API 提供了你想要的功能  <a href="https://t.co/LaBHXbpmbA" target="_blank" rel="noopener">https://t.co/LaBHXbpmbA</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1387704057062625282" id="xl-1387704057062625282-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1387704057062625282" id="xl-1387704057062625282-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/1178372268050780161/Slc2BMPa_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/carlo_piovesan" target="_blank" rel="nofollow noopener" data-name="Carlo Piovesan" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1178372268050780161/Slc2BMPa_bigger.jpg">@carlo_piovesan</a><span class="x-arch-time">17:43</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1387704057062625282-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1387704057062625282-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/carlo_piovesan/status/1387704057062625282" 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">Very proud to share: <a href="https://medium.com/leaningtech/a-javascript-optimizing-compiler-3fd3f49bd071" target="_blank" rel="noopener">https://medium.com/leaningtech/a-javascript-optimizing-compiler-3fd3f49bd071</a><br /><br />An unique experiment mixing JavaScript, C++, TypeScript, Cheerp, LLVM.<br /><br />Looking forward to any feedback!</div>
    <div class="x-arch-text x-arch-trans">非常自豪地分享：<a href="https://medium.com/leaningtech/a-javascript-optimizing-compiler-3fd3f49bd071" target="_blank" rel="noopener">https://medium.com/leaningtech/a-javascript-optimizing-compiler-3fd3f49bd071</a><br /><br />一个混合了 JavaScript、C++、TypeScript、Cheerp、LLVM 的独特实验。<br /><br />期待任何反馈！</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1387756253317943297" id="xl-1387756253317943297-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1387756253317943297" id="xl-1387756253317943297-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">21:10</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1387756253317943297-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1387756253317943297-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/DasSurma/status/1387756253317943297" 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 this article @carlop54002226 converts JS to C++ in order to leverage the optimization engine of LLVM. Afterwards, he converts the resulting code back to JS and it can actually end up being faster. 🤯 <a href="https://t.co/GfOQVeDR3i" target="_blank" rel="noopener">https://t.co/GfOQVeDR3i</a></div>
    <div class="x-arch-text x-arch-trans">在这篇文章中，@carlop54002226 把 JS 转换为 C++，以借助 LLVM 的优化引擎。之后他再把生成的代码转回 JS，结果真的可能变得更快。🤯 <a href="https://t.co/GfOQVeDR3i" target="_blank" rel="noopener">https://t.co/GfOQVeDR3i</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1387792155771498502" id="xl-1387792155771498502-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1387792155771498502" id="xl-1387792155771498502-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/2018401342755364864/xVn-9oYv_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/boltdotnew" target="_blank" rel="nofollow noopener" data-name="bolt.new" data-avatar="https://twimg.tweb.xin/twimg/profile_images/2018401342755364864/xVn-9oYv_bigger.jpg">@boltdotnew</a><span class="x-arch-time">23:33</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1387792155771498502-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1387792155771498502-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/boltdotnew/status/1387792155771498502" 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">Browsers are awesome! (4):<br /><br />`window.showOpenFilePicker()` allows you to read from, and write to local files! 🤯<br /><br />So.. how about we use an online code editor to build an online text editor? 😁<br /><br />Let's start with file syncing:</div>
    <div class="x-arch-text x-arch-trans">浏览器太棒了！(4)：<br /><br />`window.showOpenFilePicker()` 让你既能读取也能写入本地文件！🤯<br /><br />那么……我们何不用在线代码编辑器来做一款在线文本编辑器？😁<br /><br />先从文件同步开始：</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2021-04/1387792155771498502-poster.jpg" src="/cdn-media/x/2021-04/1387792155771498502-video.mp4" width="1356" height="720" data-duration="57" aria-label="@boltdotnew 的视频"></video>
  </div>
</div>
