[HN Gopher] WebAssembly Text Code Samples
       ___________________________________________________________________
        
       WebAssembly Text Code Samples
        
       Author : tim_sw
       Score  : 69 points
       Date   : 2023-04-22 15:39 UTC (7 hours ago)
        
 (HTM) web link (eli.thegreenplace.net)
 (TXT) w3m dump (eli.thegreenplace.net)
        
       | JasserInicide wrote:
       | Been hearing about WASM on here for years now, but it's never
       | about people actually using it. Are there any high-profile cases
       | of it being used?
        
         | loaph wrote:
         | My understanding is that https://photopea.com (very handy for
         | basic photoshopesque image manipulation) uses it
        
         | lioeters wrote:
         | One that comes to mind is the WASM port of FFmpeg:
         | 
         | https://github.com/ffmpegwasm/ffmpeg.wasm
         | 
         | Another is the SQLite WASM project:
         | 
         | https://sqlite.org/wasm/doc/trunk/index.md
         | 
         | Also v86 for x86 machine virtualization in the web browser:
         | 
         | https://github.com/copy/v86
         | 
         | A fun project is WASM-4, for building retro-style games:
         | 
         | https://wasm4.org/
         | 
         | Possibly more interesting projects to be found here:
         | 
         | https://github.com/topics/wasm
         | 
         | https://github.com/mbasso/awesome-wasm
        
           | fyrn_ wrote:
           | Zoom uses it quite extensively, Figma is built in it.
        
       | segfaultbuserr wrote:
       | > _Back to the original goal of this post. While I enjoy writing
       | WAT code, one aspect of the experience that could be improved is
       | documentation. The WASM spec is much more suitable for formal
       | verification than for actual documentation purposes;
       | specifically, it 's hard to grep and doesn't provide much in
       | terms of examples. This is alright for a spec, but I couldn't
       | find complementary resources that just show code samples._
       | 
       | I know the pain. One time, I was trying to use an experimental
       | academic research tool. The tool accepts an input file, written
       | in a custom language. The language is fully documented, but the
       | only thing the documentation did was listing the syntax of each
       | command in BNF notation. But at least it had demo code in the
       | repo so you could read code and doc side by side to figure out
       | how the code should look like...
        
       | [deleted]
        
       | detrites wrote:
       | Article is great, but is quite brief. Good resource with fair bit
       | of detail & examples here:
       | 
       | https://developer.mozilla.org/en-US/docs/WebAssembly/Underst...
        
         | irsagent wrote:
         | This resource was very helpful as an addendum.
        
       | syrusakbary wrote:
       | This is awesome, as it helps Wasm newcomers to overcome the chasm
       | and see what everything is all about with simple examples
       | (although I wished it was a bit more extended!).
       | 
       | It's also very true that overall the Wasm docs can use some help.
       | Hopefully we will be able to help with it as part of our work in
       | Wasmer :)
        
       | [deleted]
        
       ___________________________________________________________________
       (page generated 2023-04-22 23:01 UTC)