20 comments

  • lxgr5 minutes ago
    Is JSLinux still an interpreter, or does it JIT compile these days?<p>Or are modern JS JITs so good that this is no longer a relevant distinction, i.e. is the performance of a JITted x86 interpreter effectively equivalent to a JITting x86-to-Javascript translator where the result is then itself JIT interpreted?
  • brucehoult12 hours ago
    Out of interest I tried running my Primes benchmark [1] on both the x86_64 and x86 Alpine and the riscv64 Buildroot, both in Chrome on M1 Mac Mini. Both are 2nd run so that all needed code is already cached locally.<p>x86_64:<p><pre><code> localhost:~# time gcc -O primes.c -o primes real 0m 3.18s user 0m 1.30s sys 0m 1.47s localhost:~# time .&#x2F;primes Starting run 3713160 primes found in 456995 ms 245 bytes of code in countPrimes() real 7m 37.97s user 7m 36.98s sys 0m 0.00s localhost:~# uname -a Linux localhost 6.19.3 #17 PREEMPT_DYNAMIC Mon Mar 9 17:12:35 CET 2026 x86_64 Linux </code></pre> x86 (i.e. 32 bit):<p><pre><code> localhost:~# time gcc -O primes.c -o primes real 0m 2.08s user 0m 1.43s sys 0m 0.64s localhost:~# time .&#x2F;primes Starting run 3713160 primes found in 348424 ms 301 bytes of code in countPrimes() real 5m 48.46s user 5m 37.55s sys 0m 10.86s localhost:~# uname -a Linux localhost 4.12.0-rc6-g48ec1f0-dirty #21 Fri Aug 4 21:02:28 CEST 2017 i586 Linux </code></pre> riscv64:<p><pre><code> [root@localhost ~]# time gcc -O primes.c -o primes real 0m 2.08s user 0m 1.13s sys 0m 0.93s [root@localhost ~]# time .&#x2F;primes Starting run 3713160 primes found in 180893 ms 216 bytes of code in countPrimes() real 3m 0.90s user 3m 0.89s sys 0m 0.00s [root@localhost ~]# uname -a Linux localhost 4.15.0-00049-ga3b1e7a-dirty #11 Thu Nov 8 20:30:26 CET 2018 riscv64 GNU&#x2F;Linux </code></pre> Conclusion: as seen also in QEMU (also started by Bellard!), RISC-V is a *lot* easier to emulate than x86. If you&#x27;re building code specifically to run in emulation, use RISC-V: builds faster, smaller code, runs faster.<p>Note: quite different gcc versions, with x86_64 being 15.2.0, x86 9.3.0, and riscv64 7.3.0.<p>[1] <a href="http:&#x2F;&#x2F;hoult..rg&#x2F;primes.txt" rel="nofollow">http:&#x2F;&#x2F;hoult..rg&#x2F;primes.txt</a>
    • saagarjha1 hour ago
      &gt; If you&#x27;re building code specifically to run in emulation, use RISC-V: builds faster, smaller code, runs faster.<p>I don&#x27;t really think this bears out in practice. RISC-V is easy to emulate but this does not make it fast to emulate. Emulation performance is largely dominated by other factors where RISC-V does not uniquely dominate.
      • lxgr8 minutes ago
        Do you have an explanation for GP&#x27;s benchmark results then?
    • vexnull11 hours ago
      Interesting to see the gcc version gap between the targets. The x86_64 image shipping gcc 15.2.0 vs 7.3.0 on riscv64 makes the performance comparison less apples-to-apples than it looks - newer gcc versions have significantly better optimization passes, especially for register allocation.
      • brucehoult8 hours ago
        The RISC-V one has just never been touched since it was created in 2018.<p>&gt; newer gcc versions have significantly better optimization passes<p>So what you&#x27;re saying is that with a modern compiler RISC-V would win by even more?<p>TBH I doubt much has changed with register allocation on register-rich RISC ISAs since 2018. On i386, yeah, quite possible.
    • dmitrygr12 hours ago
      MIPS (the arch of which RISCV is mostly a copy) is even easier to emulate, unlike RV it does not scatter immediate bits al over the instruction word, making it easier for an emulator to get immediates. If you need emulated perf, MIPS is the easiest of all
      • brucehoult12 hours ago
        That&#x27;s a very small effect in the overall decoding of an instruction even in a pure interpretive emulator, and undetectable in a JIT.<p>Also MIPS code is much larger.
        • thesz5 minutes ago
          MIPS code is not much larger.<p>There are two interesting differences of ISA between MIPS and RISC-V: that MIPS does not have branch on condition, only on zero&#x2F;non-zero and that MIPS has 16 bit immediates with appropriate sign extension (all zeroes for ORI, all ones for ANDI). The first difference makes MIPS programs about 10% larger and second difference makes MIPS programs smaller (RISC-V immediates are 11.5 bits due to mandatory sign extension, 13 bits are required to cover 95% of immediates in MIPS-like scheme), a percent or so, I think.
        • dmitrygr39 minutes ago
          Entirely disagreed. In a simple step by step emulator it can be as much as 30% of the time spent. In a jit indeed it is less of an effect.
      • anthk2 hours ago
        MIPS Linux ELF interpreter in Perl:<p><a href="http:&#x2F;&#x2F;blog.schmorp.de&#x2F;2015-06-08-emulating-linux-mips-in-perl-1.html" rel="nofollow">http:&#x2F;&#x2F;blog.schmorp.de&#x2F;2015-06-08-emulating-linux-mips-in-pe...</a>
    • unit1495 hours ago
      [dead]
  • simonw17 hours ago
    The thing I most want to use this (or some other WASM Linux engine) for is running a coding agent against a virtual operating system directly in my browser.<p>Claude Code &#x2F; Codex CLI &#x2F; etc are all great because they know how to drive Bash and other Linux tools.<p>The browser is probably the best sandbox we have. Being able to run an agent loop against a WebAssembly Linux would be a very cool trick.<p>I had a play with v86 a few months ago but didn&#x27;t quite get to the point where I hooked up the agent to it - here&#x27;s my WIP: <a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;v86" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;v86</a> - it has a text input you can use to send commands to the Linux machine, which is pretty much what you&#x27;d need to wire in an agent too.<p>In that demo try running &quot;cat test.lua&quot; and then &quot;lua test.lua&quot;.
    • the_mitsuhiko16 hours ago
      &gt; The thing I most want to use this (or some other WASM Linux engine) for is running a coding agent against a virtual operating system directly in my browser.<p>That exists: <a href="https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm</a><p>Unfortunately I found the performance to be enough of an issue that I did not look much further into it.
      • stingraycharles11 hours ago
        Did anyone expect anything different though, when running a full-blown OS in JavaScript?
        • pancsta3 hours ago
          WASM != JS (fortunately)
    • jraph16 hours ago
      Simon, this HN post didn&#x27;t need to be about Gen AI.<p>This thing is really inescapable those days.
      • simonw16 hours ago
        Parallel thread: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47311484#47312829">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47311484#47312829</a> - &quot;I&#x27;ve always been fascinated by this, but I have never known what it would be useful for.&quot;<p>I should have replied there instead, my mistake.
        • stavros13 hours ago
          I don&#x27;t know man, I didn&#x27;t see anyone say &quot;this post didn&#x27;t need to be about &lt;random topic&gt;&quot;, HN has just become allergic to LLMs lately.<p>I&#x27;m excited about them and I think discussion on how to combine two exciting technologies are exactly what I&#x27;d like to see here.
          • purerandomness13 hours ago
            You haven&#x27;t been around here in the Blockchain&#x2F;NFT&#x2F;Smart Contract dark ages, have you?
            • stavros13 hours ago
              Naw man I just signed up.
              • yokoprime12 hours ago
                I chuckled. Everything on earth is recent if you look at it from a cosmic timeframe I guess
                • Towaway695 hours ago
                  I wonder in what timeframe the cosmic timeframe is recent.<p>It&#x27;s turtles all the way down ....<p>;)
                • stavros12 hours ago
                  To be fair, it really was annoying when everything was blockchain.
                  • Towaway695 hours ago
                    Aren&#x27;t there blockchain agents, surely there must be agents running in the blockchain as smart contracts?
                  • girvo6 hours ago
                    On the other hand man was it easy to make money at the time. I guess that’s probably true now for those in the AI space too
            • fsloth5 hours ago
              TBH I’ve been here a while, never felt what the point with the above is but do feel LLM:s are a new valuable affordance in computer use.<p>I mean I don’t have to remember the horrible git command line anymore which already improves my exprience as a dev 50%.<p>It’s not all hype bs this time.
              • latexr1 hour ago
                &gt; I mean I don’t have to remember the horrible git command line anymore<p>Every time I see a comment like this, I have to wonder what the heck other devs were doing. Don’t you know there were shell aliases, and snippet managers, and a ton of other tools already? I never <i>had to</i> commit special commands to memory, and I could always reference them faster than it takes to query any LLM.
          • bakugo13 hours ago
            Has there ever been any other topic that was not only the subject of the majority of submissions, but also had a subset of users repeatedly butting into completely unrelated discussions to go &quot;b-but what about &lt;thing&gt;? we need to talk about &lt;thing&gt; here too! how can I relate this to &lt;thing&gt;? look at my &lt;thing&gt; product!&quot;?<p>You can&#x27;t just roll in to a random post to tell people about your revolutionary new AI agent for the 50th time this week and expect them not to be at least mildly annoyed.
            • stavros13 hours ago
              I&#x27;m with you, but he wasn&#x27;t telling us about his agent, he was saying &quot;this is a cool technology and I&#x27;ve been wanting to use it to make a thing&quot;. The thing just happened to be LLM-adjacent.
              • bakugo12 hours ago
                Almost all of his comments &quot;just happen&quot; to be LLM-adjacent. At some point it stops &quot;just happening&quot; and it becomes clear that certain people (or their AI bots) are frequenting discussion spaces for the sole purpose of seeking out opportunities to bring up AI and self-promote.
                • stavros12 hours ago
                  Simon has been here since way before LLMs were a thing, and it&#x27;s fairly obvious (to me, at least) that he&#x27;s genuinely excited about LLMs, he&#x27;s not just spamming sales or anything.
                • yokoprime12 hours ago
                  You are not reading his material i suppose? It’s really one of the better sources for informed takes on llms
                  • bakugo11 hours ago
                    I just went and read one of his recent posts at: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2026&#x2F;Mar&#x2F;5&#x2F;chardet&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2026&#x2F;Mar&#x2F;5&#x2F;chardet&#x2F;</a><p>The entire thing is just quotes and a retelling of events. The closest thing to a &quot;take&quot; I could find is this:<p>&gt; I have no idea how this one is going to play out. I’m personally leaning towards the idea that the rewrite is legitimate, but the arguments on both sides of this are entirely credible.<p>Which effectively says nothing. It doesn&#x27;t add anything the discussion around the topic, informed or not, and the post doesn&#x27;t seem to serve any purpose beyond existing as an excuse to be linked to and siphon attention away from the original discussion (I wonder if the sponsor banner at the top of the blog could have something to do with that...?)<p>This seems to be a pattern, at least in recent times. Here&#x27;s another egregious example: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2026&#x2F;Feb&#x2F;21&#x2F;claws&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2026&#x2F;Feb&#x2F;21&#x2F;claws&#x2F;</a><p>Literally just a quote from his fellow member of the &quot;never stops talking about AI&quot; club, Karpathy. No substance, no elaboration, just something someone else said or did pasted on his blog followed by a short agreement. Again, doesn&#x27;t add anything or serve any real purpose, but was for some reason submitted to HN[1], and I may be misremembering but I believe it had more upvotes&#x2F;comments than the original[2] at one point.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47099160">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47099160</a><p>[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096253">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47096253</a>
                    • simonw8 hours ago
                      I think my coverage of the Mark Pilgrim situation added value in that most people probably aren&#x27;t aware that Mark Pilgrim removed himself from internet life in 2011, which is relevant to the chardet story.<p>That second Karpathy example is from my link blog. Here&#x27;s my post describing how I try to add something new when I write about things on my link blog: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Dec&#x2F;22&#x2F;link-blog&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Dec&#x2F;22&#x2F;link-blog&#x2F;</a><p>In the case of that Karpathy post I was amplifying the idea that &quot;Claw&quot; is now the generic name for that class of software, which is notable.
        • darig14 hours ago
          [dead]
      • yokoprime12 hours ago
        What topics are allowed in your opinion? I very much enjoyed Simon’s comment as it is a use case I also was thinking of.
      • brumar8 hours ago
        Why not leting upvotes do their thing? I enjoyed this comment.
      • grimgrin12 hours ago
        a bit cute that you interacted with the 1 AI thread. there are other threads!
    • d_philla15 hours ago
      Check out Jeff Lindsay&#x27;s Apptron (<a href="https:&#x2F;&#x2F;github.com&#x2F;tractordev&#x2F;apptron" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tractordev&#x2F;apptron</a>), comes very close to this, and is some great tech all on its own.
      • progrium15 hours ago
        It&#x27;s getting there. Among other things, it&#x27;s probably the quickest way to author a Linux environment to embed on the web: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=aGOHvWArOOE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=aGOHvWArOOE</a><p>Apptron uses v86 because its fast. Would love it for somebody to add 64-bit support to v86. However, Apptron is not <i>tied</i> to v86. We could add Bochs like c2w or even JSLinux for 64-bit, I just don&#x27;t think it will be fast enough to be useful for most.<p>Apptron is built on Wanix, which is sort of like a Plan9-inspired ... micro hypervisor? Looking forward to a future where it ties different environments&#x2F;OS&#x27;s together. <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kGBeT8lwbo0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kGBeT8lwbo0</a>
    • apignotti16 hours ago
      We are working on exactly this: <a href="https:&#x2F;&#x2F;browserpod.io" rel="nofollow">https:&#x2F;&#x2F;browserpod.io</a><p>For a full-stack demo see: <a href="https:&#x2F;&#x2F;vitedemo.browserpod.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vitedemo.browserpod.io&#x2F;</a><p>To get an idea of our previous work: <a href="https:&#x2F;&#x2F;webvm.io" rel="nofollow">https:&#x2F;&#x2F;webvm.io</a>
      • otterley10 hours ago
        How’s performance relative to bare metal or hardware virtualization?
        • johndough4 hours ago
          I ran two experiments:<p>~20x slower for a naive recursive Fibonacci implementation in Python (1300 ms for fib(30) in this VM vs 65ms on bare metal. For comparison, CPython directly compiled to WASM without VM overhead does it in 140ms.)<p>~2500x slower for 1024x1024 matrix multiplication with NumPy (0.25 GFLOPS in VM vs 575 GFLOPS on bare metal).
          • apignotti4 hours ago
            This is not correct. You are using WebVM here, not BrowserPod.<p>WebVM is based on x86 emulation and JIT compilation, which at this time lowers vector instructions as scalar. This explains the slowdowns you observe. WebVM is still much faster than v86 in most cases.<p>BrowserPod is based on a pure WebAssembly kernel and WebAssembly payload. Performance is close to native speed.
            • johndough3 hours ago
              I see. I thought they were the same and <a href="https:&#x2F;&#x2F;vitedemo.browserpod.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vitedemo.browserpod.io&#x2F;</a> failed to load, so I was not able to test there.
              • apignotti2 hours ago
                Demo works as expected for me, please share information if possible or join our Discord for further help: <a href="https:&#x2F;&#x2F;discord.leaningtech.com" rel="nofollow">https:&#x2F;&#x2F;discord.leaningtech.com</a>
                • johndough2 hours ago
                  I dug a bit deeper. The cause was that navigator.storage.getDirectory() is not available in Firefox private browsing mode.<p>The performance is pretty amazing. fib(35) runs in 60ms, compared to 65ms in NodeJS on Desktop.<p>But I can&#x27;t find a shell. Is there only support for NodeJS at the moment?
                  • apignotti1 hour ago
                    Only node is supported as of version 1.1, but the next version is fully focused on command line tooling (git, bash, ssh, grep, ...).<p>See the launch blog post for our full timeline: <a href="https:&#x2F;&#x2F;labs.leaningtech.com&#x2F;blog&#x2F;browserpod-10" rel="nofollow">https:&#x2F;&#x2F;labs.leaningtech.com&#x2F;blog&#x2F;browserpod-10</a><p>Also, could I ask you to quickly edit your previous comment to clarify you were benchmarking against the older project?
                    • johndough1 hour ago
                      Unfortunately, that comment can not be edited anymore. Maybe @dang can change it or remove the comment chain. I am fine with both.
    • andai9 hours ago
      I run agents as a separate Linux user. So they can blow up their own home directory, but not mine. I think that&#x27;s what most people are actually trying to solve with sandboxing.<p>(I assume this works on Macs too, both being Unixes, roughly speaking :)
    • johnhenry11 hours ago
      Are you describing bolt.new? (Unfortunately, it looks like their open source project is lagging behind <a href="https:&#x2F;&#x2F;github.com&#x2F;stackblitz-labs&#x2F;bolt.diy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stackblitz-labs&#x2F;bolt.diy</a>)
    • repstosb4 hours ago
      &gt; The thing I most want to use this (or some other WASM Linux engine) for is running a coding agent against a virtual operating system directly in my browser.<p>Well, there it is, the dumbest thing I&#x27;ll read on the internet all week.<p>Most of the engineering in Linux revolves around efficiently managing hardware interfaces to build up higher-level primitives, upon which your browser builds even higher-level primitives, that you want to use to simulate an x86 and attached devices, so you can start the process again? Somewhere (everywhere), hardware engineers are weeping. I&#x27;ll bet you can&#x27;t name a single advantage such a system would have over cloud hosting or a local Docker instance.<p>Even worse, you want this so your cloud-hosted imaginary friend can boil a medium-sized pond while taking the joyful bits of software development away from you, all for the enrichment of some of the most ethically-challenged members of the human race, and the fawning investors who keep tossing other people&#x27;s capital at them? Our species has perhaps jumped the shark.
    • zitterbewegung12 hours ago
      While this may be a better sandbox, actually having a separate computer dedicated to the task seems like a better solution still and you will get better performance.<p>Besides, prompt injection or simpler exploits should be addressed first than making a virtual computer in a browser and if you are simulating a whole computer you have a huge performance hit as another trade off.<p>On the other hand using the browser sandbox that also offers a UI &#x2F; UX that the foundation models have in their apps would ease their own development time and be an easy win for them.
    • ZeWaka10 hours ago
      It&#x27;s relatively easy to spin up a busybox WASM v86 solution
    • kantord14 hours ago
      This is not the technical solution you want, but I think it provides the result that you want: <a href="https:&#x2F;&#x2F;github.com&#x2F;devcontainers" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;devcontainers</a><p>tldr; devcontainers let you completely containerize your development environment. You can run them on Linux natively, or you can run them on rented computers (there are some providers, such as GitHub Codespaces) or you can also run them in a VM (which is what you will be stuck with on a Mac anyways - but reportedly performance is still great).<p>All CLI dev tools (including things like Neovim) work out of the box, but also many&#x2F;most GUI IDEs support working with devcontainers (in this case, the GUI is usually not containerized, or at least does not live in the same container. Although on Linux you can do that also with Flatpak. And for instance GitHub Codespaces runs a VsCode fully in the browser for you which is another way to sandbox it on both ends).
      • stavros13 hours ago
        This is interesting (and I&#x27;ve seen it mentioned in some editors), but how do I use it? It would be great if it had bubblewrap support, so I don&#x27;t have to use Docker.<p>Do you know if there&#x27;s a cli or something that would make this easier? The GitHub org seems to be more focused on the spec.
    • bakugo13 hours ago
      [flagged]
      • iamjackg12 hours ago
        Nobody is promoting a product. Simon is just sharing an experiment he attempted. No products being sold here.
        • pelcg12 hours ago
          Maybe not, but in the past some here see that the blog is the product that is being promoted here.<p>Even in this thread alone <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47314929">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47314929</a> some commenters here are clearly annoyed with the way AI is being shoved in each place where they do not want it.<p>I don&#x27;t care, but I can see why many here are getting tired of it.
  • blackhaz17 hours ago
    Sorry for the off-topic, but what a bliss to see Windows 2000 interface. And what an absolute abomination from hell pretty much all the modern UIs are.
    • stavros13 hours ago
      My god that interface feels like home.
    • shevy-java16 hours ago
      Yeah. Microsoft really went downhill UI-wise.
      • MBCook9 hours ago
        They’re hardly the only ones.
    • diabllicseagull14 hours ago
      win2000 brings back so many good memories.
    • cheema3316 hours ago
      Is that even remotely relevant to JSLinux?
      • nout16 hours ago
        Yes, it&#x27;s one of the available emulated systems on JSLinux.
      • dmd15 hours ago
        If you&#x27;d clicked the link, instead of just reading the title, you&#x27;d have known it was.
  • maxloh18 hours ago
    Unfortunately, he didn&#x27;t attach the source code for the 64-bit x86 emulation layer, or the config used to compile the hosted image.<p>For a more open-source version, check out container2wasm (which supports x86_64, riscv64, and AArch64 architectures): <a href="https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm</a>
    • zamadatix18 hours ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;copy&#x2F;v86" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;copy&#x2F;v86</a> might be a more 1:1 fully open sourced alternative.
      • maxloh18 hours ago
        Not really. x86_64 is not supported yet: <a href="https:&#x2F;&#x2F;github.com&#x2F;copy&#x2F;v86&#x2F;issues&#x2F;133" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;copy&#x2F;v86&#x2F;issues&#x2F;133</a>
        • zamadatix15 hours ago
          Sure, and there are probably some other things lacking, but JSLinux supports a lot more than CLI Linux userspace on x86-64 too. E.g. compare to lack of graphical interface <a href="https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm&#x2F;issues&#x2F;196" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;container2wasm&#x2F;container2wasm&#x2F;issues&#x2F;196</a><p>It looks like container2wasm uses a forked version of Bochs to get the x86-64 kernel emulation to work. If one pulled that out separately and patched it a bit more to have the remaining feature support it&#x27;d probably be the closest overall. Of course one could say the same about patching anything with enough enthusiasm :).
    • zoobab3 hours ago
      &quot;he didn&#x27;t attach the source code for the 64-bit x86 emulation layer&quot;<p>It&#x27;s not open source? If that&#x27;s the case, it should be in his FAQ.
  • bonzini2 hours ago
    Wow, with AVX512 too?? Now I really want to add it to QEMU. :)<p>(For APX I have patches at <a href="https:&#x2F;&#x2F;lore.kernel.org&#x2F;qemu-devel&#x2F;20260301144218.458140-1-pbonzini@redhat.com&#x2F;T&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lore.kernel.org&#x2F;qemu-devel&#x2F;20260301144218.458140-1-p...</a> but I have never tested them on system emulation).
  • hashkitly2 hours ago
    Amazing work by Fabrice Bellard as always. The x86_64 support opens up so many possibilities for running modern Linux distributions in the browser.
  • AlecMurphy16 hours ago
    If anyone is interested, I made some modifications last month to get TempleOS running on the x86_64 JSLinux: <a href="https:&#x2F;&#x2F;ring0.holyc.xyz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ring0.holyc.xyz&#x2F;</a>
    • zb315 hours ago
      Wow, thanks for this, this is exactly what v86 was missing! Runs faster than my demo: <a href="https:&#x2F;&#x2F;zb3.me&#x2F;qemu-wasm-test&#x2F;jspi-noffi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zb3.me&#x2F;qemu-wasm-test&#x2F;jspi-noffi&#x2F;</a><p>Even though it has no JIT. Truly magic :)
  • testifye9 hours ago
    I&#x27;ve been using the x86_64 Alpine jslinux browser image in Chrome for the last 4 hours - pulling code down via git, building several large packages from source, editing and altering code, and running their test suites. This VM may be 50 times slower than native, but it is rock solid - worked perfectly and is stable. It&#x27;s simply remarkable.
  • sylware47 minutes ago
    I am almost sure it was done so carefully that you can extract it from the abominations which are the whatng cartel web engines with a direct to OS abstraction layer that with only some little amount of work.
  • notorandit18 hours ago
    Incredible guy!
  • stjo14 hours ago
    I love how nonchalantly demonstrates his custom terminal emulator and javascript engine.
  • wolttam18 hours ago
    I can launch this thing and start making arbitrary connections out to port 25 on the internet from some random IP? Hmm.
    • maxloh18 hours ago
      From the &quot;Technical notes&quot; page:<p>&gt; Access to Internet is possible inside the emulator. It uses the websocket VPN offered by Benjamin Burns (see his blog). The bandwidth is capped to 40 kB&#x2F;s and at most two connections are allowed per public IP address. Please don&#x27;t abuse the service.<p><a href="https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;tech.html" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;tech.html</a>
    • Lockal2 hours ago
      A somewhat better solution via tailnet you can find in <a href="https:&#x2F;&#x2F;webvm.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webvm.io&#x2F;</a>
  • joey54033 hours ago
    how can I install a openclaw in the jslinux.
  • petcat18 hours ago
    I&#x27;ve always been fascinated by this, but I have never known what it would be useful for. Does anyone know of any practical use cases?
    • omoikane18 hours ago
      I use bellard.org&#x2F;jslinux to test compilation of strange code sometimes[1], since it came with compilers that are different versions from what I have installed locally, and it&#x27;s easier to open up a browser than starting a VM.<p>[1] For example:<p><a href="https:&#x2F;&#x2F;www.ioccc.org&#x2F;2020&#x2F;yang&#x2F;index.html#:~:text=tcc%200.9.25%20on-,JSLinux,-Output%20of%20Mile" rel="nofollow">https:&#x2F;&#x2F;www.ioccc.org&#x2F;2020&#x2F;yang&#x2F;index.html#:~:text=tcc%200.9...</a><p><a href="https:&#x2F;&#x2F;www.ioccc.org&#x2F;2018&#x2F;yang&#x2F;index.html#:~:text=tcc%200.9.25%20on-,JS&#x2F;Linux,-Nuko%20compiles%20without" rel="nofollow">https:&#x2F;&#x2F;www.ioccc.org&#x2F;2018&#x2F;yang&#x2F;index.html#:~:text=tcc%200.9...</a>
    • toast018 hours ago
      I use a similar emulator (v86) as a way to share my hobby OS. Approximately zero people, even my friends, are going to boot my hobby OS on real hardware; I did manage to convince some of them to run it in qemu, but it&#x27;s difficult. A browser environment shows the thing quite well; and easy networking is cool too.<p>My hobby OS itself is not very useful, but it&#x27;s fun if you&#x27;re in the right mood.
    • Towaway695 hours ago
      I guess for the author its learning about how Linux can be ported to the browser. For us, it&#x27;s more of a nice amusement.<p>But then again, I&#x27;ve never understood why Buddhist monks create sand mandalas[1] and then let them be blown away (the mandalas not the monks!).<p>I think one should see it from the authors PoV instead of thinking &quot;what is in it for me&quot;. If I were to use this, then to create digital sand mandalas in the browser! ;)<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Sand_mandala" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Sand_mandala</a>
    • shirro14 hours ago
      We are a playful species. People enjoy play. If we didn&#x27;t have to work for a living but still enjoyed food security that is all most of us would do. But we are also a very exploitative species, some more than others. Companies have made billions of dollars on top of Fabrice Bellard&#x27;s works, qemu, ffmpeg etc.<p>These companies don&#x27;t have any imagination. Their management has no vision. They could not create anything new and wonderful if they tried. People like Fabrice do and we are all richer for it. If your asking about the practical use you are likely in the exploitative mindset which is understandable on HN. The hacker&#x2F;geek mindset enjoys this for what it is.
    • kristianp8 hours ago
      <a href="https:&#x2F;&#x2F;infinitemac.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;infinitemac.org&#x2F;</a> is an example of a good use: users can try out old versions of Mac OS, to see what&#x27;s changed and what software used to be available for old versions. It doesn&#x27;t use JSLinux, but other emulators [1]<p>[1] <a href="https:&#x2F;&#x2F;blog.persistent.info&#x2F;2025&#x2F;03&#x2F;infinite-mac-os-x.html" rel="nofollow">https:&#x2F;&#x2F;blog.persistent.info&#x2F;2025&#x2F;03&#x2F;infinite-mac-os-x.html</a>
    • s-macke18 hours ago
      Most such emulators have Internet access on the IP level. Therefore, this is a very cheap way to test anything on the Internet.<p><pre><code> apk add nmap nmap your.domain.com </code></pre> However, the speed is heavily throttled. You can even use ssh and login to your own server.<p>It can also be used as a very cheap way to provide a complete build environment on a single website, for example to teach C&#x2F;C++. Or to learn the shell. You don&#x27;t have to install anything.
      • Onavo14 hours ago
        You need backend proxies, the browser doesn&#x27;t allow ignoring CORS by default.
        • s-macke4 hours ago
          Exactly. And JSLinux is using one.
    • postalrat15 hours ago
      Some sort of web based archive of applications&#x2F;etc where you can boot them up in your browser.
      • peterburkimsher15 hours ago
        That’s what I’d like to use it for as well, but it’s difficult to do so because there’s no way to edit the disk image.<p>Any advice on how to create a JSLinux clone with a specific file pre-installed and auto-launching would be much appreciated!
        • progrium13 hours ago
          Working with VMs always felt difficult because of this. So authoring was built-in to Docker. Now you can use Apptron to author and embed a Linux system on a web page. This aspect is usable, but it&#x27;s only going to get better.
        • vexnull11 hours ago
          The tech docs at bellard.org&#x2F;jslinux&#x2F;tech.html describe the TEMU config format. Each VM is just a .cfg file - you can see the existing ones linked on the main page. The VFsync integration (vfsync.org) is probably your best bet for getting files into the VM without rebuilding the disk image.<p>For a classroom with Windows PCs this is close to ideal - zero install, no admin rights, works in any browser. Students get a real gcc toolchain and shell without touching the host OS.
    • varun_ch18 hours ago
      Maybe if you’ve got some ancient software that’s missing source code and only runs with X Y and Z conditions, you could continue to offer it on the web and build around it like that? Not sure if that would be practical at all, but could be interesting
    • redleader5517 hours ago
      Agentic workloads create and then run code. You don&#x27;t want to just run that code in a &quot;normal&quot; environment like a container, or even a very well protected VM. There are other options, ofc - eg. gvisor, crossvm, firecracker, etc, but this one is uncommon enough to have a small number of attackers trying to hack it.
      • srdjanr16 hours ago
        What&#x27;s wrong with a well protected VM? Especially compared to something where the security selling point is &quot;no one uses it&quot; (according to your argument; I don&#x27;t know how secure this actually is)
        • g947o15 hours ago
          Nothing, but &quot;there are already working options&quot; does not necessarily mean we shouldn&#x27;t try new (and sometimes weird) things
          • cloudfudge14 hours ago
            GP says &quot;You don&#x27;t want to just run that code in ... even a very well protected VM.&quot; Why?
            • redleader552 hours ago
              Because unless you can fund several teams - kernel, firmware(bios,etc), GPU drivers, qemu, KVM, extra hardening(eg. qemu runs under something like bpfilter) + a red team, security through obscurity is cheaper. The attack surface area is just too large.
          • TacticalCoder14 hours ago
            Yeah but GP was answering to a comment saying &quot;you don&#x27;t want to run code in a well protected VM&quot;. Which is of course complete non sense to say and GP was right to question it.
      • hrmtst938376 hours ago
        Obscurity is a shrinking moat unless you are upstreaming changes regularly, and most uncommon emulators lag behind on the boring but needed patches compared to QEMU or Firecracker. If you shift to a niche emulator for security, you really need a plan to audit the new attack surface it brings. Even a weird stack tends to attract attackers once it gets popular enough or just irritates someone determined.
    • maxloh18 hours ago
      My college professor used it to teach us the Linux command line<p>We have Windows PCs in the classroom.
      • jgtrosh15 hours ago
        Similarly I&#x27;ve used it for technical interviews.
  • westurner17 hours ago
    How do TinyEmu and JSLinux compare to linux-wasm?<p>From &quot;Show HN: Amla Sandbox – WASM bash shell sandbox for AI agents&quot; (2026) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46825119">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46825119</a> :<p>&gt;&gt;&gt; <i>How to run vscode-container-wasm-gcc-example with c2w, with joelseverin&#x2F;linux-wasm?</i><p>&gt;&gt; <i>linux-wasm is apparently faster than c2w</i><p>From &quot;Ghostty compiled to WASM with xterm.js API compatibility&quot; <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46118267">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46118267</a> :<p>&gt; <i>From joelseverin&#x2F;linux-wasm: <a href="https:&#x2F;&#x2F;github.com&#x2F;joelseverin&#x2F;linux-wasm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;joelseverin&#x2F;linux-wasm</a> :</i><p>&gt;&gt; <i>Hint: Wasm lacks an MMU, meaning that Linux needs to be built in a NOMMU configuration</i><p>From <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46229385">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46229385</a> :<p>&gt;&gt; <i>There&#x27;s a pypi:SystemdUnitParser.</i>
  • westurner17 hours ago
    UBY: touchscreen: How to scroll the scrollback
  • shevy-java16 hours ago
    He builds epicness.
  • jccx7014 hours ago
    [dead]
  • jccx7014 hours ago
    [dead]