back to article From browser brat to backend boss: Will WASM win the web wars?

Beginning in 1995 and for decades after, JavaScript was the only game worth playing when it came to web-based scripting. While incredibly versatile, JavaScript had its limitations, especially regarding performance-intensive tasks. As the web evolved, so did the demand for more power, speed, and flexibility in web applications. …

  1. Anonymous Coward
    Anonymous Coward

    Welcome back Java promise!!!

    The EXACT same claims were made 30 years ago by Sun Microsystems. 20 years ago, Microsoft promised it with .NET. 10 years ago Node.js was making some familiar claims. And now.... WASM.... WASSSUP!!!!

    1. Pascal Monett Silver badge

      It's called recycling.

      There are no new ideas, just adaptations.

    2. MrXonTR
      Thumb Down

      Re: Welcome back Java promise!!!

      The big promise of Java was "write once, run anywhere" but it implied "compile once" because apparently compiling for different targets it just too hard dammit! But it isn't that hard really and fully compiled programs haven't gone away and Java was always a runner up to C++. WASM itself is pretty much a niche on the web since most apps don't need it and WASI will probably remain niche too.

      1. Anonymous Coward
        Anonymous Coward

        Re: Welcome back Java promise!!!

        Or "write once, debug everywhere" as it then became.

        Having had to deal with CLI tools with a *5 second* startup time, which are compiled Java programs (in bytecode form), it doesn't make a great argument for abstract bytecode.

    3. StrangerHereMyself Silver badge

      Re: Welcome back Java promise!!!

      As far as I know Java has delivered on those promises. People just aren't willing to adopt it because the UI looks "off."

      And for web-based application there are more and better alternatives, such as C#, Rust and JavaScript.

      1. Caspian Prince

        Re: Welcome back Java promise!!!

        You are dead right - it actually did (and still does) deliver 100% on the promise. And 99.99% of all compiled Java code that you will find deployed out there right now *still runs without issue*, 20 years later, because of the extreme care with which the SDK has been evolved.

        1. that one in the corner Silver badge

          Re: Welcome back Java promise!!!

          Sarcasm Overload, Baby!

          Unless you mean that you can still run all the compiled Java, just so long as you have kept a copy of every single (just to be sure - you did give four 9s) Java Runtime, each one installed on its own machine (let you use VMs, to be kind) so that you have a fighting chance of finding one that will run your code and all of its dependencies?

          1. Anonymous Coward
            Anonymous Coward

            Re: Welcome back Java promise!!!

            Cute. But I've been a full time Java developer since 2000 (Java 1.3) and I haven't seen the issues you've described for over 10 years. With two specific exceptions (applets, now dead, and the javax.script package) code written for Java 8 will run without any issues on 11 or 17, as well as JVMs from alternative vendors like Bellsoft. It's so predictable we've scaled back our release testing on different versions - no need. Wasn't always thus, but it is now.

            Yes, of course we keep the compiled versions and there are issues with compilation tools, eg ant. However those issues are C-based - stuff linked against lib32-glibc, old versions of libssl etc - which doesn't seem to help your argument.

            1. JoeCool Bronze badge

              Re: Welcome back Java promise!!!

              1.2 to 1.3 broke stuff, so you just missed out on that !

              The issue isn't backwards compatability so much as forward fixes.

              For C, you can sometimes rebuild your app and re-deploy it.

              For Java you usually deploy a system upgrade.

    4. CowHorseFrog

      Re: Welcome back Java promise!!!

      Java in the browser failed because at the time because of Microsoft. It was about the same time Microsoft did their Microsoft Java (tm) thing and got sued, so they then made dotnet. Now Google of course doesnt like Microsoft so Silverlight failed, kind of justice given what Microsoft did to Java.

      1. aerogems Silver badge

        Re: Welcome back Java promise!!!

        While that certainly played a part, I think the bigger issue is that starting the JVM in a browser, back on single core, single thread, CPUs and computers that still had RAM measured in Megabytes, could take several seconds. Several seconds where your browser was seemingly completely locked up and aside from a possible "Starting Java Virtual Machine..." message in the status bar and the HDD light going crazy on your system, you might never know why. And for what? So some company could make an interactive ad? As some may recall, for a time Sun was trying to develop a Java CPU, which could natively execute Java bytecode, but eventually gave up because it was just too expensive and the end result was really nothing to write home about.

        Maybe I came across some and have since forgotten, but I can't recall ever seeing a single Java applet that was actually useful. I don't recall any examples outside of the sort of Hello World example on Sun's site with the Ouija board puck mascot waving and stupid ads. The ads were generally replaced by Flash which gave them all the benefits of Java without the massive runtime that needed to be loaded. Silverlight was another example of the Ballmer era Microsoft which was constantly chasing the taillights of other companies, offering competing products that often didn't even match the competition's offering and had absolutely no other compelling reason to use it. And the vast majority of people who did adopt it were using it for things like interactive ads that everyone would have generally been far happier without anyway.

        Java applets were always a solution in desperate search for a problem to solve, and the only solutions they seemed to come up with were to things people would have been happier being left unsolved. Java servlets are another story entirely, but there the runtime is being handled by the server. Same with system apps that may be written in Java. If you tried to do applets today, where you have a glut of CPU cycles, many computers have SSDs, and generally around 8GB of RAM, history might have played out a little differently, but I suspect it would still be an effort of trying to pound a square peg into a round hole.

        1. Crypto Monad Silver badge

          Re: Welcome back Java promise!!!

          Sadly, many network and server admin tools were (or even still are) provided as Java applets. Examples include various server ILOs with Java-based remote console, and the Cisco ASDM management interface for their ASA firewalls.

          The server vendors have generally moved to HTML5, but Cisco remains a relic of the past.

          It was always a pain trying to get a compatible version of JVM and Webstart which worked with them, *and* which didn't violate Oracle's licensing terms (*), *and* which didn't reject the applets due to code signing issues or other problems.

          Apple stopped shipping Java way back, from macOS 10.7.

          (*) In many cases you would be prompted to download a newer version of Java SE. However, only Java SE 8 8u202 and earlier were free; anything later than that exposes your entire company to a per-seat licensing cost.

    5. Kevin McMurtrie Silver badge

      Re: Welcome back Java promise!!!

      Sun's 'expertise' in GUI/UX architecture doomed Java Applets and made desktop applications painful. WASM is trying a different approach: No UX. Maybe that's cheating (let somebody else solve it) or maybe that's a good idea. Time will tell.

      Java's AWT needed by applications and Applets is a mess. Some graphics operations are a tangle of callbacks and delegation that prevent some atomic operations from being atomic. That means endless debugging for each permutation of runtime. On top of that, Java's AWT graphics are so excessively abstracted that simple raster operations frequently leave the JVM's 'fast path' and degrade into billions of method calls. Or maybe it looks awful because the JVM's fast path implementation is bad. This is, again, endless debugging for each permutation of runtime. (The Java 7 API is the oldest I can find. Imagine trying to get 1.0 working.)

      The Netscape plugin API used by Applets (and everything) wasn't performant either because display access wasn't thread safe. You were supposed to inform Netscape that you wanted a display update and it would then call you to do that...sometime later. Or you could illegally draw directly from your own thread and hope that all the structures stay in a valid state until you finish. That's why video playback was prone to crashing until it was a native feature.

    6. Rich 2 Silver badge

      Re: Welcome back Java promise!!!

      I thought exactly the same

      For the uninitiated, what’s the difference between WASM and the JVM? They seem to be the same thing to me - at least going by the description in the article

      1. Anonymous Coward
        Anonymous Coward

        Re: Welcome back Java promise!!!

        There's a world of difference!

        This time they aren't promising to run it on toasters.

      2. CowHorseFrog

        Re: Welcome back Java promise!!!

        WASM is a far simpler runtime than the JVM. For starters WASM has no native support for objects of any kind, and doing anything in a browser is all about objects be it the DOM or events etc. Take a look at the spec and provided/supported instructions.

    7. Michael Wojcik Silver badge

      Re: Welcome back Java promise!!!

      And before Java there was ANDF.

    8. JoeCool Bronze badge

      Re: Welcome back Java promise!!!

      That's an interesting question.

      Asked a different way ...

      1) Why isn't java script ( or whatever other client side language) converted to java byte code ?

      2) Why isn't wasm just a "compatability" tool to compile C down to java script ?

      I think that the answers are

      1) The JVM is too burdensome to deploy, update and/or run

      2) java script isn't a suitable backend target for the programming languages being targeted.

      In other words,

      WASM is intended to be the right tool for the job.

  2. Management Order

    Doesn't this sound like Java in the 90s?

    A virtual machine running byte code that started out as an application platform for the browser? That would be Java in the 90s.

    If you want to go back to the 70s, a virtual machine, running byte code, used as an application platform? That would be UCSD Pascal.

    Or the 60s, it would be IBM CICS on DOS/VS or MVS. Hell, CICS can even serve web pages nowadays and IBM z/Series will still run code from the 60s.

    1. abend0c4

      Re: Doesn't this sound like Java in the 90s?

      The most weird thing about WASM, at least to my mind, is that it would make considerably more sense to just simply come up with a standard bytecode for JavaScript.

      I don't really like JavaScript, but given that's the way the DOM is accessed, it's something we're pretty much stuck with. WASM is extremely crude and calling between it and JavaScript (which is unavoidable if you want to do much with it) is incredibly hacky.

      Doing any less just seems to create a pointlessly different environment just for the sake of it. Do any more and you are dangerously close to reinventing Java or .Net for no other reason than "but in a browser".

      The essentially single-threaded nature of the UI (which is why the browser exists in the first place) and the ephemeral nature of mobile browser apps in any case puts practical limits on how you might use your chunk of bytecode: without defined methods of creating and communicating with background threads or processes and clear descriptions of how they survive (or don't) the closing of browser tabs, backgrounding of mobile apps, what context from the foreground they might reasonably access or inherit it's going to struggle ever to rise above novelty status.

      1. Brewster's Angle Grinder Silver badge

        It's a competitor/successor to the JVM.

        Chrome's V8 engine will already compile javascript down to serializable bytecode. The only advantage (compared to just-in-time compilation) is the start up time. But the bytecode is tied to the browser because it's constantly shifting what makes a good bytecode as new optimisations are added to the engine, and new features are added to the language. So I don't think any of the browser manufacturers would want to be pinned down to an agreed bytecode; that likely would hurt their performance for little practical gain over what we have.

        And if you're compiling a language, why compile javascript? It's fundamentally an untyped, dynamic language that's ill suited to compilation. The purpose of WASM is to allow other languages (like C++ and RUST) to run in the browser environment. Could you compile C++ to the JVM? And you can use that compiled code "as is" without the class infrastructure the JVM forces on you.

        And when you do want an API, the WASI API is open and unencumbered by Oracle's licences.

        They've also learnt from thirty years experience of the JVM. In particular, it's a simpler lower-level, thing, where language features aren't tied into the VM. Upgrading should be less necessary and cause fewer compatibility woes when it does happen. It really is a virtual CPU, not a philosophy.

        1. CrackedNoggin Bronze badge

          Re: It's a competitor/successor to the JVM.

          And if you're compiling a language, why compile javascript? It's fundamentally an untyped, dynamic language that's ill suited to compilation.

          TypeScript (which is JavaScript with a layer of write/edit-time type checking - typically integrated within the IDE) is "typed", although there is plenty of room for improvement.

          TypeScript (including write/edit-time type checking within an IDE) is by far a higher level language experience than writing in C++ or RUST,

          not least because writing while relying on a garbage collector is easier (and typically slower at run time).

          Interestingly though, TS/JS garbage collection can and does utilize runtime multithread under the hood for JS garbage collection, even as the JS user code is running single thread.

          1. CowHorseFrog

            Re: It's a competitor/successor to the JVM.

            Typescript is still terrible because well people are lazy and in the end we all kow they will skip declaring types and your code will be javascript and not typed.

        2. abend0c4

          Re: It's a competitor/successor to the JVM.

          The purpose of WASM is to allow other languages (like C++ and RUST) to run in the browser environment.

          That's the ideological purpose. But for what practical purpose? Can I dispense with my elaborate JavaScript framework for DOM manipulation and use C++ instead? Only with some considerable contortions that still require some JavaScript scaffolding and would be no faster and likely slower. Could I have multiple parts of my UI updated simultaneously by multi-threaded compiled Rust code? Certainly not as things stand because the DOM event model is single-threaded even if threading in WASM becomes more mature. And the simpler WASM is (and in essence right now it only supports operations on numbers) the more baggage you need (like wasm-bindgen) to make it usable in practice for the the most trivial of stuff people typically do in browsers. Any serious software is going to need some sort of runtime and debugging and so on- and it's hard to argue that trivial programs benefit significantly from being able to choose the implementation language.

          I can understand, to some extent, the "wouldn't it be cool if...", but once you take account of the Ts&Cs and "serving suggestion" footnotes it appears to me to deliver very little actual benefit.

          1. Michael Wojcik Silver badge

            Re: It's a competitor/successor to the JVM.

            You're holding it wrong.

            The point of WASM isn't to replace scripting for RIAs. Originally it was to take a subset of Javascript (ECMAScript, technically) and compile that down to a portable intermediate representation. The "subset" part was important, because it enabled various optimizations.

            Now with WASI some people want to use WASM as a generic portable-executable framework, running in a sandbox. It is exactly a Java replacement, and like the JVM now supports other source languages.

            What it isn't is a direct replacement for containers, and the waffle about it doing so is a category error (even if it's Mr Docker saying it). I am not particularly a fan of containers (a half-assed alternative to proper VMs), but having an entire segregated userspace is significantly different from just using an interpreted or JITted language in a sandbox.

        3. Ken Hagan Gold badge

          Re: It's a competitor/successor to the JVM.

          "They've also learnt from thirty years experience of the JVM. In particular, it's a simpler lower-level, thing, where language features aren't tied into the VM."

          Now *that* remains to be seen. One big reason that the JVM directly encodes certain language features is to make it easier to sandbox. Java fell out of favour in the browser because it still wasn't (apparently) possible to sandbox reliably. Can WASM be sandboxed? We'll see. And if it can't then it's just another ActiveX.

        4. that one in the corner Silver badge

          Re: It's a competitor/successor to the JVM.

          > The purpose of WASM is to allow other languages (like C++ and RUST) to run in the browser environment.

          And yet the article is all about everything EXCEPT running in a browser!

          It is all about using a VM that you can run in your VMs, um, instead of using Docker? Hang on, why not just take an existing CPU instruction set (say, Arm) and an existing system level API (say, Linux) and run those? What is so great about WASM in this respect? Oh, Arm is copyright & licenced? Ok, base it on RISC-V[1]! Oh, WASM is smaller (or less convoluted than all the RISC-V variants)? Well, just you wait until WASM ver 6 when we add the third GPU emulation opcodes into it[2]!

          You know, we are running so much WASM ver 8 code now, I bet we could run it direct on silicon, but we'd need to add a supervisor mode of course, and this bit so we can support a proper UEFI boot.

          Yes, indeed, this is all about the browser.

          [1] RISC-V got autocorrected to "rose-coloured" - how lovely; glad it wasn't "rose-tinted"!

          [2] you know, the ones that let us recognise we can JIT this direct to an AMD GPU, because the ver 5 only mapped to CUDA.

          1. abend0c4

            Re: It's a competitor/successor to the JVM.

            The great thing about articles of this kind is not so much the information they contain as the fact they're often a springboard to go off and read more about the subject.

            Having done that, I think you've probably hit the nail on the head. It really is more about a universal bytecode for downloadable applications. The much-recycled quote "If WASM+WASI existed in 2008, we wouldn't have needed to create Docker" seems to be the clincher.

            So why is it in the browser in the first place? The answer to that seems to be twofold: firstly it's an existing tool from which people can download things and secondly it has a display model and a runtime that allows (for example) network access that means you don't (at least initially) have to provide these from WASM even though the interface is hardly clean.

            I don't think the principle of a universal byte code is a bad idea (though the history of universal anythings is not promising) and there are things about WASI (capabilities) that seem like potentially good ideas. But it's seems completely out of place in the browser - they're big and complicated enough already. Perhaps start with some other host program that can download and execute the code which the browser can access over HTTP in the same way as it accesses everything else?

        5. CowHorseFrog

          Re: It's a competitor/successor to the JVM.

          WASM still requires javascript to interact with the browser and JS objects.

          Correct me if im wrong but there are no WASM instructions to create objects...

      2. CowHorseFrog

        Re: Doesn't this sound like Java in the 90s?

        WASM is not equivalent to Javascript in features. I fyou look at the WASM bbytecodes theres ZERO support for interactions with objects of any kind and javascript qand the browse ris all objects.

  3. Ace2 Silver badge

    Adobe did something securely?

  4. karlkarl Silver badge

    As others have said, this is just Java bytecode / VM technology. (i.e Dis/Limbo, JVM/Java, .NET/C#)

    However, where this might be different is that it represents a Java VM that other languages can be used and officially supported. C++ (Emscripten), Go and Rust are liked by many and having to use Java or Javascript would be dealbreakers for some.

    In some ways, the popularity of .NET is also because different languages could be used, including C++/clr, IronPython, F# and.... er VB.NET

    Off-topic, also just found these old articles, quite charming about the early COOL/C#:


    1. CowHorseFrog

      Not quite, WASM is missing one key feature that Java and Dotnet have, namely native object support. Its not possible to create or interact with javascript objects in WASM, theres some ungodly glue back t javascript to do objects and other browser interactions.

    2. Blank Reg Silver badge

      There are about a couple dozen languages that can be compiled to run on the JVM, and that includes Javascript

      1. CowHorseFrog

        Yes but you will find that when that runtime will require javascript to actually interact with the DOM and events and other browser objects.

  5. This post has been deleted by its author

  6. StrangerHereMyself Silver badge


    I'm somewhat surprised that WASM hasn't already become the main compilation target on most operating systems. Its advantages are obvious and numerous and could substantially reduce software development costs.

    Certainly it will take off in the cloud, allowing people to "bring their own binaries".

  7. Zippy´s Sausage Factory

    WASM is the new Flash. Or Active X. Take your pick.

    Despite having had to work with it, I somehow expect it'll go the same way as both of those fairly soon.

    1. sabroni Silver badge

      re: WASM is the new Flash. Or Active X. Take your pick.

      Both of those were pretty successful before they fell out of fashion. Flash was the interactive internet for a good couple of years before JS took off. So you're saying you expect this tech to be pretty successful before it is inevitably superseded?

      1. JoeCool Bronze badge

        I saw some a-mazing stuff done in flash, back in the days. I got the feeling that was due to developer ingenuity & effort more than the tool itself.

      2. Zippy´s Sausage Factory

        Re: re: WASM is the new Flash. Or Active X. Take your pick.

        I think it's probably about as popular as it's going to get. The question for me is going to be whether its credibility survives its first serious documented security issue that hits the news. At that point I expect to see the usual knee jerk reactions of corporations banning it on their networks, while still relying on it for their corporate websites.

        I know it took a while for Flash to die, and all three ActiveX users were quite upset when it was found to be about as secure as locking your bike with a string of sausages, but I just can't see how reinventing the wheel as a triangle again isn't going to have some of the same triangle-shaped issues.

  8. martinusher Silver badge

    Utterly Pointless

    For many programmers the web browser is the center of their universe, replacing an actual computer as the target platform, so its natural to try to incorporate as many capabilities as you have in a proper computing platform into browsers. Its doomed because the browser is a an hoc architecture, its primarily a display mechanism used to interact with human users and its neither a particularly efficient nor a particularly secure one at that. Numerous extensions have been grafted onto browsers to patch up -- paper over, more like it -- browser problems but the result is always going to be less than satisfactory. The entire ecosystem is buoyed entirely by marketing, we have to put up with it because "There Is No Alternative" but its really crying out for a complete reset,a 'burn to the ground and start over'.

    WASM is just another kludge. One that you put up with because that's how you earn your keep. But it has absolutely nothing novel to offer.

    1. Smartypantz

      Re: Utterly Pointless

      You are so right.. The Web browser is a piss-poor operating system ;-)

    2. crg the new one

      Re: Utterly Pointless

      And I so hate all the stupid "technologies" that, over the years, wanted to bend the browser into looking like a desktop app, from Flash to ActiveX to Silverlight to... To OOB, a thing they came up with to run Silverlight out of browser.

      So it wasn't in the browser anymore, was an app looking 100% like a desktop app, had it's own icon on desktop, had an uninstall entry, but was still web-based?

      WTF was web based about it anymore?

      Now with WASM... So it runs in the browser but doesn't let you interact with any textbox or form button in the page, won't receive an onchange event from a drop-down, won't display a pixel and, more recently, you don't need a browser cause you run it on the server.

      Why is it called "W"ASM anymore?

    3. Munchausen's proxy

      Re: Utterly Pointless

      Its doomed because the browser is a an hoc architecture, its primarily a display mechanism used to interact with human users

      I'd argue the browser is primarily a data collection mechanism used to impose advertising (and other propaganda) on human users.

  9. Roschke

    Our experience with Excel to WASM compilation for the last few years

    We've been working with WASM on the server side for a few years now. It's impressive. Some thoughts:

    - Startup is fast .. much master than other containers. Typically measured in milliseconds even for payloads with tens of thousands of lines of code.

    - Technically WASM is partially interpreted. The language can best be described as assembly for a generic stack machine. There are a series of transformations that happen to match it up to the local architecture. Fist interpretation followed by a series of compile steps that can include optimizations biased on observation. This all happens very fast because it's so close to machine language. Most JS environments will also offer the ability to cache the fully optimized native code.

    - Performance is within about 30% of native, fully optimized C++ and typically 100-1000x faster than the Excel files we start with. We have take files with over 100M formulas that took 20 minutes to open on modern desktops and got them to run in seconds on single core workers. (I'm constantly amazed at how large some Excels get... they represent dozens of person years of expertise, handed down from generation to generation of analysts)

    - It's super easy to run -- AWS lambda, browsers, mainframes, you can even live load it into IOS applications. It's probably one of the few ways you can change iOS app logic without republishing the app.

    - The security story is solid - it's fully sandboxed - so if you don't pass in an API hook, it can only do pure compute. This makes it possible for architects to get (reasonably) comfortable running arbitrary compute packages inside even sensitive compute environments.

    Anyway -- came across WASM about 5 years ago on a hike with a friend who mentioned it as an interesting curiosity at the time. And it's been a major technical component of our architecture for years now.

    1. Anonymous Coward
      Anonymous Coward

      Re: Our experience with Excel to WASM compilation for the last few years

      There is no direction to go but up, starting from EXCEL.

      1. Aitor 1

        Re: Our experience with Excel to WASM compilation for the last few years

        FileMaker pro? 123? Dbase?

      2. Anonymous Coward
        Anonymous Coward

        Re: There is no direction to go but up, starting from EXCEL

        Why do people upvote anonymous snark? It's not like this is a clever comment, just typical techy snobbery.

        Someone who's actually used the tech has something good to say about it.

        We support the twat with no knowledge of the tech who's sniping from the sidelines.

        1. Anonymous Coward
          Anonymous Coward

          Re: There is no direction to go but up, starting from EXCEL

          What, you want us to stop being snarky about Excel?

          Unlikely to happen.

        2. doublelayer Silver badge

          Re: There is no direction to go but up, starting from EXCEL

          I didn't vote on it, but do you really not understand why people might support what they said and why your views on their comment are similarly open to debate? For example, you say that they have "no knowledge of the tech". You don't cite any reason for saying that and it wouldn't matter because they didn't say enough about anything to be able to guess what their experiences are.

          As for why someone might be negative about Excel, it's because it's a really inefficient method of coding which supports almost none of the useful features of programming languages, and if you rely on it, those differences will start to be noticed. The original comment that started our thread pointed this out: if you can take a spreadsheet that takes twenty minutes to load, and possibly longer to update, and turn it into a task that lasts seconds without having to optimize it beyond a generic compiled language, then Excel is not only showing significant inefficiencies such that a 99.59% speed boost was possible, but it's inefficiency that is clearly noticeable to the user. At that rate, you always do the 99% speedup just because it's there, but if it's 0.5 seconds to 5 ms, then it doesn't matter as much unless you're doing it frequently. When you're improving from minutes to seconds, it always matters. This is a real problem, and you've already read about it here, but you attribute negative views toward Excel to snobbery and insult the person who wrote it on claims you can't back up.

    2. CGBS

      Re: Our experience with Excel to WASM compilation for the last few years

      It's secure if.....if every single major player on the web doesn't do or act in the same manner by which they live and breathe and track and sell everything they can about everyone. And certainly there are no known vulnerabilities that allow a VM to swipe information it should not be able to from other VMs or the host system while running who knows what program in said VM, right? And even if there were the average user obviously keeps their bios and drivers and everything else up to date so naturally you won't be putting millions of ignorant normies at risk all for your dumb app, right?

    3. that one in the corner Silver badge

      Re: Our experience with Excel to WASM compilation for the last few years

      Hang on, did you take a set of Excel sheets and convert them once, then keep using them for many moons?

      Or are you actually taking new Excel sheets continually, then compiling them down into WASM? Which is certainly what it sounds like you are doing.

      That is, is what you are working on a compiler for Excel that targets WASM? Because, if so, that it a different use-case than most of the other discussions here and, with the sole exception of the "changing the logic in an iOS program" [1] prompts all sorts of questions about "Why WASM?" Like: cool the WASM runs in many places, but if your compiler used another backend it could be generating native code for each anyway (more than one method for that these days).

      But this all seems even further removed from the browser; the W in WASM stands for - Wibble!

      [1] which I had understood to be a no-no and a reason they blocked a slew of scripting languages from the app store? Correct, me, please, I'm not an iOS person, just a bystander.

      1. Roschke

        Re: Our experience with Excel to WASM compilation for the last few years

        Compilation typically takes 20-60 seconds... so not ideal for single usage. Primarily the use case is where an SME maintains the model and updates are released once every few weeks/months/years. From there the benefit is when you need to scale it to many users in mobile apps, web sites or attach to a data pipeline/cloud db to scale to for large analytics runs. Some of our customers are clocking hundreds or thousands calls per second.

        You can think of it as programming calculation logic in Excel -- something that many business people are more comfortable doing in Excel than in a programming language (becasue most people don't program). Also ,for a number scenarios, Excel is more maintainable than code. I know this will get some flames-- but once you get beyond a few hundred logical functions / steps - code can be tough to debug. Excel shows every intermediate value, plus loop progression via tables. Not for everything, and there are bad Excels just like there is bad code, but I feel far more comfortable giving a 20 sheet excel file with a few hundred thousand formulas in it to a new hire to figure out than the equivalent few hundred pages of JS, Python or whatever code.

        We can compile native code, but then packaging and deployment becomes more complex -- so a 30% drop in performance is relatively minor price to pay. W.r.t iOS- yes the abiliy to update independently of the published app is a definite plus. WASM (along with JS) seems to have gotten a carve out. I suspect it's because apple feels comfortable enough with the security mechanics/sandbox in WebKit.

    4. Anonymous Coward
      Anonymous Coward

      Re: Our experience with Excel to WASM compilation for the last few years

      Please, write a Reg article for us.

  10. Anonymous Coward
    Anonymous Coward

    Just waiting for the Web Assembly Component Model for OLE …

    .. WACMOLE

    Anonymous as I don’t want people burning my house down ….

  11. Tim 11

    If WASM+WASI existed in 2008, we wouldn't have needed to create Docker.

    I think there's something missing here, what he maybe meant to say was:

    If WASM+WASI existed in 2008, and we threw away all the code that had ever been written in the history of computing and rewrote it all in the new environment, we wouldn't have needed to create Docker.

  12. fg_swe Bronze badge

    Compared To Rust, C++, Ada, Java?

    All of them have compilers/VMs which target x86-64, ARM, Power, S/390

    All of them have a stable POSIX API.

    What is the advantage to use Wasm instead of Posix+Source ?

    Is it the Universal Assembly Code, transcending CPU rypes ? I can see some benefits in that, at the steep price of not having proper pthreads, proper Tcpip API and so on.

    1. Kevin McMurtrie Silver badge

      Re: Compared To Rust, C++, Ada, Java?

      Rust and C++ are based on native pointers so they'd be difficult to sandbox efficiently and securely. A JRE or even a Java bytecode JIT would be a big chunk to bundle inside a browser. The POSIX API is designed for C-like languages on UNIX-like operating systems running with full user privileges so it's not relevant.

      1. fg_swe Bronze badge

        Docker ?

        You lock the Rust server into a Docker VM and have the same security as locking it inside a JS engine ?

        After all, the light weight is the point of dockering ?

        (the article says that the Docker man is so impressed by WASM. But yeah, maybe he i just a talking head)

        I am referring to server side here.

  13. Rich 2 Silver badge


    “…Adobe could "securely enable high performance and efficiency,”…”

    Well that’s the most unbelievable sentence I’m likely to read this week!

  14. Jeff Jones

    Some missing facts

    First of all, before Java, Visual Basic was ported to UNIX, later Linux, and other minicomputer OSs by a licensed third party, which achieved “write once, run anywhere”. Because there was no IDE that ran natively on those OSs, it never caught on.

    Second, Microsoft Blazor has pioneered the use of WASM and still does. C# in the browser and the backend has been around a few years, and works beautifully. .NET, starting with .NET 5, and open-source C#, in a short time delivered “write once, run anywhere”.

    If you want to take advantage of WASM today, the best implementation is found in Blazor with C#. As far as WASM on the server, why? We have C# and Java for that, which already have great performance and broad access to everything from IoT to massively parallel servers.

    I am at a loss as to why this article, otherwise quite good, has no mention of the positive and pioneering work Microsoft has done in bringing WASM into the mainstream.

  15. Filippo Silver badge

    WASM is a neat and clever thing, but IMHO the main problem with web development isn't languages or speed. We've been able to compile all kind of stuff down to Javascript for a while, and wasting CPU cycles has been a tolerated sin for decades now in most fields. The main problem is the API; first of all the DOM and how it's manipulated, but also all of the kludges needed to access native resources, or the fact that I need to import a third-party library and enter dependency hell to do even extremely basic things, or the insanity that's threading. I don't see WASM doing much about that.

    WASI, okay, maybe, but not right now.

    1. Blue Pumpkin

      Even though the Empire standardised on the Universal Interface and Protocol as embodied by R2D2 it's just a bigger island, so you still have to lug around a bunch of C3POs to get anything to talk to anything ....

    2. Michael Wojcik Silver badge

      Personally, I've disabled WASM in all my browsers, and nothing of value to me has been lost.

      I have zero interest at this point in using WASM for anything else, either. And I don't trust WASI as far as I can throw it.

  16. Randy Hudson

    "Now, WASM is not a programming language per se."

    When was it a programming language?

  17. evald80

    Remember the old good Applet in Java

    Same Same!!

    Every once in a while, we see the invention of the wheel!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like