Originally, I was going to use D, but its current WASM guideline is buried under a lot of Discord threads, all while people are lazy to touch the wiki. I need to test stuff with WASM (use for scripting in applications, not browsers).

Please NO RUST!!! While I see why functional programming is useful (I even use wasmtime as my WASM engine, which is developed in Rust), but is horribly counterproductive for game development, especially if it’s opt out like in Rust.

EDIT: In the meanwhile, I’ve found AssemblyScript, which seems to be good for my usecase.

  • sorrybookbroke@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Yeah, rust tends to be more imperitive too, so I definitly wouldn’t describe it as functional by default or by neccesity.

    There’s a good reason to use another, non-gc language though. Rust is a very particular language with many issues. The borrow checker, matching system, etc. while increasingly cool are difficult to learn and I see why someone would prefer c, or another non-memory safe solution. Or even another memory safe solution with a different way of doing things.

    • CookieOfFortune@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Are there benefits in not having a GC in WASM?

      Also are there mainstream memory safe languages without a borrow checker? There’s some experimental ones out there.