Most active commenters
  • apignotti(9)
  • (3)

202 points thunderbong | 58 comments | | HN request time: 2.617s | source | bottom
1. benchmarkist ◴[] No.42190530[source]
Networking over websockets with tailscale is a nice touch.
2. westurner ◴[] No.42190559[source]
/? "webvm" jupyter: https://www.google.com/search?q=%22webvm%22+jupyter

- "Is WebVM a potential solution to "JupyterLite doesn't have a bash/zsh shell"?" https://news.ycombinator.com/item?id=30167403#30168491 :

- [ ] "ENH: Terminal and Shell: BusyBox, bash/zsh, git; WebVM," https://github.com/jupyterlite/jupyterlite/issues/949

And then now WASM containers in the browser FWIU

3. rahimnathwani ◴[] No.42190598[source]
Previous discussion with 632 points: https://news.ycombinator.com/item?id=40940225
4. colesantiago ◴[] No.42190610[source]
duplicate: https://news.ycombinator.com/item?id=40940225
5. James_K ◴[] No.42190697[source]
Sad to see Linux turning into a web app. I thought they'd be smart enough to avoid this sort of trend. Hope they continue to support the desktop version.
replies(6): >>42190753 #>>42190798 #>>42191149 #>>42191232 #>>42191599 #>>42192278 #
6. zb3 ◴[] No.42190745[source]
Note this repository doesn't include source for CheerpX, which is the main component of WebVM.
replies(1): >>42191082 #
7. 8n4vidtmkvmk ◴[] No.42190753[source]
Unless Linus himself is behind this project, I don't think you have anything to worry about.
replies(1): >>42191842 #
8. Uptrenda ◴[] No.42190784[source]
I think its cool but am I the only one that doesn't really think the web is a good platform for this? Like, VM stuff needs to be as close to bare metal as possible to be fast. There's special processor features that make virtualisation work well. It's amazingly efficient now. You can vastly over-allocate your hardware between VMs with good modern virtualisation software because they're so damn efficient that they only utilise CPU and memory when they need it. That means they're not just like allocated 4 GBs if you allocate 4 GB to the VM.

All these little optimisations... just aren't going to work well in a browser. I mean, I can already see that alpine (an extremely lightweight VM that I've had boot instantly with vagrant and other such stuff) is slow here. It's a cool hack. I just prefer things to be practical...

replies(2): >>42190990 #>>42191465 #
9. athrowaway3z ◴[] No.42190798[source]
I'm waiting for the IPhone app.
replies(2): >>42190948 #>>42190951 #
10. sudo_bang_bang ◴[] No.42190908[source]
Can I run WebVM inside WebVM?
replies(1): >>42195957 #
11. mmh0000 ◴[] No.42190948{3}[source]
May your wish be granted:

https://apps.apple.com/us/app/ish-shell/id1436902243

replies(1): >>42191210 #
12. ◴[] No.42190951{3}[source]
13. solarkraft ◴[] No.42190990[source]
There are better approaches to virtualization when that’s your only goal, but this is on the web, which has value in itself.
14. maxloh ◴[] No.42191082[source]
Yeah, the project is merely an open-source wrapper to promote the underlying proprietary library.
15. lofaszvanitt ◴[] No.42191125[source]
Who needs this in the browser and for what purpose?
replies(1): >>42191564 #
16. noobface ◴[] No.42191149[source]
Poe's law in full effect.
17. balder1991 ◴[] No.42191210{4}[source]
This is great in comparison to nothing at all, but honestly it’s quite slow since it emulates a different architecture.
replies(1): >>42191557 #
18. kristopolous ◴[] No.42191232[source]
And a SPA no less. Pity
19. apignotti ◴[] No.42191248[source]
Hello again HN. Lead dev of WebVM and CTO of Leaning Technologies here. Happy to answer any question from the community.
replies(3): >>42191385 #>>42191927 #>>42192902 #
20. tertle950 ◴[] No.42191296[source]
Remember when the web was just for displaying documents? Yeah, me neither
replies(1): >>42191461 #
21. doctorpangloss ◴[] No.42191385[source]
I've heard about CheerpJ and your Flash solution too. You guys pump out a lot of pretty sophisticated web middlewares. Supposing people were fully aware of your technology, which application do you think would have the highest yield to be ported to your portfolio of middlewares?
replies(1): >>42191448 #
22. jeswin ◴[] No.42191419[source]
Very cool project, and great for many usecases. In absolute performance, I find it about 16x slower than CPU [1], but it'd still be super fast compared to the full Linux GUIs we were using comfortably in the 90s/2000s on slower CPUs. Might work for sandboxing user code as well.

