Web apps like Leptos get their own port and a control center beside them.
Web apps like Leptos get their own port and a control center beside them.
TS -> AssemblyScript -> Wasm -> wasm2c -> native
TS/JS -> Porffor -> native
TS/JS -> JS2 -> Wasm -> wasm2c -> native
TS -> AssemblyScript -> Wasm -> wasm2c -> native
TS/JS -> Porffor -> native
TS/JS -> JS2 -> Wasm -> wasm2c -> native
- compiled TypeScript DOM code to native with AssemblyScript + wasm2c (I could replace those too!)
- statically linked directly to Chromium DOM APIs
- with the V8 JavaScript engine entirely bypassed
- with zero string copies so APIs like innerHTML read content from AS memory
We can pretty much one-shot prompt any framework these days, *and* have it taylored to our preferences.
- compiled TypeScript DOM code to native with AssemblyScript + wasm2c (I could replace those too!)
- statically linked directly to Chromium DOM APIs
- with the V8 JavaScript engine entirely bypassed
- with zero string copies so APIs like innerHTML read content from AS memory
I just need to vibe update (or replace) AssemblyScript to support decorators (my elements are written with decorators) to statically define reactive class fields.
I've already compiled non-decorated custom elements to Wasm.
I just need to vibe update (or replace) AssemblyScript to support decorators (my elements are written with decorators) to statically define reactive class fields.
I've already compiled non-decorated custom elements to Wasm.
Plus there's already a huge ecosystem of TypeScript code that exists, much if which could adjust to be compiled natively.
It wouldn't take that long like starting a brand new language from scratch.
Plus there's already a huge ecosystem of TypeScript code that exists, much if which could adjust to be compiled natively.
It wouldn't take that long like starting a brand new language from scratch.
www.assemblyscript.org/compiler.htm...
www.assemblyscript.org/compiler.htm...
Have you seen AssemblyScript? Have you tried compiling TypeScript to JS with `tsc` and to Wasm with `asc`?
I've ported Three.js classes to TypeScript and gotten them compiled to both plain JS with `tsc` and Wasm with `asc`.
Have you seen AssemblyScript? Have you tried compiling TypeScript to JS with `tsc` and to Wasm with `asc`?
I've ported Three.js classes to TypeScript and gotten them compiled to both plain JS with `tsc` and Wasm with `asc`.
→ github.com/pdubroy/til...
→ github.com/pdubroy/til...
This is AssemblyScript. I'm generating Wasm at runtime & linking some prebuilt AS code into the module. The call_indirect here lets me call from AssemblyScript into my generated code.
Not a super common use case, but so useful!
This is AssemblyScript. I'm generating Wasm at runtime & linking some prebuilt AS code into the module. The call_indirect here lets me call from AssemblyScript into my generated code.
Not a super common use case, but so useful!