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

WASM #360

@apowers313

Description

@apowers313

🚀 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions