---
title: "X 归档 2020-09-11"
date: "2020-09-11"
tags:
  - x-archive
  - frontend
  - devops
---

<div class="x-arch-meta">4 条动态 · 图 1 · 视频 0</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1304214898549743616" id="xl-1304214898549743616-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1304214898549743616" id="xl-1304214898549743616-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/1980437845383770112/dBmUaNRh_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/argyleink" target="_blank" rel="nofollow noopener" data-name="Adam Argyle" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1980437845383770112/dBmUaNRh_bigger.jpg">@argyleink</a><span class="x-arch-time">08:27</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1304214898549743616-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1304214898549743616-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/argyleink/status/1304214898549743616" 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 excited for CSS to help distribute AVIF images! Here's some demo code that follows current spec drafts:<br />- if in data saver / lite mode<br />- match first format supported<br />- match first resolution supported<br />- make that image the background<br /><br />image-set() spec <a href="https://drafts.csswg.org/css-images-4/#image-set-notation" target="_blank" rel="noopener">https://drafts.csswg.org/css-images-4/#image-set-notation</a></div>
    <div class="x-arch-text x-arch-trans">很高兴 CSS 能帮助分发 AVIF 图像！下面是一段遵循当前规范草案的演示代码：<br />- 如果处于省流量 / 轻量模式<br />- 匹配第一个受支持的格式<br />- 匹配第一个受支持的分辨率<br />- 把那张图设为背景<br /><br />image-set() 规范 <a href="https://drafts.csswg.org/css-images-4/#image-set-notation" target="_blank" rel="noopener">https://drafts.csswg.org/css-images-4/#image-set-notation</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2020-09/1304214898549743616-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2020-09/1304214898549743616-1.jpg" alt="@argyleink 的配图 1/1" loading="lazy" decoding="async" width="1248" height="772" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1304219630680961025" id="xl-1304219630680961025-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1304219630680961025" id="xl-1304219630680961025-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/1195586913442230272/_Bw3XNqR_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/HenrikJoreteg" target="_blank" rel="nofollow noopener" data-name="Henrik Joreteg" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1195586913442230272/_Bw3XNqR_bigger.jpg">@HenrikJoreteg</a><span class="x-arch-time">08:46</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1304219630680961025-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1304219630680961025-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/HenrikJoreteg/status/1304219630680961025" 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">Want to run on https locally, without a bunch of fuss?<br /><br />This is your ticket, so nice!<br /><br />Five stars 😂 would install again... ⭐⭐⭐⭐⭐ <br /><br /><a href="https://www.npmjs.com/package/devcert" target="_blank" rel="noopener">https://www.npmjs.com/package/devcert</a></div>
    <div class="x-arch-text x-arch-trans">想在本地跑 https，又不想折腾一堆东西？<br /><br />这就是你的票，太舒服了！<br /><br />五星好评 😂 还会再装…… ⭐⭐⭐⭐⭐ <br /><br /><a href="https://www.npmjs.com/package/devcert" target="_blank" rel="noopener">https://www.npmjs.com/package/devcert</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1304343628215537664" id="xl-1304343628215537664-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1304343628215537664" id="xl-1304343628215537664-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-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/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">16:58</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1304343628215537664-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1304343628215537664-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/rauschma/status/1304343628215537664" 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">It’s amazing what people are doing with tagged templates (*). The plugin should work with plain JavaScript, too (under the hood, VS Code uses the TypeScript language server for completions).<br /><br />(*) <a href="https://exploringjs.com/impatient-js/ch_template-literals.html#tagged-templates" target="_blank" rel="noopener">https://exploringjs.com/impatient-js/ch_template-literals.html#tagged-templates</a></div>
    <div class="x-arch-text x-arch-trans">大家用标签模板（tagged templates）（*）做出来的东西太惊人了。这个插件应该也能在纯 JavaScript 下工作（VS Code 在底层用 TypeScript 语言服务来提供补全）。<br /><br />(*) <a href="https://exploringjs.com/impatient-js/ch_template-literals.html#tagged-templates" target="_blank" rel="noopener">https://exploringjs.com/impatient-js/ch_template-literals.html#tagged-templates</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1304400224694284289" id="xl-1304400224694284289-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1304400224694284289" id="xl-1304400224694284289-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/1566077591831941120/ci1KX7iU_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/michalmuskala" target="_blank" rel="nofollow noopener" data-name="Michał Muskała" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1566077591831941120/ci1KX7iU_bigger.jpg">@michalmuskala</a><span class="x-arch-time">20:43</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1304400224694284289-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1304400224694284289-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/michalmuskala/status/1304400224694284289" 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">Erlang is getting a JIT! In some preliminary benchmarks my Jason library is beating a native C implementation (jiffy). Real-world applications like RabbitMQ seeing 30-50% throughput increase. This is huge. Congrats @garazdawi 🥳 <a href="https://t.co/GRO2IoMK5b" target="_blank" rel="noopener">https://t.co/GRO2IoMK5b</a></div>
    <div class="x-arch-text x-arch-trans">Erlang 要有 JIT 了！在一些初步基准测试中，我的 Jason 库跑赢了一个原生 C 实现（jiffy）。RabbitMQ 这类真实应用的吞吐量提升了 30-50%。这太重大了。恭喜 @garazdawi 🥳 <a href="https://t.co/GRO2IoMK5b" target="_blank" rel="noopener">https://t.co/GRO2IoMK5b</a></div>
  </div>
</div>
