interface-types VS spec

Compare interface-types vs spec and see what are their differences.

spec

WebAssembly specification, reference interpreter, and test suite. (by WebAssembly)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
interface-types spec
20 12
636 3,061
- 0.8%
2.8 8.3
almost 2 years ago 11 days ago
WebAssembly WebAssembly
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

interface-types

Posts with mentions or reviews of interface-types. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-04.
  • WebAssembly Playground
    9 projects | news.ycombinator.com | 4 Feb 2024
    Some things that might greatly increase wasm usage and overall tooling:

    1) Tools that run docker containers and serverless function services (like AWS lambda) to support providing a .wasm files instead

    2) Garbage collection in the runtime to make GC languages easier to port to wasm

    3) Dynamically typed languages (NodeJS, Python, Ruby) being able to compile to webassembly directly instead of porting the runtime to webassembly and then running the code through the runtime. This is a big ask though, basically needs to redesign the runtime completely

    4) wasm-DOM bindings will enable other languages to do HTML rendering which will require new web frameworks for every language that wants to take over the space from JS. This will lead to (even more) fragmentation of the web ecosystem

    5) A new wasm-first SDK (unrelated to the DOM) for building cross platform applications. I can see this taking off only if it is built-into the browsers and backed by some standards committee, so not very likely I think

    6) Something like the Interface Types proposal ( https://github.com/WebAssembly/interface-types/blob/main/pro... ) becomes a thing allowing wasm programs to be consisted of modules written in several different languages and being able to call said modules with low or 0 runtime performance hit (and of course, no compilation to multiple CPU archs). So much of programming ecosystems are locked to specific languages (like data science with python) when there is little technical reason for it be like that.

  • Bring garbage collected programming languages efficiently to WebAssembly
    16 projects | news.ycombinator.com | 3 Nov 2023
    AFAIK GC is irrelevant for "direct DOM access", you would rather want to hop into the following rabbit hole:

    - reference types: https://github.com/WebAssembly/reference-types/blob/master/p...

    - interface types (inactive): https://github.com/WebAssembly/interface-types/blob/main/pro...

    - component model: https://github.com/WebAssembly/component-model

    If this looks like a mess, that's because it is. Compared to that, the current solution to go through a Javascript shim doesn't look too bad IMHO.

  • Rust & Wasm (Safe and fast web development)
    1 project | /r/rust | 21 Sep 2022
    I'm not really optimistic that particular aspect will get much improvement. Many people expected interface types to come save the day, but after a looong stagnation that proposal has been archived (for now) in favour of component types, which has much less potential for performance gains.
  • Plugins in Rust: Wrapping Up
    4 projects | /r/rust | 27 Jul 2022
    Really good questions. Unfortunately, most of the issues I found back then were fundamental ones. I've seen that Wasm has deprecated "Interface Types" and is now working on the "Component Model". But even then, as far as I understand that would only avoid the serialization and deserialization steps, and you would still need to copy complex types. It will be more performant, but I don't think it would be enough for Tremor either.
  • When moving from JS to WASM is not worth it - Zaplib post mortem
    3 projects | /r/programming | 30 Apr 2022
    wasm doesn't know anything about the outside world on purpose. This allows it to be used in other domains. For direct access to the DOM et al, interface types are being developed. It's a non-trivial problem to interoperate with a dynamically typed GC'd language from any statically typed no-GC language that can compile to wasm.
  • WebAssembly 2.0 Working Draft
    21 projects | news.ycombinator.com | 19 Apr 2022
    You may want to look into WASM interface types, which is defining what amounts to am IDL for WASM and different languages have common calling conventions: https://hacks.mozilla.org/2019/08/webassembly-interface-type...

    I don’t know if there’s a better intro article. I believe this is the current iteration of the proposal: https://github.com/WebAssembly/interface-types/blob/main/pro...

  • Replace JS with Rust on front-end, possible? Advisable?
    7 projects | /r/rust | 17 Apr 2022
    Yes, and if I'm not mistaken, this is the RFC
  • Google Chrome emergency update fixes zero-day used in attacks
    4 projects | /r/programming | 15 Apr 2022
    I see no reason why not. See the interface types proposal for a proposed solution.
  • Rust for UI development
    1 project | /r/rust | 27 Jan 2022
  • Front-end Rust framework performance prognosis
    4 projects | /r/rust | 15 Jan 2022
    Wanted to get thoughts from the Rust experts on this - the author of the Yew framework seems to think that Web Assembly Interface Types (https://github.com/WebAssembly/interface-types/blob/master/proposals/interface-types/Explainer.md) will allow Yew to eventually become faster than Vue, React, Angular, etc. Is there general consensus on this in the Rust community? The prospect of mixing Rust (for the performance critical pieces) with TS on the front end doesn't seem super appealing to me.

spec

Posts with mentions or reviews of spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-18.
  • WASM Instructions
    13 projects | news.ycombinator.com | 18 Feb 2024
    You can parse many things from this file, what are you trying to extract?

    https://github.com/WebAssembly/spec/blob/main/document/core/...

  • The fastest word counter in JavaScript
    2 projects | news.ycombinator.com | 22 Apr 2023
    Still strikes me as super sad JS never got SIMD support. It seemed like there were some strong candidate specs. On Node there are some add-on npm libraries that implement.

    My understanding was the main protest was that we would get wasm & some certain implementers said they wanted to focus their energy on wasm.

    That was well over half a decade ago & wasm is still in incredible infancy, with basically only statically linked capabilities in the spec.

    Wasm SIMD proposal itself only merged into wasm in November 2021. https://github.com/WebAssembly/spec/pull/1391

    It seems really unfortunate to have decided to keep JS the slow inferior language.

  • Is Blazor server and Blazor Webassembly going to be a big market? I am trying to figure out a niche to go with and I have some asp.net core mvc experience but I am working on a e-commerce .net6 Blazor Webassembly app.
    2 projects | /r/csharp | 19 Dec 2022
    Blazor and WASM itself (outside of dotnet) are relatively new tools and they already show impressive results. They will keep getting better with every release. E.g. this proposal https://github.com/WebAssembly/spec/blob/main/proposals/simd/SIMD.md which should bring WASM closer to "near native speed". Blazor already started working on it true.
  • Smolnes: A NES Emulator In
    7 projects | news.ycombinator.com | 28 Oct 2022
    Big fan of this author's work.

    They have a Gameboy emulator written in C, which can be compiled to WASM and run in the browser.

    https://github.com/binji/binjgb

    I learned a lot from the code.

    Also I love this project with a bunch of demos in hand-written WebAssembly Text (WAT) format, which is like low-level Lisp that works only with raw memory, numbers, and minimal syntax.

    https://github.com/binji/raw-wasm

    Then I discovered the same author is quite active in the WebAssembly ecosystem, including specs and tooling. Fascinating stuff!

    https://github.com/WebAssembly/spec

    https://github.com/WebAssembly/wabt

  • Exploring WebAssembly, The Underlying Technology Behind Blazor WASM.
    1 project | dev.to | 16 Jul 2022
    [The WebAssembly specification (https://webassembly.github.io/spec/) maintains that the standards apply to more than just the browser host, but also to any other compliant host runtime (what the specification refers to as an embedder).
  • Show HN: We are trying to (finally) get tail-calls into the WebAssembly standard
    11 projects | news.ycombinator.com | 12 Jul 2022
    Heya,

    (1) Thank you for implementing this in JSC!! I hope they take it, it makes it into Safari, and the tail-call proposal advances.

    (2) I don't think you are exactly right about the call stack being observable via thrown exceptions. There's no formal spec for the v3 exceptions proposal yet, but in the documents and tests, there's nothing that would change in WebAssembly core to make the call stack observable. It's true that the proposal amends the JS API (but only the JS API) to describe a traceStack=true option; from Wasm's perspective I understand that's just an ordinary exception that happens to include an externref value (just like any other value) to which Wasm itself attaches no special significance. The engine can attach a stack trace if it wants, but there's no requirement (here) about what that stack trace contains or whether some frames might have been optimized out.

    (3) I think the real reason that a Wasm engine can't implicitly make tail calls proper is that the spec tests forbid it, basically because they didn't want the implementation base to split by having some engines perform an optimization that changes the space complexity of a program, which some programs would have started to depend on (the spec tests say: "Implementations are required to have every call consume some abstract resource towards exhausting some abstract finite limit, such that infinitely recursive test cases reliably trap in finite time. This is because otherwise applications could come to depend on it on those implementations and be incompatible with implementations that don't do it (or don't do it under the same circumstances.)" More discussion here: https://github.com/WebAssembly/spec/issues/150

  • WebAssembly 2.0 Working Draft
    21 projects | news.ycombinator.com | 19 Apr 2022
  • A challenger to the throne of vector graphics. SVG is dead, long live TinyVG
    7 projects | news.ycombinator.com | 20 Dec 2021
  • Microsoft joins Bytecode Alliance to advance WebAssembly – aka the thing that lets you run compiled C/C++/Rust code in browsers
    12 projects | /r/programming | 28 Apr 2021
    The WASM paper discusses that in the final section: https://github.com/WebAssembly/spec/blob/master/papers/pldi2017.pdf
  • Is there a small, well-specified language with lots of example programs?
    2 projects | /r/ProgrammingLanguages | 4 Jan 2021
    WebAssembly has a formal specification that includes both operational semantics and natural language-based descriptions of everything in the language. The official repository also has a lot of tests. Besides tests, you should be able to find lots of examples by searching.

What are some alternatives?

When comparing interface-types and spec you can also consider the following projects:

assemblyscript - A TypeScript-like language for WebAssembly.

uwm-masters-thesis - My thesis for my Master's in Computer Science degree from the University of Wisconsin - Milwaukee.

gc - Branch of the spec repo scoped to discussion of GC integration in WebAssembly

Oberon - Oberon parser, code model & browser, compiler and IDE with debugger

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

meetings - WebAssembly meetings (VC or in-person), agendas, and notes

Blazor.WebRTC

component-model - Repository for design and specification of the Component Model

proposals - Tracking WebAssembly proposals

wit-bindgen - A language binding generator for WebAssembly interface types