6 ms·
Webvm: Virtual Machine for the Web
- benchmarkist 2y agoNetworking over websockets with tailscale is a nice touch.
- westurner 2y ago/? "webvm" jupyter: https://www.google.com/search?q=%22webvm%22+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 https://news.ycombinator.com/item?id=30167403#30168491 : - [ ] "ENH: Terminal and Shell: BusyBox, bash/zsh, git; WebVM," https://github.com/jupyterlite/jupyterlite/issues/949 https://github.com/jupyterlite/jupyterlite/issues/949 And then now WASM containers in the browser FWIU
- rahimnathwani 2y agoPrevious discussion with 632 points: https://news.ycombinator.com/item?id=40940225 https://news.ycombinator.com/item?id=40940225
- colesantiago 2y agoduplicate: https://news.ycombinator.com/item?id=40940225 https://news.ycombinator.com/item?id=40940225
- James_K 2y agoSad 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.
- 8n4vidtmkvmk 2y agoUnless Linus himself is behind this project, I don't think you have anything to worry about.
- johnisgood 2y agoWho is going to take Linus' place were something happen to him (hopefully not!), or is it going to be chaos?
- 8n4vidtmkvmk 2y agoI 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.
- athrowaway3z 2y agoI'm waiting for the IPhone app.
- mmh0000 2y agoMay your wish be granted: https://apps.apple.com/us/app/ish-shell/id1436902243 https://apps.apple.com/us/app/ish-shell/id1436902243
- balder1991 2y agoThis is great in comparison to nothing at all, but honestly it’s quite slow since it emulates a different architecture.
- odo1242 2y agoIf 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)
- deleted 2y ago[deleted]
- noobface 2y agoPoe's law in full effect.
- kristopolous 2y agoAnd a SPA no less. Pity
- baudaux 2y agoIn https://exaequos.com https://exaequos.com, I have designed a new Unix-like OS with kind of microkernel architecture
- sharperguy 2y agoLinux was just an electron app this whole time anyway.
- zb3 2y agoNote this repository doesn't include source for CheerpX, which is the main component of WebVM.
- maxloh 2y agoYeah, the project is merely an open-source wrapper to promote the underlying proprietary library.
- Uptrenda 2y agoI 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...
- solarkraft 2y agoThere are better approaches to virtualization when that’s your only goal, but this is on the web, which has value in itself.
- takemetoearth 2y agoNo, a lot of people think this. You just won't find most of them here.
- sudo_bang_bang 2y agoCan I run WebVM inside WebVM?
- TuringTest 2y agoIt's penguins all the way down
- lofaszvanitt 2y agoWho needs this in the browser and for what purpose?
- odo1242 2y agoThis 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.
- apignotti 2y agoHello again HN. Lead dev of WebVM and CTO of Leaning Technologies here. Happy to answer any question from the community.
- doctorpangloss 2y agoI'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?
- apignotti 2y agoWe 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.
- NikhilVerma 2y agoBeing 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.
- apignotti 2y agoThat 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.
- tertle950 2y agoRemember when the web was just for displaying documents? Yeah, me neither
- takemetoearth 2y agoDoesn't sound very monetizable.
- jeswin 2y agoVery 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
- punnerud 2y agoIt 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-networking-via-tailscale https://labs.leaningtech.com/blog/webvm-virtual-machine-with...
- apignotti 2y agoCheerpX 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.
- z3t4 2y agoIs there a server if you want to run your own WebSockets as a transport layer?
- apignotti 2y agoYou 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-networking-via-your-own-vpn https://labs.leaningtech.com/blog/webvm-20#private-networkin...
- DeathArrow 2y agoCool, starting with this we might see Linux being implemented in Javascript.
- DeathArrow 2y agoCool, starting with this we might see Linux being implemented in Javascript. /joking
- bouncycastle 2y agoImagine the performance boost if you removed the browser
- smusamashah 2y agoSome other VMs that run in browser https://copy.sh/v86/ https://copy.sh/v86/ https://bellard.org/jslinux/ https://bellard.org/jslinux/ https://jamesfriend.com.au/pce-js/ https://jamesfriend.com.au/pce-js/ (https://github.com/jsdf/pce https://github.com/jsdf/pce) https://www.pcjs.org/ https://www.pcjs.org/ (lots of hardware and OSes) (https://github.com/jeffpar/pcjs https://github.com/jeffpar/pcjs) https://infinitemac.org/ https://infinitemac.org/ (https://blog.persistent.info/2023/03/infinitemac-dot-org.htm https://blog.persistent.info/2023/03/infinitemac-dot-org.htm...) https://jamesfriend.com.au/projects/basiliskii/BasiliskII-wo https://jamesfriend.com.au/projects/basiliskii/BasiliskII-wo... https://jamesfriend.com.au/pce-js/pce-js-apps/ https://jamesfriend.com.au/pce-js/pce-js-apps/
- abixb 2y agoStudent 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!
- apignotti 2y agoThank you, appreciated.
- deleted 2y ago[deleted]
- xnx 2y agoThe 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.
- kkfx 2y agoMaybe your dream is named Plan 9?