[1]: My utterly naive benchmark completes in 9s - time seq 1 50000000 | wc -l

23. apignotti ◴[] No.42191448{3}[source]
We envision virtualization of corporate internal apps to be of the most interesting markets in the short-medium term. CheerpJ has been very successful in this segment for quite some time already. CheerpX can be seen as an alternative to Citrix, at least for some use cases.

In the longer term we plan to get unmodified Docker containers to work with CheerpX, including exposing REST APIs to the local Web app.

We have also internally speculated about a marketplace-like system to allow immediate conversion of traditional client-side apps to Web apps. This would be intended for the long tail of client software vendors that have not yet adopted Web-first distribution methods.

replies(1): >>42192559 #
24. takemetoearth ◴[] No.42191461[source]
Doesn't sound very monetizable.
25. takemetoearth ◴[] No.42191465[source]
No, a lot of people think this. You just won't find most of them here.
26. punnerud ◴[] No.42191527[source]
It also supports Tailscale (or the other way around). If you use SSH from Tailscale Admin it’s actually WebVM you see: https://labs.leaningtech.com/blog/webvm-virtual-machine-with...
replies(1): >>42191584 #
27. odo1242 ◴[] No.42191557{5}[source]
If you’re interested, a-Shell hits a different part of the tradeoff curve where it can run at native speeds and has most of the important built in utilities like ssh, but it’s hard to install additional native software because of iOS restrictions (though python stuff are ok)
28. odo1242 ◴[] No.42191564[source]
This company makes a tool to performantly run Linux code in the web browser and uses it to emulate Flash / Java, among other things. This is a test demo of the tool.
29. apignotti ◴[] No.42191584[source]
CheerpX uses Tailscale, not the other way around. The Tailscale SSH client is built on the same Go stack (compiled to Wasm) used by CheerpX uses.
30. baudaux ◴[] No.42191599[source]
In https://exaequos.com, I have designed a new Unix-like OS with kind of microkernel architecture
31. z3t4 ◴[] No.42191627[source]
Is there a server if you want to run your own WebSockets as a transport layer?
replies(1): >>42191710 #
32. DeathArrow ◴[] No.42191701[source]
Cool, starting with this we might see Linux being implemented in Javascript.
33. DeathArrow ◴[] No.42191703[source]
Cool, starting with this we might see Linux being implemented in Javascript. /joking
34. apignotti ◴[] No.42191710[source]
You can use the self-hosted version of the Tailscale control plane, called Headscale, but you need our own fork since the upstream version has various issues. We plan to merge these fixes upstream soon.

For more info, see the last few paragraph of the Networking section from our latest blog post: https://labs.leaningtech.com/blog/webvm-20#private-networkin...

35. johnisgood ◴[] No.42191842{3}[source]
Who is going to take Linus' place were something happen to him (hopefully not!), or is it going to be chaos?
replies(1): >>42210636 #
36. bouncycastle ◴[] No.42191873[source]
Imagine the performance boost if you removed the browser
37. JoshTriplett ◴[] No.42191927[source]
This is really impressive!

You mention having a "virtual block-based file system". How easily can people integrate other devices into the VM, including custom devices? For instance, if someone had a different network filesystem they wanted to use, which could be tunneled over WebSocket or WebTransport, how easily could they integrate that into this? What's the equivalent of virtio here?

It looks like the client-side bits are largely proprietary? Is CheerpX the primary thing you consider to be your competitive advantage, or is it more about all the layers you're putting on top of that for things like Flash and Java and Oracle Forms and converting local apps to web apps?

It'd be nice to be able to build atop the underlying VM and extend it for all sorts of purposes, the way KVM has been open enough to become a focal point for the modern cloud, and have just the enterprise-y bits and "convert your local app to a web app" framework running on top of that being proprietary.

replies(1): >>42191970 #
38. apignotti ◴[] No.42191970{3}[source]
We don't currently expose an API to integrate custom block devices, although it could be possible. We provide an integrated backend based on HTTP byte ranges that can work on any standard compliant HTTP server. See here for more info: https://cheerpx.io/docs/guides/File-System-support#block-dev...

CheerpX is indeed proprietary, but free-to-use for individuals and open source projects. We do want to see the community building on top of our tech. Our Flash product is build on top of CheerpX and the official Flash player plugin that needs to be licensed separately from Harman/Adobe. Java support is provided by a completely different product called CheerpJ, although lots of the ideas and parts of the JIT engines are shared with CheerpX.

At this stage we believe that keeping CheerpX proprietary serves our growth plans the best, this could of course change over time as adoption increases and we build further added-value products on top. On the other hand the WebVM integration is FOSS since it doubles as an extensive sample of what can you build with our technology.

