from Hacker News

Thinscript: language that compiles to both WebAssembly and JavaScript

by DAddYE on 3/29/16, 7:36 PM with 31 comments

  • by constexpr on 3/29/16, 9:21 PM

    Oh wow I did not expect this to be up here this soon. Warning: two-week-old project. I've got a lot of plans for this but it'll take at least a few months for this to be anywhere near useful. Right now it's just an experiment!
  • by oldmanhorton on 3/29/16, 8:55 PM

    This looks a lot like typescript. Is there any particular reason for not either 1) adding a wasm backend to tsc (which tsc may or may not allow), or 2) implementing a strict subset of typescript? It just seems like piggybacking off of a larger language would help this sort of idea gain traction.
  • by ZenoArrow on 3/29/16, 8:56 PM

    Thinscript looks interesting, aside from coding in it directly it could prove to be a useful transpiler target, allowing non-web-languages to make better use of WebAssembly as both WebAssembly and Thinscript mature.
  • by asb on 3/29/16, 9:02 PM

    I wonder if there's a plan for generics support?