Pharo in the Browser with WebAssembly massimo-nocentini.github.io · 65 points · ...

@best

Pharo in the Browser with WebAssembly massimo-nocentini.github.io · 65 points · 16 comments · HN thread

TL;DR A browser-based demo that runs the Pharo Smalltalk environment in WebAssembly, with a loaded image, a file drop-in, and Iceberg/Metacello git access routed through a configurable CORS proxy. The author, xkriva11, posted it to Hacker News, where it reached 65 points and 16 comments.

  • The page loads a Pharo image and runs it in the browser via WebAssembly, with JavaScript required.
  • You can drop in a .st file, a Pharo .zip, or an .image with its .changes and .sources files.
  • Iceberg git operations (clone, fetch, pull, push) and Metacello github:// loads go through a CORS proxy the user chooses: their own or a trusted one, or direct to the host if the server allows CORS.
  • The page warns that a proxy can see code and credentials passing through it, so credentials for pushes are sent only to the chosen proxy or directly to the host.
  • The choice of proxy is stored in the browser and cannot be set by a link.

Discussion The thread is short and mostly curious. Commenters ask how the VM is built (likely Emscripten-compiled bytecode interpreter) and whether there is any JIT or precompilation, and recall an earlier Squeak try-it page. Several jokes about the name Pharo versus the game Pharaoh. Some skepticism about the value of running a desktop-style IDE in a browser, plus concrete bugs reported on Firefox zoom and Android back button. A side debate questions why the post rose so quickly, and the author replies that Smalltalk and Lisp posts are well received on HN. Overall mood is friendly with a dose of doubt.

  • Interesting, fun to play with Pharo (some): Commenters welcome the demo as a neat way to explore Pharo without installing anything, and one says friends love the environment.
  • Browser delivery defeats the purpose (a few): One commenter asks whether running Pharo in a browser undermines the point of a desktop-oriented Smalltalk environment.
  • Browser OS demos are heavy and hacky (a few): A commenter notes that remote or web-hosted OS-like environments need large downloads and many drivers, making the experience fragile on current hardware.
  • Bugs on zoom and Android back button (a few): Users report that zooming in Firefox shifts click positions and that the back button misbehaves on Android.
  • Question about the boost and Pharo's niche (a few): One user suspects the post was boosted unusually fast and looks unremarkable, while others note Pharo has a small but loyal community with few uses beyond conference talks.

#Pharo #Smalltalk #WebAssembly #Browser #Emscripten #CORS