13

C in the browser with WebAssembly, ~woo!!

Comments
  • 3
    Try getting a segfault and see what happens
  • 1
    @speedForce What happens? 😲
  • 2
    Try Rust instead. It should get the wasm option in the stable version soon.
    It has one in in the nightly
    And bonus, no seg fault.
  • 0
    @saintograph I haven't tried it. Just do it for fun. At the most, your browser may crash (pretty unlikely IMO)
  • 0
    @saintograph on second thought, I think your browser's console will just show "segmentation fault"
  • 0
    @byte Dammit, I just started with Go about a month ago.

    I chose it over Rust due to availability of learning resources.
  • 0
    @saintograph I love Go but Rust just lured me away
    Go's idioms make it easy to start making things and pick up the language with proper checks in place
    And the concurrency is handled brilliantly.
    While, Rust has the steep learning curve but makes it worth while by providing enough checks that make it difficult to make mistakes
  • 0
    @byte That settles it, I'll learn both! 😓

    From what I gather after reading available docs on MDN, WebAssembly acts as a compiler of sorts. Anyone who can code a low level language can jump in right away.
  • 1
    For WebAssembly is language agnostic, it can be built from many languages with proper compiler.
    I suggested Rust as it is getting the wasm support in it's build tools directly
    Other languages also have official or unofficial compliers available
  • 0
    Just imagine the fragmentation (even greater than it is with JS) when wasm goes mainstream.
  • 0
    So now websites can be more intrusive and even less transparent, yaaaaay
Add Comment