浏览器内运行任意 Nix 包
Any Nix package, live in your browser
朋友发现一个浏览器里就能跑任意 Nix 包的工具,不用服务器,直接在浏览器里加载你想要的软件版本,比如 2017 年的 Python 3.6.2,很方便。
trynix.dev 提供一个基于 WebAssembly 的 x86_64 Linux 虚拟机,可在浏览器中运行。用户可通过 URL 加载任意 Nix 包,例如 https://trynix.dev/?pkg=python3@3.6.2,获得一个交互式 shell。该工具可用于代码审查,通过 GitHub 动作在浏览器中预览 PR 构建结果。
Any Nix package, live in your browser
Any Nix package, live in your browser Farid Zakaria calls this his " magnum opus of Nix work", and I can see why. trynix.dev provides a qemu-wasm powered x86_64 Linux virtual machine running entirely in your browser through WebAssembly. That VM can then be booted with any Nix package from the past 13 years. They are URL addressable, so you can navigate to this page: https://trynix.dev/?pkg=python3%403.6.2 Then click "Load" and get an interactive shell against a virtual machine running Python 3.6.2 from 2017. Farid is building all sorts of neat things on top of this. One recent example: Review a pull request by booting it introduces trynix-preview , described like this: GitHub action that comments a link on a pull request which lets you boot the PR’s build in the browser using https://trynix.dev . No servers, just browsers. Via Lobste.rs Tags: code-review , linux , webassembly , github-actions
- OpenRouter09-10 14:58原文