开发者推出了 trynix,一个在浏览器中运行 Nix 包管理系统的创新工具 1。用户可以在浏览器标签页中直接执行超过 310,083 个 nixpkgs 历史版本的软件包,无需在本地机器上进行任何安装 1。该项目将 Linux 内核编译为 WebAssembly 并结合虚拟机快照技术,实现了浏览器内即时启动虚拟环境并执行命令行程序 1。
trynix 支持运行 2017 年及更早版本的软件,例如 Python 3.6.2 和 2005 年发布的 hello 程序等 1。虚拟机通过预加载快照的方式实现快速启动,存储空间限制约为 1.5GB,WebAssembly 硬限制为 4GB 1。该平台还支持自定义存储路径,只要缓存服务器提供 CORS 跨域标头即可 1。用户可访问 https://trynix.dev 体验这一浏览器虚拟环境,项目源代码已在 GitHub 上开放 1。
A developer has created trynix, a browser-based environment that enables users to run Nix packages directly within a browser tab without any local software installation 1. The platform provides access to over 310,083 historical versions of nixpkgs, allowing developers to execute software packages ranging from recent releases to legacy versions dating back to 2005, such as Python 3.6.2 1.
The project achieves this functionality by compiling the Linux kernel into WebAssembly and combining it with Nix storage caching and virtual machine snapshot technology 1. This approach allows virtual machines to launch instantly within browser tabs and execute command-line programs 1. The system operates within storage constraints of approximately 1.5 gigabytes, with a WebAssembly hard limit of 4 gigabytes 1. Users can configure custom storage paths provided that the cache server supports the appropriate cross-origin resource sharing headers 1.
The trynix platform is accessible at https://trynix.dev, with source code available at github.com/fzakaria/trynix 1. Virtual machines benefit from pre-loaded snapshots that enable rapid startup times 1.
评论
还没有评论,欢迎留下第一条。