Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

WASM #360

Open
apowers313 opened this issue Jul 8, 2023 · 0 comments
Open

WASM #360

apowers313 opened this issue Jul 8, 2023 · 0 comments

Comments

@apowers313
Copy link
Contributor

🚀 Feature

Nethack has the ability to cross-compile to a Web Assembly (WASM) module that provides a windowing API for rendering maps, displaying messages, displaying attributes, etc. Python has a Wasmer library that can run WASM modules.

I'd like to suggest that NLE use WASM rather than the Nethack C code.

[disclaimer: I wrote the Nethack WASM port]

Motivation

  1. Increase NLE adoption by getting rid of the cmake dependency
  2. Increase cross-platform portability and reduce likelihood of build issues
  3. Greater access to Nethack internals (glyphs, stats, messages, etc.) without parsing
  4. Enable Multi-objective learning through various Nethack stats (hunger, HP, load, etc.)

Pitch

I'd be happy to create a PR to ditch all the C code in this repo and replace it with a WASM module. I'm not sure how hard it would be to keep backwards compatibility with existing gym Spaces.

Alternatives

Create an alternative gym environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant