Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Do we really need this added complexity?

Open
#16 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, typescript, wasm
Domain
compilers

Research direction

Start with the linked example/assembly/index-wasm.ts test and index.js host-scheduling binding in ecmassembly. Compare that single-binding approach with the stack-switching proposal's added complexity and review the eight existing comments. Done would require a clear decision about whether the simpler approach satisfies the proposal's requirements.

Written by the indexing model from the issue text.

Description

I have an example Promise implementation in AssemblyScript that can be compiled to either JavaScript (with TypeScript compiler), or to WebAssembly (with AssemblyScript compiler), here:

https://github.com/aspkg/ecmassembly

In particular, here's a test:

https://github.com/aspkg/ecmassembly/blob/5d8811fae1ea99c7d67cbacb32832d7033b1142c/example/assembly/index-wasm.ts#L124

This is done by simply using a single binding from the host for scheduling:

https://github.com/aspkg/ecmassembly/blob/5d8811fae1ea99c7d67cbacb32832d7033b1142c/index.js#L50

See also setTimeout, requestAnimationFrame, etc.

Dominant language
WebAssembly
Stars
216
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from WebAssembly/stack-switching

All issues in WebAssembly/stack-switching

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.