ecma262 VS spec

Compare ecma262 vs spec and see what are their differences.

ecma262

Status, process, and documents for ECMA-262 (by tc39)

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
ecma262 spec
22 12
14,730 3,061
0.7% 0.8%
9.0 8.3
3 days ago 5 days ago
HTML 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.

ecma262

Posts with mentions or reviews of ecma262. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-19.
  • TC39: Add Object.groupBy and Map.groupBy
    6 projects | news.ycombinator.com | 19 Dec 2023
  • The "well-known" Symbols in JavaScript
    1 project | dev.to | 15 Dec 2023
    These aren't valid JavaScript (@@iterator would throw an error). They are actually internal Symbols used in JavaScript. They are used to implement features like iteration, instanceOf, and such internally. They actually might get removed or changed
  • 📦🔓Closures in JavaScript decoded
    1 project | dev.to | 19 Nov 2023
    Note that in previous editions, the ECMAScript® Language Specification used the term "lexical environment" before it decided to rename it to "Environment Record" so you might encounter this term in other definitions and tutorials.
  • Document.all Willful Violation
    1 project | news.ycombinator.com | 15 Oct 2023
  • ES2023 Candidate source code + specification
    1 project | /r/programming | 10 Apr 2023
  • ES2023 candidate source code + spec
    5 projects | /r/javascript | 10 Apr 2023
  • The Evolution of JavaScript
    1 project | dev.to | 22 Aug 2022
    For a new specification to be written, you need two things, a_ technical committee_, and a standard. The standard specification for JavaScript is called ECMA-262, and the technical committee is Technical Committee-39(TC39).
  • Why Async/Await Is More Than Just Syntactic Sugar
    3 projects | /r/javascript | 12 Aug 2022
  • Show HN: We are trying to (finally) get tail-calls into the WebAssembly standard
    11 projects | news.ycombinator.com | 12 Jul 2022
    4. Proposed something else [ https://github.com/tc39/proposal-ptc-syntax ]

    While apple is against Syntactic tail calls, they’re mainly just opposed to versions of it that would remove/unrequire the tail-call optimisation they already do: https://github.com/tc39/ecma262/issues/535

    For the version of it that is backwards compatible, they wouldn’t need to do anything other than recognise it as valid syntax. Their main concern is that it "could add confusion with very little benefit."

  • What happened to proper tail calls in JavaScript? (2021)
    6 projects | news.ycombinator.com | 15 Jun 2022
    The spec for STC has a critique of PTC:

    - performance

    - developer tools

    - Error.stack

    - cross-realm tail calls

    - developer intent

    See: https://github.com/tc39/proposal-ptc-syntax#issues-with-ptc

    Apple's 2016 response as to why they won't implement STC is here: https://github.com/tc39/ecma262/issues/535

    - STC is part of the spec and will take too long to change.

    - Now that they've implemented support for PTC, they don't want to regress web pages that rely on it.

    - They don't want to discourage vendors from implementing PTC by agreeing to STC.

    - They don't want to introduce confusion.

    Some of these arguments about confusion and delays seem wrong hindsight, since on every point things would have been better if they'd just agreed to the compromise of STC.

    - It would have been part of the spec years ago

    - STC would have had a clear way for web pages to know when tail calls could be relied on (and PTC would have been optional)

    - Other vendors didn't implement PTC in any case, despite no agreement on STC

    - There's even more confusion as things are now

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 ecma262 and spec you can also consider the following projects:

proposal-pattern-matching - Pattern matching syntax for ECMAScript

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

proposal-ptc-syntax - Discussion and specification for an explicit syntactic opt-in for Tail Calls.

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

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

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

io-ts - Runtime type system for IO decoding/encoding

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

proposals - Tracking WebAssembly proposals

telegraf - Modern Telegram Bot Framework for Node.js

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