Looking for a language, that can easily compile to WASM
Looking for a language, that can easily compile to WASM
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.
Rust isn’t strictly functional? Do you mean you’d like a language with garbage collection?
It's not a functional language at all, even if it borrows ideas from FP languages. It's an imperative language through and through.
"It's not a functional language at all even though it has lots of functional language features"
What? Rust is really quite a functional language in style, even if can easily support an imperative style too.
What exactly do you think makes something a functional language? Apart from currying I can't think of any typical FP features it is missing.
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.