replies(1): >>42192000 #
39. JoshTriplett ◴[] No.42192000{4}[source]
> We don't currently expose an API to integrate custom block devices, although it could be possible.

I was thinking more about arbitrary custom devices, like custom network drivers (e.g. to connect to a server-side virtual network rather than tailscale) or custom filesystem drivers at either the block or FS layer.

> At this stage we believe that keeping CheerpX proprietary serves our growth plans the best, this could of course change over time as adoption increases and we build further added-value products on top.

I'd be very interested in chatting with you about our respective products' future plans.

replies(1): >>42192044 #
40. apignotti ◴[] No.42192044{5}[source]
> I'd be very interested in chatting with you about our respective products' future plans.

Sure, you can find me and the rest of the team on Discord: https://discord.leaningtech.com

41. smusamashah ◴[] No.42192175[source]
Some other VMs that run in browser

https://copy.sh/v86/

https://bellard.org/jslinux/

https://jamesfriend.com.au/pce-js/ (https://github.com/jsdf/pce)

https://www.pcjs.org/ (lots of hardware and OSes) (https://github.com/jeffpar/pcjs)

https://infinitemac.org/ (https://blog.persistent.info/2023/03/infinitemac-dot-org.htm...)

https://jamesfriend.com.au/projects/basiliskii/BasiliskII-wo...

https://jamesfriend.com.au/pce-js/pce-js-apps/

replies(2): >>42192268 #>>42192859 #
42. abixb ◴[] No.42192251[source]
Student here, and this has to be the most satisfying 20 minutes I spent cloning a GitHub repo in a while.

Here are a few things I encountered which might probably help others:

    # Version mismatch: 
    The install version of node.js I had (v12.22.9) was too old to meet the project's requirements (>= 18.13). 
To fix that, I used nvm to install the right Node.js version (>18.0)

    # Version check before install: Used the following to check version to verify before proceeding ahead with building it:
    node -v
    npm -v
It ran successfully, and I've been playing around with built-in Python3 and C scripts and pushed the modified repo to my personal GitHub. Thank you, dev!
replies(1): >>42192527 #
43. maxloh ◴[] No.42192268[source]
Also: https://ktock.github.io/container2wasm-demo/
replies(1): >>42193176 #
44. sharperguy ◴[] No.42192278[source]
Linux was just an electron app this whole time anyway.
45. apignotti ◴[] No.42192527[source]
Thank you, appreciated.
46. NikhilVerma ◴[] No.42192559{4}[source]
Being able to run docker containers on the web will immediately unlock so many usecases for my work! Right now I've been trying to get a Python sentence parser to run in the browser but it requires a lot of the ecosystem (Pytorch and such). Which is not trivial to compile to WASM.
replies(1): >>42192674 #
47. apignotti ◴[] No.42192674{5}[source]
That would fit our vision for a new generation of Web apps with traditional server-side payloads running client-side, with lots of positive impacts on user privacy and operational costs.

The main difficulties right now are two:

* Most docker containers are 64-bit, while CheerpX currently only support 32-bit x86 code * Due to CORS limitations it is not currently possible to downloaded layers from repositories such as Docker Hub

The first limitation will be eventually fixed, the second one will require a specialized repository, a proxy, or co-operation from the existing repositories.

replies(1): >>42200777 #
48. ◴[] No.42192859[source]
49. Qem ◴[] No.42192902[source]
Can it be installed and run offline as a WebApp?
replies(1): >>42193199 #
50. zb3 ◴[] No.42193176{3}[source]
Holy cow, this is the first time I see x86_64 and AArch64 in the browser!
51. apignotti ◴[] No.42193199{3}[source]
Not right now, WebVM/CheerpX support large disks (1GB+) to be able to run complete distributions. This an advantage of the solution, but it also means that it cannot run completely offline unless we provide a way to pre-download all this data. This does not seem a practical solution.

Fundamentally, a real VM running a real OS needs lots of data.

52. ◴[] No.42193205[source]
53. TuringTest ◴[] No.42195957[source]
It's penguins all the way down
54. xnx ◴[] No.42197679[source]
The networking workaround is clever, but still too complex for the casual user. My dream of safe, easy, local apps, with networking and persistent cloud storage is still on hold.
replies(1): >>42197946 #
55. kkfx ◴[] No.42197946[source]
Maybe your dream is named Plan 9?
56. NikhilVerma ◴[] No.42200777{6}[source]
I was thinking of a Chrome plugin to enable this, I think plugins can make arbitrary API calls.
57. 8n4vidtmkvmk ◴[] No.42210636{4}[source]
I think there's enough interest in Linux desktop that it'll be maintained for a long time yet, even if a web version somehow takes off.