News for hackers. Stuff that matters.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse... by wizzwizz4 on Saturday December 19, 2020 @09:14AM (#25477492)
AssemblyScript is a tiny subset of TypeScript; it's probably better to describe it as a C-like compiled language that borrows syntax from TypeScript.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse... by maxgraey on Saturday December 19, 2020 @10:42AM (#25478049)
Not only syntax, but also standard library, ecosystem and etc. You could easily transpile AssemblyScript project to JavaScript via tsc if use portable glue code. From C it I guess it borrows AOT compilation, ability to use low-level intrinsics and more granular and sound types. Btw many people still thought AS has manual memory management, but it's not true. By default it use hybrid ARC and GC approach called PureRC: https://github.com/dcodeIO/purerc/blob/master/papers/Bacon03...
Re:AssemblyScript: A variant of TypeScript targeting WebAsse... by wizzwizz4 on Saturday December 19, 2020 @06:09PM (#25482166)
You can easily transpile any C-syntax subset into C, if you use the right libraries. Same with Python, or Java, or MIT Scratch, or any other language I can think of.